From effee09f856ecc81feb91290459a2cda49d20287 Mon Sep 17 00:00:00 2001 From: jdp Date: Sun, 6 Sep 1998 22:57:45 +0000 Subject: Import GNU binutils-2.9.1. This will break things for a few minutes until I've made the commits to resolve the conflicts. Submitted by: Doug Rabson --- contrib/binutils/ld/ChangeLog | 780 +++++++++++++++- contrib/binutils/ld/Makefile.am | 778 +++++++++++++++ contrib/binutils/ld/Makefile.in | 1048 ++++++++++++--------- contrib/binutils/ld/NEWS | 9 + contrib/binutils/ld/README | 26 +- contrib/binutils/ld/acconfig.h | 6 + contrib/binutils/ld/acinclude.m4 | 1 + contrib/binutils/ld/aclocal.m4 | 461 ++++++++- contrib/binutils/ld/config.in | 9 + contrib/binutils/ld/configure | 1299 +++++++++++++++++++++----- contrib/binutils/ld/configure.host | 80 +- contrib/binutils/ld/configure.in | 69 +- contrib/binutils/ld/configure.tgt | 54 +- contrib/binutils/ld/emulparams/arcelf.sh | 11 + contrib/binutils/ld/emulparams/elf32b4300.sh | 10 +- contrib/binutils/ld/emulparams/elf32l4300.sh | 10 +- contrib/binutils/ld/emulparams/i386pe.sh | 2 +- contrib/binutils/ld/emulparams/tic30aout.sh | 7 + contrib/binutils/ld/emulparams/tic30coff.sh | 7 + contrib/binutils/ld/emulparams/v850.sh | 14 + contrib/binutils/ld/emultempl/elf32.em | 244 ++++- contrib/binutils/ld/emultempl/pe.em | 63 +- contrib/binutils/ld/ld.1 | 13 +- contrib/binutils/ld/ld.h | 4 + contrib/binutils/ld/ld.texinfo | 160 +++- contrib/binutils/ld/ldcref.c | 8 +- contrib/binutils/ld/ldctor.c | 15 +- contrib/binutils/ld/ldemul.c | 2 +- contrib/binutils/ld/ldexp.c | 38 +- contrib/binutils/ld/ldfile.c | 31 +- contrib/binutils/ld/ldgram.y | 15 +- contrib/binutils/ld/ldlang.c | 289 ++++-- contrib/binutils/ld/ldlang.h | 9 +- contrib/binutils/ld/ldlex.h | 6 +- contrib/binutils/ld/ldlex.l | 72 +- contrib/binutils/ld/ldmain.c | 1 + contrib/binutils/ld/ldmisc.c | 37 +- contrib/binutils/ld/ldmisc.h | 4 +- contrib/binutils/ld/ldver.c | 2 +- contrib/binutils/ld/ldwrite.c | 76 +- contrib/binutils/ld/lexsup.c | 56 +- contrib/binutils/ld/scripttempl/elf.sc | 42 +- contrib/binutils/ld/scripttempl/pe.sc | 123 ++- contrib/binutils/ld/scripttempl/tic30aout.sc | 34 + contrib/binutils/ld/scripttempl/tic30coff.sc | 58 ++ contrib/binutils/ld/scripttempl/v850.sc | 183 ++++ contrib/binutils/ld/stamp-h.in | 1 + 47 files changed, 5134 insertions(+), 1133 deletions(-) create mode 100644 contrib/binutils/ld/Makefile.am create mode 100644 contrib/binutils/ld/acinclude.m4 create mode 100644 contrib/binutils/ld/emulparams/arcelf.sh create mode 100755 contrib/binutils/ld/emulparams/tic30aout.sh create mode 100755 contrib/binutils/ld/emulparams/tic30coff.sh create mode 100644 contrib/binutils/ld/emulparams/v850.sh create mode 100644 contrib/binutils/ld/scripttempl/tic30aout.sc create mode 100644 contrib/binutils/ld/scripttempl/tic30coff.sc create mode 100644 contrib/binutils/ld/scripttempl/v850.sc create mode 100644 contrib/binutils/ld/stamp-h.in (limited to 'contrib/binutils/ld') diff --git a/contrib/binutils/ld/ChangeLog b/contrib/binutils/ld/ChangeLog index abef050..6baf1f4 100644 --- a/contrib/binutils/ld/ChangeLog +++ b/contrib/binutils/ld/ChangeLog @@ -1,11 +1,662 @@ +Mon Apr 27 11:56:21 1998 Ian Lance Taylor + + * configure.in: Set version number to 2.9.1. + * configure: Rebuild. + + Based on patch from H.J. Lu : + * emultempl/elf32.em (global_vercheck_needed): New file static + variable. + (global_vercheck_failed): New file static variable. + (gld${EMULATION_NAME}_after_open): Check for shared libraries + twice, once with force set to 0 and once with it set to 1. + (gld${EMULATION_NAME}_check_ld_so_conf): Add force parameter. + Change all callers. + (gld${EMULATION_NAME}_search_needed): Likewise. + (gld${EMULATION_NAME}_try_needed): Likewise. If not force, check + whether the libraries needs any incompatible versions. + (gld${EMULATION_NAME}_vercheck): New static function. + +Tue Apr 7 13:35:29 1998 H.J. Lu + + * configure.in (TESTBFDLIB): New. Defined and substituted. + * Makefile.am (TESTBFDLIB): Changed to @TESTBFDLIB@. + * configure, Makefile.in: Rebuild. + +Mon Apr 6 15:33:39 1998 Ian Lance Taylor + + * Makefile.am (ld.info): Invoke makeinfo with -I options directly + rather than relying on default rule. Don't depend upon + bfdsumm.texi. + (ld.dvi): Likewise. + (bfdsumm.texi): Remove target. + (CLEANFILES): Take bfdsumm.texi out of value. + * Makefile.in: Rebuild. + +Sun Apr 5 13:07:57 1998 Ian Lance Taylor + + * scripttempl/pe.sc: Use shell variables to avoid depending upon + how $ is handled when expanding a shell substitution. + +Fri Apr 3 13:31:46 1998 Ian Lance Taylor + + * Makefile.am (MOSTLYCLEANFILES): Add ld.log and ld.sum. + (DISTCLEANFILES): Define with site.exp and site.bak. + * Makefile.in: Rebuild. + + * Makefile.am (DISTCLEANFILES): Remove. + (distclean-local): New target. + * Makefile.in: Rebuild. + +Mon Mar 30 16:12:48 1998 Ian Lance Taylor + + * configure.in: Set version number to 2.9. + * configure: Rebuild. + +Sat Mar 28 16:48:19 1998 Ian Lance Taylor + + * Makefile.am (MOSTLYCLEANFILES): Remove tmpdir. + (mostlyclean-local): New target to remove tmpdir. + * Makefile.in: Rebuild. + + Fix some gcc -Wall warnings: + * ldcref.c (output_cref): Add casts to avoid warnings. + * ldfile.c (ldfile_add_arch): Likewise. + * ldlang.c (lang_leave_overlay_section): Likewise. + * lexsup.c (OPTION_COUNT): Likewise. + (parse_args): Likewise. + * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): + Likewise. + * emultempl/sunos.em (gld${EMULATION_NAME}_search_dir): Likewise. + * ldlang.c (lang_check): Initialize variables to avoid warnings. + * ldwrite.c (build_link_order): Likewise. + * emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Likewise. + * emultempl/armcoff.em (gld${EMULATION_NAME}_before_allocation): + Remove unused variables. + + * Makefile.am (MOSTLYCLEANFILES): Correct name (was + MOSTCLEANFILES). + * Makefile.in: Rebuild. + +Fri Mar 27 16:39:25 1998 Ian Lance Taylor + + * emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Put + ARM code inside ifdef TARGET_IS_armpe. + +Wed Mar 25 11:34:13 1998 Ian Lance Taylor + + Based on patch from H.J. Lu : + * Makefile.am (LDDISTSTUFF): New variable. + (diststuff): New target. + * Makefile.in: Rebuild. + + * scripttempl/pe.sc: Only include .idata\$[0-7] in .idata when + relocating. + +Tue Mar 24 15:59:29 1998 Nick Clifton + + * scripttempl/pe.sc (.text): Add .glue_7 and .glue_7t sections to + hold Arm/Thumb stubs. + + * emultempl/pe.em (gld_pe_before_allocation): Call + arm_process_before_allocation (for ARM/Thumb targets) in order to + gather interworking stb information. + +Mon Mar 23 18:54:15 1998 Joel Sherrill + + * configure.tgt: (sh*-*-rtems*): Switched from ELF to COFF. + +Fri Mar 20 19:17:13 1998 Ian Lance Taylor + + * aclocal.m4, configure: Rebuild with libtool 1.2. + +Thu Mar 19 14:54:45 1998 Geoffrey Noer + + * scripttempl/pe.sc: The Cygwin32 library uses a .data$nocopy + section to avoid copying certain data on fork. The linker used to + include this between __data_start__ and __data_end__, but that + breaks building the cygwin32 dll. The fix is to rename the + section ".data_cygwin_nocopy" and explictly include it after + __data_end__. + +Wed Mar 18 09:42:24 1998 Nick Clifton + + * configure.tgt (targ_extra_emuls): Add thumb-pe target. + +Sun Mar 8 23:34:14 1998 Stan Cox + + * configure.tgt (sparclite*-*-elf): Added. + +Mon Mar 2 19:24:08 1998 Michael Meissner + + * ldlang.c (lang_size_sections): If the default memory region is + *default*, see if there is a memory region that could be used. + +Mon Feb 23 17:46:51 1998 Ian Lance Taylor + + * emultempl/pe.em (sort_sections): Permit the wildcard to include + a trailing '*' when sorting grouped sections. + * scripttempl/pe.sc: Include grouped sections using NAME\$*. Only + include them when relocating. + +Wed Feb 18 23:39:46 1998 Richard Henderson + + * Makefile.am (install-exec-local): Install properly when ln + fails or tooldir == prefix. + +Fri Feb 13 15:24:06 1998 Ian Lance Taylor + + * Makefile.am (AUTOMAKE_OPTIONS): Define. + * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e. + +Thu Feb 12 14:10:44 1998 Ian Lance Taylor + + * scripttempl/elf.sc: Align the _end symbol according to the ELF + format size. From Gordon W. Ross . + + NetBSD patches from Gordon W. Ross : + * configure.host (alpha*-*-netbsd*): New host. + * configure.tgt (alpha*-*-netbsd*, powerpc-*-netbsd*): New + targets. + + * lexsup.c (help): Update bug-gnu-utils address. + * ld.texinfo (Bug Reporting): Likewise. + +Tue Feb 10 18:05:56 1998 Ian Lance Taylor + + * ldlang.c (lang_size_sections): Warn if some memory regions were + defined, but a loadable section is going into the default memory + region. + +Tue Feb 10 16:17:20 1998 H.J. Lu + + * ldlex.l (V_IDENTIFIER): Allow '.' as symbol prefix. + +Tue Feb 10 15:09:45 1998 Ian Lance Taylor + + * Makefile.am (Makefile): Add target, for dependencies on + configure.host and configure.tgt. + * configure.host, configure.tgt: Change -linux* to -linux-gnu*. + * Makefile.in: Rebuild. + +Mon Feb 9 13:44:40 1998 Andrew Cagney + + * scripttempl/elfd10v.sc (.stack): Move stack to 0x00..7FFE. + + * emulparams/d10velf.sh (READONLY_START_ADDR): Read only section + moved to 0x00.....4. + +Sat Feb 7 15:41:26 1998 Ian Lance Taylor + + * configure, aclocal.m4: Rebuild with new libtool. + +Thu Feb 5 12:16:11 1998 Ian Lance Taylor + + * scripttempl/pe.sc: Remove ${RELOCATING-0} from all sections. + From Thomas de Lellis . + + * configure, Makefile.in, aclocal.m4: Rebuild with new libtool. + +Wed Feb 4 13:02:32 1998 Ian Lance Taylor + + * Makefile.am (ld_new_LDADD): Remove @LEXLIB@. + * Makefile.in: Rebuild. + +Mon Feb 2 19:34:54 1998 Steve Haworth + + Add tms320c30 support: + * configure.tgt (tic30-*-*aout*, tic30-*-*coff*): New targets. + * emulparams/tic30aout.sh: New file. + * emulparams/tic30coff.sh: New file. + * scripttempl/tic30aout.sc: New file. + * scripttempl/tic30coff.sc: New file. + * Makefile.am (ALL_EMULATIONS): Add etic30aout.o and + etic30coff.o. + (etic30aout.c, etic30coff.c): New targets. + * Makefile.in: Rebuild. + +Mon Feb 2 14:10:59 1998 Ian Lance Taylor + + * configure.host: Correct HOSTING_CRT0 in alpha*-*-linux* case to + accept either ld.so or ld-linux.so. + +Fri Jan 30 19:16:28 1998 Doug Evans + + * Makefile.am ({CC,CXX}_FOR_TARGET): Change program_transform_name + to transform. + * Makefile.in: Regenerate. + +Fri Jan 30 19:15:17 1998 Geoff Keating + + * scripttempl/elfppc.sc: Put .dynsbss in .sbss. + +Fri Jan 30 11:43:49 1998 H.J. Lu + + * Makefile.am (eelf32bsmip.c, eelf32lsmip.c): New targets. + * Makefile.in: Rebuild. + +Thu Jan 29 16:04:21 1998 Mumit Khan + + * ldfile.c (slash): Set to backslash if _WIN32 but not + __CYGWIN32__. + (ldfile_open_file_search): If __MSDOS__ or _WIN32, accept a + leading backslash or a leading x: as an absolute path. + (ldfile_find_command_file): Use slash rather than / when + generating name to try. + * lexsup.c (PATH_SEPARATOR): Define. + (set_default_dirlist): Use PATH_SEPARATOR rather than ':'. + +Wed Jan 28 14:06:30 1998 Richard Henderson + + * emulparams/elf64_sparc.sh (ELFSIZE): 64 + (TEXT_START_ADDR): Round off, since SIZEOF_HEADERS is added later. + (DATA_PLT): Needed by v9 abi. + +Wed Jan 28 16:37:27 1998 J.J. van der Heijden + + * configure.tgt (i[3456]86-*-mingw32*): New entry. + +Wed Jan 28 15:51:58 1998 Ian Lance Taylor + + * scripttempl/elf.sc: Only include linkonce sections in final + sections when relocating. + +Wed Jan 28 14:10:01 1998 Ian Lance Taylor + + * ld.texinfo (Options): Add a brief description of the types of + information included in a link map. + + * ld.texinfo (Options): Mention LDEMULATION in description of -m. + (Environment): Mention LDEMULATION. + + * ld.texinfo (Options): Clarify --export-dynamic a bit. + +Thu Jan 22 16:07:23 1998 Richard Henderson + + * ldlex.l (