blob: 57c775bc42c599290d04a4ff23aa71406ccc2e73 [file] [log] [blame]
Sun Dec 21 12:51:49 1997 Ian Lance Taylor <>
* ldexp.c (fold_name): Don't crash if the symbol is defined in a
section with no output section, such as a shared library section.
Wed Dec 17 12:14:11 1997 Ian Lance Taylor <>
* lexsup.c (parse_args): Keep track of where we are in the option
parsing before calling ldemul_parse_args, so that we don't call it
multiple times on the same argument and confuse the getopt
Thu Dec 11 09:00:15 1997 Michael Meissner <>
* configure.tgt (d30v-elf-*): Rename d30velf_e to d30v_e and
d30velf_o to d30v_o to work in DOS environments.
* Makefile.{am,in}: Ditto.
* emulparams/d30v_{o,e}.sh: Rename from d30velf_{o,e}.
* emulparams/d30velf_{o,e}.sh: Deleted.
Wed Dec 10 17:40:08 1997 Nick Clifton <>
* scripttempl/ Add glue sections (code taken from Arm
* emulparams/ (TEMPLATE_NAME): Set to armcoff.
* emultempl/armcoff.em: New file, imported from Arm branch.
Wed Dec 10 14:10:44 1997 Michael Meissner <>
* scripttempl/ Add .rel and .rela sections for all
defined sections. Set up __{D,C}TOR_{LIST,END}__. Add onchip and
external memory sections for rodata. Delete .string, .rodata1,
and .data1 sections.
Tue Dec 9 15:28:17 1997 Michael Meissner <>
* Add Oct 23 changes to here.
* Makefile.{am,in}: (ALL_EMULATIONS): Add ed10velf.o.
* Makefile.{am,in}: (ALL_EMULATIONS): Add etic80coff.o.
* Makefile.{am,in}: (ALL_EMULATIONS): Add ed30velf{,_e,_o}.o.
(ed30velf_e.c): Like d30velf, except .text/.data/etc always go in
external memory.
(ed30velf_o.c): Like d30velf, except .text/.data/etc always go in
onchip memory.
* emulparams/ (STACK_START_ADDR): Top of default
({TEXT,DATA,EMEM}_SIZE): Sizes of the 3 memory areas.
({TEXT,DATA,BSS}_MEMORY): Which memory region .text, .data, and
.bss should go in.
* emulparams/d30velf_{e,o}.sh: New files to be explicit whether
.text, .data, etc go in external memory or onchip memory.
* configure.tgt (d30v-*-*ext*): New configuration to default
.text, .data, etc. in external memory.
(d30v-*-*onchip*): New configuration to default .text, .data,
etc. in onchip memory.
(d30v-*-*): Add d30velf_{e,o} emulations.
* scripttempl/ Allow .text, .data, .bss to be put in
either the onchip text/data areas or the external memory area.
(MEMORY): Get sizes from
(.e{data,text,bss}): Put sections in the external memory region.
(.stext): Put section in the onchip text region.
(.s{data,bss}): Put sections in the onchip data region.
(__stack): Assign from ${STACK_START_ADDR}.
(.text): Put in ${TEXT_MEMORY} memory region.
(.data{,1}/.strings/.rodata{,1}): Put in ${DATA_MEMORY} memory
(.bss): Put in ${BSS_MEMORY} memory region.
Tue Dec 2 10:14:47 1997 Nick Clifton <>
* configure.tgt (targ_extra_emuls): Add support for Thumb target.
Sat Nov 22 15:23:19 1997 Ian Lance Taylor <>
* ldlex.l: Don't define hex_mode. Correct number regexp to not
accept hex digits without a leading $ or 0x. Handle leading $
correctly. Pass 0 rather than hex_mode to bfd_scan_vma.
* ldlex.h (hex_mode): Don't declare.
Sun Nov 16 20:16:45 1997 Michael Meissner <>
* emulparams/ ({DATA,EMEM}_START_ADDR): Define as start
of internal data area and external memory on chip.
* scripttempl/ Define a MEMORY region that describes
the 3 regions of memory on the chip. Put .text/.init/.fini into
the text memory region, put other segments into the data memory
region. Add more of the standard elf sections. Default __stack
to be 0x20008000, which is 1 byte beyond end of the internal data
Thu Nov 13 13:45:00 1997 Andrew Cagney <>
* configure.tgt (targ_extra_emuls): Make FreeBSD a i386bsd
Sun Nov 2 14:51:36 1997 H.J. Lu <>
* (alpha*-*-linux*): Correct HOSTING_CRT0. Set
Thu Oct 30 12:25:55 1997 Ian Lance Taylor <>
* ld.h (args_type): Add warn_mismatch field.
* ldmain.c (main): Initialize warn_mismatch field.
* lexsup.c (parse_args): Handle --no-warn-mismatch option.
* ldlang.c (ignore_bfd_error): New static function.
(lang_check): If warn_mismatch is false, don't warn about
mismatched input files.
* ld.texinfo, ld.1: Document new option.
Thu Oct 23 14:38:18 1997 Nick Clifton <>
* scripttempl/ Rename linker symbol '_stack' to '__stack'
to avoid conflicts with C code which is defining a variable called
Thu Oct 23 00:57:45 1997 Richard Henderson <>
* (ALL_EMULATIONS): Move eelf64_sparc.o ...
(ALL_64_EMULATIONS): ... here.
(eelf64_sparc.c): Template should be elf32 not generic.
* emulparams/ (TEMPLATE_NAME): New definition.
Thu Oct 23 00:44:20 1997 Richard Henderson <>
* configure.tgt: Add sparc64-*-linux*.
* emulparams/ (GENERATE_SHLIB_SCRIPT, NOP): New.
Wed Oct 22 11:29:25 1997 Ian Lance Taylor <>
* scripttempl/ Put .eh_frame in .rdata.
Fri Oct 17 00:00:13 1997 Richard Henderson <>
* ldlang.c (lang_register_vers_node): Only check globals<=>locals,
since we need to be able to export different versions of the same
Wed Oct 15 14:52:36 1997 Ian Lance Taylor <>
* scripttempl/ Put .stab and .stabstr sections at end.
Wed Oct 8 12:37:05 1997 Richard Henderson <>
* configure.tgt, Change alpha-*-* to alpha*-*-*;
config.guess now recognizes alphaev5 etc.
Fri Oct 3 14:23:02 1997 Ian Lance Taylor <>
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Don't treat
-s and -u as -static and -unix.
Thu Oct 2 18:40:28 1997 Ian Lance Taylor <>
* ldlang.c (wild_doit): Rewrite flag handling for clarity. If we
are not adding the first input section, and SEC_READONLY is clear
on the output section, then don't copy it from the input section.
If SEC_READONLY is not set on the input section, then clear it on
the output section.
* configure.tgt (mips*-sgi-irix[56]*): Use elf32bsmip rather than
(mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
to elf32bsmip.
(mips*-*-linux*): Likewise.
* emulparams/ New file; just like, but
setting ENTRY to __start.
* emulparams/ New file; just like, but
setting ENTRY to __start.
* scripttempl/ Always set ENTRY to _start if it was not
already set.
Wed Oct 1 16:41:00 1997 Nick Clifton <>
* scripttempl/ Move read only areas out of zero and small
data sections and into their own sections.
Wed Sep 24 16:59:15 1997 Joel Sherrill <>
* configure.tgt (sh*-*-rtems*): New target, like sh-*-elf*.
Wed Sep 24 11:33:14 1997 Ian Lance Taylor <>
* ld.texinfo (Section Options): Improve documentation of NOLOAD
* aclocal.m4: Rebuild with new libtool.
* configure: Rebuild.
Mon Sep 22 17:24:06 1997 Ian Lance Taylor <>
* ldlang.c (wild_doit): Revert patch of September 3.
Wed Sep 17 16:45:34 1997 Nick Clifton <>
*, Add rule for ev850.c
* configure.tgt (targ_extra_emuls): Add v850 target.
Wed Sep 17 16:43:39 1997 Nick Clifton <>
* emulparams/ (CALL_TABLE_START_ADDR): New entry.
* scripttempl/ Add call table data area
Mon Sep 15 11:29:13 1997 Ken Raeburn <>
Merge change from Martin Hunt:
* scripttempl/ Put .rodata in the .text section.
Tue Sep 9 07:49:56 1997 Fred Fish <>
* ldlang.c (lang_memory_region_lookup): Remove extraneous
initialization of p.
Thu Sep 4 09:03:33 1997 Ian Lance Taylor <>
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): In
expression produced for -bpT and -bpD options, align to a 32 byte
boundary rather than an 8 byte boundary.
* scripttempl/ Put .tocbss at start of .bss section.
* ldmisc.h, ldmisc.c, ldcref.c: Rename finfo to lfinfo, to avoid
function name conflict with AIX 4.2 unistd.h header file.
Wed Sep 3 15:12:32 1997 Ian Lance Taylor <>
* ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
Fri Aug 29 00:32:31 1997 Ian Lance Taylor <>
* (ld_new_DEPENDENCIES): Remove @LEXLIB@.
* Rebuild.
Thu Aug 28 10:12:10 1997 Doug Evans <>
* configure.tgt (arc-*-elf*): Recognize.
* (ALL_EMULATIONS): Add earcelf.o.
* Regenerate.
* emulparams/ New file.
Wed Aug 20 11:14:13 1997 Ian Lance Taylor <>
* ldlang.c (wildcardp): Don't let a backslash by itself cause a
pattern to be treated as a wildcard pattern.
* ldgram.y (atype): Accept parentheses with no type.
* ld.texinfo (Section Definition): Clarify use of whitespace.
(Section Placement): Likewise.
Mon Aug 18 11:12:03 1997 Nick Clifton <>
* configure.tgt (targ_extra_emuls): Add support for v850e target.
Mon Aug 18 11:12:03 1997 Nick Clifton <>
* configure.tgt (targ_extra_emuls): Add support for v850e target.
Sat Aug 9 00:42:27 1997 Ian Lance Taylor <>
* ( Change dependency from
$(BFDDIR)/doc/bfdsumm.texi to bfdsumm.texi.
(ld.dvi): Likewise.
(bfdsumm.texi): New target.
(CLEANFILES): Add bfdsumm.texi.
* Rebuild.
* New file, based on old
* acinclude.m4: New file, from old aclocal.m4.
shared library handling; now handled by libtool. Replace
* acconfig.h: Mention PACKAGE and VERSION.
* New file.
* ldver.c (ld_program_version): Set ld_program_version from
* ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
* Now built with automake.
* aclocal.m4: Now built with aclocal.
* configure, Rebuild.
Mon Jul 28 19:04:50 1997 Rob Savoye <>
* Use CYGWIN and EXEEXT autoconf macro to look for
win32 dependencies.
* configure: Regenerated with autoconf 2.12.
* Add $(EXEEXT) to executable.
Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
* emulparams/ (OUTPUT_FORMAT): Set to "coff-go32".
(SEGMENT_SIZE): Set to 0x200.
* scripttempl/ Rewrite.
* configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
Mon Jul 7 12:39:42 1997 Ian Lance Taylor <>
From Manfred Hollstein <>:
* (i[3456]86-*-linux*libc1*): Renamed from
(i[3456]86-*-linux*): New host.
Thu Jun 26 13:54:03 1997 Ian Lance Taylor <>
* scripttempl/ Put .rsrc after .reloc. Put input .rsrc
sections in the output .rsrc section.
Wed Jun 25 12:48:41 1997 Andreas Schwab <>
* (m68*-*-linux*libc1*): Renamed from
(m68*-*-linux*): New configuration for use with GNU libc 2.
Mon Jun 16 19:18:21 1997 Geoff Keating <>
* scripttempl/ Correct .rela.sdata entries.
* scripttempl/ Put the PLT between the small and large
BSS segments.
* emulparams/ (TEXT_START_ADDR): The ABI says `A
program base of 0x02000000 is recommended...' because otherwise
shared libraries are less efficient. We use 0x01800000 because
otherwise it's impossible to branch to location 0, for instance if
you have an undefined weak symbol.
Mon Jun 16 12:49:36 1997 H.J. Lu <>
* ldlang.c (lang_place_undefineds): Add \n in einfo call.
(lang_size_sections): Likewise.
* ldlex.l: Likewise.
* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise.
* emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open):
(check_sections): Likewise.
(gld${EMULATION_NAME}_after_allocation): Likewise.
* emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
* mpw-eppcmac.c (gldppcmacos_read_file): Likewise.
* mpw-idtmips.c (gldmipsidt_after_open): Likewise.
(check_sections): Likewise.
(gldmipsidt_after_allocation): Likewise.
* ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
Fri Jun 6 23:47:42 1997 Ian Lance Taylor <>
* scripttempl/ Add zeroes after .idata$3 to mark the end of
the import list.
Thu May 29 13:13:22 1997 Ian Lance Taylor <>
* emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Don't
crash if an output section has no BFD section.
Fri May 23 15:23:25 1997 Fred Fish <>
* lexsup.c (ld_options): Add entry for the new "task-link" option.
(parse_args): Handle the "task-link" option.
(OPTION_TASK_LINK): Add define.
Wed May 21 17:44:15 1997 Ian Lance Taylor <>
* ldmain.c (main): Correct check of fclose return value when
handling --force-exe-suffix.
Thu May 15 11:35:29 1997 Nick Clifton <>
* ldlang.c (lang_check): Add test of the return value from the
call to bfd_merge_private_bfd_data().
Mon May 12 23:22:58 1997 Ian Lance Taylor <>
* scripttempl/ Remove.
* scripttempl/ Set ENTRY based on target. Permit
TEXT_DYNAMIC to control .dynamic segment. Permit
SHLIB_TEXT_START_ADDR to set start of shared object. Support
INITIAL_READONLY_SECTIONS. Put .stub in .text. Only put
.gnu.linkonce.t* in .text when relocating. Support
* emulparams/ (SCRIPT_NAME): Set to elf.
(DATA_ADDR): Don't set.
(MACHINE): Set to empty string.
* emulparams/ Likewise.
* emulparams/ Likewise.
* emulparams/ Likewise.
* emulparams/ Likewise. Also:
* emulparams/ Likewise.
* (eelf32bmips.c): Depend upon rather than
(eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
Mon May 12 11:11:06 1997 Andreas Schwab <>
* scripttempl/ Don't align the data segment on the next 8
byte boundary, instead let the linker use whatever the individual
sections require.
Fri May 9 17:45:46 1997 Ian Lance Taylor <>
* configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
Tue May 6 13:21:19 1997 Ian Lance Taylor <>
From Sean McNeil <>:
* emultempl/pe.em (sort_by_file_name): Sort by archive name
(sort_sections): Sort all sections, not just sections in the same
Mon May 5 18:19:55 1997 Philip Blundell <>
* configure.tgt, cope with '*-*-linux-gnuaout'
Fri May 2 15:54:28 1997 Mike Meissner <>
* scripttempl/ (.text): Add a leading underscore to
__{D,C}TOR_{LIST,END}__ definations. Rearrange the order of items
in the .text section. Move .const, .ctors, .dtors into separate
Wed Apr 30 12:23:21 1997 Manfred Hollstein <>
* scripttempl/ (__.initp.end, _etext): Added whitespace
around assignment of current location pointer.
Thu Apr 17 13:07:18 1997 Ian Lance Taylor <>
* ldctor.c (ldctor_build_sets): Make sure the set is aligned
Tue Apr 15 13:19:26 1997 Ian Lance Taylor <>
* (INSTALL): Set to @INSTALL@.
(install): Depend upon and installdirs. Use
$(program_transform_name) directly, rather than using
(installdirs): New target.
(install-info): Run mkinstalldirs.
Mon Apr 14 12:06:15 1997 Ian Lance Taylor <>
* (INSTALL): Change to install-sh.
From Thomas Graichen <>:
* Use ${CONFIG_SHELL} when running $ac_config_sub.
* configure: Rebuild.
Fri Apr 4 11:42:41 1997 Ian Lance Taylor <>
* emultempl/pe.em: Include "libiberty.h".
(sort_sections_1): Use xmalloc rather than alloca.
* ldlex.l: Recognize SQUAD.
* ldgram.y (length): Add SQUAD.
* ldctor.c (ldctor_build_sets): Use SQUAD for a signed 8 byte
* ldlang.c (print_data_statement): Handle SQUAD.
(lang_size_sections, lang_do_assignments): Likewise.
* ldexp.c (exp_print_token): Add SQUAD to table.
* ldwrite.c (build_link_order): Handle SQUAD.
* ld.texinfo (Section Data Expressions): Document SQUAD.
Thu Apr 3 13:19:40 1997 Ian Lance Taylor <>
* ldver.c (ld_program_version): Set to 2.8.1.
* Branched binutils 2.8.
Wed Apr 2 11:55:27 1997 Ian Lance Taylor <>
* mpw-idtmips.c: Rename from mpw-emipsidt.c.
* mpw-elfmips.c: Rename from mpw-emipself.c.
* Update accordingly.
* ldlang.c (lang_process): Call lang_check immediately after
opening the input files, rather than at the end of the link.
Mon Mar 31 23:44:00 1997 Ian Lance Taylor <>
* emultempl/pe.em (init): Fully bracket initializer.
(set_pe_stack_heap): Remove locals begin_commit and end.
(gld_${EMULATION_NAME}_after_open): Remove unused local i.
(gld${EMULATION_NAME}_place_orphan): Remove unused local ptr.
Mon Mar 31 16:35:51 1997 Joel Sherrill <>
* configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
Fri Mar 28 15:29:23 1997 H.J. Lu <>
Contributed by David S. Miller <>:
* configure.tgt (sparc*-*-linuxaout*): New target.
(sparc*-*-linux*): New target.
* emulparams/ New file.
* (ALL_EMULATIONS): Add esparclinux.o.
(esparclinux.c): New target.
Fri Mar 28 14:30:12 1997 Ian Lance Taylor <>
From Ralf Baechle <>:
* configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
Thu Mar 27 17:14:32 1997 Ian Lance Taylor <>
* lexsup.c (parse_args): Update copyright date in version
Fri Mar 21 12:28:41 1997 Philippe De Muyter <>
* emulparams/ (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
Tue Mar 18 11:16:23 1997 Ian Lance Taylor <>
* Rebuild dependencies.
* emultempl/aix.em: Include "obstack.h".
Mon Mar 17 19:26:06 1997 Ian Lance Taylor <>
* ldlang.c: Include "obstack.h".
Sat Mar 15 23:23:46 1997 Fred Fish <>
* configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
Sat Mar 15 18:10:38 1997 H.J. Lu <>
* ldemul.h (ldemul_list_emulations): Use full prototype.
* ldlang.c (print_one_symbol): Add declaration.
* ldlang.h (dprint_statements): Declare.
* ldmain.c (remove_output): Declare.
* ldmisc.c (vfinfo): Declare.
* ldwrite.c (clone_section): Declare.
(split_sections): Make static. Declare.
* mri.c: Include libiberty.h.
(strdup): Don't declare.
(mri_alias): Use xstrdup rather than strdup.
Fri Mar 14 21:30:06 1997 Ian Lance Taylor <>
* scripttempl/ Change handling of data area when
generating a shared library to not skip a large block of memory.
From Per Fogelstrom <>.
Wed Mar 12 21:33:09 1997 Ian Lance Taylor <>
* ldmain.c (multiple_definition): Only skip the warning if the
output section is absolute when the input section is not
* ldlex.l: Accept whitespace in VERS_START state. Warn about
invalid characters in VERS_* states.
Tue Mar 11 13:51:31 1997 Ian Lance Taylor <>
* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Don't let a
trailing space lead us to think that there is a zero address.
Sun Mar 9 23:06:35 1997 Eric Youngdale <>
* ldgram.y (vers_node): Correct typo of '(' for '{'.
Fri Mar 7 18:40:12 1997 Fred Fish <>
* scripttempl/ (ENTRY): Entry symbol is __start
rather than _start.
(__edata): Define this rather than "edata".
(__end): Define this rather than "end".
Tue Mar 4 17:18:35 1997 Michael Meissner <>
* configure.tgt (tic80-*-*): Allow dropping of -coff.
Sun Mar 2 22:59:49 1997 Fred Fish <>
* (ld.dvi): Set MAKEINFO environment variable as well
as TEXINPUTS. Needed for building in separate build dir.
* ldint.texinfo (SCRIPT_NAME): Fix typo.
* emulparams/ Rewrite to include internal documentation
about each shell variable that is set (or not set).
* scripttempl/ Complete rewrite.
Fri Feb 28 17:42:27 1997 Ian Lance Taylor <>
* ldmain.c (main): Call bfd_set_default_target.
* (ldmain.o): Define TARGET when compiling.
Thu Feb 27 11:41:03 1997 Ian Lance Taylor <>
* ldmain.c (main): Don't initialize link_info.lprefix or
* emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
* emultempl/m88kbcs.em: Remove.
* emulparams/ (TEMPLATE_NAME): Don't set.
* (em88kbcs.c): Depend upon generic.em rather than
* mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
to lang_enter_output_section_statement. From Mark Rasin
Wed Feb 26 11:51:44 1997 Ian Lance Taylor <>
* ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
Tue Feb 25 20:38:11 1997 Stan Shebs <>
* configure.tgt (mips*-*-lnews*): New target.
* (emipslnews.c): New target.
* emulparams/ New file.
Tue Feb 25 16:04:09 1997 Ian Lance Taylor <>
* emultempl/elf32.em (hold_interp): New static variable.
(gld${EMULATION_NAME}_place_orphan): Put loadable .note sections
after hold_interp. Choose a unique output section name.
(gld${EMULATION_NAME}_place_section): Don't set hold_use if the
SEC_LOAD or SEC_ALLOC flags differ. Set hold_interp.
Mon Feb 24 18:16:09 1997 Ian Lance Taylor <>
From Eric Youngdale <>:
* ldlex.l (V_TAG, V_IDENTIFIER): New macros.
(VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
(ldlex_version_script, ldlex_version_file): New functions.
* ldlex.h (enum input_enum): Add input_version_script.
(ldlex_version_script): Declare.
(ldlex_version_file): Declare.
* ldgram.y (%union): Add deflist, versyms, and versnode.
(ifile_p1): Accept version.
(version_script_file): New nonterminal.
(version, vers_nodes, vers_node): Likewise.
(verdep, vers_tag, ver_defns): Likewise.
* ldlang.c (lang_elf_version_info): New global variable.
(lang_new_vers_regex): New function.
(lang_new_vers_node): New function.
(version_index): New static variable.
(lang_register_vers_node): New function.
(lang_add_vers_depend): New function.
* ldlang.h (lang_elf_version_info): Declare.
(lang_new_vers_regex, lang_new_vers_node): Declare.
(lang_add_vers_depend, lang_register_vers_node): Declare.
* lexsup.c (OPTION_VERSION_SCRIPT): Define.
(ld_options): Add "version-script".
(parse_args): Handle OPTION_VERSION_SCRIPT.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass lang_elf_version_info to size_dynamic_sections.
* scripttempl/ Add .gnu.version sections.
* ld.texinfo: Document symbol versioning.
Fri Feb 21 17:37:51 1997 Martin M. Hunt <>
* (ed30velf.c): New target.
* configure.tgt (d30v-*-*): New target.
* emulparams/ New file.
* scripttempl/ New file.
Fri Feb 14 18:28:31 1997 Ian Lance Taylor <>
* ld.texinfo (Option Commands): Document the INCLUDE command.
Thu Feb 13 20:31:37 1997 Philippe De Muyter <>
* Call BFD_NEED_DECLARATION on getenv.
* acconfig.h (NEED_DECLARATION_GETENV): New macro.
* sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
* ldemul.c (ld_emul_default_target): Do not cast getenv return
* ldmain.c (get_emulation): Likewise.
* configure, Rebuild.
Tue Feb 11 15:34:26 1997 Ian Lance Taylor <>
* scripttempl/ When relocating, put .mips16.fn.* and* in .text.
Sun Feb 9 18:09:13 1997 Fred Fish <>
* emulparams/ New (dummy) file for TIc80.
* scripttempl/ New (dummy) file for TIc80.
* (etic80coff.c): Add target and rule to build it.
* configure.tgt (tic80-*-coff): Set targ_emul to tic80coff.
Fri Jan 31 13:16:53 1997 Ian Lance Taylor <>
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Search for
".so" in the name, not ".so.".
(gld${EMULATION_NAME}_search_dir): Accept a plain .so file.
* ( Add -I$(srcdir). From Alan Modra
Thu Jan 30 11:31:52 1997 Ian Lance Taylor <>
* emultempl/sunos.em: Include <ctype.h>.
(gld${EMULATION_NAME}_find_so): Skip the directory name when
searching for ".so.".
(gld${EMULATION_NAME}_search_dir): Make sure that the library name
has a version number, and that only version numbers follow .so.
Wed Jan 29 18:15:00 1997 Geoffrey Noer <>
* scripttempl/
* scripttempl/ add *(.gcc_except_table) to the text
section so Win32 executables are valid.
Mon Jan 27 12:28:43 1997 Ian Lance Taylor <>
* scripttempl/ Put linkonce reloc section in other
appropriate reloc sections.
* scripttempl/ Add linkonce support.
* scripttempl/ Likewise.
Fri Jan 24 10:44:09 1997 Jeffrey A Law (
* emulparms/ (OTHER_RELOCATING_SECTIONS): Move the
stack up to 0x80000.
* emulparms/ (OTHER_RELOCATING_SECTIONS): Likewise.
Tue Jan 21 12:11:10 1997 Doug Evans <>
to define `_stack'.
Thu Jan 16 17:07:52 1997 Ian Lance Taylor <>
* ld.h (args_type): Rename auxiliary_filter_shlib to
auxiliary_filters, and make it char **.
* lexsup.c (parse_args): Handle -f by setting up an array.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
new name of auxiliary_filters.
* ld.texinfo (Options): Improve documentation of --filter and
Tue Jan 14 15:44:28 1997 Ian Lance Taylor <>
* ld.texinfo (Options): Clarify that the normal usage is -T.
(Commands): Likewise.
Thu Jan 9 11:26:27 1997 Ian Lance Taylor <>
* scripttempl/ Correct mask used for .data address.
Wed Jan 8 15:14:59 1997 Geoffrey Noer <>
* emultempl/pe.em: make default executable a.exe instead of
Fri Jan 3 17:33:34 1997 Richard Henderson <>
* scripttempl/ Move .got closer to .sdata and .sbss by
shifting .plt back. Rumour has it that the NetBSD depends
on .dynamic being after .got, so we leave that.
Fri Jan 3 14:04:40 1997 Ian Lance Taylor <>
* (clean): Don't remove configdoc.texi.
(maintainer-clean): Do remove configdoc.texi.
* ld.texinfo (Operators): Remove '@' from @smallexmple in comment
to avoid confusing texi2roff.
Fri Jan 3 11:27:02 1997 Michael Meissner <>
* scripttempl/ (.zdata): Add .zcommon section.
(.tdata): Add .tcommon and .tcommon_byte sections.
Thu Jan 2 18:14:32 1997 Ian Lance Taylor <>
* configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
* scripttempl/ Use __start as the entry address for
Tue Dec 31 14:48:30 1996 Ian Lance Taylor <>
* ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
* lexsup.c (parse_args): Recognize --auxiliary/-f and
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass filter_shlib and auxiliary_filter_shlib to
* ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
Mon Dec 30 13:55:57 1996 Michael Meissner <>
* scripttempl/ (.tdata) Add .tbss and .tbyte sections.
Wed Dec 18 22:57:35 1996 Stan Shebs <>
* mpw-make.sed: Use NewFolderRecursive for installation.
Fri Dec 13 14:08:50 1996 Michael Meissner <>
* scripttempl/ Make sure __{e,g}p start relative to the
{s,t}data sections. Do not emit any linker generated symbols if
-r. Use {TEXT,{Z,S,T}DATA}_START_ADDR variables to initialize
where the different sections go. Change some whitespace.
* emulparams/ ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
appropriately. Remove crud not used anymore.
Fri Dec 13 10:19:57 1996 Jeffrey A Law (
* (emn10200.c): Add dependencies.
* configure.tgt: Handle mn10200.
* emulparms/ New file.
Thu Dec 12 17:04:55 1996 Ian Lance Taylor <>
* emultempl/gld960c.em: Include <ctype.h>.
(gld960_set_output_arch): Get the machine type from the -A option
if there is one, rather than always using core.
Sat Dec 7 10:07:51 1996 Jeffrey A Law (
* emulparms/ Handle leading underscores.
Thu Dec 5 13:45:58 1996 Ian Lance Taylor <>
* emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Only
set hold_rel if SEC_ALLOC is set.
Tue Dec 3 11:29:20 1996 Ian Lance Taylor <>
* ldlang.c (section_already_linked): Set the output_offset as well
as the output_section when only reading symbols from a file.
Mon Dec 2 11:43:50 1996 Ian Lance Taylor <>
* emulparams/*.sh: Make sure that each set of parameters which
uses the script sets MACHINE.
Wed Nov 27 03:22:05 1996 Jason Merrill <>
* scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
* scripttempl/ Likewise.
* scripttempl/ Likewise.
Tue Nov 26 16:58:33 1996 Ian Lance Taylor <>
* configure: Rebuild with autoconf 2.12.
Mon Nov 25 12:17:55 1996 Jim Wilson <>
* emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Add case
for bfd_vma to init loop.
Mon Nov 25 09:55:07 1996 Jeffrey A Law (
* emulparms/ Remove bogus '_' prefix for
entry symbol and ctor/dtor stuff.
Fri Nov 15 13:00:18 1996 Jeffrey A Law (
* (emn10300.c): Add dependencies.
* configure.tgt: Handle mn10300.
* emulparms/ New file.
Tue Nov 5 10:57:50 1996 Martin M. Hunt <>
* emulparams/ (READONLY_START_ADDR): Changed to 0x2000004.
(EMBEDDED): Define.
Fri Nov 1 10:01:27 1996 Ian Lance Taylor <>
* ld.texinfo: Add section on reporting bugs.
* scripttempl/ Make sure the etext and __CTOR_LIST__
symbols are correctly aligned.
Thu Oct 31 09:28:59 1996 Jeffrey A Law (
* scripttempl/ (zdata): Handle reszdata, romzdata and
romzbss too.
Tue Oct 29 12:33:05 1996 Martin M. Hunt <>
* emulparams/ Changes needed for D10V-EVA board.
* scripttempl/ Fix calculation of .text. Change
.stack to start at 0x2007ffe.
Mon Oct 28 15:37:00 1996 Doug Evans <>
* configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
Wed Oct 23 16:17:22 1996 Jeffrey A Law (
* scripttempl/ (zdata): Fix typo "zrodata" -> "rozdata".
* scripttempl/ (zdata): Make sure this stays
in lo-memory.
Tue Oct 22 11:36:47 1996 Jeffrey A Law (
* scripttempl/ (__ep): Put it at the start
of the tda section.
* scripttempl/ Move all "normal" sections into
the external memory region (0x100000 - 0x200000).
Mon Oct 21 17:16:59 1996 Michael Meissner <>
* scripttempl/ Clone from, move .text to
0x10000, so that is more room for data.
* emulparams/ (TEXT_START_ADDR): Now 0x100000.
(SCRIPT_NAME): Now elfd10v.
* (ed10velf.c): Depend on, not
Fri Oct 18 22:12:49 1996 Doug Evans <>
* emulparams/ (TEXT_START_ADDR): Change from 0 to 0x100.
Fri Oct 18 15:43:38 1996 Ian Lance Taylor <>
* (ALL_EMULATIONS): Remove eelf64alpha.o.
(ALL_64_EMULATIONS): New variable.
* Accept --enable-64-bit-bfd option. If it is set
with --enable-targets=all, include ALL_64_EMULATIONS in
* configure: Rebuild.
Fri Oct 18 12:58:35 1996 Jeffrey A Law (
* scripttempl/ (__gp, __ep): Define.
Thu Oct 17 18:14:07 1996 Ian Lance Taylor <>
* ld.texinfo: Try to consistently use a single or a double dash
for each option.
Thu Oct 17 10:17:20 1996 Doug Evans <>
* emulparams/ (EMBEDDED): Define.
Thu Oct 17 10:56:49 1996 Jeffrey A Law (
* scripttempl/ (.zdata): Add this before .text.
(.sdata): Also include .rosdata as part of the .sdata.
(.tdata): Include this just before .sdata.
* emulparms/ (SCRIPT_NAME): Use "v850" not "elf".
* scripttempl/ Wrap script with a "cat << EOF".
Wed Oct 16 23:10:01 1996 Jeffrey A Law (
* scripttempl/ New linker script for the V850.
* Use it.
Thu Oct 10 17:57:00 1996 Ian Lance Taylor <>
* emulparams/ Define _gp in OTHER_GOT_SYMBOLS, not
* emulparams/ Likewise.
Wed Oct 9 14:36:18 1996 Ian Lance Taylor <>
* ld.h (ld_config_type): Add warn_section_align field.
* lexsup.c (OPTION_WARN_SECTION_ALIGN): Define.
(ld_options): Add --warn-section-align.
(parse_args): Handle --warn-section-align.
* ldlang.c (lang_size_sections): If warn_section_align, warn if
the start of a section changes due to alignment.
* ld.texinfo, ld.1: Document --warn-section-align.
* ld.texinfo: Change some single dashes to double dashes.
* emultempl/pe.em (set_pe_subsystem): Record entry symbol for each
subsystem type. Ifdef out os2 type. Recognize a version number.
Tue Oct 8 12:07:13 1996 Ian Lance Taylor <>
* emultempl/pe.em (set_pe_subsystem): When setting the subsystem
to windows, set the entry point.
* (ldlex.c): Don't pass any options to $(LEX).
Mon Oct 7 17:29:05 1996 Ian Lance Taylor <>
* ld.texinfo (Options): Mention .so extensions for shared
Sun Oct 6 22:35:36 1996 Jason Merrill <>
* scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
Fri Oct 4 18:49:31 1996 Ian Lance Taylor <>
* scripttempl/ Only set the address of .text if
Fri Oct 4 10:59:52 1996 Doug Evans <>
* emulparams/ ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
* scripttempl/ ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
(OUTPUT_FORMAT): Support bi-endian targets.
Thu Oct 3 13:52:03 1996 Ian Lance Taylor <>
* fnmatch.h, fnmatch.c: Remove (now in libiberty).
* Rebuild dependencies.
(CFILES): Remove fnmatch.c.
(HFILES): Remove fnmatch.h.
(OFILES): Remove fnmatch.o.
Thu Oct 3 15:41:24 1996 Jason Molenda (
* (mostlyclean): Move config.log to distclean.
Wed Oct 2 23:45:25 1996 Geoffrey Noer <>
* emultempl/pe.em: increase size of stack reserve to 0x2000000
(necessary in order to compile parse.c in gcc sources under NT)
Wed Oct 2 14:49:10 1996 Ian Lance Taylor <>
* lexsup.c (ld_options): Fix typo in --rpath-link description.
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Suggest
--rpath if a needed library is not found.
Tue Oct 1 16:17:33 1996 Joel Sherrill <>
* configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
Tue Oct 1 15:50:34 1996 Ian Lance Taylor <>
* ld.texinfo (Options): Give more detail on -l option.
* scripttempl/ Handle CREATE_SHLIB the same way that does, so that glibc works better.
* ldver.c (ld_program_version): New variable.
(ldversion): Use it.
* ldver.h (ld_program_version): Declare.
* lexsup.c (ld_options): Handle --dll-verbose like --verbose, not
--version. Change --version handling to match current GNU
(help): Print bug report address.
Mon Sep 30 12:14:43 1996 Doug Evans <>
* (em32relf.c): Add rule for.
* configure.tgt (m32r-*-*): Recognize.
* emulparams/ New file.
Thu Sep 26 13:58:47 1996 Stan Shebs <>
* mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
* Add mips-*-* case as mips-elf, and use more
wildcards in matching.
* mpw-emipself.c: New file, pregenerated mips elf emulation.
Tue Sep 17 12:18:21 1996 Ian Lance Taylor <>
* ldint.texinfo: Rewrote.
* configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
Mon Sep 16 17:55:21 1996 Ian Lance Taylor <>
* scripttempl/ Only define symbols if RELOCATING. Fix
syntax error on __end__ line.
* scripttempl/ For -N or -n, don't align .data. From
Chris Hadley <>
Sun Sep 15 22:09:56 1996 Jeffrey A Law (
Sun Sep 15 10:38:16 1996 Mark Alexander <>
* emulparms/ Set OTHER_RELOCATING_SECTIONS to put
stack at top of simulator memory.
Fri Sep 13 15:49:45 1996 Ian Lance Taylor <>
* ldlex.l (SYMBOLCHARN): Add $, _, and ~.
Wed Sep 11 23:30:42 1996 Ian Lance Taylor <>
* ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
Thu Sep 5 15:24:12 1996 Ian Lance Taylor <>
* ldlang.c (section_already_linked): Accept a lang_input_statement
as the PTR argument. If the file is symbols only, discard all
input sections.
(ldlang_add_file): Pass entry to bfd_map_over_sections.
Wed Sep 4 15:53:43 1996 Ian Lance Taylor <>
* configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
Tue Sep 3 00:52:54 1996 Jeffrey A Law (
Sun Sep 1 21:48:58 1996 Jeffrey A Law (
* emulparms/ Set EMBEDDED.
Fri Aug 30 22:30:30 1996 Jeffrey A Law (
* emulparms/ Entry symbol is "_start", tweak
ctor/dtor support.
Fri Aug 30 18:32:31 1996 Ian Lance Taylor <>
* configure.tgt (sh-*-elf*): New target.
* emulparams/ New file.
* emulparams/ New file.
* (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
(eshelf.c, eshlelf.c): New targets.
* scripttempl/ If EMBEDDED is defined, then don't add
around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
Thu Aug 29 16:57:46 1996 Michael Meissner <>
* configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
Mon Aug 26 12:58:11 1996 Ian Lance Taylor <>
* ldgram.y (section): Add opt_nocrossrefs; pass value to
(opt_nocrossrefs): New nonterminal.
* ldlex.l: Recognize NOCROSSREFS keyword in EXPRESSION mode.
* ldlang.c (overlay_nocrossrefs): New static variable.
(lang_enter_overlay): Add nocrossrefs parameter.
(lang_leave_overlay): Only add nocrossrefs if overlay_nocrossrefs
is set. Initialize overlay_nocrossrefs.
* ldlang.h (lang_enter_overlay): Update declaration.
* ld.texinfo (Overlays): Update documentation.
* ldver.c (ldversion): Print GNU ld in the version message.
Thu Aug 22 17:10:40 1996 Ian Lance Taylor <>
* Substitute HLDENV.
* configure: Rebuild.
* (HLDENV): New variable.
($(LD_PROG)): Use $(HLDENV).
Thu Aug 22 16:29:28 1996 Jeffrey A Law (
* (ev850.c): New target.
* configure.tgt (v850-*-*): New target.
* emulparams/ New file.
Thu Aug 22 11:16:02 1996 Stan Shebs <>
* mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
Wed Aug 21 11:26:37 1996 Ian Lance Taylor <>
* scripttempl/ Put .gnu.linkonce* sections in appropriate
containing sections.
Mon Aug 19 13:01:42 1996 Ian Lance Taylor <>
* fnmatch.c: Include sysdep.h.
Mon Aug 19 11:28:29 1996 Michael Meissner <>
* Undo 8/16 change.
* emulparams/ (MACHINE): Explicitly set to nothing.
Fri Aug 16 19:18:08 1996 Michael Meissner <>
* Explicitly reset any shell variables set or used
by the various .sc scripts to allow inadvertant use of these
names as normal environment variables by the person running
* (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
Fri Aug 16 14:15:41 1996 James G. Smith <>
* scripttempl/ (__bss_start__, __bss_end__,
__data_start__, __data_end__): Added to keep in sync. with the
default ARM crt0.s. Added __CTOR_LIST__ and __DTOR_LIST__ support.
Thu Aug 8 14:24:56 1996 Ian Lance Taylor <>
* ldcref.c (check_reloc_refs): If info->same, look for any symbol
defined in info->defsec, not just the section symbol.
Wed Aug 7 14:40:48 1996 Philippe De Muyter <>
* Call BFD_NEED_DECLARATION on strstr and sbrk.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
* configure, Rebuild.
* sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
* ldmain.c (sbrk): Declare if HAVE_SBRK and
* ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
Mon Aug 5 16:26:14 1996 Ian Lance Taylor <>
* ldlex.l: Recognize OVERLAY.
* ldgram.y: Add section_phdr field to %union.
(section): Handle phdr_opt result. Add OVERLAY case.
(opt_exp_without_type): New nonterminal.
(phdr_opt): Return list of phdrs.
(overlay_section): New nonterminal.
* ldlang.c: Include <ctype.h>.
(lang_leave_output_section_statement): Add phdrs parameter.
Change all callers.
(lang_section_in_phdr): Remove.
(overlay_vma, overlay_lmn, overlay_max): New static variables.
(struct overlay_list): Define.
(overlay_list): New static variable.
(lang_enter_overlay, lang_enter_overlay_section): New functions.
(lang_leave_overlay_section, lang_leave_overlay): New functions.
* ldlang.h (lang_leave_output_section_statement): Update
declaration for new parameter.
(lang_section_in_phdr): Don't declare.
(lang_enter_overlay, lang_enter_overlay_section): Declare.
(lang_leave_overlay_section, lang_leave_overlay): Declare.
* ld.texinfo (Overlays): New node under SECTIONS, documenting
* ldlex.l: Recognize MAX and MIN.
* ldgram.y (MAX, MIN): New terminals.
(exp): Recognize MAX and MIN.
* ldexp.c (fold_binary): Handle MAX and MIN.
* ld.texinfo (Arithmetic Functions): Document MAX and MIN.
* ld.texinfo (PHDRS): Use @cindex, not @kindex, for program header
index entries.
* ldgram.y (SIZEOF, ADDR): Do not specify type.
* ldcref.c (check_nocrossref): Skip symbols with no output
Fri Aug 2 14:57:49 1996 Ian Lance Taylor <>
* ldgram.y (LOADADDR): New terminal.
(exp): Handle LOADADDR.
* ldlex.l: Recognize LOADADDR.
* ldexp.c (exp_print_token): Add LOADADDR.
(fold_name): Implement LOADADDR.
* ldlang.c (exp_init_os): Treat LOADADDR like ADDR.
* ld.texinfo (Arithmetic Functions): Document LOADADDR.
Thu Aug 1 12:52:19 1996 Ian Lance Taylor <>
* ld.h (check_nocrossrefs): Declare.
* ldlang.h (struct lang_nocrossref): Define.
(struct lang_nocrossrefs): Define.
(nocrossref_list): Declare.
(lang_add_nocrossref): Declare.
* ldlex.l: Recognize NOCROSSREFS keyword.
* ldgram.y (%union): Add nocrossref field.
(NOCROSSREFS): New terminal.
(ifile_p1): Recognize NOCROSSREFS.
(nocrossref_list): New nonterminal.
* ldlang.c (nocrossref_list): Define.
(lang_add_nocrossref): New function.
* ldmain.c (main): If nocrossref_list is not NULL, call
(warning_callback): Free symbols if there is no place to store
(notice): Call add_cref if nocrossref_list is not NULL.
* ldcref.c: Include "ldexp.h" and "ldlang.h".
(check_nocrossrefs): New function.
(check_nocrossref): New static function.
(struct check_refs_info): Define.
(check_refs, check_reloc_refs): New static functions.
* Rebuild dependencies.
* ld.texinfo (Option Commands): Document NOCROSSREFS.
* ld.texinfo (Section Placement): Improve the wording of the
wildcard documentation. Mention that wildcards are only searched
for on the command line, not in the file system.
* emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Move
definition of lib_path inside condition where it is used.
Wed Jul 31 13:17:10 1996 Martin M. Hunt <>
* emulparams/ Now works with
Wed Jul 31 11:52:03 1996 Martin M. Hunt <>
* emulparams/ (SCRIPT_NAME): Change to vanilla.
Tue Jul 30 14:46:42 1996 Ian Lance Taylor <>
* ldlang.c (lang_size_sections): Add the section VMA to the result
value when computing the address of a section.
* ld.h (args_type): Add cref field.
* lexsup.c (parse_args): Set command_line.cref.
* ldmain.c (main): Check command_line.cref rather than
(notice): Likewise.
* ldcref.c (output_one_cref): Don't crash if a symbol is defined
in a section without an owner.
Mon Jul 29 17:23:33 1996 Ian Lance Taylor <>
* fnmatch.h, fnmatch.c: New files.
* ldlex.l: Remove unused definition of FILENAME. Add definition
of WILDCHAR. In SCRIPT mode, accept any sequence of WILDCHAR as a
* ldgram.y (file_NAME_list): Accept '*' and '?' specially.
(input_section_spec): Accept '?' specially.
(statement): Change exp to mustbe_exp in length and FILL cases.
(section): Call ldlex_script before section statements, and call
ldlex_popstate after them.
* ldlang.c: Include "fnmatch.h".
(wildcardp): New static function.
(wild_section): Permit the section name to be a wildcard.
(wild_file): New static function, broken out of wild.
(wild): Call wild_file. Permit the file name to be a wildcard.
(open_input_bfds): Don't call lookup_name for a wildcard pattern.
* Rebuild dependencies.
(CFILES): Add fnmatch.c.
(HFILES): Add fnmatch.h.
(OFILES): Add fnmatch.o.
* ld.texinfo: Document that file and section names can now be
wildcard patterns.
* ldlang.c (lang_place_orphans): Correct condition: place a common
section if not relocateable or if common definitions are forced.
Wed Jul 24 12:16:38 1996 Martin M. Hunt <>
* emulparams/ (SCRIPT_NAME): Change to elf.
Wed Jul 24 13:38:22 1996 Michael Meissner <>
* configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
Tue Jul 23 10:36:19 1996 Martin M. Hunt <>
* (ed10velf.c): New target.
* configure.tgt (d10v-*-elf*): New target.
* emulparams/ New file.
Thu Jul 18 16:25:39 1996 Ian Lance Taylor <>
* configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
* Change irix5 to irix[56]*.
* configure.tgt: Likewise.
Wed Jul 17 10:52:46 1996 Kim Knuttila <>
* emultempl/pe.em (sort_sections): Pay attention to return code.
* ldmisc.c (demangle): Remove all prefix '.'s from a name.
Mon Jul 15 11:49:49 1996 Andreas Schwab <>
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Round
the value of __start_SECNAME to the alignment required by the
section to be placed.
Tue Jul 9 12:09:02 1996 Ian Lance Taylor <>
* configure.tgt (mips*el-*-elf*): Use elf32elmip.
(mips*-*-elf*): Use elf32ebmip.
* emulparams/ (EMBEDDED): Don't define.
* emulparams/ (EMBEDDED): Don't define.
* emulparams/ New file; copy of with
EMBEDDED defined.
* emulparams/ New file; copy of with
EMBEDDED defined.
* emulparams/ (EMBEDDED): Define.
* emulparams/ (EMBEDDED): Define.
* (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
(eelf32ebmip.c, eelf32elmip.c): New targets.
Thu Jul 4 12:01:03 1996 Ian Lance Taylor <>
* ldver.c (ldversion): Set version to cygnus-2.7.1.
* Released binutils 2.7.
* emulparams/ Rename from to avoid
System V file name limitations.
* configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
pc532macha rather than pc532machaout.
* (ALL_EMULATIONS): Change epc532machaout.o to
(epc532macha.c): Rename target from epc532machaout.c.
Wed Jul 3 11:40:10 1996 Ian Lance Taylor <>
* ldlang.c (print_padding_statement): Use %u, not %x, to print
fill value.
Sun Jun 30 11:16:43 1996 Stan Shebs <>
* mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
Thu Jun 27 14:03:42 1996 Ian Lance Taylor <>
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
file just before the .so file, rather than just after.
* Use -print-file-name=FILE rather than piping
-print-libgcc-file-name through sed.
(i[345]86*-*-sco*, i[345]86-*-isc*): Create crtbegin.o and
crtend.o files, in case gcc doesn't use them.
* (mostlyclean): Remove crtbegin.o and crtend.o.
Wed Jun 26 15:57:21 1996 Ian Lance Taylor <>
* configure.tgt (mips*-dec-osf*): New target.
Tue Jun 25 22:15:29 1996 Jason Molenda (
* (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* (AC_PREREQ): autoconf 2.5 or higher.
* configure: Rebuilt.
Mon Jun 24 18:48:16 1996 Michael Meissner <>
* scripttempl/ (_GLOBAL_OFFSET_TABLE_): Don't do a
PROVIDE of _GLOBAL_OFFSET_TABLE_, since it needs to be at a
non-fixed location.
Mon Jun 24 17:55:31 1996 Jouke Numan <>
* ldlang.h (enum section_type): Define.
(lang_output_section_statement_type): Remove loadable field. Add
sectype field.
(lang_enter_output_section_statement): Change flags parameter in
prototype to sectype.
* ldgram.y (typebits): Remove.
(sectype): New static variable.
(opt_at): Use sectype rather than typebits.
(type): Set sectype rather than typebits.
(atype): Likewise.
* ldlex.l: Recognize DSECT, COPY, INFO, and OVERLAY in
* ldlang.c (lang_output_section_statement_lookup): Set sectype
field rather than loadable field.
(wild_doit): Check sectype rather than loadable.
(lang_record_phdrs): Likewise.
(lang_enter_output_section_statement): Rename flags parameter to
sectype. Set sectype field rather than loadable field. Set flags
field based on sectype.
Mon Jun 24 12:00:32 1996 Ian Lance Taylor <>
* scripttempl/ Force .stab* and .comment sections to start
at 0.
* On alpha*-*-osf*, link against libbfd.a if not
using shared libraries.
* configure: Rebuild with autoconf 2.10.
Fri Jun 21 17:40:56 1996 Joel Sherrill <>
* configure.tgt: Add support for *-*-rtems* configurations.
Fri Jun 21 13:05:51 1996 Richard Henderson <>
* configure.tgt (alpha-*-linuxecoff*): New target.
(alpha-*-linux*): Use elf64alpha.
* emulparams/ New file.
* emultempl/elf32.em: If ELFSIZE is not set, set it to 32. Use
${ELFSIZE} rather than 32 when calling BFD routines.
(hold_rodata): New static variable.
(gld${EMULATION_NAME}_place_orphan): Use hold_rodata for a
readonly section that is not code.
(gld${EMULATION_NAME}_place_section): Set hold_rodata. Don't use
a .rel section unless its bfd_section field is not NULL.
* (ALL_EMULATIONS): Add eelf64alpha.o.
(eelf64alpha.c): New target.
Fri Jun 21 12:45:46 1996 Ian Lance Taylor <>
* ldmisc.c (vfinfo): Correct handling of 0 in %W case.
Thu Jun 20 13:55:28 1996 Ian Lance Taylor <>
Add enough support to understand the gcc svr3.ifile script:
* ldlex.l: Recognize BLOCK and GROUP in EXPRESSION context. Add
BIND keyword.
* ldgram.y: Add BIND token.
(section): Recognize GROUP.
(opt_ext_with_type): Recognize a couple of cases of BIND.
* ldlang.c (init_os): Don't do anything if section is already
initialized. Call exp_init_os on addr_tree field.
(exp_init_os): New static function.
(map_input_to_output_sections): Call exp_init_os on assignment
(lang_place_orphans): Check for common sections by name COMMON
rather than by common_section field. Don't warn about absence of
[COMMON] command.
* ldlang.h (lang_input_statement_type): Remove useless fields
common_section, common_output_section, and complained, as well as
all references to them.
* ldexp.c: Reindent a lot of code.
(exp_fold_tree): Call FAIL rather than einfo in default case.
Wed Jun 19 11:40:14 1996 Ian Lance Taylor <>
* (m88*-*-dgux*): Quote HOSTING_CRT0. From
Tue Jun 18 15:53:09 1996 Jeffrey A. Law <>
* scripttempl/ New file for H8/S.
* emulpararms/ New file for H8/S.
(e_h8300s.c): Add dependencies.
* configure.tgt: Add H8/S to targ_extra_emuls.
Tue Jun 18 17:55:39 1996 Ian Lance Taylor <>
* configure.tgt (i[345]86*-*-isc*): New target. From
Wed Jun 12 12:46:21 1996 Ian Lance Taylor <>
* lexsup.c: Include "libiberty.h".
(parse_args): Copy the -Y argument into memory.
(set_default_dirlist): Don't put the ':' back into the directory
Fri Jun 7 11:27:42 1996 Ian Lance Taylor <>
* emultempl/sunos.em: Include libiberty.h.
(gld${EMULATION_NAME}_set_symbols): New static function to add
LD_LIBRARY_PATH to the list of search directories.
(ld_${EMULATION_NAME}_emulation): Add new set_symbols routine.
Thu Jun 6 11:50:31 1996 Ian Lance Taylor <>
* emulparams/ (OTHER_GOT_SYMBOLS): Use ALIGN(16)
rather than . when computing _gp value. From Per Fogelstrom.
* emulparams/ (OTHER_GOT_SYMBOLS): Likewise.
* ldmain.c (main): Don't close and unlink the file on error, since
remove_output will do it anyhow.
* ldlang.c (open_output): Set boolean variable to true, not 1.
Wed Jun 5 18:34:14 1996 James G. Smith <>
* emulparams/{,} (SCRIPT_NAME): Use
elfmips instead of elf.
Tue Jun 4 18:43:07 1996 Ian Lance Taylor <>
* ldcref.c: New file.
* ld.h (add_cref, output_cref): Declare.
* ldmain.c (main): Initialize notice_all field. If it is set at
end of link, call output_cref.
(notice): Rename from notice_ysym. Check notice_all.
* ldmisc.c (finfo): Make globally visible.
* ldmisc.h (finfo): Declare.
* lexsup.c (OPTION_CREF): Define.
(ld_options): Add "cref".
(parse_args): Handle OPTION_CREF.
* Rebuild dependencies.
(CFILES): Add ldcref.c.
(OFILES): Add ldcref.o.
* ld.texinfo, ld.1: Document --cref.
Tue Jun 4 12:12:25 1996 Tom Tromey <>
* (install): Make $(tooldir) and $(tooldir)/bin.
Fri May 31 12:40:55 1996 Ian Lance Taylor <>
* emultempl/pe.em (sort_sections): Don't assume that a
wild_statement has a section name.
Wed May 29 13:13:35 1996 Ian Lance Taylor <>
* scripttempl/ Quote test -z argument.
* ld.texinfo: Clarify the CONSTRUCTORS command.
Thu May 23 16:07:44 1996 Ian Lance Taylor <>
* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
file, not impfile.
Wed May 22 11:31:30 1996 Doug Evans <>
* ldlang.c (wild_doit): Don't copy over SEC_LINK_{ONCE,DUPLICATES}
if final link.
* emultempl/pe.em (sfunc): Renamed to sort_by_file_name.
(sort_by_section_name, sort_sections_1): New functions.
(sort_sections): Only sort by file name sections in .idata.
Add "Grouped Sections" support.
(gld${EMULATION_NAME}_place_orphan): Rewrite to support Grouped
(gld${EMULATION_NAME}_place_section): Delete.
* scripttempl/ (.text,.data,.rdata): Add *(.foo\$).
(.CRT,.rsrc): Rewrite to use Grouped Section support.
Tue May 21 14:31:48 1996 Stan Shebs <>
* mpw-eppcmac.c: Update to reflect changes to aix.em.
Sun May 19 16:59:44 1996 Doug Evans <>
* ldlang.c (dprint_statement): Stop printing at end of list.
Sat May 18 13:12:05 1996 Steve Chamberlain <>
Support for --force-exe-suffix
* ld.h (args_type): Add force_exe_suffix.
* ld.texinfo: Add documentation.
* ldmain.c (main): Add support for option.
* lexsup.c (OPTION_FORCE_EXE_SUFFIX): New.
(ld_options, parse_args): Add support for option.
Wed May 15 12:50:25 1996 Jim Wilson <>
* emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
Fri May 10 16:28:44 1996 Michael Meissner <>
* scripttempl/ (__stack): Make __stack 0 if it was
referenced but not defined.
Thu May 9 08:52:23 1996 Rob Savoye <>
* emulparams/{,,,}:
Set a new variable to signify if the final target is an embedded
* scripttempl/{,}: Don't add SIZEOF_HEADERS to
.text for an embedded system.
Tue May 7 10:56:11 1996 Doug Evans <>
* emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
(gld${EMULATION_NAME}_place_section): New function.
(hold_{section,use,text,rdata,data}): New static locals.
(ld_${EMULATION_NAME}_emulation): Update orphan field.
* scripttempl/ Whitespace cleanup. Semicolon usage cleanup.
(INIT,FINI): Delete, unused.
(.text): Document orphan sections.
(.rdata): Document orphan sections.
(.data): Document orphan sections.
Tue May 7 11:35:46 1996 Jeffrey A Law (
* scripttempl/ Place ".tiny" sections right
after ".data" sections.
* scripttempl/ Place ".tiny" sections into
the "tiny" memory region, 0xff8000 through 0xffff00.
* scripttempl/ Set the entry point to the value of
"_start" rather than the start of the text segment.
* scripttempl/ Likewise.
* scripttempl/ Place .rodata sections before .text
sections in main ram.
* scripttempl/ Likewise.
Mon May 6 23:32:30 1996 Jeffrey A Law (
* scripttempl/ Use "eight", not "eightbit" for the
8-bit region and 8-bit sections.
Wed May 1 17:50:06 1996 Doug Evans <>
* ldlang.c (section_already_linked): Fix typos.
Mon Apr 29 20:31:06 1996 Doug Evans <>
* scripttempl/ (.endjunk): Define __end__.
Mon Apr 29 17:05:13 1996 Ian Lance Taylor <>
* ldlang.c (longest_section_name): Remove.
(print_size, print_alignment, print_fill, print_section): Remove.
(print_flags): Remove.
(lang_map): Rewrite.
(print_output_section_statement): Rewrite.
(print_assignment): Rewrite.
(print_one_symbol): Rewrite.
(print_input_section): Rewrite.
(print_fill_statement): Rewrite.
(print_data_statement): Rewrite.
(print_address_statement): New static function.
(print_reloc_statement): Rewrite.
(print_padding_statement): Rewrite.
(print_wild_statement): Rewrite.
(print_statement_list): Clean up.
(print_statement): Clean up. Some minor output changes.
(print_statements): Clean up.
(load_symbols): Put another - before -whole-archive.
* ldexp.c (exp_print_tree): Change etree_value and etree_rel to
print 0x and to omit leading zeroes. For etree_rel, use %B to
print the BFD. For etree_assign, remove the space after the
destination name.
* ldwrite.c: Include "libiberty.h".
(clone_section): Call xstrdup, not strdup.
(ldwrite): Don't print any map information.
(print_symbol_table, print_file_stuff, print_symbol): Remove.
* ldmain.c (main): Call lang_map when appropriate.
* ldmisc.c (vfinfo): Add support for %W.
(print_address): Remove.
* ldmisc.h (print_address): Don't declare.
* Rebuild dependencies.
Mon Apr 29 10:29:07 1996 Andreas Schwab <>
* (m68*-*-linux*): Add -dynamic-linker to
HOSTING_CRT0. Search -lgcc both before and after -lc in
HOSTING_LIBS. Look for crt{begin,end}.o in the compiler directory
at first.
(i[345]86-*-linux*): Look for crt{begin,end}.o in the compiler
directory at first.
Fri Apr 26 14:42:27 1996 Ian Lance Taylor <>
* ldmisc.h (demangle): Declare.
* ldmisc.c: Include "libiberty.h". Include demangle.h with "",
not <>.
(demangle): Make non-static. Remove remove_underscore paramter.
Always return an allocated string.
(vfinfo): Free result of demangle. Add case 'G'. Use %T to print
functionname, rather than calling demangle. Print a colon between
the BFD(section+offset) and the line number.
* ldmain.c (add_archive_element): Improve format of archive
information in map file.
(constructor_callback): Don't print anything to the map file.
* ldlang.c (lang_one_common): Improve format of common symbol
information in map file.
* ldctor.c (ldctor_build_sets): If producing a map file, print set
* ldwrite.c (print_symbol_table): Print a newline before the
header in the map file.
* Rebuild dependencies.
* ldmisc.c (vfinfo): Reindent.
Mon Apr 22 12:07:32 1996 Ian Lance Taylor <>
* ldlang.c (lang_size_sections): If _cooked_size is not 0, then
don't clobber it when not relaxing.
* ld.h (ld_config_type): Remove traditional_format field.
* ldmain.c (main): Use link_info.traditional_format rather than
* ldlang.c (ldlang_open_output): Likewise.
* lexsup.c (parse_args): Likewise.
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Likewise.
* mpw-eppcmac.c (gldppcmacos_parse_args): Likewise.
* ldlang.c (wild_doit): Discard debugging sections if we are
stripping debugging information.
* emulparams/ (ARCH): Set to z8002, not z8k.
Tue Apr 16 16:38:32 1996 Ian Lance Taylor <>
* ldexp.c (fold_binary): Correct handling of subtraction with
absolute values.
(fold_name): Permit symbols in lang_allocating_phase_enum.
* scripttempl/ Only PROVIDE __stack when RELOCATING. Undo
accidental changes in last patch.
Tue Apr 16 10:25:42 1996 Michael Meissner <>
* configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
(powerpcle*-*-{sysv,solaris}): Ditto.
Mon Apr 15 14:50:56 1996 Rob Savoye <>
* scripttempl/ Add PROVIDE (__stack = 0) so I can use it
in m68k/crt0.S without things blowing up.
Fri Apr 12 16:40:56 1996 Rob Savoye <>
* scripttempl/ Remove default address for .data so
.text, .data, and .bss are all sequential.
Thu Apr 11 12:05:35 1996 Ian Lance Taylor <>
* scripttempl/ Remove regions and simplify.
Wed Apr 10 14:41:53 1996 Jeffrey A Law (
* scripttempl/ Add the "8-bit area" in the upper 256
bytes of the address space. Put data from the ".eight" sections
into the 8-bit area.
* scripttempl/ Likewise.
Tue Apr 9 14:10:42 1996 Doug Evans <>
* emultempl/generic.em (gld${EMULATION_NAME}_before_parse):
Pass $ARCH to ldfile_set_output_arch instead of setting
ldfile_output_architecture directly.
Tue Apr 9 14:22:15 1996 Michael Meissner <>
* scripttempl/ (.init,.fini): Put .init, .fini section
next to .text. Put _etext after .text, .init, .fini, and
.rodata{,2} sections.
Tue Apr 9 12:18:57 1996 Ian Lance Taylor <>
* ld.texinfo: Rearrange option documentation.
* lexsup.c (ld_options): New static array.
(parse_args): Build shortopts and longopts from ld_options array.
(help): New static function.
* ldver.h (help): Don't declare.
* ldver.c (ldversion): Reindent.
(help): Remove.
* ld.texinfo, ld.1: Mention -E as a synonym for -export-dynamic.
Mon Apr 8 11:56:23 1996 Ian Lance Taylor <>
* emultempl/elf32.em: When checking for a native emulation, check
that the current emulation is the default emulation.
* emultempl/sunos.em: Likewise.
* Permit --enable-shared to specify a list of
* configure: Rebuild.
* lexsup.c (parse_args): Add -E as a synonym for -export-dynamic,
for HP/UX compatibility.
Fri Apr 5 14:30:14 1996 Ian Lance Taylor <>
* emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): New
static function, if ${host} = ${target}.
(gld${EMULATION_NAME}_after_open): Call check_ld_so_conf to find a
needed shared library if ${host} = $[target}.
* (i[345]86-*-linux*): Add -dynamic-linker to
HOSTING_CRT0. Search -lgcc both before and after -lc in
* configure.tgt: Add i[345]86-*-freebsdelf* target; from John
Polstra <>.
Fri Apr 5 18:11:25 1996 James G. Smith <>
* emulparams/elf32{b,l} (MACHINE): Add explicit
architecture number.
* scripttempl/ Use $MACHINE definition if present.
* configure.tgt (targ_extra_emuls): Force 4100 build to use same
template as 4300.
Mon Apr 1 17:35:40 1996 Ian Lance Taylor <>
* ldlang.c (lang_size_sections): Change region check to handle
regions which end at the highest possible address correctly.
From Roland Weber <>.
* ldlang.c (section_already_linked): New static function.
(wild_doit): Discard sections with SEC_EXCLUDE set if not doing a
relocateable link. Don't worry about section being NULL, since it
never should be. Don't call init_os unless the section is going
to be added.
(ldlang_add_file): Call section_already_linked for each section.
* ldmain.c (multiple_definition): Don't warn about multiple
definitions in sections which are being discarded.
Sun Mar 31 00:30:47 1996 steve chamberlain <>
* scripttempl/{,} (.junk): Remove and use /DISCARD/.
* emultempl/pe.em (init): Remove special case PPC code.
Fri Mar 29 00:01:29 1996 Jeffrey A Law (
* scripttempl/ Make vectors section 0xc4 bytes long
so as not to overwrite the magic syscall entry at 0xc4.
* scripttempl/ Likewise.
Thu Mar 28 11:05:47 1996 Doug Evans <>
* configure.tgt (sparc64-*-solaris2*): Delete.
Stick with sparc-*-solaris2*.
Wed Mar 27 12:33:24 1996 Ian Lance Taylor <>
* ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
* ldlang.c (init_os): Fail on an attempt to initialize any section
(wild_doit): Discard input sections assigned to an output section
* ld.texinfo: Document use of /DISCARD/.
* ldlang.c: Fix some indentation and comments.
Tue Mar 26 18:14:49 1996 Ian Lance Taylor <>
* ldmain.c (main): Call bfd_set_error_program_name.
Thu Mar 21 13:17:34 1996 Ian Lance Taylor <>
* ld.texinfo: Fix a couple of indexing entries. Mention that
--verbose displays builtin linker scripts.
* ldmisc.c (vfinfo): case 'I': If the file is not in an archive,
and the local symbol name does not match the filename, print the
filename as well.
Patches from John Polstra <> for FreeBSD ELF:
* lexsup.c (parse_args): -Bshareable is a synonym for -shared.
* emulparams/ (NONPAGED_TEXT_START_ADDR): Make the same
Wed Mar 20 18:18:25 1996 Andreas Schwab <>
* ld.texinfo: Fix typos. Use @pxref only inside parentheses.
Wed Mar 20 16:56:15 1996 Ian Lance Taylor <>
* ldmain.c (add_wrap): New function.
* ldmain.h (add_wrap): Declare.
* lexsup.c (parse_args): Call add_wrap.
Tue Mar 19 16:44:20 1996 Doug Evans <>
* (sparc*-*-solaris2* host): Accept any sparc variant.
Wed Mar 13 17:47:31 1996 Jeffrey A Law (
* scripttempl/ Change name of page zero memory
from "null" to "vectors". Create an output section for
vectors. Add comments on how to explicitly place items
in the vector table.
* scripttempl/ Likewise.
Wed Mar 13 12:40:18 1996 Ian Lance Taylor <>
* emultempl/lnk960.em (machine_table): Add jx and hx.
* Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
support it.
Tue Mar 12 12:43:59 1996 David Mosberger-Tang <>
* ld.h (ld_config_type): Add warn_multiple_gp field.
* lexsup.c (parse_args): Handle --warn-multiple-gp.
* ldmain.c (warning_callback): Suppress multiple gp values warning
if --warn_multiple_gp was not used.
* ld.texinfo, ld.1: Document --warn-multiple-gp.
Tue Mar 12 12:02:21 1996 Ian Lance Taylor <>
* lexsup.c (parse_args): Handle --wrap.
* ldmain.c (main): Initialize link_info.wrap_hash.
* ldexp.c (fold_name): Use bfd_wrapped_link_hash_lookup in DEFINED
and NAME cases.
* ld.texinfo, ld.1: Document --wrap.
* configure: Rebuild with autoconf 2.8.
Don't do SunOS style dynamic linking for sparc-aout:
* configure.tgt (sparc64-*-aout*): Use sparcaout, not sun4.
(sparclite*-fujitsu-*, sparc*-*-aout): Likewise.
(sparc*-wrs-vxworks*): Likewise.
* emulparams/ New file.
* (ALL_EMULATIONS): Add esparcaout.o.
(esparcaout.c): New target.
Wed Mar 6 16:06:52 1996 J.T. Conklin <>
* scripttempl/ (.sdata2, .sbss2): Implement Feb 2 change
in a different manner to work around differences in shell variable
Wed Mar 6 18:08:18 1996 Ian Lance Taylor <>
* ldemul.h (ldemul_unrecognized_file): Declare.
(ldemulation_xfer_type): Add unrecognized_file field.
* ldemul.c (ldemul_unrecognized_file): New function.
* ldlang.c (load_symbols): If a file can not be recognized, call
ldemul_unrecognized_file before trying it as a linker script.
* emultempl/aix.em (gld${EMULATION_NAME}_unrecognized_file): New
static function.
(gld${EMULATION_NAME}_read_file): Use FOPEN_RT, not "r".
(ld_${EMULATION_NAME}_emulation): Initialize unrecognized_file.
Mon Mar 4 14:11:17 1996 Ian Lance Taylor <>
* ldlang.c (wild): Handle foo.a(.text) by mapping each included
member of foo.a separately. From Jouke Numan <>.
Fri Mar 1 10:24:59 1996 Andreas Schwab <>
* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
Search trinary.cond rather than searching trinary.lhs twice.
Tue Feb 27 15:08:43 1996 Stan Shebs <>
* mpw-make.sed: Edit out shared library support.
(@TDIRS@): Edit out, can't use genscripts.
Tue Feb 27 15:09:21 1996 Andreas Schwab <>
* configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
* emulparams/ New file.
* emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
* (ALL_EMULATIONS): Add em68klinux.o.
(em68klinux.c): New target.
* (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
Tue Feb 27 12:55:46 1996 Ian Lance Taylor <>
* (ALL_EMULATIONS): Sort into alphabetical order.
Fill in missing entries.
* lexsup.c (parse_args): Recognize --no-whole-archive.
* ldlang.h (lang_input_statement_type): Add whole_archive field.
* ldlang.c (new_afile): Set whole_archive field.
(load_symbols): Check input file specific whole_archive field
rather than global variable.
* ld.texinfo, ld.1: Document --no-whole-archive.
Tue Feb 20 16:07:00 1996 Ian Lance Taylor <>
* configure.tgt: Correct gldi960 to gld960.
Mon Feb 19 11:16:44 1996 Ian Lance Taylor <>
* emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Check
the SONAME if it is available.
(gld${EMULATION_NAME}_stat_needed): Use the SONAME, not the
filename, when checking for conflicting library versions. Don't
assume that the suffix is only numbers and dots.
* ld.texinfo: Mention that -R can be used for -rpath.
Sun Feb 18 15:05:17 1996 Ian Lance Taylor <>
* Check for 'do not mix' from native linker before
trying to use -rpath.
Thu Feb 15 13:58:06 1996 Ian Lance Taylor <>
* Remove explicit substitution of CFLAGS; autoconf
does it anyhow.
* configure: Rebuild.
* (LDFLAGS): Set to @LDFLAGS@.
* Call AC_PROG_CC before
* configure: Rebuild.
* Remove go32 host, since it should no longer be
necessary. Don't set CC for romp host.
* scripttempl/ Don't skip a page in virtual memory space if
the text segment ends exactly on a page boundary.
* Substitute RPATH_ENVVAR.
* configure: Rebuild.
* (RPATH_ENVVAR): New variable.
(check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
Wed Feb 14 18:49:01 1996 Alan Modra <>
* Redo emulation handling so that each emulation
searches the correct tool directory, based on the target alias.
For example, "configure --enable-targets=m68k-coff i386-linux"
will search /usr/local/i386-linux/lib for linux and
/usr/local/m68k-coff/lib for m68k-coff.
* configure: Rebuild.
* configure.tgt: Add special tdir settings for Linux.
* Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
for each eEMUL.c target.
* Accept specific alias as 9th argument, and use it
Wed Feb 14 16:38:36 1996 Martin Anantharaman <>
* ldlang.c (lang_set_startof): Don't do anything for a
relocateable link.
* ldgram.y (mri_script_file): Call mri_draw_tree.
* mri.c (mri_draw_tree): Make globally visible. Don't bother to
create memory regions.
(mri_load): Don't call mri_draw_tree.
* mri.h (mri_draw_tree): Declare.
* configure.tgt (m68*-*-psos): New target.
* emulparams/ New file.
* scripttempl/ New file.
* (ALL_EMULATIONS): Add em68kpsos.o.
(em68kpsos.c): New target.
Wed Feb 14 11:09:25 1996 Ian Lance Taylor <>
* configure.tgt (*-*-ieee*): New target; use vanilla.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Strip
`:foo' from ${ARCH}.
Tue Feb 13 15:58:58 1996 Bryan Ford <>
* scripttempl/ Don't pad the .text section. Put
.rodata in .data.
Tue Feb 13 14:04:19 1996 Ian Lance Taylor <>
* Set HDLFLAGS for *-*-hpux with --enable-shared.
* emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
it looks like we might be linking in two different versions of the
same shared library. Based on a patch from H J Lu <>.
Thu Feb 8 19:25:54 1996 Ian Lance Taylor <>
* ldlang.c (lang_size_sections): Increment the section size when a
padding statement is encountered.
Wed Feb 7 14:01:33 1996 Ian Lance Taylor <>
* Look for --enable-shared. Change the value of
BFDLIB when linking against a shared library on SunOS.
* configure: Rebuild.
* If using a shared BFD library, try to pass a
reasonable -rpath option when linking.
* (BFDLIB): Set to @BFDLIB@.
Tue Feb 6 12:29:14 1996 Doug Evans <>
* emulparams/ (ARCH): Change to `sparc:v9'.
* emultempl/generic.em: Strip `:foo' from ${ARCH}.
Mon Feb 5 16:25:30 1996 Ian Lance Taylor <>
Support for building bfd and opcodes as shared libraries, based on
patches from Alan Modra <>:
* (HLDFLAGS): New substitution.
* configure: Rebuild.
* Set HLDFLAGS on SunOS.
* (HLDFLAGS): New variable.
(BFDDEP): New variable.
(BFDLIB): Change to -L../bfd -lbfd.
($(LD_PROG)): Depend upon $(BFDDEP) rathern than $(BFDLIB). Use
$(HLDFLAGS) in link.
(check): Set LD_LIBRARY_PATH in the environment.
Fri Feb 2 19:26:25 1996 Michael Meissner <>
* scripttempl/ (.sdata2, .sbss2): Put .sdata2 and .sbss
in the read-only section, not read/write unless we are making a
shared library.
(.debug*): Add dwarf debug sections.
(.rela.{sdata*,sbss*}): Add sections.
Fri Feb 2 16:50:21 1996 Ian Lance Taylor <>
* configure: Regenerate.
Thu Feb 1 10:50:46 1996 Ian Lance Taylor <>
* emulparams/ (TEXT_START_ADDR): Change to 0x8048000,
for SVR4 compatibility.
* ldexp.c (exp_fold_tree): Correct handling of ABSOLUTE.
Wed Jan 31 17:30:19 1996 Steve Chamberlain <>
* configure.tgt (i[345]86-*-cygwin32, powerpcle-*-cygwin32): New.
* emultempl/pe.em (definfo init): Make the default stack reserve
of a PPC larger.
Wed Jan 31 14:34:23 1996 Richard Henderson <>
* configure.tgt (m68*-apple-aux*): New target.
* emulparams/ New file.
* scripttempl/ New file.
* (ALL_EMULATIONS): Add em68kaux.o.
(em68kaux.c): New target.
Tue Jan 30 13:18:56 1996 Ian Lance Taylor <>
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
-bnoentry, since the right thing tends to happen anyhow.
Mon Jan 29 12:29:26 1996 Ian Lance Taylor <>
* ld.texinfo, ld.1: Document -export-dynamic.
Fri Jan 26 11:11:55 1996 Andreas Schwab <>
* emultempl/sunos.em: Check for native compile by comparing
${target} and ${host}.
Thu Jan 25 16:46:58 1996 James G. Smith <>
* emulparams/{,}: Changed
TEXT_START_ADDR to allow use on IDT and PMON systems.
Wed Jan 24 20:59:40 1996 Steve Chamberlain <>
* emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
correct spelling.
Wed Jan 24 16:59:19 1996 Doug Evans <>
* configure.tgt (sparc64-*-solaris2*): New configuration.
(sparc64-*-aout*): Renamed from sparc64*.
Mon Jan 22 13:01:35 1996 Andreas Schwab <>
* (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
* Set host, target and target_alias variables.
Check for native compile by comparing ${target} and ${host}.
* emultempl/elf32.em: Likewise.
* scripttempl/ Test ${target}, not ${target_alias}.
Mon Jan 22 11:03:23 1996 Michael Meissner <>
* scripttempl/ Refine eabi support to better support
.sdata, .sdata2, .sbss, etc. sections.
Tue Jan 16 15:16:58 1996 Ian Lance Taylor <>
* ldgram.y (%union): Add phdr field.
(phdr): Use phdr_qualifiers rather than opt_hdrs and opt_at.
(phdr_qualifiers): New nonterminal. Add support for FLAGS.
(opt_hdrs, hdr): Remove.
(phdr_val): New nonterminal.
* ldlang.c (lang_new_phdr): Replace hdrs parameter with filehdr
and phdrs parameters. Add flags parameter.
(lang_record_phdrs): Update for changes to lang_phdr. Pass flags
to bfd_record_phdr.
* ldlang.h (struct lang_phdr): Replace hdrs field with filehdr and
phdrs fields. Add flags field.
(lang_new_phdr): Update declaration.
* ld.texinfo: Document FLAGS.
Mon Jan 15 15:07:19 1996 Ian Lance Taylor <>
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
Don't make a shared library because of an undefined reference to
Add some Irix 5 support, mostly from Kazumoto Kojima
* emulparams/ (SCRIPT_NAME): Change to elfmips.
(OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
(DYNAMIC_LINK): Don't define.
* emulparams/ Same changes as
* scripttempl/ New file.
* (mips*-dec-bsd*): Change mips to mips*.
(mips*-sgi-irix4*): Likewise.
(mips*-sgi-irix5*): New entry.
* (eelf32bmip.c): Depend upon rather than
(eelf32lmip.c): Likewise.
Sat Jan 13 09:41:43 1996 Michael Meissner <>
* scripttempl/ Remove support for .rel.* sections. Add section.
Fri Jan 12 14:56:19 1996 Ian Lance Taylor <>
* scripttempl/ Only build constructors when CONSTRUCTING.
* ldmisc.c: Include <stdarg.h> rather than <varargs.h> if
ANSI_PROTOTYPES is defined. Remove special handling of
WINDOWS_NT. Various indendation fixes.
(vfinfo): Change fmt parameter to const char *.
(info_msg): Write <stdarg.h> version.
(einfo, minfo, finfo): Likewise.
(info_assert): Change file parameter to const char *.
* ldmisc.h (einfo, minfo, info_msg): If ANSI_PROTOTYPES is
defined, use a real prototype.
(info_assert): Change first parameter to be const char *.
Fri Jan 12 13:29:55 1996 Michael Meissner <>
* scripttempl/ Add support for .sdata2/.sbss2, etc. Add
in old support that 2.7.2 needs, but the current compiler does
* (eelf32{,l}ppc.c): Fix up dependencies to use the
correct Linker script template.
* emulparams/elf32{,l} (TEXT_START_ADDR): Set to 0x40000,
not 0x400000.
Tue Jan 9 15:53:02 1996 Ian Lance Taylor <>
* scripttempl/ Put .rconst right after .rdata.
Fri Jan 5 14:07:45 1996 Steve Chamberlain <>
* emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
sort using right pointer.
Fri Jan 5 12:25:47 1996 Michael Meissner <>
* scripttempl/ Remove support for creating special
labels for eabi section begin/end here. The compiler now uses
crt{i,n}.o to create these symbols.
Thu Jan 4 17:08:58 1996 Ian Lance Taylor <>
* Change existing Linux HOSTING_CRT0 to be used
for a.out only, and put in appropriate HOSTING_CRT0 and
HOSTING_LIBS values for Linux ELF.
Thu Jan 4 12:02:05 1996 Doug Evans <>
* scripttempl/ Use all 64K for ram.
* scripttempl/ Define 256K ram size.
Thu Dec 21 15:57:18 1995 Ian Lance Taylor <>
* emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Pass
export_defines as true to bfd_xcoff_size_dynamic_sections if -unix
was used, regardless of whether -bE was used.
Tue Dec 19 17:35:38 1995 Ian Lance Taylor <>
* emultempl/aix.em (gld${EMULATION_NAME}_after_open): Only set
relocateable before calling ldctor_build_sets if the output file
is in an XCOFF format.
Fri Dec 15 16:34:36 1995 Ian Lance Taylor <>
* ldwrite.c (build_link_order): When handling a data statement, if
the endianness of the output file is unknown, use the endianness
of the input file.
Tue Dec 12 13:55:41 1995 Stan Shebs <>
* Recognize mips-*-* as equivalent to
* mpw-eppcmacos.c: Rename to shorter mpw-eppcmac.c.
* mpw-ld.r: Add version resources.
(cfrg): Use symbolic instead of literal name for executable.
Mon Dec 11 15:13:41 1995 Kim Knuttila <>
* scripttempl/ (FINI): Moved the .reloc section.
Wed Dec 6 14:33:50 1995 Doug Evans <>
* ldlang.c (print_statement{,s}): Delete duplicate prototype.
(print_statement_list): Renamed from print_statement. All callers
(print_statement): New function to print just one statement.
(print_{data,reloc,padding}_statement): Don't crash if
output_section == NULL.
(dprint_statement): New function.
* emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix
call to sort_sections.
Wed Dec 6 14:59:06 1995 Ian Lance Taylor <>
* emultempl/aix.em (unix_ld): New static variable.
(gld${EMULATION_NAME}_parse_args): Handle -unix.
(gld${EMULATION_NAME}_before_allocation): If unix_ld, pass
gc as false and export_defineds as true to size_dynamic_sections.
* ldexp.c (exp_fold_tree): Permit assignments to dot in the final
phase if the current section is abs_output_section.
Tue Dec 5 09:49:39 1995 Doug Evans <>
* emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
to sort_sections.
Fri Dec 1 16:48:36 1995 Ian Lance Taylor <>
* ldgram.y (PHDRS): New token.
(ifile_p1): Accept phdrs.
(section): Accept phdr_opt at the end of the section definition.
(phdr_op): New nonterminal.
(phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
* ldlex.l: Accept PHDRS.
* ldlang.h (struct lang_output_section_phdr_list): Define.
(lang_output_section_statement_type): Add phdrs field.
(struct lang_phdr): Define.
(lang_new_phdr): Declare.
* ldlang.c (lang_phdr_list): New static variable.
(lang_output_section_statement_lookup): Initialize phdrs field.
(lang_process): Call lang_record_phdrs.
(lang_new_phdr): New function.
(lang_section_in_phdr): New function.
(lang_record_phdrs): New static function.
* ld.texinfo: Document PHDRS.
Thu Nov 30 13:14:30 1995 Kim Knuttila <>
* scripttempl/ Moved .edata into its own section to
expose it.
Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <>
* (m68*-motorola-sysv): Define HOSTING_CRT0 and
HOSTING_LIBS for testing.
(m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
Tue Nov 28 12:14:53 1995 Ian Lance Taylor <>
* lexsup.c (parse_args): Set config.dynamic_link to false for -N
and -n.
Mon Nov 27 13:12:09 1995 Ian Lance Taylor <>
* configure: Rebuild with autoconf 2.7.
Fri Nov 24 18:35:35 1995 Doug Evans <>
* scripttempl/ Two .junk's is too much junk.
Tue Nov 21 16:14:32 1995 Ian Lance Taylor <>
* acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
* configure, Rebuild with autoconf 2.6.
* ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
being unsupported if this is not a relocateable link and the input
BFD supports it, since ldctor_build_sets can cope with that case.
Fri Nov 17 16:23:15 1995 Stan Shebs <>
* configure.tgt (powerpc-*-macos*): New target.
* emulparams/ New file, PowerMac emulation.
* (ALL_EMULATIONS): Add eppcmacos.o.
(eppcmacos.c): New target.
* mpw-eppcmacos.c: Update.
* mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
Fri Nov 17 10:37:27 1995 Ian Lance Taylor <>
* (CC_FOR_TARGET): Use @host@ and @target@, not
$(host_canonical) and $(target_canonical).
(CXX_FOR_TARGET): Likewise.
Thu Nov 16 11:23:42 1995 Doug Evans <>
* scripttempl/ (.endjunk): Move definition of `end' to here
so the malloc heap begins at a sane place.
Thu Nov 16 03:09:32 1995 Ken Raeburn <>
Version 2.6 released.
* ldver.c (ldversion): Update to 2.6.
* (mostlyclean): Delete ldemul-list.h here, but not
$(GENERATED_*FILES), since they need to be retained by distclean.
(maintainer-clean, realclean): Delete them here.
Tue Nov 14 17:08:06 1995 Ian Lance Taylor <>
* emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Open the
base file with FOPEN_WB, not "w".
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Use the
environment variable LD_RUN_PATH if neither -rpath nor -rpath-link
were used.
(gld${EMULATION_NAME}_before_allocation): Use the environment
variable LD_RUN_PATH if -rpath was not used.
* ld.texinfo, ld.1: Document LD_RUN_PATH.
Thu Nov 9 13:09:29 1995 Ian Lance Taylor <>
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Recognize
-bl and -bloadmap options.
* ldfile.c (ldfile_try_open_bfd): If bfd_error_invalid_target,
report a better error.
* emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Add
new local variable special_sections, and pass it to
size_dynamic_sections. Look through the results, and move the
sections around in the mapping so that they are defined correctly.
Wed Nov 8 11:40:59 1995 Ian Lance Taylor <>
* ldemul.c (ldemul_default_target): Cast getenv return value.
Tue Nov 7 11:15:36 1995 Kim Knuttila <>
* emulparams/ (ARCH): New file for PowerPC Portable
Executable support.
* scripttempl/ New file for PowerPC Portable Executable
* configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
* (ALL_EMULATIONS): Added eppcpe.o target.
* emultempl/pe.em (TARGET_IS_ppcpe): file tailoring macro
(gld_$_before_allocation): added hooks for toc construction based
on the above macro.
Tue Nov 7 11:47:23 1995 Ian Lance Taylor <>
* ld.texinfo: The linker does not use _main as an entry point.
Tue Nov 7 11:46:11 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <>
* scripttempl/ (.data): Calculate next boundary modulo
0x2000 not 0x200.
Mon Nov 6 10:59:21 1995 Ian Lance Taylor <>
* Add test for whether free must be declared.
* sysdep.h: Declare free if necessary. Include "ansidecl.h".
* acconfig.h: Explain NEED_DECLARATION_FREE.
* configure, Rebuild.
* lexsup.c (parse_args): Take B:: out of shortopts.
Sun Nov 5 03:08:28 1995 Ken Raeburn <>
* emulparams/ (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
for now, as with m68k4kbsd, until shared library support gets
* For i386 BSD variants, crt0.o lives in
/usr/lib. (True for NetBSD at least, unconfirmed for others.)
Wed Nov 1 15:42:45 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <>
* (ALL_EMULATIONS): Add edelta68.o.
(edelta68.c): New target.
* configure.tgt (m68*-motorola-sysv*): New target.
* emulparams/ New file.
* scripttempl/ New file.
* scripttempl/ Handle .init and .fini. Change section
Wed Nov 1 11:41:56 1995 Ian Lance Taylor <>
* ldgram.y (mri_script_command): Accept ',' as well as '=' in
ALIGN and ALIGNMOD statements.
* emultempl/aix.em: Include ldgram.h.
(gld${EMULATION_NAME}_parse_args): Handle -pD and -pT, as used on
AIX 4.1.
* ($(EMULATION_OFILES)): Depend upon ldgram.h.
Tue Oct 31 18:22:24 1995 David Mosberger-Tang <>
* (alpha-*-linux*): New host.
* configure.tgt (alpha-*-linux*): New target.
Tue Oct 31 12:36:52 1995 Ian Lance Taylor <>
* emultempl/aix.em (export_files): Remove.
(import_files): Make static.
(struct export_symbol_list): Define.
(export_symbols): New static variable.
(gld${EMULATION_NAME}_parse_args): Handle an initial -b option
correctly. Call read_file for an export file.
(gld${EMULATION_NAME}_before_allocation): Call
bfd_xcoff_export_symbol for each export symbol, rather than
calling read_file for each export file.
(gld${EMULATION_NAME}_read_file): For an export file, make the
exported symbols undefined, and store them on the export_symbols
Sat Oct 28 00:10:03 1995 steve chamberlain <>
* emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
Don't hang if last option is unrecognised.
(gld_${EMULATION_NAME}_set_symbols): Insert created
symbols into ABS output section.
Fri Oct 27 18:03:17 1995 Niklas Hallqvist <>
* (ALL_EMULATIONS): Added support for the NetBSD
m68k4k arch.
(em68k4knbsd.c): New rule.
* configure.tgt: Added support for the NetBSD m68k4k arch.
*, ldint.texinfo,
st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
* emulparams/m68knbsd.h: Ditto.
(EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
* emulparams/ New file.
* scripttempl/ Expand EXECUTABLE_SYMBOLS if relocating.
Fri Oct 27 17:59:09 1995 Ian Lance Taylor <>
* emultempl/aix.em: Include ldctor.h.
(gld${EMULATION_NAME}_after_open): New static function.
(gld${EMULATION_NAME}_before_allocation): Call find_relocs.
(gld${EMULATION_NAME}_find_relocs): New static function.
(gld${EMULATION_NAME}_find_exp_assignment): New static function.
(ld_${EMULATION_NAME}_emulation): Use new after_open function.
* scripttempl/ Use CONSTRUCTORS in .data.
* ldctor.c (struct set_info): Move definition into ldctor.h.
(struct set_element): Likewise.
(sets): Make non-static.
(ldctor_add_set_entry): Add name parameter. Save it in the new
set element.
(ldctor_build_sets): Avoid being called twice. Pass set element
name to lang_add_reloc.
* ldctor.h (struct set_info): Move definition here from ldctor.c.
(struct set_element): Likewise. Add new field name.
(sets): Declare.
(ldctor_add_set_entry): Declare new name parameter.
* ldwrite.c (build_link_order): Don't insist that either name or
section be NULL in a lang_reloc_statement.
* ldmain.c (add_to_set): Pass NULL to ldctor_add_new_set_entry for
new name parameter.
(constructor_callback): Pass name to ldctor_add_new_set_entry for
new name parameter.
* ldmisc.c (demangle): Fix indentation. Remove a leading period.
Thu Oct 26 22:22:49 1995 Stan Shebs <>
* Add PowerMac target support, generate config.h.
* mac-ld.r: New file, Mac resources.
* mpw-make.sed: New file, edits into MPW syntax.
* Remove.
* mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
Thu Oct 26 14:11:26 1995 Ian Lance Taylor <>
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
-static as a synonym for -bnso.
* scripttempl/ Move special symbols inside sections.
Always start .data at 0.
Wed Oct 25 11:52:12 1995 Per Bothner <>
* (diststuff): Also make info.
(maintainer-clean realclean): Also delete *.info*.
Wed Oct 25 11:27:25 1995 Ian Lance Taylor <>
* emultempl/aix.em: Add support for various AIX linker options,
for AIX import and export files, and for AIX shared objects.
* scripttempl/ Add .pad. Put .ds just before the TOC.
* ldmain.c (main): Initialize new field link_info.static_link.
* ldmain.c (add_keepsyms_file): Add \n at end of einfo calls.
(constructor_callback): Likewise.
* ldmisc.c (vfinfo): Likewise.
* ldwrite.c (build_link_order): Likewise.
* ld.texinfo: The MRI ALIGN directive is supported.
Mon Oct 23 11:46:43 1995 James G. Smith <>
* emulparams/ Deleted.
* emulparams/ Deleted.
* emulparams/ Added.
* emulparams/ Added.
* configure.tgt, Updated the build to use the
new 8.3 unique names.
Thu Oct 19 17:41:46 1995 Ian Lance Taylor <>
* ldlang.c (entry_symbol): Make non-static.
* ldlang.h (entry_symbol): Declare.
* ldlex.l: Treat PROVIDE as a keyword in expression state.
Wed Oct 18 17:34:06 1995 steve chamberlain <>
* scripttempl/ (.bss): Move to be after .text
Tue Oct 17 12:22:05 1995 Ian Lance Taylor <>
* emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
Search trinary.cond rather than searching trinary.lhs twice. From
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Move
directory searching code into gld${EMULATION_NAME}_search_dir.
(gld${EMULATION_NAME}_search_dir): New static function, extracted
from gld${EMULATION_NAME}_find_so.
(global_needed, global_found): New static variables.
(gld${EMULATION_NAME}_after_open): New static function.
(gld${EMULATION_NAME}_search_needed): New static function.
(gld${EMULATION_NAME}_try_needed): New static function.
(gld${EMULATION_NAME}_check_needed): New static function.
(ld_${EMULATION_NAME}_emulation): Use new after_open function.
* ld.texinfo, ld.1: Mention -rpath-link on SunOS.
* (eelf32ppc.c): Depend upon elf32.em, not generic.em.
(eelf32lppc.c): Likewise.
* emulparams/ (TEMPLATE_NAME): Define as elf32.
Mon Oct 16 19:11:13 1995 Ian Lance Taylor <>
* emultempl/elf32.em: Struct bfd_elf_link_needed_list is now named
bfd_link_needed-list; make appropriate changes.
* configure.tgt (powerpc-*-aix*): New target; use aixppc.
(rs6000-*-aix*): New target; use aixrs6.
* emulparams/, emulparams/ New files.
* emultempl/aix.em: New file.
* scripttempl/ New file.
* (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
(eaixppc.c, eaixrs6.c): New targets.
Fri Oct 13 14:00:37 1995 Steve Chamberlain <>
* scripttempl/ (.reloc): Move to the end.
Tue Oct 10 17:53:22 1995 Ian Lance Taylor <>
* ldlang.c (lang_finish): Don't try to use an entry_symbol from a
section which was not linked into the final output.
Tue Oct 10 10:17:22 1995 steve chamberlain <>
* emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
fatal typos.
Tue Oct 10 01:01:51 1995 Ian Lance Taylor <>
* ld.h (args_type): Add rpath_link field.
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search for
required dependencies in rpath_link path. Only search
LD_LIBRARY_PATH when configured native.
* lexsup.c (parse_args): Recognize -rpath-link.
* ld.1, ld.texinfo: Document -rpath-link.
Sat Oct 7 17:07:17 1995 Ian Lance Taylor <>
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
bother searching for needed libraries unless doing a final link.
Fri Oct 6 16:26:16 1995 Ken Raeburn <>
Mon Sep 25 22:49:32 1995 Andreas Schwab <>
* ld.1: Fix formatting bugs.
Wed Oct 4 17:37:46 1995 Ian Lance Taylor <>
* ldexp.c (exp_get_abs_int): Return bfd_vma, not int.
* ldexp.h (exp_get_abs_int): Update declaration.
* ldlang.c (print_output_section_statement): Use fprintf_vma to
print return value of exp_get_abs_int.
Mon Oct 2 13:56:09 1995 Ian Lance Taylor <>
* emultempl/elf32.em (global_stat): New file static variable.
(gld${EMULATION_NAME}_try_needed): Call stat_needed to make sure
that the file has not already been included under another name.
(gld${EMULATION_NAME}_stat_needed): New static function.
Fri Sep 29 12:00:18 1995 Doug Evans <>
* scripttempl/ Start .text at 0x8000.
Start .data at 0x40000.
Fri Sep 29 11:09:46 1995 Ian Lance Taylor <>
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): If
command_line.rpath is set, use it, rather than the -L options, to
build the rules section.
* ld.texinfo: Document this use of -rpath.
* lexsup.c (parse_args): Don't set link_info.shared for -assert
pure-text. Pass true, not 1, to lang_add_entry.
* emultempl/sunos.em (find_assign): New static variable.
(found_assign): New static variable.
(gld${EMULATION_NAME}_before_allocation): Rename local h to hdyn.
If not a relocateable link, and no start symbol was specified on
the command line, and there are any undefined symbols, set
link_info.shared. If link_info.shared is set, set the address of
the .text section to 0x20.
(gld${EMULATION_NAME}_find_assignment): Rename from
gld${EMULATION_NAME}_find_statement_assignment. If find_assign is
set, then just set found_assign based on whether an assignment is
found to find_assign.
(gld${EMULATION_NAME}_get_script): Don't use a special script when
producing a shared library.
* emulparams/ (GENERATE_SHLIB_SCRIPT): Remove.
* scripttempl/ Remove CREATE_SHLIB tests.
* ldlang.c (entry_from_cmdline): New global variable.
(lang_add_entry): Change cmdline parameter from int to boolean.
Use global entry_from_cmdline rather than function static
* ldlang.h (entry_from_cmdline): Declare.
(lang_add_entry): Change declaration of second parameter from int
to boolean.
* ldgram.y: Pass false, not 0, to lang_add_entry.
Thu Sep 28 12:34:13 1995 Ian Lance Taylor <>
* ld.h (parsing_defsym): Declare.
* ldlex.h (lex_string): Declare.
* ldlex.l (lex_string): Define.
* lexsup.c (parsing_defsym): Define.
(parse_args): In OPTION_DEFSYM case, set lex_string before calling
lex_redirect, and clear it after calling yyparse. Set
parsing_defsym around call to yyparse.
* ldmain.c (main): Set lex_string before calling lex_redirect, and
clear it after calling yyparse.
* ldmisc.c (vfinfo): For %S, handle --defsym arguments and built
in linker scripts correctly.
* scripttempl/ Add .ctors/.dtors handling like other
COFF targets, allowing for the leading underscore used on SPARC
* lexsup.c (parse_args): Handle -assert.
* emulparams/ (GENERATE_SHLIB_SCRIPT): Define.
* emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
shared library script when appropriate.
* scripttempl/ If CREATE_SHLIB is set, start the .text
section at SIZEOF_HEADERS.
Thu Sep 28 01:40:37 1995 Doug Evans <>
* (earmcoff.c): Build.
* configure.tgt (arm-*-coff): New target
* emulparms/ New file.
* scripttempl/ New file.
Tue Sep 26 10:59:32 1995 Ian Lance Taylor <>
* scripttempl/ Remove .data2; no longer needed.
Fri Sep 22 18:09:02 1995 Ian Lance Taylor <>
* ldfile.c (ldfile_set_output_arch): Make arch const.
Thu Sep 21 17:55:24 1995 Michael Meissner <>
* scripttempl/ Correctly locate __bss_start at the
beginning of the .bss area, not at the end of data. Add
__sbss_{start,end} symbols.
Wed Sep 20 12:29:36 1995 Ian Lance Taylor <>
* (CC_FOR_TARGET): Quote $(program_transform_name).
(CXX_FOR_TARGET, install): Likewise.
Mon Sep 18 14:53:22 1995 Ian Lance Taylor <>
Based on patches by Alan Modra <>:
* (CC_FOR_TARGET): Remove brokensed stuff.
(CXX_FOR_TARGET): Likewise.
(install): Likewise.
(GENERATED_HFILES): Remove config.h.
(.dep): Depend upon config.h.
Mon Sep 18 14:39:38 1995 Arne H. Juul <>
* configure.tgt (mips*-dec-netbsd*): New target.
Fri Sep 15 20:01:52 1995 Ken Raeburn <>
* (m88*-*-dgux*): Fix another shell syntax error.
Fri Sep 15 23:28:05 1995 Andrew Cagney <>
* (i[345]86-*-bsd*): Fix shell syntax error.
Thu Sep 12 12:50:49 1995 steve chamberlain <>
* scripttempl/ Allow both spellings of .ctors/.dtors.
Start .text section on the right boundary. Always align
Tue Sep 12 12:24:17 1995 Ian Lance Taylor <>
* (maintainer-clean): New target.
* ldmain.c (struct warning_callback_info): Define.
(warning_callback): Add new parameter symbol. Call
warning_find_reloc to try to find the section and VMA.
(warning_find_reloc): New static function.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass NULL as symbol parameter to warning callback.
* ld.texinfo: Clarify -L option.
* ldlang.c (lang_one_common): Add cast to avoid warning.
(topower): Likewise. Also, reindent.
* ldwrite.c (clone_section): Change i to unsigned int.
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Add
cast to avoid warning.
Fri Sep 8 16:32:43 1995 Ian Lance Taylor <>
* (config.status): Depend upon configure.tgt.
* ldemul.h (ldemul_set_symbols): Declare.
(ldemul_parse_args): Declare.
* ldemul.c (ldemul_parse_args): Fix indentation.
* configure, Rebuild.
* emultempl/sunos.em: Use autoconf recommend mechanism to define
DIR and struct dirent.
* configure.tgt (mips*-*-bsd*): New case.
* (i[345]86-sequent-ptx* | i[345]86-sequent-sysv*)
New case.
* configure.tgt (i[345]86-*-ptx*): New case.
Thu Sep 7 10:48:26 1995 Ian Lance Taylor <>
* Rename from
Check for when creating stamp-h.
* configure: Rebuild.
* (stamp-h): Depend upon rather than Set CONFIG_HEADERS to when
calling config.status.
* (distclean): Remove config.h and stamp-h.
* (sparc-*-sunos64*): Remove.
* ldlang.c (lang_map): Check BFD64, not HOST_64_BIT.
* ldexp.c (exp_fold_tree): Don't warn about moving the location
counter backward in the absolute section.
Wed Sep 6 14:42:11 1995 Ian Lance Taylor <>
* Rewrite to use autoconf.
* New file.
* configure.tgt: New file.
* aclocal.m4: New file.
* configure: New file, built by autoconf.
* acconfig.h: New file.
* New file, built by autoheader.
* sysdep.h: New file.
* ld.h: Incorporate old contents of config.h.
* config.h: Remove.
* Various changes for new configure script. Also:
(CC_FOR_BUILD): Remove.
(ldmain.o): Don't bother to ensure that EMUL is non-empty.
(dep.sed): Use @SRCDIR@, not @srcdir@.
* dep-in.sed: Use @SRCDIR@, not @srcdir@.
* Create ldscripts if it does not exist.
* ldemul.c, lexsup.c, mpw-emipsidt.c: Don't include "config.h".
* mpw-esh.c, emultempl/*.em: Likewise.
* ldmain.c: Likewise. Include <ctype.h>. Don't try to set
* config/*.mt, config/*.mh: Remove.
Tue Sep 5 14:55:24 1995 Ken Raeburn <>
* Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
ns32k-pc532-lites* like ns32k-pc532-netbsd*. From Ian Dall.
Fri Sep 1 22:29:52 1995 Doug Evans <>
* scripttempl/ Fix typo in spelling of .ctors/.dtors.
Fri Sep 1 13:13:29 1995 Ian Lance Taylor <>
* ldmain.c (warning_callback): Add abfd, section, and address
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Change call to warning accordingly.
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): If not
relocateable and not shared, put .gnu.warning.SYMBOL sections into
the .text section.
Fri Sep 1 08:35:16 1995 James G. Smith <>
* Added mips*vr4300-idt-elf* and
mips*vr4300el-idt-elf* targets.
* Added eelf32vr4300* targets.
* emulparams/{,}: Added.
* config/{,}: Added.
Fri Sep 1 10:51:45 1995 Ian Lance Taylor <>
* scripttempl/ Fix to be reasonable. From Brendan Kehoe
Thu Aug 31 16:37:07 1995 steve chamberlain <>
* ldemul.c (ldemul_parse_args): New.
* ldemul.h (ld_emulation_xfer_struct): Add parse_args.
* lexsup.c (all pe stuff): Moved into pe.em
(parse_args): Call emulation arg parser.
* emultempl/pe.em (parse_args): handle PE specfic args.
Thu Aug 31 17:01:37 1995 Ian Lance Taylor <>
* ldlang.c (lang_memory_region_lookup): Don't use the first region
as the default region. Create a new region instead.
Tue Aug 29 14:21:41 1995 steve chamberlain <>
* ldemul.c (ldemul_set_symbols): New function.
* ldemul.h (ld_emulation_xfer_struct): Add set_symbols.
* ldmain.c (main): Add call to ldemul_set_symbols.
* lexsup.c (set_pe_value): New args.
(set_pe_name): New.
(parse_args): Cope with new set_pe_value args.
* emultempl/pe.em (set_symbols): New function.
(ld_emulation_xfer_struct): Add set_symbols.
* scripttempl/ Use new symbols.
Thu Aug 24 18:12:18 1995 Ian Lance Taylor (
* lexsup.c (parse_args): Don't call set_default_dirlist for -O.
For -Y, ignore a leading `P,', and only call set_default_dirlist
after processing all the other arguments.
Tue Aug 22 07:36:58 1995 steve chamberlain <>
* scripttempl/ Keep .edata, don't base stabs at 0.
* emulparams/ Run PE script.
Mon Aug 21 18:30:42 1995 steve chamberlain <>
* ldmain.c (main): Remove PE stuff.
* lexsup.c (options): Load more PE options.
(set_pe_value): New function.
Thu Aug 17 13:35:49 1995 steve chamberlain <>
* emultempl/{,}: Deleted.
* emultempl/ New file performs generic PE support and sorts
archive members.
* emulparams/{,}: Use new file.
* scripttempl/{,}: Deleted
* scripttempl/ New.
* Use new files.
Thu Aug 17 14:46:34 1995 Doug Evans <>
* scripttempl/ (.rdata): All data must go in data segment.
(.strings,.ctors,.dtors): Likewise.
Wed Aug 16 11:38:59 1995 steve chamberlain <>
* scripttempl/ Always start code at 0x401000, even
if -r.
* ldwrite.c (strdup): New extern declaration.
* ldgram.y (atype): New rule to clarify type parsing.
* ldlang.c (init_os): Remove commented out code.
(lang_size_sections): Set SEC_ALLOC and SEC_LOAD bits
unless told not to by the link script.
Wed Aug 16 11:45:11 1995 Ian Lance Taylor <>
* ldlang.c (lang_set_startof): New static function.
(lang_process): Call it.
* ldgram.y: Tweak casesymlist to avoid bison errors.
* lexsup.c (parse_args): Accept -h as a synonym for --soname, for
Solaris compatibility.
Tue Aug 15 17:31:16 1995 Ian Lance Taylor <>
* ldgram.y (YYDEBUG): If not defined, define as 1.
(CASE, EXTERN, START): New tokens.
(mri_script_command): Handle CASE, EXTERN, INCLUDE, START.
(casesymlist): New nonterminal.
(extern_name_list): New nonterminal.
* ldlex.l: Accept lower case trailing base specifiers. Don't
ignore the first digit when the base is a suffix. Accept many
EXPRESSION state tokens in MRI state. Support MRI continuation
lines and MRI semicolon comments. Accept all MRI keywords in
lower case. Add CASE, EXTERN, and START MRI keywords.
Tue Aug 8 19:14:58 1995 Ken Raeburn <>
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
instead of alloca.
Tue Aug 8 15:24:05 1995 J.T. Conklin <>
$r/../gcc/xgcc unless it is present.
Thu Aug 3 11:56:22 1995 Ian Lance Taylor <>
* scripttempl/ Only put .ctors and .dtors in .text
* scripttempl/ Likewise.
* scripttempl/ Likewise.
* scripttempl/ Likewise.
* scripttempl/ Likewise.
Fri Jul 28 12:02:23 1995 steve chamberlain <>
* emulparams/{,}: Fix typo.
Thu Jul 27 21:06:21 1995 Ken Raeburn <>
* (i[345]86-*-linuxoldld): Treat like linuxaout*.
Thu Jul 27 15:26:28 1995 steve chamberlain <>
* scripttempl/ Cope with constructors.
* scripttempl/ Deleted.
* scripttempl/ Resurrected as this, but
can handle z8001 and z8002 formats.
* emulparams/ Deleted.
* emulparams/{,}: New files.
* config/ Deleted
* config/ New, generates both emulations.
Tue Jul 25 14:53:02 1995 Ian Lance Taylor <>
* ldmisc.c (vfinfo): In %C and %D case, always print the BFD using
%B, in case it is in an archive.
Mon Jul 24 15:23:39 1995 Ian Lance Taylor <>
* ldlang.c (lang_process): Call reset_memory_regions for each
relaxation pass.
Fri Jul 21 22:49:44 1995 Michael Meissner <>
* scripttempl/ Add support for .sdata, .sbss, and
Thu Jul 20 16:26:55 1995 Ken Raeburn <>
* ldmain.c (constructor_callback): Allocate set_name in stack
frame, rather than always calling alloca with a fixed size.
Wed Jul 19 16:21:43 1995 Doug Evans <>
* emulparams/ (OUTPUT_FORMAT): Change to pei-arm-little.
Mon Jul 17 13:57:00 1995 Ian Lance Taylor <>
* ldwrite.c (clone_section): Set the alignment of the clone
section to that of the section being cloned.
* ldwrite.c (split_sections): Don't split the first input section
into a new output section.
Sat Jul 15 00:26:35 1995 Michael Meissner <>
* emulparams/ (TEMPLATE_NAME): Define as elf32.
Fri Jul 14 12:11:46 1995 Ian Lance Taylor <>
* emultempl/mipsecoff.em (check_sections): Use %P, not %F.
* ldver.c (help): Update list of options to match currently
supported list.
Thu Jul 13 13:52:10 1995 Ian Lance Taylor <>
* emultempl/lnk960.em (ld_lnk960_emulation): Initialize
after_open field.
* ldexp.c (exp_intop): Don't cast stat_alloc arg to bfd_size_type;
it takes a size_t anyhow.
(exp_binop): Likewise.
(exp_trinop): Likewise.
(exp_unop): Likewise.
(exp_nameop): Likewise.
(exp_assop): Likewise.
* ldlang.c (lang_memory_region_lookup): Likewise.
(init_os): Likewise.
(ldlang_add_undef): Likewise.
(insert_pad): Likewise.
* ldfile.c (ldfile_add_arch): Don't cast xmalloc arg to
* (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
Wed Jul 12 11:32:22 1995 Ian Lance Taylor <>
* ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
(ld_emulation_xfer_type): Add search parameter to
open_dynamic_archive entry point.
* ldemul.c (ldemul_open_dynamic_archive): Add search parameter.
* ldfile.c (ldfile_try_open_bfd): Rename from try_open_bfd, and
make non-static. Change all callers to use new name.
(ldfile_open_file_search): Make static. If entry is dynamic, call
(ldfile_open_file): Don't call ldemul_open_dynamic_archive.
* ldfile.h (ldfile_open_file_search): Don't declare.
(ldfile_try_open_bfd): Declare.
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
Accept search parameter. Don't search for a library, just look in
a single place.
* emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
Tue Jul 11 16:44:21 1995 Ian Lance Taylor <>
* ldmain.c (set_scripts_dir): Don't base script directory on
current directory.
Tue Jul 11 12:29:02 1995 Rick Sladkey <>
* ldmisc.c (vfinfo): Don't print the line number if it isn't
Mon Jul 10 13:38:28 1995 Ian Lance Taylor <>
* ld.h (ld_config_type): Add field warn_constructors.
* ldmain.c (add_to_set): Warn if config.warn_constructors.
(constructor_callback): Likewise.
* lexsup.c (parse_args): Handle -warn-constructors.
* ld.texinfo, ld.1: Document -warn-constructors.
* emultempl/elf32.em (gld${EMULATION_NAME}_check_needed): Don't
get confused by directory names if we searched for the file.
Based on patches from H.J. Lu <>:
* ldlang.h (lang_input_statement_type): Add new field dynamic.
* ldlang.c (new_afile): Set dynamic from config.dynamic_link.
* ldfile.c: Include bfdlink.h.
(ldfile_open_file): Check dynamic field of entry, not global
dynamic_link field. Don't do a dynamic search when doing a
relocateable link.
* ldmain.c (main): Don't warn about dynamic_link for a
relocateable link.
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Skip file if
dynamic is false.
(gld${EMULATION_NAME}_create_output_section_statements): Always
loop over input files.
* Rebuild dependencies.
* ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
Mon Jul 10 13:29:43 1995 Eric Youngdale <>
* ldmain.c (main): Set link_info.symbolic to false.
* lexsup.c (parse_args): Handle -Bsymbolic.
Wed Jul 5 00:12:11 1995 Fred Fish (
* ldmain.c (HAVE_SBRK): Define for everything except
specific systems that are known to not support sbrk.
(main): Use HAVE_SBRK to decide whether or not to use sbrk.
Tue Jul 4 12:55:48 1995 Ian Lance Taylor <>
* emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment):
Handle etree_provide.
* emultempl/elf32.em (global_needed): New static variable.
(global_found): Likewise.
(gld${EMULATION_NAME}_after_open): New static function.
(gld${EMULATION_NAME}_search_needed): Likewise.
(gld${EMULATION_NAME}_try_needed): Likewise.
(gld${EMULATION_NAME}_check_needed): Likewise.
(ld_${EMULATION_NAME}_emulation): Replace after_open_default with
Mon Jul 3 14:26:37 1995 Steve Chamberlain <>
* (i386-*-win32): New target.
Mon Jul 3 14:39:22 1995 Ian Lance Taylor <>
* lexsup.c (parse_args): Let -G either set the small data size or
be equivalent to --shared, depending on the next argument. Accept
and ignore -z for Solaris compatibility.
Sun Jul 2 17:52:34 1995 Ian Lance Taylor <>
* lexsup.c (parse_args): Cast fopen result to PTR before storing
it in link_info.base_file. Fix indentation.
Wed Jun 28 17:11:25 1995 Steve Chamberlain <>
* ldmain.c (main): Always initialize PE info in link_info.
* lexsup.c (OPTION_BASE_FILE): New option.
(parse_args): Handle new option.
* emulparams/ Output pei.
* emultempl/i386pe.em: Add newline to end.
* scripttempl/ Change output and quote the $s.
* scripttempl/ Change output and quote the $s.
Thu Jun 22 19:55:41 1995 Ken Raeburn <>
Sun May 7 11:53:41 MDT 1995 Bryan Ford <>
* (i386-*-msdos*, i386-*-moss*): New targets.
* (ALL_EMULATIONS): Added i386msdos.o.
(i386msdos.o): New target.
* config/ Created.
* emulparams/ Created.
* scripttempl/ Created.
Thu Jun 22 15:06:35 1995 Michael Meissner <>
* scripttempl/ (.fixup): Add support for a .fixup section
that contains pointers to be relocated.
Tue Jun 20 17:47:20 1995 Stan Shebs <>
* mpw-esh.c: New file, modified for MPW from esh.c.
* scripttempl/ Reformatted to simplify MPWification,
use *() to concat stab sections instead of [].
Thu Jun 15 08:48:16 1995 Steve Chamberlain <>
* scripttempl/ Add constructor support.
Tue Jun 13 09:11:20 1995 Steve Chamberlain <>
* ldlang.c (lang_size_sections): Any section with a DATA
statement has contents.
Sun Jun 11 15:20:46 1995 Ken Raeburn <>
* emulparams/ (NOP): Define.
(DYNAMIC_LINK): Don't define.
(TEXT_START_ADDR): Set to 0x80000000; the extra 0x100 for headers
will come from the linker script.
Thu Jun 8 14:17:33 1995 Steve Chamberlain <>
* emulparams/, scripttempl/ Add end and stack.
Mon Jun 5 02:16:24 1995 Ken Raeburn <>
* (i[345]86-*-gnu*): Use GNU elf config.
Thu May 25 11:49:28 1995 Michael Meissner <>
From Andrew Cagney <>
* Fixup more gotchas from renaming elf32ppcle to
Wed May 24 11:23:21 1995 Steve Chamberlain <>
Add support for ARM-PE.
* (ALL_EMULATIONS): Add armpe.o
* Recognize armpe.
* config/ New file.
* emulparams/ New file.
* scripttempl/ New file.
Mon May 22 15:19:26 1995 Doug Evans <>
* (h8300h-*-hms): Deleted
* config/ Deleted.
Thu May 18 04:26:10 1995 Ken Raeburn <>
Wed May 10 14:28:16 1995 Richard Earnshaw (
From David Taylor (
* (ALL_EMULATIONS): Add earmout[lb].o
* Recognize arm{,e[lb]-*-aout.
* config/arm[lb] New files.
* emulparams/armaout[lb].sh: New files.
* scripttempl/ New file.
Tue May 16 18:27:11 1995 Michael Meissner <>
* config/ (EMUL): Use elf32lppc, not elf32ppcle, to
be unique in 8 characters for DOS.
* emulparams/ New file, renamed from
* emulparams/ Deleted.
Fri May 12 11:03:55 1995 Steve Chamberlain <>
Tom Griest <>
Initial support for PE executables (eg NT, win32)
* (, ei386pe): Add support.
* ldmain.c (main): Initialize PE argument info.
* ldwrite.c (print_file_stuff): Don't print out .drectve
and .debug section info.
* lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
Handle new arguments.
* config/, emultempl/i386pe.em, scripttempl/
New files
Wed May 10 18:37:59 1995 Stu Grossman (
* scripttempl/ Remove .PARISC.unwind section from text
segment. This allows ld -r to preserve unwind sections.
Tue May 9 17:19:57 1995 Michael Meissner <>
* Add little endian PowerPC support.
* (ALL_EMULATIONS): Add eelf32ppcle.o.
(eelf32ppcle.c): Support for little endian PowerPC.
* config/ New file for little endian PowerPC.
* emulparams/ Ditto.
Wed May 3 12:56:32 1995 Ken Raeburn <>
* ldlang.c (print_output_section_statement): Check
subsection_alignment, instead of checking section_alignment twice.
Noticed by Alan Modra <>.
Tue May 2 16:36:07 1995 Jeff Law (
* (hppa*-*-lites*): Handle like hppa*-*-*elf*.
Mon Apr 24 19:21:02 1995 Michael Meissner <>
* ldwrite.c (ldwrite): Before doing anything, reset the error
code. If bfd_final_link returns an error, but the error code is
unset, don't issue an extra message. Assume a correct error
message was already set.
Fri Apr 14 16:31:24 1995 Ken Raeburn <>
* (ALL_EMULATIONS): Added em68kelf.o.
(em68kelf.o): New target.
* config/, emulparams/ New files.
* Use them for m68*-*-elf.
Tue Apr 11 12:02:03 1995 Stan Shebs <>
Merge in support for Mac MPW as a host.
(Old change descriptions retained for informational value.)
* (i386-unknown-aout): Change to i386-unknown-go32.
(i386-unknown-coff): Remove.
(sh-hitachi-hms): New target.
(emulation_ofiles): Set correctly for each target.
(version, TDEFINES): Add to makefile fragment.
* (BISON): Use byacc instead of bison.
(em_*.c): Replace with e*.c everywhere.
(ldgram.h): Separate action from ldgram.c generation.
(LD_PROG): Depend on Version.r.
(Version.r): generate from version info.
* mpw-emipsidt.c: New file, modified for MPW from emipsidt.c.
* (m68k-apple-macos, ppc-apple-macos,
i386-unknown-aout, i386-unknown-coff): New targets.
(m68k-aout, m68k-coff): Remove targets.
(mk.tmp): Add definition of EMUL.
* (emulname): Set based on target.
(ldemul-list.h): Construct.
* (install-only): New target.
(install): Depend on install-only.
* (bindir): Fix pathname.
(install): Move here from
* New file, MPW configuration fragment.
* New file, MPW makefile fragment.
(This file is semi-automatically generated from
* ldfile.c (slash): If MPW, set to `:'.
* ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to
prevent redefinition errors.
Tue Apr 4 17:55:18 1995 Steve Chamberlain <>
* ldwrite.c (clone_section): Align clone sections on even
Thu Mar 30 14:32:26 1995 H.J. Lu (
* Change linux to default to elf. Using
i[345]86-*-linuxaout will build a linker which defaults to a.out.
* config/ Rename from old config/
* config/ Rename from old config/
* config/ Remove.
Thu Mar 30 13:09:46 1995 Ian Lance Taylor <>
* ldmain.c (main): If opening the map file fails, call
bfd_set_error before calling einfo.
* ld.texinfo, ld.1: Document the -no-keep-memory option.
Mon Mar 27 11:10:08 1995 Ian Lance Taylor <>
* ldmain.c (main): Revert patch of March 10, since the SVR4 linker
does mark shared libraries as executable.
Tue Mar 21 15:15:38 1995 Ian Lance Taylor <>
* ldlang.c (lang_common): Change power to int. Pass larger values
before smaller values.
(lang_one_common): Treat info as int *. Don't bother to check for
last value, since it is now zero.
Sat Mar 18 01:49:14 1995 Ian Lance Taylor <>
* ldlang.c (load_symbols): An empty archive is OK.
Fri Mar 17 16:15:31 1995 Stan Shebs <>
* ldmain.c (progress.h): Include.
Thu Mar 16 17:17:33 1995 Michael Meissner <>
* scripttempl/ Move _GOT2_END_ after the .ctors and
.dtors sections, so that these pointers get relocated also.
Define the symbols __{C,D}TOR_{LIST,END}__ to mark the beginning
and end of the constructors/destructors.
Thu Mar 16 13:59:14 1995 Roland McGrath <>
* ldlang.c (load_symbols): If whole_archive is true and ENTRY
describes an archive, call bfd_link_add_symbols on each member.
* ldmain.c (whole_archive): New variable.
(main): Initialize it to false.
* ldmain.h: Declare whole_archive.
* lexsup.c (parse_args): Grok --whole-archive switch.
* ld.texinfo, ld.1: Document --whole-archive.
Thu Mar 16 11:38:48 1995 Ian Lance Taylor <>
* (EMULATION_NAME): Set LIB_PATH to empty when not
using the default emulation.
* config/ (HOSTING_EMU): Use -m rather than trying to set
* config/ (HOSTING_EMU): Likewise.
Tue Mar 14 12:28:03 1995 Ian Lance Taylor <>
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
for -lc.N. From H.J. Lu <>.
Fri Mar 10 14:43:48 1995 Ian Lance Taylor <>
* ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
* ldlex.l: Return -lFILENAME as the token LNAME.
* ldgram.y: Add token LNAME.
(input_list): Treat LNAME like NAME, but pass it to
lang_add_input_file as lang_input_file_is_l_enum.
* ld.texinfo: Document using -lFILENAME in INPUT.
Thu Mar 9 12:21:51 1995 Michael Meissner <>
* ldlang.c (lang_check): If the architectures are compatible call
bfd_merge_private_bfd_data to let the backend do additional
Tue Mar 7 00:53:08 1995 Ian Lance Taylor <>
* ldemul.c (ldemul_choose_mode): If emulation not recognized, list
all supported emulations.
Mon Mar 6 14:03:50 1995 Ian Lance Taylor <>
* ldemul.c (ldemul_list_emulations): New function.
* ldemul.h (ldemul_list_emulations): Declare.
* ldver.c (help): List supported targets and emulations.
Fri Mar 3 15:40:36 1995 Doug Evans <>
* scripttempl/ (.debug): Relocate to address 0.
(.debug_srcinfo, .debug_aranges, .debug_pubnames,
.debug_sfnames, .line): Likewise.
Fri Mar 3 17:07:14 1995 Ian Lance Taylor <>
* emultempl/elf32.em (hold_rel): New static variable.
(gld${EMULATION_NAME}_place_orphan): Place readonly sections with
contents whose names begin with ".rel" after hold_rel. Remove the
assertion which checked for unplaced .rel sections. Don't try to
sort the section into place if place->bfd_section is NULL.
(gld${EMULATION_NAME}_place_section): Set hold_rel to the first
section beginning with ".rel".
Thu Mar 2 14:34:43 1995 Ian Lance Taylor <>
Doc note from (Pierre Willard):
* ld.texinfo: -X and -x work even if -s or -S are not specified.
* ld.1: Similar change.
Wed Mar 1 13:51:16 1995 Ian Lance Taylor <>
* emulparams/ (COFF_CTORS): Define.
* scripttempl/ Use COFF_CTORS if CONSTRUCTING.
Tue Feb 28 12:42:56 1995 Ian Lance Taylor <>
* (i[345]86-*-linuxelf*): New target. Use i386-lelf.
(i[345]86-*-gnuelf*): New target. Use i386-gelf.
* config/ New file.
* config/ New file.
Tue Feb 28 10:27:54 1995 Rob Savoye <>
* Match on mips-ecoff, and default to the IDT
Fri Feb 17 13:06:47 1995 Michael Meissner <>
* scripttempl/ Add support for .got1 and .got2 sections.
Offset _GLOBAL_OFFSET_TABLE_ 32768 from the start of the GOT area
to double the size of the table.
Thu Feb 9 18:29:43 1995 Ken Raeburn <>
* (distclean): Do recursive deletion, since ldscripts
is a directory.
Thu Feb 9 11:38:22 1995 Ian Lance Taylor <>
* ldmain.c (main): If trace_file_tries is true, and we are using
an internal linker script, print out the script.
* ldfile.c (try_open): Reindent function. Make the messages about
opening script files more informative.
* lexsup.c (parse_args): For -V, call ldversion with 1, not 0.
* ld.texinfo, ld.1: Update accordingly.
Wed Feb 8 17:34:45 1995 Ian Lance Taylor <>
* ldlang.c (lang_one_common): Adjust references to common symbol
information for new structure.
Mon Feb 6 12:17:24 1995 Ian Lance Taylor <>
* ldmain.c (undefined_symbol): Handle section being NULL.
* ldctor.c (ldctor_build_sets): Handle bfd_link_hash_defweak.
* ldexp.c (fold_name): Likewise.
* ldlang.c (print_one_symbol): Likewise.
(lang_finish): Likewise.
* ldmain.c (multiple_common): Likewise.
* ldwrite.c (print_symbol): Likewise. Also, bfd_link_hash_weak
renamed to bfd_link_hash_undefweak.
* scripttempl/ Set address of .data section correctly
when -n or -N is used. Patch from Chris G Demetriou
* scripttempl/ Similar change.
Tue Jan 31 16:20:52 1995 Doug Evans <>
* ldlang.c (lang_size_sections): Clarify error message when user
specified start addr conflicts with region. Fix resetting of
region pointer.
Tue Jan 31 12:37:09 1995 Ian Lance Taylor <>
* ldexp.c (fold_name): In case NAME, permit an absolute symbol
in lang_allocating_phase_enum.
Mon Jan 30 11:33:25 1995 Ian Lance Taylor <>
* (distclean): Depend upon clean. Don't bother to
remove files which will be removed by clean. From patch by
alan@SPRI.Levels.UniSA.Edu.Au (Alan Modra).
Fri Jan 27 16:27:34 1995 Ian Lance Taylor <>
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): For
a MIPS target, clobber the size of all but the first input
.reginfo section to be 0, so that lang_size_sections sets the
correct size for the output .reginfo section.
Thu Jan 26 19:53:37 1995 Ian Lance Taylor <>
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Remove unused variable is.
Thu Jan 26 12:33:05 1995 Michael Meissner <>
* Add support for powerpc-*-eabi.
* scripttempl/ New file for PowerPC embedded ABI
* emulparams/ (SCRIPT_NAME): Use instead of, which defines some new symbols PowerPC elf needs.
Tue Jan 24 10:32:15 1995 Ian Lance Taylor <>
* ldctor.c (ldctor_add_set_entry): Don't dump core if a
constructor entry is in the absolute section.
Mon Jan 23 13:58:13 1995 Ian Lance Taylor <>
* (i[345]86-*-gnu*): Set ld_target to i386-gnu.
* config/ New file. Include ELF support.
Thu Jan 19 16:22:11 1995 Ian Lance Taylor <>
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): If
there are any input sections named .gnu.warning, treat them as
containing a warning message to be printed by the linker, and
clobber the size so that the message is not copied into the output
* scripttempl/ Put .gnu.warning sections into the .text
Sun Jan 15 16:45:00 1995 Steve Chamberlain <sac@splat>
* (w65-*-*): New target.
* Update.
* scripttempl/ New.
* config/ New.
Thu Jan 12 01:32:25 1995 Ian Lance Taylor <>
* ldlang.c (lang_place_orphans): Don't ignore files with
just_syms_flag set. Instead, put all their sections in
bfd_abs_section_ptr, using the section VMA as the output_offset.
Wed Jan 11 22:59:09 1995 Ken Raeburn <>
* ldctor.c (ldctor_build_sets): Don't use `const' with typedef
name `reloc_howto_type', since it's now defined to be const.
* ldlang.c (lang_add_reloc): Ditto.
* ldlang.h (lang_reloc_statement_type, lang_add_reloc): Ditto.
Wed Jan 11 11:24:45 1995 Ian Lance Taylor <>
* ldexp.c (fold_binary): Adding or subtracting an absolute value
to a relative value does not require forcing the relative value to
be absolute. Also, reindent function.
Wed Dec 28 22:05:52 1994 Steve Chamberlain (
* ldwrite.c (clone_section): Create a symbol with the
same name as the section.
Mon Dec 19 14:02:13 1994 Steve Chamberlain (
* ld.h (split_by_reloc, split_by_file): New flags.
* ldwrite.c (clone_section, split_sections): New functions.
* lexsup.c (parse_args): Understand new split options.
Fri Dec 9 17:22:55 1994 Ian Lance Taylor <>
* scripttempl/ Move .ctors and .dtors from .text segment to
.data segment. They must be writable when creating a shared
library. From H.J. Lu <>.
Fri Dec 2 14:09:00 1994 Ian Lance Taylor <>
* emultempl/miposecoff.em: New file.
* emulparams/ (TEMPLATE_NAME): Set to mipsecoff.
* emulparams/ (TEMPLATE_NAME): Likewise.
* scripttempl/ Put .rel.sdata sections in .text, and
provide __runtime_reloc_start and __runtime_reloc_stop if they are
used. Align _fdata to a 16 byte boundary.
* (emipsidt.c): Depend upon mipsecoff.em rather than
(emipsidtl.c): Likewise.
(check): Pass CC_FOR_HOST and CFLAGS_FOR_HOST to runtest.
* ld.h (args_type): Add new field embedded_relocs.
* ldemul.h (ldemul_after_open, after_open_default): Declare.
(ld_emulation_xfer_struct): Add new field after_open.
* ldemul.c (ldemul_after_open): New function.
(after_open_default): New function.
* ldlang.c (lang_process): Call ldemul_after_open.
* lexsup.c (parse_args): Handle --embedded-relocs.
* emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Initialize
new after_open field to after_open_default.
* emultempl/generic.em, emultempl/gld960.em: Likewise.
* emultempl/gld960c.em, emultempl/hppaelf.em: Likewise.
* emultempl/linux.em, emultempl/m88kbcs.em: Likewise.
* emultempl/sunos.em, emultempl/vanilla.em: Likewise.
* ld.texinfo, ld.1: Mention -embedded-relocs.
Wed Nov 23 22:04:47 1994 Steve Chamberlain (
* Add eshl.o.
* config/ Add shl emulation.
Tue Nov 22 11:55:37 1994 Ian Lance Taylor <>
* scripttempl/ Fill .text section with NOPS. From Eric
Youngdale <>.
Thu Nov 17 14:39:48 1994 Ian Lance Taylor <>
Patches from (Martin Pirker).
* config/ New file; set HOSTING_CRT0.
* Don't put ${libdir} in LIB_PATH if it is
/usr/lib, since that is already in LIB_PATH.
Wed Nov 16 10:03:03 1994 Jeff Law (
* scripttempl/ (.text): Handle a use rdefined text start
(.data, .bss): If "-N", then place the data/bss just after the end
of the .text section rather than at the default 0x40000000.
* scripttempl/ (.text): Place unwind descriptors in the
text segment.
Sat Nov 12 15:55:56 1994 Ian Lance Taylor (
Patches from Eric Youngdale <>:
* ldlang.c (lang_finish): Don't warn if entry symbol not found
when generating a shared library.
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Warn if
attempting to place an orphaned relocation section when generating
a dynamically linked object.
* scripttempl/ Add ENTRY(${ENTRY}), and default ${ENTRY} to
Fri Nov 11 14:27:23 1994 Ian Lance Taylor <>
* ld.h (args_type): Add field export_dynamic.
* lexsup.c (parse_args): Recognize --export-dynamic.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass export_dynamic argument to bfd_elf32_size_dynamic_sections.
Wed Nov 9 12:47:11 1994 Ian Lance Taylor <>
* ldlang.c (lang_one_common): Set SEC_ALLOC in any section where
we allocate common symbols.
Tue Nov 8 17:50:43 1994 Eric Youngdale (
* scripttempl/ Add .rel.init, .rela.init, .rel.fini, and
.rela.fini to the list of .rel* sections.
Tue Nov 8 17:47:45 1994 Ian Lance Taylor <>
* ldlang.c (load_symbols): Add new argument place. Only accept
linker scripts if place is not NULL. Put commands found in an
assumed linker script into place.
(lookup_name): Pass NULL as place argument to load_symbols.
(open_input_bfds): In lang_input_statement_enum case, pass a place
argument to load_symbols, and store any new statements after the
current one.
Mon Nov 7 15:53:02 1994 Ken Raeburn <>
* ldver.c (ldversion): Bump to 2.5.3.
Fri Nov 4 15:11:26 1994 Ken Raeburn <>
* (e*nbsd.c): Fix typo in dependencies.
Thu Nov 3 19:35:44 1994 Ken Raeburn <>
* (check): Add missing "else true" clause.
* emulparams/ (OUTPUT_FORMAT): Use "a.out".
* scripttempl/ Changes from DJ Delorie: Change default
entry point to "start". Align at end of each section to 0x200.
Start .text section 0x1000 later. Add _etext, _edata, _end
Wed Nov 2 12:17:49 1994 Ian Lance Taylor <>
* ldctor.c (ldctor_add_set_entry): Don't permit a set to be
composed of different object file formats.
(ldctor_build_sets): If the output format does not support the
reloc, and we are not generating a relocateable link, try getting
the reloc from the input format.
Tue Nov 1 10:30:19 1994 J.T. Conklin (
* (ALL_EMULATIONS): Added em68knbsd.o.
(em68knbsd.c): New target.
* config/ New file.
* emulparams/ New file.
* (m68*-*-netbsd*): Use above configs.
Mon Oct 31 19:35:17 1994 Ian Lance Taylor <>
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): If we find an
appropriately named static library, stop the search at that
Wed Oct 26 13:59:12 1994 J.T. Conklin (
* (ALL_EMULATIONS): Added ei386nbsd.o, ens32knbsd.o
and esparcnbsd.o; sorted entries.
(ei386nbsd.c,ens32knbsd.c,esparcnbsd.c): New targets.
* config/ Removed.
* emulparams/ Removed.
* config/{,,}: New files.
* emulparams/{,,}: New files.
* (i[345]86-*-netbsd*, ns32k-pc532-netbsd*,
sparc*-*-netbsd*): Use above configs.
Tue Oct 25 11:47:10 1994 Ian Lance Taylor <>
* ldmain.c (multiple_common): One of the types may now be
bfd_link_hash_indirect. The old BFD argument may be NULL.
Thu Oct 20 22:01:39 1994 Ian Lance Taylor (
* Add * at the end of m68k-hp-hpux.
Tue Oct 18 15:58:39 1994 Ian Lance Taylor <>
* ldlex.l: Cast assignment to yy_ch_buf field to char *, not to
Mon Oct 17 14:53:16 1994 J.T. Conklin (
* scripttempl/ Gather constructors and destructors and
define __CTOR__LIST__ and __DTOR_LIST__ appropriately.
Fri Oct 14 14:35:38 1994 J.T. Conklin (
* (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
(ei386nw.c, eppcnw.c): New targets.
* config/{i386,ppc}, emulparams/{i386,ppc},
scripttempl/ New files, for i386 and powerpc netware.
* Changed netware ld_target name to be {i386,ppc}-nw
instead of {i386,ppc}-elf.
* (sparc*-*-netware): Removed. There is no such
thing anymore.
* ldint.texinfo: Move misplaced `@end iftex'.
Fri Oct 14 12:02:18 1994 Eric Youngdale (
* scripttempl/ Add .rel.ctors, .rela.ctors, .rel.dtors, and
.rela.dtors to the list of .rel* sections.
Thu Oct 13 14:16:27 1994 Ken Raeburn <>
* ldver.c (ldversion): Update to version 2.5.
* Version 2.5 released.
* (all_targets): Handle i386-linux*.
Thu Oct 13 11:24:33 1994 Ian Lance Taylor <>
* scripttempl/ Set _etext and __etext to ., not
${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
will not break any other system. From Eric Valette
Wed Oct 12 16:22:58 1994 Ian Lance Taylor <>
* lexsup.c (parse_args): Change -V to be a synonym for -v. Add
--verbose to get the old -V behaviour.
* ld.1, ld.texinfo: Document this change.
Tue Sep 27 14:56:20 1994 Ian Lance Taylor (
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
assertion, since it could fail with a user defined linker script.
* ldexp.c (fold_name): For DEFINED case, don't try to look up the
name in the hash table during the first phase--the hash table does
not even exist at that point, much less have the right value.
* (CC): Define.
(CXX): Move definition, change from g++ to gcc.
(EXPECT, RUNTEST): Copy definitions from top level
(CC_FOR_TARGET, CXX_FOR_TARGET): Copy from top level
(.cc.o): Comment out.
(testdir): Remove.
(site.exp): Don't create testdir or set tmpdir.
(check): Run checks even if not running native. Use CC_FOR_TARGET
instead of RUNTEST_CC, and likewise for CXX.
(cdtest targets): Comment out.
* config/ (HOSTING_LIBS): Only mention crtend.o once.
* testsuite/ld-cdtest/,
testsuite/ld-cdtest/cdtest.exp: Remove.
Mon Sep 26 11:40:30 1994 Ian Lance Taylor (
* emulparams/ Rename from to avoid DOS
file naming problems.
* emulparams/ Rename from
* (ALL_EMULATIONS): Rename eelf32mipb.o to
eelf32bmip.o and eelf32mipl.o to eelf32lmip.o.
(eelf32bmip.c): Rename from eelf32mipb.c. Use
(eelf32lmip.c): Rename from eelf32mipl.c. Use
* config/ (EMUL): Use elf32bmip, not elf32mipb.
* config/ (EMUL): Use elf32lmip, not elf32mipl.
* Always search /usr/local/TARGET/lib.
* scripttempl/ If -N is set, force DATA_ADDR to be ".".
Fri Sep 23 15:05:49 1994 Ken Raeburn <>
* Handle i386-bsdi* targets like i386-bsd.
Fri Sep 23 00:06:59 1994 Ian Lance Taylor (
* lexsup.c (parse_args): Add support for -a for HP/UX
* lexsup.c (parse_args): -c takes an argument.
Tue Sep 20 14:35:27 1994 Ian Lance Taylor (
* ld.h (args_type): Add new field endian.
* lexsup.c (parse_args): Handle -EB and -EL by setting
* ldgram.y (ifile_p1): Accept OUTPUT_FORMAT with three arguments.
* ldlang.c (lang_add_output_format): Add arguments big and little.
If command_line.endian is set, use it to select big or little
rather than the default. Changed all callers.
* ldlang.h (lang_add_output_format): Update declaration.
* emulparams/ Define BIG_OUTPUT_FORMAT and
* emulparams/ Likewise.
* emulparams/ Likewise.
* emulparams/ Likewise.
* emulparams/ Likewise.
* emulparams/ Likewise.
* emulparams/ Likewise.
* scripttempl/ Define BIG_OUTPUT_FORMAT and
LITTLE_OUTPUT_FORMAT if not already defined. Pass them to
* scripttempl/ Pass BIG_OUTPUT_FORMAT and
* scripttempl/ Likewise.
* (ldgram.h): Make separate target from ldgram.c,
depending upon ldgram.c, so that a parallel make does not try to
build both at once.
* (mips*el-elf*): New target.
* (ALL_EMULATIONS): Add eelf32mipb.o and eelf32mipl.o.
(eelf32mipl.c): New target.
* config/ New file.
* emulparams/ New file.
Fri Sep 16 12:16:20 1994 Ian Lance Taylor (
* ldmain.c (main): Rather than prohibiting ld -r -s, treat it as
ld -r -S -x.
Thu Sep 15 13:05:44 1994 Ian Lance Taylor (
* ldmisc.c (vfinfo): Print BFD file name as well as file name
returned by find_nearest_line, in case the file name is something
unhelpful such as a .h file. Handle %u.
Wed Sep 14 12:49:12 1994 Steve Chamberlain (
* ldlang.c (lang_do_assignments): Make sure output statement
has an attached bfd_section before trying to dereference it.
Wed Sep 14 12:48:09 1994 Ian Lance Taylor (
* ld.h (ld_config_type): Add new field warn_once.
* ldmain.c (undefined_symbol): Handle -warn-once.
* lexsup.c (parse_args): Recognize -warn-once.
* ld.texinfo (Options): Document -warn-once.
* ld.1: Likewise.
* ldmisc.c (vfinfo): Handle %D as %C, but never print the function
name. For %C, print the function name on a separate line, to keep
the length of error messages under control.
* ldmain.c (multiple_definition): Use %D for ``first defined
(undefined_symbol): Use %D for ``more undefined references
* ldmisc.c (multiple_warn): Remove; no longer used.
* ldmisc.h (multiple_warn): Don't declare.
Tue Sep 13 20:47:58 1994 Steve Chamberlain (
* ldlang.c (print_output_section_statement): Print all lines
to the map file.
Tue Sep 13 16:30:11 1994 Ian Lance Taylor (
* ldlang.c (load_symbols): Check for archive before object. Use
bfd_check_format_matches, and, if ambiguous, print a list of
matching formats. If file format is not recognized, treat file as
a linker script.
* ldgram.y (yyerror): If assuming an object file is a script,
mention that. Tweak the format of the error messages.
* ldlex.l (lex_warn_invalid): If assuming an object is a script,
guess that this is not actually a script, and just report that the
file format was not recognized.
* ld.texinfo (Options): Admit that -( may be used more than once.
Add note that unrecognized object files are now treated as linker
* ldfile.c (ldfile_input_filename): Make const.
(ldfile_assumed_script): New variable.
(try_open): Change arguments types to const.
(ldfile_find_command_file): Likewise.
(ldfile_open_command_file): Likewise. Also, set lineno to 1.
* ldfile.h: Update declarations for ldfile.c changes.
* ldlex.l: Include <ctype.h>.
(file_name_stack): Change to be const char *.
(lineno_stack): New static variable.
(<<EOF>>): Set lineno as well as ldfile_input_filename.
(lex_push_file): Make name argument const. Initialize
lineno_stack entry.
(lex_redirect): Initialize lineno_stack entry.
(lex_warn_invalid): Handle non printable characters nicely.
* ldlex.h (lex_push_file): Declare second argument as const.
* ldgram.y (ifile_p1): Recognize GROUP.
* ldlex.l: Recognize GROUP.
* ld.texinfo (Option Commands): Document GROUP.
Mon Sep 12 17:04:27 1994 Ian Lance Taylor (
* config/ New file.
Mon Sep 12 01:50:03 1994 Jeff Law (
* emultempl/hppaelf.em: Add newlines to the error messages.
Sat Sep 10 16:05:38 1994 Ian Lance Taylor (
* config/ New file.
* scripttempl/ Don't put .ctors and .dtors in .text
Thu Sep 8 13:25:24 1994 Ian Lance Taylor (
* emulparams/ (TEMPLATE_NAME): Define as elf32.
(DYNAMIC_LINK): Define as false.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse):
Initialize config.dynamic_link to DYNAMIC_LINK if it is defined.
(gld${EMULATION_NAME}_place_orphan): Reset stat_ptr at end.
* (eelf32mipb.c): Depend upon elf32.em rather than
Thu Sep 8 16:30:37 1994 Steve Chamberlain (
* scripttempl/ Put rdata stuff into own segment.
Thu Sep 8 13:25:24 1994 Ian Lance Taylor (
* emulparams/ (OTHER_READWRITE_SECTIONS): Don't define;
.got section is now explicitly handled in
Wed Sep 7 13:08:34 1994 Ian Lance Taylor (
* scripttempl/ Redo script to set . outside of sections
and not bother to explicitly specify section addresses.
Explicitly place .sdata section.
Tue Sep 6 23:51:45 1994 Ian Lance Taylor (
* scripttempl/ Put .bss in data segment.
* scripttempl/ Change .stab and .stabstr to use a VMA of
0, and to only be marked as NOLOAD if relocating.
* scripttempl/, scripttempl/ Likewise.
* scripttempl/, scripttempl/ Likewise.
* scripttempl/, scripttempl/ Likewise.
* scripttempl/, scripttempl/ Likewise.
* scripttempl/, scripttempl/ Likewise.
* scripttempl/, scripttempl/ Likewise.
* scripttempl/ Likewise.
Sun Sep 04 17:58:10 1994 Richard Earnshaw (
*, Add support (disabled) the ARM/RISCiX.
* config/, emulparams/, scripttempl/
New files.
Tue Aug 30 11:48:08 1994 Eric Youngdale (
* ld.h (args_type): Add field soname.
* lexsup.c (parse_args): Handle -soname argument.
* emultempl/elf32.em: In call to bfd_elf32_size_dynamic_sections,
pass soname.
* ld.texinfo: Document -soname.
Mon Aug 29 15:21:50 1994 Ian Lance Taylor (
* ldlang.c (lang_check): Don't try to set the architecture if the
input and output files are incompatible. Just warn.
Wed Aug 24 12:52:30 1994 Ian Lance Taylor (
* Change i[34]86 to i[345]86.
Sun Aug 21 16:17:19 1994 Ian Lance Taylor (
* emulparams/ Define __DYNAMIC to be 0.
Thu Aug 18 15:37:45 1994 Ian Lance Taylor (
Make the ELF linker handle orphaned sections reasonably. Also,
define __start_SECNAME and __stop_SECNAME around sections whose
names can be represented in C, for the benefit of symbol sets in
* ldemul.h (ldemul_place_orphan): Declare.
(ld_emulation_xfer_type): Add place_orphan field.
* ldemul.c (ldemul_place_orphan): New function.
* ldlang.h (wild_doit): Declare.
* ldlang.c (wild_doit): Make nonstatic.
(lang_place_orphans): Call ldemul_place_orphan.
* emultempl/elf32.em: Include <ctype.h> and "ldgram.h".
(hold_section, hold_use, hold_text, hold_data, hold_bss): New
static variables.
(gld${EMULATION_NAME}_place_orphan): New static function.
(gld${EMULATION_NAME}_place_section): New static function.
(ld_${EMULATION_NAME}_emulation): Initialize place_orphan field.
Tue Aug 16 00:17:20 1994 Eric Youngdale (
* scripttempl/ Add .linux-dynamic after .data.
Tue Aug 16 00:08:22 1994 Ian Lance Taylor (
* lexsup.c (parse_args) Treat --dll-verbose as --version, for
Linux compatibility. From (H.J. Lu).
Mon Aug 15 17:17:33 1994 Ian Lance Taylor (