Commit Graph

1088 Commits

Author SHA1 Message Date
Richard Sandiford 64543e1acf bfd/
* elfxx-mips.c: Include libiberty.h.
	(elf_mips_isa, _bfd_mips_elf_mach_extends_p): Remove.
	(mips_set_isa_flags): New function, split out from...
	(_bfd_mips_elf_final_write_processing): ...here.  Only call
	mips_set_isa_flags if the EF_MIPS_MACH bits are clear.
	(mips_mach_extensions): New array.
	(mips_32bit_flags_p): New function.
	(_bfd_mips_elf_merge_private_bfd_data): Rework architecture checks.
	Use mips_32bit_flags_p to check if one binary is 32-bit and the
	other is 64-bit.  When adopting IBFD's architecture, adopt the
	bfd_mach as well as the flags.

ld/testsuite/
	* ld-mips-elf/jr.s: New file.
	* ld-mips-elf/mips-elf-flags.exp: New test.
2003-01-02 21:31:32 +00:00
Nick Clifton 1c43e6e58a Add do_pseudo_reloc and _pei386_runtime_relocator to the exclude list. 2003-01-02 10:26:41 +00:00
Kazu Hirata 396a246719 * ldfile.c: Fix comment typos.
* ldlang.c: Likewise.
	* mri.c: Likewise.
	* pe-dll.c: Likewise.
2003-01-02 03:53:53 +00:00
Daniel Jacobowitz 980c112ced Suggested by Manfred Hollstein <manfred.h@gmx.net>:
* Makefile.am (ld.1): Depend on configdoc.texi
	and ldver.texi.
	* Makefile.in: Regenerated.
2003-01-02 00:47:44 +00:00
Nick Clifton 2469cfa284 Add support for msp430. 2002-12-30 19:25:13 +00:00
Nick Clifton 3f8173588e (HAVE_REALPATH): New entry.
(HAVE_SYS_STAT_H, HAVE_SYS_TYPES_H): Removed: obsolete.
2002-12-30 12:37:58 +00:00
Nick Clifton dc8465bf50 New win32 topics: 'symbol aliasing' and 'export dll symbols'. 2002-12-30 11:44:51 +00:00
Alan Modra d5cd393307 * ldmain.c (main): Init "strip_discarded".
* lexsup.c (OPTION_STRIP_DISCARDED): Define.
	(OPTION_NO_STRIP_DISCARDED): Define.
	(ld_options): Add "strip-discarded" and "no-strip-discarded".
	(parse_args): Handle them.
2002-12-23 12:05:38 +00:00
Nick Clifton 312b768e2f Change linker's default behaviour - it will now reject binary files whoes
architecture it does not recognise, unless it has explicitly told to accept
them.
2002-12-23 10:45:03 +00:00
Alan Modra b506760271 * ldmain.c (main): Re-order link_info initialization. Init all
fields.
2002-12-19 23:11:19 +00:00
Nick Clifton 69da35b57a Clarify and extend the documentation in the Machine Dependent, WIN32 section. 2002-12-19 17:25:02 +00:00
Nick Clifton 0bc4911d08 Add win32 library search path. 2002-12-18 16:56:19 +00:00
Nick Clifton 2ca22b0314 Add win32 machine depending section. 2002-12-18 16:25:02 +00:00
Nick Clifton 6bdf432d03 Test the auto importing direct from a dll functionality. 2002-12-18 16:05:10 +00:00
Nick Clifton 4cd898632a Don't search for data import when auto-import is disabled. 2002-12-17 12:16:38 +00:00
Nick Clifton 2a8ac465c4 Use LD_PATHMAX+1 to account for trailing '\0'. 2002-12-17 11:01:25 +00:00
Nick Clifton a08a0d635b Duplicate entry for --compact-implib so that it is not confused with -c. 2002-12-17 10:03:52 +00:00
Nick Clifton 939ba9d0fc Add support to skip import libraries for performance reasons and instead
use the direct auto-import of dll's
2002-12-16 18:02:16 +00:00
Alexandre Oliva c9c1e416d7 * ld-mips-elf/mips-elf.exp: Remove branch-misc-2 test.
* ld-mips-elf/branch-misc-2.d: Removed.
2002-12-12 04:39:44 +00:00
Jason Thorpe e06d9b4589 * lib/ld-lib.exp (is_elf_format): Match NetBSD ELF targets. 2002-12-10 15:54:23 +00:00
Alan Modra 1e5e54006d * emultempl/elf32.em (struct orphan_save): Add os_tail field.
(gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
	list too.
2002-12-10 03:34:43 +00:00
Alan Modra f53154de5a * ldlang.h: Formatting. 2002-12-08 03:56:04 +00:00
Alan Modra 18794b0c44 * ldlang.c (init_os): Ensure sections mentioned in load_base
are initialized.
2002-12-06 22:33:18 +00:00
Alan Modra 36478e9d6f * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
load_base for orphans that follow a section with load_base set.
2002-12-04 23:56:14 +00:00
Nick Clifton e1a9cb8e15 Fix the merging of .PPC.EMB.apuinfo sections. Add a test to make sure that
the fix continues to work.
2002-12-03 18:24:33 +00:00
H.J. Lu a981ed6f5c 2002-12-01 H.J. Lu <hjl@gnu.org>
* ld.texinfo: Remove the extra `;' in sample version script.
2002-12-02 00:40:28 +00:00
Stephane Carrez a4ff0c7986 Fix PR savannah/1417:
* ld-m68hc11/bug-1417.s: New test.
	* ld-m68hc11/bug-1417.d: Likewise.
2002-12-01 13:25:05 +00:00
Alan Modra 08a1b063ad * configure.host: Correct dynamic-linker for powerpc64 hosts. 2002-11-30 09:00:36 +00:00
Alan Modra 4a1359d7a7 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
* Makefile.in: Regenerate.
2002-11-30 08:56:22 +00:00
Alan Modra b34976b65a s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. Simplify
comparisons of bfd_boolean vars with TRUE/FALSE.  Formatting.
2002-11-30 08:39:46 +00:00
Jakub Jelinek 00f7efb6cc * symbols.c (S_SET_THREAD_LOCAL): New function.
* symbols.h (S_SET_THREAD_LOCAL): New prototype.
	* config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
	for TLS relocations.
	* config/tc-ia64.c (md_apply_fix3): Likewise.
	* config/tc-alpha.c (md_apply_fix3): Likewise.

	* ld-i386/tlsnopic.rd: Change NOTYPE to TLS for UND sg* symbols.
2002-11-28 14:15:55 +00:00
Kaz Kojima 1448fa3227 * elf32-sh.c (sh_elf_relocate_section): Don't complain about
unresolved debugging relocs in dynamic applications.
	* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
	* ld-sh/refdbg-0-dso.d: New test.
	* ld-sh/refdbg-1.d: Likewise.
	* ld-sh/refdbg.s: Likewise.
	* ld-sh/refdbglib.s: Likewise.
2002-11-28 08:37:15 +00:00
David O'Brien 3b70b24ee4 2002-11-27 David O'Brien <obrien@FreeBSD.org>
* configure.host: Fix generic FreeBSD configuration entry.
2002-11-28 02:10:38 +00:00
H.J. Lu 7c9c73bedd 2002-11-27 H.J. Lu <hjl@gnu.org>
* ld.texinfo: Add the missing `;' to sample version scripts.
2002-11-27 19:42:10 +00:00
Alan Modra 0e4065952f * ld-elf/elf.exp: Remove sec64k test.
* ld-elf/sec64k.exp: Reinstate.
2002-11-21 21:37:06 +00:00
Alan Modra 782c0ebfc9 * ld-elf/elf.exp: Renamed from sec64k.exp. Add test_list loop.
* ld-elf/merge.s: New file.
	* ld-elf/merge.d: New file.
	* ld-elf/merge.ld: New file.
2002-11-21 13:30:31 +00:00
Alan Modra 1a3fdaa703 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
Also move some changelog entries to where they belong.
2002-11-20 01:02:44 +00:00
Svein Seldal 48c5eb8a70 TIC4X testcase commit
* binutils/testsuite/binutils-all/objcopy.exp: Disable tic4x
	from test
	* binutils/testsuite/binutils-all/objdump.exp: Setup proper
	values for tic4x testcase
	* gas/testsuite/gas/all/gas.exp: Setup for tic4x testcase
	* gas/testsuite/gas/macros/macros.exp: Ditto
	* gas/testsuite/gas/all/gas.exp: Setup for tic4x testcase
	* gas/testsuite/gas/macros/macros.exp: Ditto
	* gas/testsuite/gas/tic4x: New tic4x gas testsuite directory
	* ld/testsuite/ld-scripts/script.exp: Setup for tic4x testcase
2002-11-18 08:28:44 +00:00
Nick Clifton e514ac71cb Fix h8300 relaxation. 2002-11-15 11:18:49 +00:00
Nick Clifton 2fa9fc65a5 Add --enable-auto-import extension. 2002-11-14 18:03:17 +00:00
Alan Modra c4c4121963 * ldlang.c (lang_add_section): Discard debugging sections that have
been marked SEC_EXCLUDE.
2002-11-12 11:31:43 +00:00
Nick Clifton cd24c22246 Add new/updated Danish translations 2002-11-12 10:08:25 +00:00
Alan Modra 836c6af1fd * emultempl/ppc64elf.em (ppc_before_allocation): New function.
(LDEMUL_BEFORE_ALLOCATION): Define.
	(gld${EMULATION_NAME}_finish): Run discard_info for relocatable
	linking.
	* emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
2002-11-12 07:56:38 +00:00
Christopher Faylor f8b0dbb817 * configure.tgt (LIB_PATH): Default to searching w32api directory under cygwin. 2002-11-12 03:48:43 +00:00
Christopher Faylor 9e8d33e774 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list of
restricted auto-export libs.
2002-11-11 21:16:28 +00:00
Christopher Faylor 75c2ea5b08 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
creative library naming instances like, e.g., libstdc++-2.a.
2002-11-11 17:42:36 +00:00
Hans-Peter Nilsson b7b0b72964 * ld-elf/sec64k.exp: New test.
* lib/ld-lib.exp (run_dump_test): Don't prepend "$srcdir/$subdir/"
	to a source file starting with "/".
2002-11-11 10:16:57 +00:00
Hans-Peter Nilsson 646a0a402c * ld-mmix/local1.d, ld-mmix/local3.d, ld-mmix/local5.d,
ld-mmix/local7.d: Tweak for change in readelf output.
2002-11-10 09:29:07 +00:00
Alan Modra f72dfb13ce * ld-elfvsb/define.s: Avoid use of @ in .type directive. 2002-11-09 12:27:50 +00:00
Hans-Peter Nilsson 415fe8c69b Fix attribution last entry 2002-11-07 13:28:48 +00:00