Commit Graph

715 Commits

Author SHA1 Message Date
matt f536e5d427 Don't pass -Wl,-x to ${CC} since that strips symbols needed by ARM BE.
Let the OBJCOPY strip them.
2014-01-11 02:45:52 +00:00
matt 50d26cbd5b Don't use ${LD} -x because it screws up ARM BE.
Use ${OBJCOPY} ${OBJCOPYLIBFLAGS} instead so that $a/$d/$t are preserved.
2014-01-11 00:30:23 +00:00
christos a15708a3bd gcc-4.8 has begun putting code in .text.unlikely etc. This breaks our
assumption that .text code comes first in kernels about bootblock so
that the first symbol defined becomes the start address. This change
puts .text before other .text like sections.
2014-01-04 20:17:42 +00:00
joerg 149b982b18 Fix string compare. 2014-01-04 03:19:00 +00:00
martin 8b9e38f519 Port from newer gcc:
Add a "mem_noofs_operand" predicate and corresponding "w" constraint.
Use those instead of "memory_reg_operand"/"m" for some atomic instrinsic
patterns: casx (and friends) do not accept an offset from the pointer
register (they are synthetic instructions mapping to e.g. casxa [..]
ASI_P, ... and the opcode space encoding offsets in other instructions
is needed to encode the ASI here).

This fixes the build of gtk+-3.10.6 from pkgsrc on sparc64.
2014-01-03 08:30:41 +00:00
jakllsch 1fa26414d5 regenerate for src/external/gpl3/binutils/dist/bfd/config.bfd r1.10:
Enable 32/64-bit PE-COFF targets for NetBSD/i386 in libbfd.
Needed to build UEFI things for IA32 using native toolchain.
2013-12-24 16:01:07 +00:00
jakllsch 0bfb2660a5 Enable 32/64-bit PE-COFF targets for NetBSD/i386 in libbfd.
Needed to build UEFI things for IA32 using native toolchain.
2013-12-24 15:06:39 +00:00
mrg d5944a5b77 update to reality for gcc 4.8.2. 2013-12-13 10:01:49 +00:00
bouyer 0700bebfda Fix bad cut'n'paste in previous commit.
This should fix the remaining loogson build issues.
2013-12-10 18:15:43 +00:00
joerg a7e7f7e044 One const ought to be enough for every variable. 2013-12-01 01:05:15 +00:00
joerg e4c0f6ad28 Allow gnueabi to be matched for the relevant cases as well. 2013-11-29 23:01:54 +00:00
bouyer 95d1a8853c update for new binutils code our local patch to avoid warnings when macro are
used for loongson2f workarounds. Should fix mips64el kernel builds.
2013-11-28 22:28:30 +00:00
mrg c25882ee01 handle with moved mpfr*.h files. 2013-11-28 13:04:35 +00:00
mrg 75219f3a01 update to MPC 1.0.1. 2013-11-28 12:08:56 +00:00
skrll 1cd7a8f9b7 Fix silly typo 2013-11-14 12:44:25 +00:00
martin 3d01f81a9c On sparc64 when compiling 64bit binaries:
- if proper "marker" objects exist, encode the code model in use in the
   binary
 - default to -mcmodel=medmid (instead of medlow)
2013-11-14 12:21:05 +00:00
christos 5435e94952 CID 1102803: Memory leak 2013-11-14 02:26:35 +00:00
christos 16129349e4 CID 1102810: Fix uninitialized 2013-11-14 01:18:02 +00:00
christos 95ea4fb705 CID 1102811: Unitialized variable. Don't pass random sun_len for the BSD's,
zero the whole structure as recommended for portability.
2013-11-14 01:14:39 +00:00
christos cf3d00d2c6 CID 1102856: Fix memory leak 2013-11-14 01:12:14 +00:00
christos 87ddf4238e CID 1102812: Fix uninitialized 2013-11-14 01:00:22 +00:00
joerg 70f0cfa164 NetBSD 6.99.26: Switch i386 and amd64 to the x87 default control word
as initial value for new processes. This means that long double
computations get the expected 63bit mantissa. Binaries tagged as
compiled for 6.99.25 and older get the old value.

Add a simple test case to ensure that double and long double computation
are working correctly.
2013-11-11 11:10:45 +00:00
christos f55ff5e8dd vax specific gcc 4.8.1 hacks 2013-11-09 21:39:27 +00:00
gdt 0b42bf56be Use -f with cp to cope with nonwritable files in . 2013-11-05 02:32:12 +00:00
christos c9aa9a4e40 fix broken volatile assignment that gcc-4.8.1 does not like 2013-11-01 18:13:29 +00:00
christos 5612798f34 make the code compilable with gcc-4.8.1; this loop has an array overflow,
but it is only used for sparc register windows; ifdef it sparc for now,
it's the easiest fix.
2013-11-01 18:12:49 +00:00
christos cb2bd1517d pick up omp.h from the libgomp directory not from /usr/include/gcc-4.5. Makes
the code compilable with gcc-4.8.1
2013-11-01 18:11:49 +00:00
christos 79581a2559 Handle more than gcc 4.5 2013-10-31 17:28:10 +00:00
joerg a07180c32d Recursively add DT_NEEDED entries from shared libraries if symbols are
used indirectly. This is more in line with the old GNU ld behavior, but
not exactly the desired semantic.

Patch from Martin Husemann.
2013-10-25 14:28:28 +00:00
apb 50c2b69fc0 When building gcc using clang, avoid trying to use
__attribute__((__format__(__asm_fprintf__, ...)))
because clang doesn't support that.
2013-10-18 13:24:40 +00:00
apb fb6cc47310 Run ../bfd/configure under ${CONFIG_SHELL}, not under
the /bin/sh that happens to be mentioned in its "#!" line.
2013-10-15 07:18:18 +00:00
apb 1b5c4ef5db If the shell does not support the $LINENO variable, then use
"bfd_configure.lineno" instead of "configure.lineno" as the name of the
a version of the script that has had all uses of $LINENO converted to
literal line numbers.

Now building tools via "MKCROSSGDB=yes build.sh tools" works again, even
if the shell does not support $LINENO.

The previous problem was caused by an interaction
between the way .../gdb/dist/opcodes/configure executes
"${srcdir}/../bfd/configure --version", and the way both configure
scripts tried to create and then execute configure.lineno scripts.
Both configure.lineno scripts were created in the same OBJDIR,
with the configure.lineno from .../bfd/configure overwriting the
configure.lineno from .../opcodes/configure, while the latter was
still running.
2013-10-15 07:14:59 +00:00
nisimura bbf0c42bc0 remove garbage lines mistakenly included when def.mk generation. 2013-10-11 01:20:52 +00:00
christos ebc3424719 dollarize NetBSD tag 2013-10-05 18:38:03 +00:00
christos 45fd133595 mother's little helper. 2013-10-05 18:37:16 +00:00
christos 26ac899854 remove error(1) output. 2013-10-05 16:52:55 +00:00
christos f84ee3a147 fix alpha 2013-10-04 23:41:59 +00:00
christos 9e391dc454 merge alpha changes 2013-10-04 23:40:17 +00:00
mrg b52c619931 regenerate for gdb 7.6. 2013-10-04 22:31:12 +00:00
christos 4c55f68194 Allow bfd_mach_arm4 machines to produce a.out binaries.
Perhaps we should just let every arm machine produce them?
Or we should use M_ARM6_NETBSD midmag for those?
2013-10-04 18:08:02 +00:00
christos c7ae7b152f fix i386 build. 2013-10-04 15:24:44 +00:00
christos 39fb2232d3 new need to run yacc/lex now, since the generated files have been removed
and account for the ada dependencies.
2013-10-04 13:04:00 +00:00
mrg 52d8d9b995 regenerate with G_enable_initfini_array fix. 2013-10-04 03:38:32 +00:00
mrg 57a995ec5d regenerate for G_enable_initfini_array fix. 2013-10-04 01:41:20 +00:00
mrg cf5b64618e gdb 7.6 mknative for mips64el. 2013-10-04 01:16:50 +00:00
mrg 84e9dd17ed regenerate mknative-gdb for GDB 7.6 for coldfire, earmeb, m68k,
mips64eb, mipsel, sh3eb and sh3el.
2013-10-04 01:09:03 +00:00
mrg 6f88083e54 delete generated files; they mess with r/o source trees and builds
that happen in src/tools/gdb.
2013-10-04 00:42:13 +00:00
mrg 9d2d9e2859 regenerate most of the binutils mknative files, and remove the
G_enable_initfini_array hack from ld/Makefile.
2013-10-03 23:42:38 +00:00
christos 7bfbcd5f15 add powerpc 2013-10-03 21:46:02 +00:00
christos a5126fe978 forgot one 2013-10-03 21:18:48 +00:00