Commit Graph

75 Commits

Author SHA1 Message Date
skrll a105f8f3c9 Pull in my readelf fix from binutils-current for the new EF_SH* flags.
* readelf.c (get_machine_flags): Add logic for missing EF_SH flags.
2006-02-17 13:14:25 +00:00
skrll fcf3319fe8 Pull in a change form binutils-current that removes the gap between text
and data on mips platforms which was dragged over from the Irix defaults.

OK'd by simonb@
2006-02-07 09:10:43 +00:00
martin 77e0dba33e We want "traditional" abi on mips.
From Nick Hudson.
2006-02-04 12:08:22 +00:00
skrll 5bb4d25b69 Fix merge botch. 2006-02-03 09:24:20 +00:00
skrll 21db48e0fd Pull across fix from binutils-current to allow netbsd sh5 to compile. 2006-02-02 22:43:14 +00:00
skrll ad3568f537 Another conflict I didn't properly resolve. 2006-02-02 22:42:50 +00:00
skrll 7d0a5c3025 Where did that space come from? 2006-02-02 22:39:34 +00:00
skrll 97bb67a75f Oops. Resolve conflict properly.
The standard binutils behaviour wrt to plt entries and relocs is handled
by our dynamic linker so let's do that. Solaris does it this way too.
2006-02-02 22:34:37 +00:00
skrll 42d4edf85a Pull across the fix for gas/991.
All instructions are assembled correctly with this fix.
2006-02-02 22:19:18 +00:00
skrll 8d40ee0d82 Pull across the fix for ld/1021 and ld/1031.
This has been applied to the binutils_2_16 branch.
2006-02-02 22:14:43 +00:00
skrll 1a673ba65b Resolve conflicts. 2006-02-02 22:03:55 +00:00
skrll ce836c59d8 Resolve conflicts. 2006-02-02 22:03:53 +00:00
skrll 8d2c6a4e34 Import binutils 2.16.1. 2006-02-02 20:58:06 +00:00
skrll 27523fbf84 Import binutils 2.16.1. 2006-02-02 20:47:53 +00:00
skrll a4d3423d48 Import binutils 2.16.1. 2006-02-02 20:37:52 +00:00
uwe 384a271baa 2005-12-31 Valeriy E. Ushakov <uwe@NetBSD.org>
Kaz Kojima  <kkojima@rr.iij4u.or.jp>

	* elf32-sh.c (sh_elf_relocate_section): Don't reset relocation
	for R_SH_REL32 in shared objects if the symbol is locally called.

Makes hidden and protected symbols in shared objects work.
This will be committed to the binutils mainline.
2005-12-31 16:23:59 +00:00
christos 25a293877a Don't be pedantic about requiring things to be ordinary files. Handle
character special devices specially so that eg. nm /dev/ksyms works.
2005-05-16 03:24:44 +00:00
christos fab093cf4d Apply patch from the RedHat CVS tree. Avoids issue with -O3 using the
wrong registers with some opcodes, the error is:
Error: Illegal operands: There are only 32 single precision f registers; [0-31]
And the code to cause this is:
	return (cond) ? x : -x;
where x is double.
2005-04-24 23:53:18 +00:00
skrll a57de08708 hppaelf_create_output_section_statements is valid for the NetBSD hppa
vector.

ld(1) no longer core dumps on valid shared libraries.
2005-01-19 12:49:30 +00:00
skrll 63d29cccef Use the tradmips 64bit vectors/emulations. 2005-01-14 07:41:42 +00:00
skrll 0eb4567962 Don't set EMULATION_NAME here. 2005-01-14 07:40:34 +00:00
skrll 7b41d8016a Backport a change from binutils-current
* elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a
	non-shared object, do not reserve space in .plt and .rela.plt for
	regular symbols neither defined nor referenced in shared objects.

This fixes firefox for Havard
2005-01-13 07:55:31 +00:00
simonb 6ca886562d Switch MIPS from using the "littlemips" and "bigmips" vectors to the
"tradlittlemips" and "tradbigmips" vectors.

The old vectors are meant for IRIX with it prelink shared library
support, and changes to better support this in binutils 2.15 broke
shared library support under NetBSD.  The "trad" vectors are what 32bit
Linux and OpenBSD also use.

These vectors are also compatible with older NetBSD-built shared
libraries and programs so no flag day is necessary (Yay!).

These changes from Nick Hudson.  Help also from Charles Hannum.
2005-01-09 12:58:00 +00:00
jmc 225a67ff79 Preface all the calls to move-if-change with $SHELL so it's not depending
on execute permissions on files from CVS
2004-12-18 17:49:22 +00:00
christos 924b906d65 Only compile 64 bit relocations if we can build a 64 bit target (BFD64)
not if the 64 bit type is defined (BFD_HOST_64_BIT) because the second
is always defined, even if it falls back to a 32 bit type. In our case,
this was not the problem; the problem was that we bfd_vma is a 32 bit
type when BFD64 is not defined, so the shift was out of range.
2004-12-11 08:42:55 +00:00
mrg ce3315ff2f redo the previous such that it works. amd64 seems to work again now. 2004-12-11 01:39:42 +00:00
skrll 7610607ebc Fix merge botch so that we get the right TARGET_FORMAT. 2004-12-10 15:15:41 +00:00
skrll 83f6b834e6 Fix merge botch and make sure we pick up the right vectors for
hppa*-*-netbsd*
2004-12-10 08:04:28 +00:00
mrg c47c675845 bfd/elflink.c 2004-12-08 14:57:53 +00:00
mrg e7fdb20d02 avoid 32 bit shift on 32 bit type 2004-12-08 14:57:52 +00:00
mrg 6cd5325a7e bfd/elflink.c 2004-12-08 14:57:52 +00:00
mrg e4b0a4a67a fix a compile-time warning. 2004-12-08 14:27:05 +00:00
mrg 67891deae5 merge binutils 2.15 cornflakes.
XXX: some info files are not yet totally fixed up..will fix.
2004-12-08 13:38:11 +00:00
mrg adc74f2444 these files are created at build time 2004-12-08 13:38:10 +00:00
mrg 70ee3f68e3 merge binutils 2.15 cornflakes.
XXX: some info files are not yet totally fixed up..will fix.
2004-12-08 13:38:07 +00:00
mrg e88da0ac40 initial import of binutils 2.15 branch (20041204) 2004-12-08 09:52:50 +00:00
mrg 0b0695816f these files are created at build time 2004-12-08 09:47:04 +00:00
mrg ddc1ca5b37 these files are created at build time 2004-12-08 09:08:53 +00:00
mrg 3fa5a086b0 these files are created at build time 2004-12-08 08:49:27 +00:00
peter 4037d03620 Apply revision 1.56 from binutils CVS:
Catch NULL bfd pointers passed to bfd_archive_filename.

Fixes a core dump in ld(8) when loading certain LKMs.

Approved by mrg.
2004-10-25 09:45:43 +00:00
sekiya 98c96dbb1e Add big-endian elf64 to ld for MIPS targets.
Reviewed by simonb@
2004-09-03 10:30:09 +00:00
thorpej eb9f224468 Integrate / parameterize changes from Chuq Silvers / Nick Hudson to
simplify GP handling on HPPA for NetBSD, and get dynamically-linked
executables working.  Changes to be submitted to FSF:

bfd:
	* config.bfd (hppa*-*-netbsd*): Set targ_defvec to
	bfd_elf32_hppa_nbsd_vec.  Add bfd_elf32_hppa_linux_vec
	to targ_selvecs.
	* configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
	* configure.in: Regenerate.
	* elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
	case that accepts OSABI=NetBSD and OSABI=SysV.
	(elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
	the base of .got or .data (if .got does not exist).
	(elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
	set OSABI=NetBSD.
	(TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
	(TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
	* targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
	(_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.

gas:
	* config/tc-hppa.h (TARGET_FORMAT): Set to "elf32-hppa-netbsd"
	for TE_NetBSD.

ld:
	* emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
2004-07-20 20:47:18 +00:00
christos b7c0da429e Make the previous diff match exactly the following commit from binutils head:
2003-08-23  Alan Modra  <amodra@bigpond.net.au>

        * elflink.h (elf_link_add_object_symbols): Don't crash on NULL owner.

Thanks Ian for providing the diff!
2004-06-22 18:09:12 +00:00
christos d6bf74cb9e Add a check for a non-null owner before dereferencing it. Fixes ld core-dumps
related to lkms.
2004-06-22 16:35:49 +00:00
christos 1776046df9 The note fix, apparently broke objcopy. I will need to re-think this. 2004-05-23 21:12:06 +00:00
christos 82d6e6c91c Adding a note section, can result in adding two elf segments. Account for that. 2004-05-23 18:08:16 +00:00
matt eca4702ec5 Indicate that sparc64*-*-netbsd* and x86_64*-*-netbsd* are host64 platforms. 2004-03-14 00:46:39 +00:00
matt 2fcaa9eb41 On 64bit hosts or bdf64 is enabled, add x86_64 support when configuring
i386-*-netbsdelf.  This part of 1 on letting i386 crossbuild on amd64.
2004-03-14 00:45:16 +00:00
simonb aa48fe87a3 Pull up:
2003-06-22  Jason Thorpe  <thorpej@wasabisystems.com>

	* config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
	all locals have been declared.

from the binutils mainline.

Problem (and also fix) reported by Eyal Lebedinsky on port-pc532.
2004-03-01 00:01:16 +00:00
mrg 574bbc73cf add -Bforcearchive as an alias for --whole-archive, for previous
netbsd compatibility.
2004-01-22 04:49:57 +00:00