Commit Graph

129 Commits

Author SHA1 Message Date
skrll
8e4a73da69 Apply change from upstream to fix PR/48709 - port-alpha/48709: static
threaded programs crash.

With this fix the new weak symbol's st_other is not merged in, i.e. NOPV
is not copied from the libc __libc_thr_init.

* elflink.c (_bfd_elf_merge_symbol): If merging a new weak
symbol that will be skipped, we don't have a new definition.
2014-08-11 20:53:16 +00:00
matt
547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
matt
beb9c6d1b5 Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
2014-08-10 05:47:35 +00:00
matt
3958509594 Change ARM ELF_MAXPAGESIZE to 0x10000 and also change TEXT_START_ADDR for
nbsd to 0x10000.
2014-06-26 22:55:23 +00:00
joerg
68aeaa009b Use correct library path for -m32 on sparc64. 2014-04-14 21:09:02 +00:00
matt
1a3430eb55 Bias the cfi pc expr by nbytes since vax pcrel are relative to end of the
relocation, not the beginning.  By adding the size of relocation, it will
become relative to the start of the relocation.
2014-03-25 16:17:33 +00:00
matt
b47c61b618 Add support for the .cfi pseudo-ops for VAX. 2014-03-18 23:41:36 +00:00
matt
95d660c12b Make readelf know what the vax pcrel32 reloc number is. 2014-03-18 23:41:02 +00:00
nakayama
8813083ebc Enable 64-bit integer handling for gas even on 32-bit host since
sparc64 kernel now uses 64-bit constant with %hh operator.

Fix for PR toolchain/48630.
2014-03-10 12:01:19 +00:00
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