matt
b24a2a16b7
Add support for setting LIB_PATH for powerpc*-netbsd* on powerpc64*-netbsd*
2014-03-07 04:13:46 +00:00
matt
b2757928d7
If marking a shared image TEXTREL, print out a warning about the section
...
that caused it.
2014-03-06 09:33:14 +00:00
matt
700fb1c20d
Always supply LIB_PATH in case one of the included scripts set it to
...
something inappropriate.
2014-02-06 18:28:28 +00:00
matt
b3a8421d95
Don't unset LIB_PATH, just override it.
2014-02-06 15:40:47 +00:00
matt
420036df2f
Use separate emulations for EABI hardfloat / softfloat.
2014-01-31 07:32:53 +00:00
matt
42f0af0447
Add armelf{,b}_nbsd_eabihf emulations for MKCOMPAT to use.
2014-01-31 03:26:50 +00:00
matt
ff329494be
Fix typo bsd -> nbsd
2014-01-29 23:16:14 +00:00
matt
98a4b7b58e
Add missing emulations for armelf{,b}_nbsd
2014-01-29 22:39:47 +00:00
matt
175c9fb16a
Fix arm eabi typo
2014-01-29 05:27:35 +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
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
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
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
skrll
1cd7a8f9b7
Fix silly typo
2013-11-14 12:44:25 +00:00
christos
16129349e4
CID 1102810: Fix uninitialized
2013-11-14 01:18:02 +00:00
christos
cf3d00d2c6
CID 1102856: Fix memory leak
2013-11-14 01:12:14 +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
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
martin
9083b1cffb
Apply rev 1.5 again, from Matt Thomas:
...
Fix problem leading to triggering a BFD assert: when allocating space in the
got, do not allocate slots for symbols without default visibility.
2013-10-03 12:06:04 +00:00
skrll
82dcfc189d
Default to ARM_ARCH_V4.
...
Minimum processor for all arm ports is really StrongARM and has been for
sometime.
2013-10-01 10:06:17 +00:00
skrll
55b5274d5c
Even though the world is moving to earm provide a CPU_DEFAULT for arm
...
targets.
This stops the "Warning: swp{b} use is obsoleted for ARMv8 and later"
messages and probably others.
Discussed with matt@
2013-09-30 16:16:31 +00:00
skrll
3834f45b30
Fix trap_zero_jump for new binutils.
...
XXX someone who really understand this should check it.
2013-09-29 20:13:42 +00:00
christos
b410d6928d
resolve conflicts
2013-09-29 14:03:29 +00:00
christos
4e795f0325
from ftp.gnu.org
2013-09-29 13:48:10 +00:00
christos
883529b685
from ftp.gnu.org
2013-09-29 13:38:08 +00:00
matt
92fd66d6e7
Teach readelf how to interpet netbsd notes.
...
Notes at offset 0x00000128 with length 0x00000018:
Owner Data size Description
NetBSD 0x00000004 IDENT 699002300 (6.99.23)
Notes at offset 0x00000154 with length 0x00000020:
Owner Data size Description
NetBSD 0x00000009 MARCH <earmv7hf>
2013-09-11 18:53:54 +00:00
matt
6d142d8571
Add cortex-a7
2013-08-19 22:23:12 +00:00
drochner
4902aed8dd
remove some files which will be regenerated during build, avoids
...
writes into $BSDSRCDIR
2013-08-13 20:38:08 +00:00
matt
83b2ab469f
Match arm*-*-netbsdelf*-*
2013-08-12 05:14:24 +00:00
matt
e193aeee34
match armv[467]*--netbsdelf*
2013-08-04 22:19:42 +00:00
matt
ff4ffb39ed
Allow alias of m5407--netbsdelf for m68k--netbsdself
2013-07-19 16:01:33 +00:00
matt
5b9e27202e
Fix broken matching for m5200 and m5407 as alias for coldfire cpus.
2013-07-19 15:58:48 +00:00
matt
a6b968105e
Allow stripping of the m before m5... so that it can match coldfire cpus.
2013-07-19 15:57:18 +00:00
matt
88c7c7f72e
Make these consistent. Make sure all handle earm and coldfire.
2013-07-19 15:55:57 +00:00
joerg
920908ed83
PR 47922: Properly resolve DT_NEEDED entries under sysroot and don't
...
accidently try the installed system.
2013-06-25 19:38:54 +00:00
matt
13994434d1
Move arm-*-netbsdelf-*eabi* to before arm-*-eabi* so it matches properly.
...
Add arm-*-netbsdelf-*eabihf* which has a VFP V2 by default.
Rename armnetbsdeabi*.h to armnbsdeabi*.h to be consistent with other nbsd
files.
2013-02-04 22:38:07 +00:00
matt
5b98504a16
Add a match for arm*--netbsdelf-eabi* and default that EABI with a VFP FPU
...
and ARCH_ARM_V5TEJ cpu.
2013-02-04 18:42:30 +00:00
drochner
d18545dea2
pull in upstream rev. 191413 to fix integer overflow in objalloc_alloc
...
(CVE-2012-3509)
2012-10-25 17:00:16 +00:00
matt
7d57bc60df
Make this to produce working shared libraries again.
...
Resultant distribution was booted into single user using shared libraries.
2012-08-27 16:50:14 +00:00
matt
7c4c75c298
Add support for setting LIB_PATH for MKCOMPAT support.
2012-08-13 02:52:34 +00:00
matt
a4ae934e29
Remove code that should be have excised a long time ago.
2012-08-07 01:09:13 +00:00
matt
ad73c53594
Add arm{,eb}--netbsdelf-eabi support.
2012-08-05 04:03:03 +00:00
christos
edd104c76c
PR/46704: Antti Kantee: Recognize tilera in config.guess
2012-07-19 19:34:26 +00:00
matt
b7c801cac8
Two fixes. Better PLT pruning (don't emit PLTs for local functions).
...
If emitting a reloc against a readonly section in a shared image,
cause TEXTREL to be set.
2012-07-17 21:37:21 +00:00
matt
ec769e4972
Warn about using a symbol as a displacement in PIC mode.
2012-07-17 20:29:44 +00:00
matt
6be8dcf23e
Fix merge botch dealing with linker assignments.
2012-03-04 17:09:32 +00:00
matt
82cfc8036f
Fix support for .protected symbols.
2012-03-02 16:37:16 +00:00
matt
3ffd030673
Fix problem leading to triggering a BFD assert: when allocating space in the
...
got, do not allocate slots for symbols without default visibility.
2012-02-10 01:47:37 +00:00
skrll
686829eb3c
Revert last change to elf32-hppa.c and pull across the fix to my binutils
...
PR 13476.
tests/lib/libc/tls on hppa still passes with this change.
2011-12-12 07:40:56 +00:00
skrll
fd5c19ebdc
Revert
...
http://sourceware.org/ml/binutils/2010-01/msg00594.html
which broken TLS relocations for DSOs - the relocation wasn't being
adjusted wrt the GP.
A proper fix is in the pipeline.
2011-12-02 09:40:18 +00:00
christos
324a1c22f5
Only set symbols not provided from the linker script as regular so
...
that we can find their version from verdef not vertree. This bug
showed up on the hp700 build of heimdal's libkrb5, where we got
the "end" symbol with a bad version from libhx509. The hp700 linker
script defines that end symbol.
2011-11-26 15:59:34 +00:00
skrll
28126bca61
Slight merge mistake. Now no difference to verndor branch.
2011-11-26 15:54:02 +00:00
uwe
cac1691902
elfcore_grok_netbsd_note: sync SuperH PT_GETREGS value with reality.
...
Recognize PT_GETFPREGS that we don't yet actually have, but for which
the number is now reserved.
2011-11-01 00:31:38 +00:00
uwe
10230b2353
get_netbsd_elfcore_note_type: sync SuperH PT_GETREGS value with
...
reality. Recognize old PT___GETREGS40 (for struct __reg40 without
GBR). Recognize PT_GETFPREGS that we don't yet actually have, but for
which the number is now reserved.
2011-10-31 19:12:48 +00:00
christos
1d3d0af5a7
gnu style.
2011-10-07 23:24:14 +00:00
christos
b2a67858d2
Fix broken logic that created R_SPARC_64 relocations when -Bsymbolic.
...
When -Bsymbolic, all resolved symbols need to be created with relative
relocations. The dynamic linker depends on that because it only
knows how to perform relative relocations in the first pass to
relocate itself. This bug ended up creating R_SPARC_64 symbols for
12 relocation symbols in ld.elf_so, one of them dlopen(), which
ended up breaking things using dlopen(), most notably PAM.
2011-10-07 22:30:56 +00:00
christos
5cb8c25793
disable building the .info file
2011-10-07 20:22:59 +00:00
christos
bc3b670f7d
The arm .arm.atpcs section does not have segment information, so skip it.
2011-10-01 19:25:24 +00:00
macallan
c608916b4f
put -mfixloongson2f-btb back in the command line options list
2011-09-30 01:23:00 +00:00
apb
1bc22d31ed
Disable rebuilding of elfedit.1
2011-09-25 19:40:36 +00:00
mrg
95deb5109b
make this build again.
...
gimpy, please check the #if 0'd code that may or may not be useful? :)
2011-09-25 11:07:32 +00:00
mrg
47221e6236
add OPTION_FIX_LOONGSON2F_BTB and OPTION_NO_FIX_LOONGSON2F_BTB
...
options back to the enum.
2011-09-25 09:44:54 +00:00
christos
32998b1cb8
Merge new binutils. Only x86_64 works now; the rest will need to run mknative
...
again (at least).
2011-09-25 04:32:33 +00:00
christos
31799520c4
from ftp.gnu.org
2011-09-24 22:40:46 +00:00
christos
be12b8bcaf
from ftp.gnu.org
2011-09-24 22:30:45 +00:00
christos
45548106ec
from ftp.gnu.org
2011-09-24 22:20:22 +00:00
christos
be9ac0ea6d
from ftp.gnu.org
2011-09-24 22:10:17 +00:00
bouyer
90a13a6073
Hide instructions added by -mfix-loongson2f-jump in the same way as
...
-mfix-loongson2f-btb, to avoid a gas warning "macro expanded into
multiple instructions" (which cause GDIUM kernel build failure
as it's built with -Wa,-mfix-loongson2f-jump -Wa,--fatal-warnings).
2011-08-29 18:30:52 +00:00
bouyer
0c15c4be25
Add a fix-loongson2f-btb option to gas, from OpenBSD.
...
This works around a bug in the branch prediction logic of the
CPU which can cause a hard hang. The existing fix-loongson2f-jump
works around the same bug, but by 'fixing' the jump target to be within the
same 256MB region as the kernel. This will (silently) cause a jump
to the wrong address if the jump is intentionally to some other
region (e.g. a call to pmon).
fix-loongson2f-btb instead works around the issue by adding an explicit flush
of the branch target buffer (via a write to a cop0 register) before every
jump register instruction.
2011-08-27 13:19:39 +00:00
matt
ec53afa919
Add a -mtrap-zero-jump option for mips that causes a trap instruction to
...
fire before a jump to a zero or "near" zero address. This can't be used
with MIPS1 kernels since MIPS1 doesn't have a trap instruction (it will
be silently ignored).
2011-08-18 06:32:35 +00:00
matt
acb3cf946c
Missing a diff for the loongson2 fixes
2011-08-03 17:54:52 +00:00
matt
c8f6ff28bb
Pull in change to support -m[no-]fix-loongson2f-{nop,jump}
2011-08-02 16:11:16 +00:00
mrg
fc24f81836
apply a couple of (int) before r_type switch usage.
2011-07-07 07:47:11 +00:00
mrg
55bcf9d074
cast to int as the fake relocs are not in enum elf_ppc_reloc_type, and
...
GCC 4.5 complains about values not in the enum as part of a switch block.
2011-07-06 09:01:35 +00:00
joerg
4e20b7f563
Provide correct builtin search path for amd64's -m32 mode.
2011-05-14 22:27:58 +00:00
matt
1b9f0bef5f
Remove old mfcr/mtcr definitions
2011-04-14 08:05:00 +00:00
matt
91f4e65a42
Pull in MIPS XLR (XLS) support from patch in
...
http://sourceware.org/ml/binutils/2009-01/msg00383.html
This replaces local changes to support some xlr instructions.
2011-04-14 07:49:48 +00:00
matt
c82db00b04
Add NetLogic Fast Messaging instructions
2011-02-14 18:23:35 +00:00
wiz
3d3c5d42cb
Observe the following spelling:
...
- wide character (noun)
- wide-character (adjective)
Inspired by jmc@OpenBSD.
2010-12-16 17:42:25 +00:00
matt
48d3f85c1c
Use ELF_ST_VISIBILITY (S_GET_OTHER( )) instead of a local S_IS_HIDDEN as
...
suggested by binutils.
2010-12-09 06:22:03 +00:00
matt
4d0f1c412f
Add a private now S_IS_HIDDEN(symbol) so gas deal with hidden symbols
...
correctly.
2010-12-06 21:17:00 +00:00
joerg
a6fcc8233b
Add the __eprol hidden symbol. Forgotten part of the common CSU handling
...
commit as found by Nicolas Joly.
2010-09-29 14:54:00 +00:00
martin
5a6d00fa0a
From Matt Thomas, suggested upstream:
...
* atof-generic.c (atof_generic): recognize snan and qnan in
addition to nan and inf.
* atof-vax.c (flonum_gen2vax): deal properly with nan, snan, qnan,
and +Inf and -Inf codes.
This fixes PR toolchain/43303.
2010-05-16 11:20:01 +00:00
christos
9021b5c725
revert previous. it does not work properly.
2010-04-21 17:10:31 +00:00
christos
22c1c07780
XXX: This is a hack, the note inclusion does not belong here, and
...
it belongs in a separate elf_nbsd.sh, included from elf_i386_nbsd.sh.
The problem is described in:
https://bugzilla.redhat.com/show_bug.cgi?id=492183#c7 , namely if
all the sections are not defined in the ld script, it can screw
up. This happens when building /usr/src/usr.sbin.crash with
MKPIE=yes. Thanks to Piotr Meyer for the report and analysis.
We don't need to fix any other archs yet (because crash only works on i386),
but we should. skrll should look into it, please :-)
2010-04-20 22:47:48 +00:00
joerg
7780622b8d
Use HUGE_VAL on VAX as INFINITY requires a warning according to ISO C99
...
on VAX. Use the less intrusive approach of a conditional here.
2010-03-01 00:15:47 +00:00
drochner
7abc5be2ce
adjust INTERP path for NetBSD (needed eg for -static -pie)
2010-02-23 20:42:40 +00:00
matt
dfcdd41b29
Add a _is_local_label_name routine (taken from elf64-mips.c).
2010-01-29 06:09:36 +00:00
matt
07b94adbab
Use bfd_ntrad{little,big}_vec and drop all non-trad vectors since they
...
make target matching ambiguous.
2010-01-29 06:08:01 +00:00
matt
335a046fbd
Remove merge workaround - not needed.
2010-01-29 06:05:53 +00:00
matt
fade670606
Remove redundant mips*-*-netbsd* clause
2010-01-29 06:05:32 +00:00
matt
e34524fa00
Don't allow a symbol + offset in a merge section to translated to a
...
.section + offset reference if offset is negative.
2010-01-01 06:12:55 +00:00
mbalmer
43a53fa2dc
Fix typo in a comment, no code change.
2009-12-23 09:22:16 +00:00
mrg
f8913fe32e
default netbsd*mips64 to n32. from matt-nb5-mips64.
2009-12-14 02:52:08 +00:00
skrll
79b3e7eed6
Recognize $L as a local symbol for mips64.
2009-12-07 10:00:21 +00:00
skrll
af515df4eb
Pull in fixes from binutils_2_19 branch.
...
Bump version and re-run mknative to pick up.
2009-11-20 22:51:29 +00:00
snj
643cb11825
Pull in fixes from upstream revision 1.146 to avoid string formatting
...
warnings. Fixes build with newer GCC, like the one in Snow Leopard.
2009-11-15 22:17:03 +00:00
snj
85be2afacd
Pull in fixes from upstream revision 1.406 to avoid string formatting
...
warnings. Fixes build with newer GCC, like the one in Snow Leopard.
2009-11-15 21:57:49 +00:00
snj
f30f819e9c
Fix unbalanced parentheses to make this build again.
2009-11-15 21:19:35 +00:00