blob: 57c775bc42c599290d04a4ff23aa71406ccc2e73 [file] [log] [blame]
</
Sun Dec 21 12:51:49 1997 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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
internals.
Thu Dec 11 09:00:15 1997 Michael Meissner <meissner@cygnus.com>
* 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 <nickc@cygnus.com>
* scripttempl/armcoff.sc: Add glue sections (code taken from Arm
branch).
* emulparams/armcoff.sh (TEMPLATE_NAME): Set to armcoff.
* emultempl/armcoff.em: New file, imported from Arm branch.
Wed Dec 10 14:10:44 1997 Michael Meissner <meissner@cygnus.com>
* scripttempl/elfd30v.sc: 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 <meissner@cygnus.com>
* Makefile.am: Add Oct 23 changes to Makefile.in 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/d30velf.sh (STACK_START_ADDR): Top of default
stack.
({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/elfd30v.sc: Allow .text, .data, .bss to be put in
either the onchip text/data areas or the external memory area.
(MEMORY): Get sizes from d30velf.sh.
(.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
region.
(.bss): Put in ${BSS_MEMORY} memory region.
Tue Dec 2 10:14:47 1997 Nick Clifton <nickc@cygnus.com>
* configure.tgt (targ_extra_emuls): Add support for Thumb target.
Sat Nov 22 15:23:19 1997 Ian Lance Taylor <ian@cygnus.com>
* 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 <meissner@cygnus.com>
* emulparams/d30velf.sh ({DATA,EMEM}_START_ADDR): Define as start
of internal data area and external memory on chip.
* scripttempl/elfd30v.sc: 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
region.
Thu Nov 13 13:45:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
* configure.tgt (targ_extra_emuls): Make FreeBSD a i386bsd
variant.
Sun Nov 2 14:51:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* configure.host (alpha*-*-linux*): Correct HOSTING_CRT0. Set
HOSTING_LIBS.
Thu Oct 30 12:25:55 1997 Ian Lance Taylor <ian@cygnus.com>
* 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 <nickc@cygnus.com>
* scripttempl/v850.sc: Rename linker symbol '_stack' to '__stack'
to avoid conflicts with C code which is defining a variable called
'stack'.
Thu Oct 23 00:57:45 1997 Richard Henderson <rth@dot.cygnus.com>
* Makefile.in (ALL_EMULATIONS): Move eelf64_sparc.o ...
(ALL_64_EMULATIONS): ... here.
(eelf64_sparc.c): Template should be elf32 not generic.
* emulparams/elf64_sparc.sh (TEMPLATE_NAME): New definition.
Thu Oct 23 00:44:20 1997 Richard Henderson <rth@dot.cygnus.com>
* configure.tgt: Add sparc64-*-linux*.
* emulparams/elf64_sparc.sh (GENERATE_SHLIB_SCRIPT, NOP): New.
Wed Oct 22 11:29:25 1997 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/pe.sc: Put .eh_frame in .rdata.
Fri Oct 17 00:00:13 1997 Richard Henderson <rth@cygnus.com>
* ldlang.c (lang_register_vers_node): Only check globals<=>locals,
since we need to be able to export different versions of the same
symbol.
Wed Oct 15 14:52:36 1997 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/pe.sc: Put .stab and .stabstr sections at end.
Wed Oct 8 12:37:05 1997 Richard Henderson <rth@cygnus.com>
* configure.tgt, configure.host: Change alpha-*-* to alpha*-*-*;
config.guess now recognizes alphaev5 etc.
Fri Oct 3 14:23:02 1997 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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
elf32bmip.
(mips*el-*-linux*): Change elf32lmip to elf32lsmip and elf32bmip
to elf32bsmip.
(mips*-*-linux*): Likewise.
* emulparams/elf32bsmip.sh: New file; just like elf32bmip.sh, but
setting ENTRY to __start.
* emulparams/elf32lsmip.sh: New file; just like elf32lmip.sh, but
setting ENTRY to __start.
* scripttempl/elf.sc: Always set ENTRY to _start if it was not
already set.
Wed Oct 1 16:41:00 1997 Nick Clifton <nickc@cygnus.com>
* emulparams/v850.sh (ROZDATA_START_ADDR, ROSDATA_START_ADDR): New
Variables.
* scripttempl/v850.sc: 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 <joel@oarcorp.com>
* configure.tgt (sh*-*-rtems*): New target, like sh-*-elf*.
Wed Sep 24 11:33:14 1997 Ian Lance Taylor <ian@cygnus.com>
* ld.texinfo (Section Options): Improve documentation of NOLOAD
directive.
* aclocal.m4: Rebuild with new libtool.
* configure: Rebuild.
Mon Sep 22 17:24:06 1997 Ian Lance Taylor <ian@cygnus.com>
* ldlang.c (wild_doit): Revert patch of September 3.
Wed Sep 17 16:45:34 1997 Nick Clifton <nickc@cygnus.com>
* Makefile.am, Makefile.in: Add rule for ev850.c
* configure.tgt (targ_extra_emuls): Add v850 target.
Wed Sep 17 16:43:39 1997 Nick Clifton <nickc@cygnus.com>
* emulparams/v850.sh (CALL_TABLE_START_ADDR): New entry.
* scripttempl/v850.sc: Add call table data area
Mon Sep 15 11:29:13 1997 Ken Raeburn <raeburn@cygnus.com>
Merge change from Martin Hunt:
* scripttempl/elfd30v.sc: Put .rodata in the .text section.
Tue Sep 9 07:49:56 1997 Fred Fish <fnf@ninemoons.com>
* ldlang.c (lang_memory_region_lookup): Remove extraneous
initialization of p.
Thu Sep 4 09:03:33 1997 Ian Lance Taylor <ian@cygnus.com>
* 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/aix.sc: 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 <ian@cygnus.com>
* ldlang.c (wild_doit): Clear SEC_HAS_CONTENTS from a
noload_section.
Fri Aug 29 00:32:31 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (ld_new_DEPENDENCIES): Remove @LEXLIB@.
* Makefile.in: Rebuild.
Thu Aug 28 10:12:10 1997 Doug Evans <dje@canuck.cygnus.com>
* configure.tgt (arc-*-elf*): Recognize.
* Makefile.am (ALL_EMULATIONS): Add earcelf.o.
* Makefile.in: Regenerate.
* emulparams/arcelf.sh: New file.
Wed Aug 20 11:14:13 1997 Ian Lance Taylor <ian@cygnus.com>
* 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 <nickc@cygnus.com>
* configure.tgt (targ_extra_emuls): Add support for v850e target.
Mon Aug 18 11:12:03 1997 Nick Clifton <nickc@cygnus.com>
* configure.tgt (targ_extra_emuls): Add support for v850e target.
Sat Aug 9 00:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.am (ld.info): Change dependency from
$(BFDDIR)/doc/bfdsumm.texi to bfdsumm.texi.
(ld.dvi): Likewise.
(bfdsumm.texi): New target.
(CLEANFILES): Add bfdsumm.texi.
* Makefile.in: Rebuild.
* Makefile.am: New file, based on old Makefile.in.
* acinclude.m4: New file, from old aclocal.m4.
* configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
shared library handling; now handled by libtool. Replace
AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
AC_PROG_LEX, and AC_DECL_YYTEXT. Call AM_MAINTAINER_MODE,
AM_CYGWIN32, and AM_EXEEXT. Don't call CY_CYGWIN32 or CY_EXEEXT.
* configure.host: Don't set HLDFLAGS, HLDENV, or RPATH_ENVVAR.
* acconfig.h: Mention PACKAGE and VERSION.
* stamp-h.in: New file.
* ldver.c (ld_program_version): Set ld_program_version from
VERSION.
* ldgram.y, ldlex.l: Replace VERSION with VERSIONK.
* Makefile.in: Now built with automake.
* aclocal.m4: Now built with aclocal.
* configure, config.in: Rebuild.
Mon Jul 28 19:04:50 1997 Rob Savoye <rob@chinadoll.cygnus.com>
* configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
win32 dependencies.
* configure: Regenerated with autoconf 2.12.
* Makefile.in: Add $(EXEEXT) to executable.
Tue Jul 22 18:50:38 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
* emulparams/i386go32.sh (OUTPUT_FORMAT): Set to "coff-go32".
(SEGMENT_SIZE): Set to 0x200.
* scripttempl/i386go32.sc: Rewrite.
* configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
Mon Jul 7 12:39:42 1997 Ian Lance Taylor <ian@cygnus.com>
From Manfred Hollstein <manfred@s-direktnet.de>:
* configure.host (i[3456]86-*-linux*libc1*): Renamed from
i[3456]86-*-linux*.
(i[3456]86-*-linux*): New host.
Thu Jun 26 13:54:03 1997 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/pe.sc: Put .rsrc after .reloc. Put input .rsrc
sections in the output .rsrc section.
Wed Jun 25 12:48:41 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* configure.host (m68*-*-linux*libc1*): Renamed from
`m68*-*-linux*'.
(m68*-*-linux*): New configuration for use with GNU libc 2.
Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>
* scripttempl/elfppc.sc: Correct .rela.sdata entries.
* scripttempl/elfppc.sc: Put the PLT between the small and large
BSS segments.
* emulparams/elf32ppc.sh (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 <hjl@gnu.ai.mit.edu>
* 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):
Likewise.
(check_sections): Likewise.
(gld${EMULATION_NAME}_after_allocation): Likewise.
* emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation):
Likewise.
* 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 <ian@cygnus.com>
* scripttempl/pe.sc: Add zeroes after .idata$3 to mark the end of
the import list.
Thu May 29 13:13:22 1997 Ian Lance Taylor <ian@cygnus.com>
* 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 <fnf@cygnus.com>
* 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 <ian@cygnus.com>
* ldmain.c (main): Correct check of fclose return value when
handling --force-exe-suffix.
Thu May 15 11:35:29 1997 Nick Clifton <nickc@cygnus.com>
* 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 <ian@cygnus.com>
* scripttempl/elfmips.sc: Remove.
* scripttempl/elf.sc: 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
OTHER_TEXT_SECTIONS. Support SHLIB_DATA_ADDR as well as
DATA_ADDR. Support OTHER_GOT_SYMBOLS and OTHER_GOT_SECTIONS.
* emulparams/elf32b4300.sh (SCRIPT_NAME): Set to elf.
(DATA_ADDR): Don't set.
(INITIAL_READONLY_SECTIONS): Rename from OTHER_READONLY_SECTIONS.
(OTHER_TEXT_SECTIONS): Set.
(OTHER_GOT_SECTIONS): Rename from OTHER_READWRITE_SECTIONS.
(MACHINE): Set to empty string.
* emulparams/elf32l4300.sh: Likewise.
* emulparams/elf32ebmip.sh: Likewise.
* emulparams/elf32elmip.sh: Likewise.
* emulparams/elf32bmip.sh: Likewise. Also:
(TEXT_DYNAMIC): Set.
* emulparams/elf32lmips.sh: Likewise.
* Makefile.in (eelf32bmips.c): Depend upon elf.sc rather than
elfmips.sc.
(eelf32ebmips.c, eelf32elmips.c, eelf32lmip.c): Likewise.
Mon May 12 11:11:06 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* scripttempl/elf.sc: 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 <ian@cygnus.com>
* configure.tgt (i[3456]86-*-gnu*): Don't include Mach support.
Tue May 6 13:21:19 1997 Ian Lance Taylor <ian@cygnus.com>
From Sean McNeil <sean@mcneil.com>:
* emultempl/pe.em (sort_by_file_name): Sort by archive name
first.
(sort_sections): Sort all sections, not just sections in the same
archive.
Mon May 5 18:19:55 1997 Philip Blundell <pjb27@cam.ac.uk>
* configure.tgt, configure.host: cope with '*-*-linux-gnuaout'
targets.
Fri May 2 15:54:28 1997 Mike Meissner <meissner@cygnus.com>
* scripttempl/tic80coff.sc (.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
sections.
Wed Apr 30 12:23:21 1997 Manfred Hollstein <manfred@s-direktnet.de>
* scripttempl/m88kbcs.sc (__.initp.end, _etext): Added whitespace
around assignment of current location pointer.
Thu Apr 17 13:07:18 1997 Ian Lance Taylor <ian@cygnus.com>
* ldctor.c (ldctor_build_sets): Make sure the set is aligned
appropriately.
Tue Apr 15 13:19:26 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (INSTALL): Set to @INSTALL@.
(INSTALL_XFORM, INSTALL_XFORM1): Remove.
(install): Depend upon ld.new and installdirs. Use
$(program_transform_name) directly, rather than using
$(INSTALL_XFORM) and $(INSTALL_XFORM1).
(installdirs): New target.
(install-info): Run mkinstalldirs.
Mon Apr 14 12:06:15 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (INSTALL): Change install.sh to install-sh.
From Thomas Graichen <graichen@rzpd.de>:
* configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
* configure: Rebuild.
Fri Apr 4 11:42:41 1997 Ian Lance Taylor <ian@cygnus.com>
* 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
reloc.
* 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 <ian@cygnus.com>
* ldver.c (ld_program_version): Set to 2.8.1.
* Branched binutils 2.8.
Wed Apr 2 11:55:27 1997 Ian Lance Taylor <ian@cygnus.com>
* mpw-idtmips.c: Rename from mpw-emipsidt.c.
* mpw-elfmips.c: Rename from mpw-emipself.c.
* mpw-config.in: 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 <ian@cygnus.com>
* 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 <joel@oarcorp.com>
* configure.tgt (hppa*-*-rtems*): New target, like hppa-*-*elf*.
Fri Mar 28 15:29:23 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
Contributed by David S. Miller <davem@caip.rutgers.edu>:
* configure.tgt (sparc*-*-linuxaout*): New target.
(sparc*-*-linux*): New target.
* emulparams/sparclinux.sh: New file.
* Makefile.in (ALL_EMULATIONS): Add esparclinux.o.
(esparclinux.c): New target.
Fri Mar 28 14:30:12 1997 Ian Lance Taylor <ian@cygnus.com>
From Ralf Baechle <ralf@gnu.ai.mit.edu>:
* configure.tgt: Set targ_extra_emuls for mips*el-*-linux* and
mips*-*-linux*. Use elf32bmip and elf32lmip, not elf32ebmip and
elf32elmip.
Thu Mar 27 17:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
* lexsup.c (parse_args): Update copyright date in version
message.
Fri Mar 21 12:28:41 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* emulparams/delta68.sh (OUTPUT_FORMAT): Set to "coff-m68k-sysv".
Tue Mar 18 11:16:23 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in: Rebuild dependencies.
* emultempl/aix.em: Include "obstack.h".
Mon Mar 17 19:26:06 1997 Ian Lance Taylor <ian@cygnus.com>
* ldlang.c: Include "obstack.h".
Sat Mar 15 23:23:46 1997 Fred Fish <fnf@cygnus.com>
* configure.tgt (powerpc-*-beos*): Use aixppc for targ_emul.
Sat Mar 15 18:10:38 1997 H.J. Lu <hjl@lucon.org>
* 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 <ian@cygnus.com>
* scripttempl/elfmips.sc: Change handling of data area when
generating a shared library to not skip a large block of memory.
From Per Fogelstrom <pefo@cvs.openbsd.org>.
Wed Mar 12 21:33:09 1997 Ian Lance Taylor <ian@cygnus.com>
* ldmain.c (multiple_definition): Only skip the warning if the
output section is absolute when the input section is not
absolute.
* 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 <ian@cygnus.com>
* 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 <eric@andante.jic.com>
* ldgram.y (vers_node): Correct typo of '(' for '{'.
Fri Mar 7 18:40:12 1997 Fred Fish <fnf@cygnus.com>
* scripttempl/tic80coff.sc (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 <meissner@cygnus.com>
* configure.tgt (tic80-*-*): Allow dropping of -coff.
Sun Mar 2 22:59:49 1997 Fred Fish <fnf@cygnus.com>
* Makefile.in (ld.dvi): Set MAKEINFO environment variable as well
as TEXINPUTS. Needed for building in separate build dir.
* ldint.texinfo (SCRIPT_NAME): Fix typo.
* emulparams/tic80coff.sh: Rewrite to include internal documentation
about each shell variable that is set (or not set).
* scripttempl/tic80coff.sc: Complete rewrite.
Fri Feb 28 17:42:27 1997 Ian Lance Taylor <ian@cygnus.com>
* ldmain.c (main): Call bfd_set_default_target.
* Makefile.in (ldmain.o): Define TARGET when compiling.
Thu Feb 27 11:41:03 1997 Ian Lance Taylor <ian@cygnus.com>
* ldmain.c (main): Don't initialize link_info.lprefix or
link_info.lprefix_len.
* emultempl/hppaelf.em (hppaelf_before_parse): Likewise.
* emultempl/m88kbcs.em: Remove.
* emulparams/m88kbcs.sh (TEMPLATE_NAME): Don't set.
* Makefile.in (em88kbcs.c): Depend upon generic.em rather than
m88kbcs.em.
* mri.c (mri_draw_tree): Pass noload_section, not SEC_NEVER_LOAD,
to lang_enter_output_section_statement. From Mark Rasin
<mark.rasin@telrad.co.il>.
Wed Feb 26 11:51:44 1997 Ian Lance Taylor <ian@cygnus.com>
* ldlang.c (lang_one_common): Clear SEC_IS_COMMON from common
section.
Tue Feb 25 20:38:11 1997 Stan Shebs <shebs@andros.cygnus.com>
* configure.tgt (mips*-*-lnews*): New target.
* Makefile.in (emipslnews.c): New target.
* emulparams/mipslnews.sh: New file.
Tue Feb 25 16:04:09 1997 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
From Eric Youngdale <eric@andante.jic.com>:
* ldlex.l (V_TAG, V_IDENTIFIER): New macros.
(VERS_START, VERS_SCRIPT, VERS_NODE): New states to parse version
information.
(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.
(VERS_TAG, VERS_IDENTIFIER): New terminals.
(GLOBAL, LOCAL, VERSION, INPUT_VERSION_SCRIPT): New terminals.
(file): Accept INPUT_VERSION_SCRIPT.
(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/elf.sc: Add .gnu.version sections.
* ld.texinfo: Document symbol versioning.
Fri Feb 21 17:37:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
* Makefile.in (ed30velf.c): New target.
* configure.tgt (d30v-*-*): New target.
* emulparams/d30velf.sh: New file.
* scripttempl/elfd30v.sc: New file.
Fri Feb 14 18:28:31 1997 Ian Lance Taylor <ian@cygnus.com>
* ld.texinfo (Option Commands): Document the INCLUDE command.
Thu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
* configure.in: 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
value.
* ldmain.c (get_emulation): Likewise.
* configure, config.in: Rebuild.
Tue Feb 11 15:34:26 1997 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/elfmips.sc: When relocating, put .mips16.fn.* and
.mips16.call.* in .text.
Sun Feb 9 18:09:13 1997 Fred Fish <fnf@cygnus.com>
* emulparams/tic80coff.sh: New (dummy) file for TIc80.
* scripttempl/tic80coff.sc: New (dummy) file for TIc80.
* Makefile.in (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 <ian@cygnus.com>
* 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.
* Makefile.in (ld.info): Add -I$(srcdir). From Alan Modra
<alan@spri.levels.unisa.edu.au>.
Thu Jan 30 11:31:52 1997 Ian Lance Taylor <ian@cygnus.com>
* 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 <noer@cygnus.com>
* scripttempl/pe.sc:
* scripttempl/ppcpe.sc: add *(.gcc_except_table) to the text
section so Win32 executables are valid.
Mon Jan 27 12:28:43 1997 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/elf.sc: Put linkonce reloc section in other
appropriate reloc sections.
* scripttempl/elfmips.sc: Add linkonce support.
* scripttempl/elfppc.sc: Likewise.
Fri Jan 24 10:44:09 1997 Jeffrey A Law (law@cygnus.com)
* emulparms/mn10200.sh (OTHER_RELOCATING_SECTIONS): Move the
stack up to 0x80000.
* emulparms/mn10300.sh (OTHER_RELOCATING_SECTIONS): Likewise.
Tue Jan 21 12:11:10 1997 Doug Evans <dje@seba.cygnus.com>
* emulparams/m32relf.sh (OTHER_RELOCATING_SECTIONS): Use PROVIDE
to define `_stack'.
Thu Jan 16 17:07:52 1997 Ian Lance Taylor <ian@cygnus.com>
* 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
--auxiliary.
Tue Jan 14 15:44:28 1997 Ian Lance Taylor <ian@cygnus.com>
* ld.texinfo (Options): Clarify that the normal usage is -T.
(Commands): Likewise.
Thu Jan 9 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/armcoff.sc: Correct mask used for .data address.
Wed Jan 8 15:14:59 1997 Geoffrey Noer <noer@cygnus.com>
* emultempl/pe.em: make default executable a.exe instead of
a.out
Fri Jan 3 17:33:34 1997 Richard Henderson <rth@tamu.edu>
* scripttempl/elf.sc: Move .got closer to .sdata and .sbss by
shifting .plt back. Rumour has it that the NetBSD ld.so depends
on .dynamic being after .got, so we leave that.
Fri Jan 3 14:04:40 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (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 <meissner@tiktok.cygnus.com>
* scripttempl/v850.sc (.zdata): Add .zcommon section.
(.tdata): Add .tcommon and .tcommon_byte sections.
Thu Jan 2 18:14:32 1997 Ian Lance Taylor <ian@cygnus.com>
* configure.tgt (mips*el-*-linux*, mips*-*-linux*): New targets.
* scripttempl/elfmips.sc: Use __start as the entry address for
mips*-*-linux*.
Tue Dec 31 14:48:30 1996 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
* ld.h (args_type): Add filter_shlib and auxiliary_filter_shlib
fields.
* lexsup.c (parse_args): Recognize --auxiliary/-f and
--filter/-F.
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Pass filter_shlib and auxiliary_filter_shlib to
size_dynamic_sections.
* ld.texinfo, ld.1: Document --filter/-F and --auxiliary/-f.
Mon Dec 30 13:55:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* scripttempl/v850.sc (.tdata) Add .tbss and .tbyte sections.
Wed Dec 18 22:57:35 1996 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.sed: Use NewFolderRecursive for installation.
Fri Dec 13 14:08:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* scripttempl/v850.sc: 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/v850.sh ({TEXT,{Z,S,T}DATA}_START_ADDR): Define
appropriately. Remove crud not used anymore.
Fri Dec 13 10:19:57 1996 Jeffrey A Law (law@cygnus.com)
* Makefile.in (emn10200.c): Add dependencies.
* configure.tgt: Handle mn10200.
* emulparms/mn10200.sh: New file.
Thu Dec 12 17:04:55 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 (law@cygnus.com)
* emulparms/mn10300.sh: Handle leading underscores.
Thu Dec 5 13:45:58 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <ian@cygnus.com>
* emulparams/*.sh: Make sure that each set of parameters which
uses the elf.sc script sets MACHINE.
Wed Nov 27 03:22:05 1996 Jason Merrill <jason@yorick.cygnus.com>
* scripttempl/elf{,mips,ppc}.sc: Add the remaining DWARF sections.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/v850.sc: Likewise.
Tue Nov 26 16:58:33 1996 Ian Lance Taylor <ian@cygnus.com>
* configure: Rebuild with autoconf 2.12.
Mon Nov 25 12:17:55 1996 Jim Wilson <wilson@cygnus.com>
* 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 (law@cygnus.com)
* emulparms/mn10300.sh: Remove bogus '_' prefix for
entry symbol and ctor/dtor stuff.
Fri Nov 15 13:00:18 1996 Jeffrey A Law (law@cygnus.com)
* Makefile.in (emn10300.c): Add dependencies.
* configure.tgt: Handle mn10300.
* emulparms/mn10300.sh: New file.
Tue Nov 5 10:57:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* emulparams/d10velf.sh (READONLY_START_ADDR): Changed to 0x2000004.
(EMBEDDED): Define.
Fri Nov 1 10:01:27 1996 Ian Lance Taylor <ian@cygnus.com>
* ld.texinfo: Add section on reporting bugs.
* scripttempl/m68kcoff.sc: Make sure the etext and __CTOR_LIST__
symbols are correctly aligned.
Thu Oct 31 09:28:59 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/v850.sc (zdata): Handle reszdata, romzdata and
romzbss too.
Tue Oct 29 12:33:05 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* emulparams/d10velf.sh: Changes needed for D10V-EVA board.
Set TEXT_START_ADDR to 0x1000000. Set READONLY_START_ADDR to
0x2000000.
* scripttempl/elfd10v.sc: Fix calculation of .text. Change
.stack to start at 0x2007ffe.
Mon Oct 28 15:37:00 1996 Doug Evans <dje@canuck.cygnus.com>
* configure.tgt (sparclet*-*-aout*): Delete, use sparc*-*-aout*.
Wed Oct 23 16:17:22 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/v850.sc (zdata): Fix typo "zrodata" -> "rozdata".
* scripttempl/v850.sc (zdata): Make sure this stays
in lo-memory.
Tue Oct 22 11:36:47 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/v850.sc (__ep): Put it at the start
of the tda section.
* scripttempl/v850.sc: Move all "normal" sections into
the external memory region (0x100000 - 0x200000).
Mon Oct 21 17:16:59 1996 Michael Meissner <meissner@wogglebug.tiac.net>
* scripttempl/elfd10v.sc: Clone from elf.sc, move .text to
0x10000, so that is more room for data.
* emulparams/d10velf.sh (TEXT_START_ADDR): Now 0x100000.
(READONLY_START_ADDR): Now 0x0.
(SCRIPT_NAME): Now elfd10v.
* Makefile.in (ed10velf.c): Depend on elfd10v.sc, not elf.sc.
Fri Oct 18 22:12:49 1996 Doug Evans <dje@canuck.cygnus.com>
* emulparams/m32relf.sh (TEXT_START_ADDR): Change from 0 to 0x100.
Fri Oct 18 15:43:38 1996 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (ALL_EMULATIONS): Remove eelf64alpha.o.
(ALL_64_EMULATIONS): New variable.
* configure.in: Accept --enable-64-bit-bfd option. If it is set
with --enable-targets=all, include ALL_64_EMULATIONS in
EMULATION_OFILES.
* configure: Rebuild.
Fri Oct 18 12:58:35 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/v850.sc (__gp, __ep): Define.
Thu Oct 17 18:14:07 1996 Ian Lance Taylor <ian@cygnus.com>
* ld.texinfo: Try to consistently use a single or a double dash
for each option.
Thu Oct 17 10:17:20 1996 Doug Evans <dje@canuck.cygnus.com>
* emulparams/m32relf.sh (EMBEDDED): Define.
Thu Oct 17 10:56:49 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/v850.sc (.zdata): Add this before .text.
(.sdata): Also include .rosdata as part of the .sdata.
(.tdata): Include this just before .sdata.
* emulparms/v850.sh (SCRIPT_NAME): Use "v850" not "elf".
* scripttempl/v850.sc: Wrap script with a "cat << EOF".
Wed Oct 16 23:10:01 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/v850.sc: New linker script for the V850.
* Makefile.in: Use it.
Thu Oct 10 17:57:00 1996 Ian Lance Taylor <ian@cygnus.com>
* emulparams/elf32b4300.sh: Define _gp in OTHER_GOT_SYMBOLS, not
OTHER_READWRITE_SECTIONS.
* emulparams/elf32l4300.sh: Likewise.
Wed Oct 9 14:36:18 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* emultempl/pe.em (set_pe_subsystem): When setting the subsystem
to windows, set the entry point.
* Makefile.in (ldlex.c): Don't pass any options to $(LEX).
Mon Oct 7 17:29:05 1996 Ian Lance Taylor <ian@cygnus.com>
* ld.texinfo (Options): Mention .so extensions for shared
libraries.
Sun Oct 6 22:35:36 1996 Jason Merrill <jason@yorick.cygnus.com>
* scripttempl/elf{,mips,ppc}.sc: Add DWARF 2 sections.
Fri Oct 4 18:49:31 1996 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/m68kcoff.sc: Only set the address of .text if
RELOCATING.
Fri Oct 4 10:59:52 1996 Doug Evans <dje@canuck.cygnus.com>
* emulparams/sparcaout.sh ({BIG,LITTLE}_OUTPUT_FORMAT): Define.
* scripttempl/aout.sc ({BIG,LITTLE}_OUTPUT_FORMAT): Provide default.
(OUTPUT_FORMAT): Support bi-endian targets.
Thu Oct 3 13:52:03 1996 Ian Lance Taylor <ian@cygnus.com>
* fnmatch.h, fnmatch.c: Remove (now in libiberty).
* Makefile.in: Rebuild dependencies.
(CFILES): Remove fnmatch.c.
(HFILES): Remove fnmatch.h.
(OFILES): Remove fnmatch.o.
Thu Oct 3 15:41:24 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
* Makefile.in (mostlyclean): Move config.log to distclean.
Wed Oct 2 23:45:25 1996 Geoffrey Noer <noer@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <joel@oarcorp.com>
* configure.tgt (mips*-*-rtems*): New target, like mips*-*-elf*.
Tue Oct 1 15:50:34 1996 Ian Lance Taylor <ian@cygnus.com>
* ld.texinfo (Options): Give more detail on -l option.
* scripttempl/elfmips.sc: Handle CREATE_SHLIB the same way that
elf.sc 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
standards.
(help): Print bug report address.
Mon Sep 30 12:14:43 1996 Doug Evans <dje@canuck.cygnus.com>
* Makefile.in (em32relf.c): Add rule for.
* configure.tgt (m32r-*-*): Recognize.
* emulparams/m32relf.sh: New file.
Thu Sep 26 13:58:47 1996 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.sed: Add symbolic doublequoting to ldmain compile edit.
* mpw-config.in: 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 <ian@cygnus.com>
* ldint.texinfo: Rewrote.
* configure.tgt: Add cases for MIPS 5000 like MIPS 4300.
Mon Sep 16 17:55:21 1996 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/armcoff.sc: Only define symbols if RELOCATING. Fix
syntax error on __end__ line.
* scripttempl/armcoff.sc: For -N or -n, don't align .data. From
Chris Hadley <Christopher.Hadley@cl.cam.ac.uk>
Sun Sep 15 22:09:56 1996 Jeffrey A Law (law@cygnus.com)
* emulparms/v850.sh: Fix OTHER_RELOCATING_SECTIONS.
Sun Sep 15 10:38:16 1996 Mark Alexander <marka@cygnus.com>
* emulparms/d10v.sh: Set OTHER_RELOCATING_SECTIONS to put
stack at top of simulator memory.
Fri Sep 13 15:49:45 1996 Ian Lance Taylor <ian@cygnus.com>
* ldlex.l (SYMBOLCHARN): Add $, _, and ~.
Wed Sep 11 23:30:42 1996 Ian Lance Taylor <ian@cygnus.com>
* ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
Thu Sep 5 15:24:12 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
<fila@ibi.com>.
Tue Sep 3 00:52:54 1996 Jeffrey A Law (law@cygnus.com)
* emulparms/v850.sh: Set OTHER_RELOCATING_SECTIONS
Sun Sep 1 21:48:58 1996 Jeffrey A Law (law@cygnus.com)
* emulparms/v850.sh: Set EMBEDDED.
Fri Aug 30 22:30:30 1996 Jeffrey A Law (law@cygnus.com)
* emulparms/v850.sh: Entry symbol is "_start", tweak
ctor/dtor support.
Fri Aug 30 18:32:31 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.tgt (sh-*-elf*): New target.
* emulparams/shelf.sh: New file.
* emulparams/shlelf.sh: New file.
* Makefile.in (ALL_EMULATIONS): Add eshelf.o and eshlelf.o.
(eshelf.c, eshlelf.c): New targets.
* scripttempl/elf.sc: If EMBEDDED is defined, then don't add
SIZEOF_HEADERS to TEXT_START_ADDR. Expand CTOR_START and CTOR_END
around .ctors, and DTOR_START and DTOR_END around .dtors. Expand
OTHER_RELOCATING_SECTIONS if RELOCATING.
Thu Aug 29 16:57:46 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* configure.{host,tgt} (i[345]86-*-*): Recognize i686 for pentium
pro.
Mon Aug 26 12:58:11 1996 Ian Lance Taylor <ian@cygnus.com>
* ldgram.y (section): Add opt_nocrossrefs; pass value to
lang_enter_overlay.
(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 <ian@cygnus.com>
* configure.host: Set HLDENV.
* configure.in: Substitute HLDENV.
* configure: Rebuild.
* Makefile.in (HLDENV): New variable.
($(LD_PROG)): Use $(HLDENV).
Thu Aug 22 16:29:28 1996 Jeffrey A Law (law@cygnus.com)
* Makefile.in (ev850.c): New target.
* configure.tgt (v850-*-*): New target.
* emulparams/v850.sh: New file.
Thu Aug 22 11:16:02 1996 Stan Shebs <shebs@andros.cygnus.com>
* mpw-make.sed: Add @DASH_C_FLAG@ to compiler edit.
Wed Aug 21 11:26:37 1996 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/elf.sc: Put .gnu.linkonce* sections in appropriate
containing sections.
Mon Aug 19 13:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
* fnmatch.c: Include sysdep.h.
Mon Aug 19 11:28:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* genscripts.sh: Undo 8/16 change.
* emulparams/d10velf.sh (MACHINE): Explicitly set to nothing.
Fri Aug 16 19:18:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* genscripts.sh: 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
configure.
* Makefile.in (ed10velf.c): Use tdir_d10v, not tdir_arcelf.
Fri Aug 16 14:15:41 1996 James G. Smith <jsmith@cygnus.co.uk>
* scripttempl/armcoff.sc (__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 <ian@cygnus.com>
* 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 <phdm@info.ucl.ac.be>
* configure.in: Call BFD_NEED_DECLARATION on strstr and sbrk.
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
(NEED_DECLARATION_SBRK): New macro.
* configure, config.in: Rebuild.
* sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
* ldmain.c (sbrk): Declare if HAVE_SBRK and
NEED_DECLARATION_SBRK.
* ldlang.c (lang_record_phdrs): Cast xmalloc and xrealloc return.
Mon Aug 5 16:26:14 1996 Ian Lance Taylor <ian@cygnus.com>
* 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
overlays.
* 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
sections.
Fri Aug 2 14:57:49 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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
check_nocrossrefs.
(warning_callback): Free symbols if there is no place to store
them.
(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.
* Makefile.in: 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 <hunt@pizza.cygnus.com>
* emulparams/d10velf.sh: Now works with elf.sc.
Wed Jul 31 11:52:03 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* emulparams/d10velf.sh (SCRIPT_NAME): Change to vanilla.
Tue Jul 30 14:46:42 1996 Ian Lance Taylor <ian@cygnus.com>
* 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
link_info.notice_all.
(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 <ian@cygnus.com>
* 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
NAME.
* 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.
* Makefile.in: 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 <hunt@pizza.cygnus.com>
* emulparams/d10velf.sh (SCRIPT_NAME): Change to elf.
Wed Jul 24 13:38:22 1996 Michael Meissner <meissner@wogglebug.tiac.net>
* configure.tgt (d10v-*-*): Don't require the -elf, allow plain d10v.
Tue Jul 23 10:36:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* Makefile.in (ed10velf.c): New target.
* configure.tgt (d10v-*-elf*): New target.
* emulparams/d10velf.sh: New file.
Thu Jul 18 16:25:39 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.tgt (sparc*-*-sysv4*): New target. From Andrew Gierth
<ANDREWG@microlise.co.uk>.
* configure.host: Change irix5 to irix[56]*.
* configure.tgt: Likewise.
Wed Jul 17 10:52:46 1996 Kim Knuttila <krk@cygnus.com>
* 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 <schwab@issan.informatik.uni-dortmund.de>
* 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 <ian@cygnus.com>
* configure.tgt (mips*el-*-elf*): Use elf32elmip.
(mips*-*-elf*): Use elf32ebmip.
* emulparams/elf32bmip.sh (EMBEDDED): Don't define.
* emulparams/elf32lmip.sh (EMBEDDED): Don't define.
* emulparams/elf32elmip.sh: New file; copy of elf32lmip.sh with
EMBEDDED defined.
* emulparams/elf32ebmip.sh: New file; copy of elf32bmip.sh with
EMBEDDED defined.
* emulparams/elf32b4300.sh (EMBEDDED): Define.
* emulparams/elf32l4300.sh (EMBEDDED): Define.
* Makefile.in (ALL_EMULATIONS): Add eelf32ebmip.o eelf32elmip.o.
(eelf32ebmip.c, eelf32elmip.c): New targets.
Thu Jul 4 12:01:03 1996 Ian Lance Taylor <ian@cygnus.com>
* ldver.c (ldversion): Set version to cygnus-2.7.1.
* Released binutils 2.7.
* emulparams/pc532macha.sh: Rename from pc532machaout.sh to avoid
System V file name limitations.
* configure.tgt (nc32k-pc532-mach*, ns32k-pc532-ux*): Use
pc532macha rather than pc532machaout.
* Makefile.in (ALL_EMULATIONS): Change epc532machaout.o to
epc532macha.o.
(epc532macha.c): Rename target from epc532machaout.c.
Wed Jul 3 11:40:10 1996 Ian Lance Taylor <ian@cygnus.com>
* ldlang.c (print_padding_statement): Use %u, not %x, to print
fill value.
Sun Jun 30 11:16:43 1996 Stan Shebs <shebs@andros.cygnus.com>
* mpw-eppcmac.c: Update to reflect May 23 change to aix.em.
Thu Jun 27 14:03:42 1996 Ian Lance Taylor <ian@cygnus.com>
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Put the .sa
file just before the .so file, rather than just after.
* configure.host: 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.
* Makefile.in (mostlyclean): Remove crtbegin.o and crtend.o.
Wed Jun 26 15:57:21 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.tgt (mips*-dec-osf*): New target.
Tue Jun 25 22:15:29 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
(AC_PROG_INSTALL): Added.
* configure: Rebuilt.
Mon Jun 24 18:48:16 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* scripttempl/elfppc.sc (_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 <jnuman@bazis.nl>
* 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
EXPRESSION mode.
* 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 <ian@cygnus.com>
* scripttempl/elf.sc: Force .stab* and .comment sections to start
at 0.
* configure.in: 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 <joel@merlin.gcs.redstone.army.mil>
* configure.tgt: Add support for *-*-rtems* configurations.
Fri Jun 21 13:05:51 1996 Richard Henderson <rth@tamu.edu>
* configure.tgt (alpha-*-linuxecoff*): New target.
(alpha-*-linux*): Use elf64alpha.
* emulparams/elf64alpha.sh: 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.
* Makefile.in (ALL_EMULATIONS): Add eelf64alpha.o.
(eelf64alpha.c): New target.
Fri Jun 21 12:45:46 1996 Ian Lance Taylor <ian@cygnus.com>
* ldmisc.c (vfinfo): Correct handling of 0 in %W case.
Thu Jun 20 13:55:28 1996 Ian Lance Taylor <ian@cygnus.com>
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
expression.
(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 <ian@cygnus.com>
* configure.host (m88*-*-dgux*): Quote HOSTING_CRT0. From
<randall.hron@medaphis.com>.
Tue Jun 18 15:53:09 1996 Jeffrey A. Law <law@rtl.cygnus.com>
* scripttempl/h8300s.sc: New file for H8/S.
* emulpararms/h8300s.sh: New file for H8/S.
* Makefile.in (ALL_EMULATIONS): Add 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 <ian@cygnus.com>
* configure.tgt (i[345]86*-*-isc*): New target. From
<uddeborg@carmen.se>.
Wed Jun 12 12:46:21 1996 Ian Lance Taylor <ian@cygnus.com>
* lexsup.c: Include "libiberty.h".
(parse_args): Copy the -Y argument into memory.
(set_default_dirlist): Don't put the ':' back into the directory
list.
Fri Jun 7 11:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* emulparams/elf32bmip.sh (OTHER_GOT_SYMBOLS): Use ALIGN(16)
rather than . when computing _gp value. From Per Fogelstrom.
* emulparams/elf32lmip.sh (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 <jsmith@cygnus.co.uk>
* emulparams/{elf32b4300.sh,elf32l4300.sh} (SCRIPT_NAME): Use
elfmips instead of elf.
Tue Jun 4 18:43:07 1996 Ian Lance Taylor <ian@cygnus.com>
* 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.
* Makefile.in: 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 <tromey@csk3.cygnus.com>
* Makefile.in (install): Make $(tooldir) and $(tooldir)/bin.
Fri May 31 12:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* scripttempl/elfmips.sc: Quote test -z argument.
* ld.texinfo: Clarify the CONSTRUCTORS command.
Thu May 23 16:07:44 1996 Ian Lance Taylor <ian@cygnus.com>
* emultempl/aix.em (gld${EMULATION_NAME}_read_file): Initialize
file, not impfile.
Wed May 22 11:31:30 1996 Doug Evans <dje@seba.cygnus.com>
* 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
Sections.
(gld${EMULATION_NAME}_place_section): Delete.
* scripttempl/pe.sc (.text,.data,.rdata): Add *(.foo\$).
(.CRT,.rsrc): Rewrite to use Grouped Section support.
Tue May 21 14:31:48 1996 Stan Shebs <shebs@andros.cygnus.com>
* mpw-eppcmac.c: Update to reflect changes to aix.em.
Sun May 19 16:59:44 1996 Doug Evans <dje@seba.cygnus.com>
* ldlang.c (dprint_statement): Stop printing at end of list.
Sat May 18 13:12:05 1996 Steve Chamberlain <sac@slash.cygnus.com>
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 <wilson@chestnut.cygnus.com>
* emultempl/pe.em (set_pe_value): Pass 0 not 16 to strtoul call.
Fri May 10 16:28:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* scripttempl/elfppc.sc (__stack): Make __stack 0 if it was
referenced but not defined.
Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
* emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
Set a new variable to signify if the final target is an embedded
system.
* scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
.text for an embedded system.
Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
* 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/pe.sc: Whitespace cleanup. Semicolon usage cleanup.
(INIT,FINI): Delete, unused.
(.text): Document orphan .text.foo sections.
(.rdata): Document orphan .rdata.foo sections.
(.data): Document orphan .data.foo sections.
Tue May 7 11:35:46 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/h8300.sc: Place ".tiny" sections right
after ".data" sections.
* scripttempl/h8300h.sc: Place ".tiny" sections into
the "tiny" memory region, 0xff8000 through 0xffff00.
* scripttempl/h8300.sc: Set the entry point to the value of
"_start" rather than the start of the text segment.
* scripttempl/h8300h.sc: Likewise.
* scripttempl/h8300.sc: Place .rodata sections before .text
sections in main ram.
* scripttempl/h8300h.sc: Likewise.
Mon May 6 23:32:30 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/h8300h.sc: Use "eight", not "eightbit" for the
8-bit region and 8-bit sections.
Wed May 1 17:50:06 1996 Doug Evans <dje@canuck.cygnus.com>
* ldlang.c (section_already_linked): Fix typos.
Mon Apr 29 20:31:06 1996 Doug Evans <dje@canuck.cygnus.com>
* scripttempl/pe.sc (.endjunk): Define __end__.
Mon Apr 29 17:05:13 1996 Ian Lance Taylor <ian@cygnus.com>
* ldlang.c (longest_section_name): Remove.
(SECTION_NAME_MAP_LENGTH): Define.
(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.
* Makefile.in: Rebuild dependencies.
Mon Apr 29 10:29:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* configure.host (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 <ian@cygnus.com>
* 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
information.
* ldwrite.c (print_symbol_table): Print a newline before the
header in the map file.
* Makefile.in: Rebuild dependencies.
* ldmisc.c (vfinfo): Reindent.
Mon Apr 22 12:07:32 1996 Ian Lance Taylor <ian@cygnus.com>
* 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
config.traditional_format.
* 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/z8002.sh (ARCH): Set to z8002, not z8k.
Tue Apr 16 16:38:32 1996 Ian Lance Taylor <ian@cygnus.com>
* ldexp.c (fold_binary): Correct handling of subtraction with
absolute values.
(fold_name): Permit symbols in lang_allocating_phase_enum.
* scripttempl/aout.sc: Only PROVIDE __stack when RELOCATING. Undo
accidental changes in last patch.
Tue Apr 16 10:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* configure.tgt (powerpc*-*-{sysv,linux}): Add aliases.
(powerpcle*-*-{sysv,solaris}): Ditto.
Mon Apr 15 14:50:56 1996 Rob Savoye <rob@chinadoll.cygnus.com>
* scripttempl/aout.sc: 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 <rob@chinadoll.cygnus.com>
* scripttempl/m68kcoff.sc: Remove default address for .data so
.text, .data, and .bss are all sequential.
Thu Apr 11 12:05:35 1996 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/m68kcoff.sc: Remove regions and simplify.
Wed Apr 10 14:41:53 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/h8300.sc: 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/h8300h.sc: Likewise.
Tue Apr 9 14:10:42 1996 Doug Evans <dje@canuck.cygnus.com>
* 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 <meissner@tiktok.cygnus.com>
* scripttempl/elfppc.sc (.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 <ian@cygnus.com>
* 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 <ian@cygnus.com>
* emultempl/elf32.em: When checking for a native emulation, check
that the current emulation is the default emulation.
* emultempl/sunos.em: Likewise.
* configure.in: Permit --enable-shared to specify a list of
directories.
* 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 <ian@cygnus.com>
* 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}.
* configure.host (i[345]86-*-linux*): Add -dynamic-linker to
HOSTING_CRT0. Search -lgcc both before and after -lc in
HOSTING_LIBS.
* configure.tgt: Add i[345]86-*-freebsdelf* target; from John
Polstra <jdp@polstra.com>.
Fri Apr 5 18:11:25 1996 James G. Smith <jsmith@cygnus.co.uk>
* emulparams/elf32{b,l}4300.sh (MACHINE): Add explicit
architecture number.
* scripttempl/elf.sc: 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 <ian@cygnus.com>
* ldlang.c (lang_size_sections): Change region check to handle
regions which end at the highest possible address correctly.
From Roland Weber <roweber@ira.uka.de>.
* 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 <sac@slash.cygnus.com>
* scripttempl/{ppcpe.sc, pe.sc} (.junk): Remove and use /DISCARD/.
* emultempl/pe.em (init): Remove special case PPC code.
Fri Mar 29 00:01:29 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/h8300.sc: Make vectors section 0xc4 bytes long
so as not to overwrite the magic syscall entry at 0xc4.
* scripttempl/h8300h.sc: Likewise.
Thu Mar 28 11:05:47 1996 Doug Evans <dje@canuck.cygnus.com>
* configure.tgt (sparc64-*-solaris2*): Delete.
Stick with sparc-*-solaris2*.
Wed Mar 27 12:33:24 1996 Ian Lance Taylor <ian@cygnus.com>
* ld.h (DISCARD_SECTION_NAME): Define to "/DISCARD/".
* ldlang.c (init_os): Fail on an attempt to initialize any section
named DISCARD_SECTION_NAME.
(wild_doit): Discard input sections assigned to an output section
named DISCARD_SECTION_NAME.
* ld.texinfo: Document use of /DISCARD/.
* ldlang.c: Fix some indentation and comments.
Tue Mar 26 18:14:49 1996 Ian Lance Taylor <ian@cygnus.com>
* ldmain.c (main): Call bfd_set_error_program_name.
Thu Mar 21 13:17:34 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <jdp@polstra.com> for FreeBSD ELF:
* lexsup.c (parse_args): -Bshareable is a synonym for -shared.
* emulparams/elf_i386.sh (NONPAGED_TEXT_START_ADDR): Make the same
as TEXT_START_ADDR.
Wed Mar 20 18:18:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* ld.texinfo: Fix typos. Use @pxref only inside parentheses.
Wed Mar 20 16:56:15 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <dje@canuck.cygnus.com>
* configure.host (sparc*-*-solaris2* host): Accept any sparc variant.
Wed Mar 13 17:47:31 1996 Jeffrey A Law (law@cygnus.com)
* scripttempl/h8300.sc: 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/h8300h.sc: Likewise.
Wed Mar 13 12:40:18 1996 Ian Lance Taylor <ian@cygnus.com>
* emultempl/lnk960.em (machine_table): Add jx and hx.
* genscripts.sh: Don't use ${9:-xx}, since Ultrix /bin/sh doesn't
support it.
Tue Mar 12 12:43:59 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
* 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 <ian@cygnus.com>
* 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/sparcaout.sh: New file.
* Makefile.in (ALL_EMULATIONS): Add esparcaout.o.
(esparcaout.c): New target.
Wed Mar 6 16:06:52 1996 J.T. Conklin <jtc@rtl.cygnus.com>
* scripttempl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
in a different manner to work around differences in shell variable
expansion.
Wed Mar 6 18:08:18 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* ldlang.c (wild): Handle foo.a(.text) by mapping each included
member of foo.a separately. From Jouke Numan <jnuman@bazis.nl>.
Fri Mar 1 10:24:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* 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 <shebs@andros.cygnus.com>
* mpw-make.sed: Edit out shared library support.
(@TDIRS@): Edit out, can't use genscripts.
Tue Feb 27 15:09:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* configure.tgt (m68k-*-linuxaout*, m68k-*-linux*): New targets.
* emulparams/m68klinux.sh: New file.
* emultempl/linux.em (gld${EMULATION_NAME}_before_allocation):
Call bfd_${EMULATION_NAME}_size_dynamic_sections instead of
bfd_linux_size_dynamic_sections.
* Makefile.in (ALL_EMULATIONS): Add em68klinux.o.
(em68klinux.c): New target.
* configure.host (m68*-*-linuxaout*, m68*-*-linux*): New hosts.
Tue Feb 27 12:55:46 1996 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (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 <ian@cygnus.com>
* configure.tgt: Correct gldi960 to gld960.
Mon Feb 19 11:16:44 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* configure.host: Check for 'do not mix' from native linker before
trying to use -rpath.
Thu Feb 15 13:58:06 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Remove explicit substitution of CFLAGS; autoconf
does it anyhow.
* configure: Rebuild.
* Makefile.in (LDFLAGS): Set to @LDFLAGS@.
* configure.in: Call AC_PROG_CC before configure.host.
* configure: Rebuild.
* configure.host: Remove go32 host, since it should no longer be
necessary. Don't set CC for romp host.
* scripttempl/elf.sc: Don't skip a page in virtual memory space if
the text segment ends exactly on a page boundary.
* configure.in: Substitute RPATH_ENVVAR.
* configure: Rebuild.
* configure.host: Set RPATH_ENVVAR.
* Makefile.in (RPATH_ENVVAR): New variable.
(check): Use $(RPATH_ENVVAR) rather than LD_LIBRARY_PATH.
Wed Feb 14 18:49:01 1996 Alan Modra <alan@spri.levels.unisa.edu.au>
* configure.in: 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.
* Makefile.in: Add @TDIRS@. Pass "$(tdir_EMUL)" to ${GENSCRIPTS}
for each eEMUL.c target.
* genscripts.sh: Accept specific alias as 9th argument, and use it
in LIB_PATH.
Wed Feb 14 16:38:36 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
* 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/m68kpsos.sh: New file.
* scripttempl/psos.sc: New file.
* Makefile.in (ALL_EMULATIONS): Add em68kpsos.o.
(em68kpsos.c): New target.
Wed Feb 14 11:09:25 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <baford@snake.cs.utah.edu>
* scripttempl/i386msdos.sc: Don't pad the .text section. Put
.rodata in .data.
Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.host: 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 <hjl@zoom.com>.
Thu Feb 8 19:25:54 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* configure.in: Look for --enable-shared. Change the value of
BFDLIB when linking against a shared library on SunOS.
* configure: Rebuild.
* configure.host: If using a shared BFD library, try to pass a
reasonable -rpath option when linking.
* Makefile.in (BFDLIB): Set to @BFDLIB@.
Tue Feb 6 12:29:14 1996 Doug Evans <dje@charmed.cygnus.com>
* emulparams/elf64_sparc.sh (ARCH): Change to `sparc:v9'.
* emultempl/generic.em: Strip `:foo' from ${ARCH}.
Mon Feb 5 16:25:30 1996 Ian Lance Taylor <ian@cygnus.com>
Support for building bfd and opcodes as shared libraries, based on
patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
* configure.in (HLDFLAGS): New substitution.
* configure: Rebuild.
* configure.host: Set HLDFLAGS on SunOS.
* Makefile.in (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 <meissner@wogglebug.tiac.net>
* scripttempl/elfppc.sc (.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 <ian@cygnus.com>
* configure: Regenerate.
Thu Feb 1 10:50:46 1996 Ian Lance Taylor <ian@cygnus.com>
* emulparams/elf_i386.sh (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 <sac@slash.cygnus.com>
* 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 <rth@tamu.edu>
* configure.tgt (m68*-apple-aux*): New target.
* emulparams/m68kaux.sh: New file.
* scripttempl/m68kaux.sc: New file.
* Makefile.in (ALL_EMULATIONS): Add em68kaux.o.
(em68kaux.c): New target.
Tue Jan 30 13:18:56 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* ld.texinfo, ld.1: Document -export-dynamic.
Fri Jan 26 11:11:55 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* emultempl/sunos.em: Check for native compile by comparing
${target} and ${host}.
Thu Jan 25 16:46:58 1996 James G. Smith <jsmith@cygnus.co.uk>
* emulparams/{elf32b4300.sh, elf32l4300.sh}: Changed
TEXT_START_ADDR to allow use on IDT and PMON systems.
Wed Jan 24 20:59:40 1996 Steve Chamberlain <sac@slash.cygnus.com>
* emultempl/pe.em (gld_${EMULATION_NAME}_parse_args):
correct spelling.
Wed Jan 24 16:59:19 1996 Doug Evans <dje@charmed.cygnus.com>
* configure.tgt (sparc64-*-solaris2*): New configuration.
(sparc64-*-aout*): Renamed from sparc64*.
Mon Jan 22 13:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* Makefile.in (GENSCRIPTS): Pass @host@ @target@ @target_alias@.
* genscripts.sh: Set host, target and target_alias variables.
Check for native compile by comparing ${target} and ${host}.
* emultempl/elf32.em: Likewise.
* scripttempl/elfmips.sc: Test ${target}, not ${target_alias}.
Mon Jan 22 11:03:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* scripttempl/elfppc.sc: Refine eabi support to better support
.sdata, .sdata2, .sbss, etc. sections.
Tue Jan 16 15:16:58 1996 Ian Lance Taylor <ian@cygnus.com>
* 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_PHDR_FILEHDR, LANG_PHDR_PHDRS): Remove.
(lang_new_phdr): Update declaration.
* ld.texinfo: Document FLAGS.
Mon Jan 15 15:07:19 1996 Ian Lance Taylor <ian@cygnus.com>
* emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation):
Don't make a shared library because of an undefined reference to
__GLOBAL_OFFSET_TABLE_.
Add some Irix 5 support, mostly from Kazumoto Kojima
<kkojima@info.kanagawa-u.ac.jp>:
* emulparams/elf32bmip.sh (SCRIPT_NAME): Change to elfmips.
(SHLIB_TEXT_START_ADDR): Define.
(OTHER_GOT_SYMBOLS): Define.
(OTHER_READWRITE_SECTIONS): Remove initialization of _gp.
(EXECUTABLE_SYMBOLS): Don't define.
(DYNAMIC_LINK): Don't define.
* emulparams/elf32lmip.sh: Same changes as elf32bmip.sh.
* scripttempl/elfmips.sc: New file.
* configure.host (mips*-dec-bsd*): Change mips to mips*.
(mips*-sgi-irix4*): Likewise.
(mips*-sgi-irix5*): New entry.
* Makefile.in (eelf32bmip.c): Depend upon elfmips.sc rather than
elf.sc.
(eelf32lmip.c): Likewise.
Sat Jan 13 09:41:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* scripttempl/elfppc.sc: Remove support for .rel.* sections. Add
.rela.got.neg section.
Fri Jan 12 14:56:19 1996 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/sh.sc: 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 <meissner@tiktok.cygnus.com>
* scripttempl/elfppc.sc: Add support for .sdata2/.sbss2, etc. Add
in old support that 2.7.2 needs, but the current compiler does
not.
* Makefile.in (eelf32{,l}ppc.c): Fix up dependencies to use the
correct Linker script template.
* emulparams/elf32{,l}ppc.sh (TEXT_START_ADDR): Set to 0x40000,
not 0x400000.
(DATA_ADDR,NONPAGED_TEXT_START_ADDR): Delete.
Tue Jan 9 15:53:02 1996 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/alpha.sc: Put .rconst right after .rdata.
Fri Jan 5 14:07:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
* emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation):
sort using right pointer.
Fri Jan 5 12:25:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
* scripttempl/elfppc.sc: 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 <ian@cygnus.com>
* configure.host: 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 <dje@canuck.cygnus.com>
* scripttempl/h8300.sc: Use all 64K for ram.
* scripttempl/h8300h.sc: Define 256K ram size.
Thu Dec 21 15:57:18 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <shebs@andros.cygnus.com>
* mpw-config.in: Recognize mips-*-* as equivalent to
mips-idt-ecoff.
* 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 <krk@cygnus.com>
* scripttempl/ppcpe.sc (FINI): Moved the .reloc section.
Wed Dec 6 14:33:50 1995 Doug Evans <dje@canuck.cygnus.com>
* ldlang.c (print_statement{,s}): Delete duplicate prototype.
(print_statement_list): Renamed from print_statement. All callers
updated.
(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 <ian@cygnus.com>
* 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 <dje@canuck.cygnus.com>
* emultempl/pe.em (gld_${EMULATION_NAME}_before_allocation): Fix call
to sort_sections.
Fri Dec 1 16:48:36 1995 Ian Lance Taylor <ian@cygnus.com>
* 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_PHDR_FILEHDR, LANG_PHDR_PHDRS): 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 <krk@cygnus.com>
* scripttempl/ppcpe.sc: Moved .edata into its own section to
expose it.
Thu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
HOSTING_LIBS for testing.
(m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
testing.
Tue Nov 28 12:14:53 1995 Ian Lance Taylor <ian@cygnus.com>
* lexsup.c (parse_args): Set config.dynamic_link to false for -N
and -n.
Mon Nov 27 13:12:09 1995 Ian Lance Taylor <ian@cygnus.com>
* configure: Rebuild with autoconf 2.7.
Fri Nov 24 18:35:35 1995 Doug Evans <dje@canuck.cygnus.com>
* scripttempl/pe.sc: Two .junk's is too much junk.
Tue Nov 21 16:14:32 1995 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Use BFD_NEED_DECLARATION.
* acconfig.h: Put NEED_DECLARATION_FREE in @TOP@ section.
* configure, config.in: 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 <shebs@andros.cygnus.com>
* configure.tgt (powerpc-*-macos*): New target.
* emulparams/ppcmacos.sh: New file, PowerMac emulation.
* Makefile.in (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 <ian@cygnus.com>
* Makefile.in (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 <dje@canuck.cygnus.com>
* scripttempl/pe.sc (.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 <raeburn@cygnus.com>
Version 2.6 released.
* ldver.c (ldversion): Update to 2.6.
* Makefile.in (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 <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <ian@cygnus.com>
* ldemul.c (ldemul_default_target): Cast getenv return value.
Tue Nov 7 11:15:36 1995 Kim Knuttila <krk@cygnus.com>
* emulparams/ppcpe.sh (ARCH): New file for PowerPC Portable
Executable support.
* scripttempl/ppcpe.sc: New file for PowerPC Portable Executable
support.
* configure.tgt (targ_extra_emuls): Added powerpcle-pe target.
* Makefile.in (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 <ian@cygnus.com>
* 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 <manfred@lts.sel.alcatel.de>
* scripttempl/m88kbcs.sc (.data): Calculate next boundary modulo
0x2000 not 0x200.
Mon Nov 6 10:59:21 1995 Ian Lance Taylor <ian@cygnus.com>
* configure.in: Add test for whether free must be declared.
* sysdep.h: Declare free if necessary. Include "ansidecl.h".
* acconfig.h: Explain NEED_DECLARATION_FREE.
* configure, config.in: Rebuild.
* lexsup.c (parse_args): Take B:: out of shortopts.
Sun Nov 5 03:08:28 1995 Ken Raeburn <raeburn@cygnus.com>
* emulparams/i386nbsd.sh (EXECUTABLE_SYMBOLS): Set __DYNAMIC to 0
for now, as with m68k4kbsd, until shared library support gets
done.
* configure.host: 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 <manfred@lts.sel.alcatel.de>
* Makefile.in (ALL_EMULATIONS): Add edelta68.o.
(edelta68.c): New target.
* configure.tgt (m68*-motorola-sysv*): New target.
* emulparams/delta68.sh: New file.
* scripttempl/delta68.sc: New file.
* scripttempl/m88kbcs.sc: Handle .init and .fini. Change section
addresses.
Wed Nov 1 11:41:56 1995 Ian Lance Taylor <ian@cygnus.com>
* 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.
* Makefile.in ($(EMULATION_OFILES)): Depend upon ldgram.h.
Tue Oct 31 18:22:24 1995 David Mosberger-Tang <davidm@azstarnet.com>
* configure.host (alpha-*-linux*): New host.
* configure.tgt (alpha-*-linux*): New target.
Tue Oct 31 12:36:52 1995 Ian Lance Taylor <ian@cygnus.com>
* 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
list.
Sat Oct 28 00:10:03 1995 steve chamberlain <sac@slash.cygnus.com>
* 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 <niklas@appli.se>
* Makefile.in (ALL_EMULATIONS): Added support for the NetBSD
m68k4k arch.
(em68k4knbsd.c): New rule.
* configure.tgt: Added support for the NetBSD m68k4k arch.
* genscripts.sh, ldint.texinfo,
emulparams/{a29k,armaoutb,armaoutl,coff_sparc,ebmon29k,gld960,
gld960coff,go32,h8300,h8300h,h8500,h8500b,h8500c,h8500m,h8500s,
hp300bsd,hp3hpux,hppaelf.sh,i386aout,i386bsd,i386coff,i386go32,
i386linux,i386lynx,i386nbsd,lnk960,m68kaout,m68kcoff,m68klynx,
m88kbcs,mipsbig,mipsbsd,mipsidt,mipsidtl,mipslit,news,ns32knbsd,
pc532machaout,riscix,sa29200,sh,shl,sparclynx,sparcnbsd,
st2000,sun3,sun4,vanilla,vax,vsta,w65,z8001,z8002}.sh: Changed
PAGE_SIZE to TARGET_PAGE_SIZE.
* emulparams/m68knbsd.h: Ditto.
(TEXT_START_ADDR, NONPAGED_TEXT_START_ADDR): We have 8K pagesize.
(EXECUTABLE_SYMBOLS): Hardcode __DYNAMIC to zero for the time
being.
* emulparams/m68k4knbsd.sh: New file.
* scripttempl/aout.sc: Expand EXECUTABLE_SYMBOLS if relocating.
Fri Oct 27 17:59:09 1995 Ian Lance Taylor <ian@cygnus.com>
* 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/aix.sc: 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 <shebs@andros.cygnus.com>
* mpw-config.in: Add PowerMac target support, generate config.h.
* mac-ld.r: New file, Mac resources.
* mpw-make.sed: New file, edits Makefile.in into MPW syntax.
* mpw-make.in: Remove.
* mpw-eppcmacos.c: Prebuilt version of PowerMac linking script.
Thu Oct 26 14:11:26 1995 Ian Lance Taylor <ian@cygnus.com>
* emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Treat
-static as a synonym for -bnso.
* scripttempl/aix.sc: Move special symbols inside sections.
Always start .data at 0.
Wed Oct 25 11:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
* Makefile.in (diststuff): Also make info.
(maintainer-clean realclean): Also delete *.info*.
Wed Oct 25 11:27:25 1995 Ian Lance Taylor <ian@cygnus.com>
* emultempl/aix.em: Add support for various AIX linker options,
for AIX import and export files, and for AIX shared objects.
* scripttempl/aix.sc: 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 <jsmith@pasanda.cygnus.co.uk>
* emulparams/elf32vr4300.sh: Deleted.
* emulparams/elf32vr4300el.sh: Deleted.
* emulparams/elf32b4300.sh: Added.
* emulparams/elf32l4300.sh: Added.
* configure.tgt, Makefile.in: Updated the build to use the
new 8.3 unique names.
Thu Oct 19 17:41:46 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <sac@slash.cygnus.com>
* scripttempl/pe.sc (.bss): Move to be after .text
Tue Oct 17 12:22:05 1995 Ian Lance Taylor <ian@cygnus.com>
* emultempl/sunos.em (gld${EMULATION_NAME}_find_exp_assignment):
Search trinary.cond rather than searching trinary.lhs twice. From
linli@ihp.PHys.ethz.CH.
* 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.
* Makefile.in (eelf32ppc.c): Depend upon elf32.em, not generic.em.
(eelf32lppc.c): Likewise.
* emulparams/elf32lppc.sh (TEMPLATE_NAME): Define as elf32.
(GENERATE_SHLIB_SCRIPT): Define as yes.
Mon Oct 16 19:11:13 1995 Ian Lance Taylor <ian@cygnus.com>
* 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/aixppc.sh, emulparams/aixrs6.sh: New files.
* emultempl/aix.em: New file.
* scripttempl/aix.sc: New file.
* Makefile.in (ALL_EMULATIONS): Add eaixppc.o and eaixrs6.o.
(eaixppc.c, eaixrs6.c): New targets.
Fri Oct 13 14:00:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
* scripttempl/pe.sc (.reloc): Move to the end.
Tue Oct 10 17:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <sac@slash.cygnus.com>
* emultempl/pe.em (gld_${EMULATION_NAME}_parse_args): Fix
fatal typos.
Tue Oct 10 01:01:51 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <raeburn@cygnus.com>
Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* ld.1: Fix formatting bugs.
Wed Oct 4 17:37:46 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <dje@deneb.cygnus.com>
* scripttempl/armcoff.sc: Start .text at 0x8000.
Start .data at 0x40000.
Fri Sep 29 11:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
* 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/sun4.sh (GENERATE_SHLIB_SCRIPT): Remove.
* scripttempl/aout.sc: 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
from_cmdline.
* 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 <ian@cygnus.com>
* 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/sparccoff.sc: Add .ctors/.dtors handling like other
COFF targets, allowing for the leading underscore used on SPARC
COFF.
* lexsup.c (parse_args): Handle -assert.
* emulparams/sun4.sh (GENERATE_SHLIB_SCRIPT): Define.
* emultempl/sunos.em (gld${EMULATION_NAME}_get_script): Use the
shared library script when appropriate.
* scripttempl/aout.sc: If CREATE_SHLIB is set, start the .text
section at SIZEOF_HEADERS.
Thu Sep 28 01:40:37 1995 Doug Evans <dje@deneb.cygnus.com>
* Makefile.in (earmcoff.c): Build.
* configure.tgt (arm-*-coff): New target
* emulparms/armcoff.sh: New file.
* scripttempl/armcoff.sc: New file.
Tue Sep 26 10:59:32 1995 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/i386coff.sc: Remove .data2; no longer needed.
Fri Sep 22 18:09:02 1995 Ian Lance Taylor <ian@cygnus.com>
* ldfile.c (ldfile_set_output_arch): Make arch const.
Thu Sep 21 17:55:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
* scripttempl/elfppc.sc: 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 <ian@cygnus.com>
* Makefile.in (CC_FOR_TARGET): Quote $(program_transform_name).
(CXX_FOR_TARGET, install): Likewise.
Mon Sep 18 14:53:22 1995 Ian Lance Taylor <ian@cygnus.com>
Based on patches by Alan Modra <alan@spri.levels.unisa.edu.au>:
* Makefile.in (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 <arnej@pvv.unit.no>
* configure.tgt (mips*-dec-netbsd*): New target.
Fri Sep 15 20:01:52 1995 Ken Raeburn <raeburn@cygnus.com>
* configure.host (m88*-*-dgux*): Fix another shell syntax error.
Fri Sep 15 23:28:05 1995 Andrew Cagney <cagney@highland.com.au>
* configure.host (i[345]86-*-bsd*): Fix shell syntax error.
Thu Sep 12 12:50:49 1995 steve chamberlain <sac@slash.cygnus.com>
* scripttempl/pe.sc: Allow both spellings of .ctors/.dtors.
Start .text section on the right boundary. Always align
stabs.
Tue Sep 12 12:24:17 1995 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (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 <ian@cygnus.com>
* Makefile.in (config.status): Depend upon configure.tgt.
* ldemul.h (ldemul_set_symbols): Declare.
(ldemul_parse_args): Declare.
* ldemul.c (ldemul_parse_args): Fix indentation.
* configure.in: Call AC_HEADER_DIRENT.
* configure, config.in: Rebuild.
* emultempl/sunos.em: Use autoconf recommend mechanism to define
DIR and struct dirent.
* configure.tgt (mips*-*-bsd*): New case.
* configure.host (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 <ian@cygnus.com>
* config.in: Rename from config.h.in.
* configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
Check for config.h:config.in when creating stamp-h.
* configure: Rebuild.
* Makefile.in (stamp-h): Depend upon config.in rather than
config.h.in. Set CONFIG_HEADERS to config.h:config.in when
calling config.status.
* Makefile.in (distclean): Remove config.h and stamp-h.
* configure.host (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 <ian@cygnus.com>
* configure.in: Rewrite to use autoconf.
* configure.host: New file.
* configure.tgt: New file.
* aclocal.m4: New file.
* configure: New file, built by autoconf.
* acconfig.h: New file.
* config.h.in: New file, built by autoheader.
* sysdep.h: New file.
* ld.h: Incorporate old contents of config.h.
* config.h: Remove.
* Makefile.in: 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@.
* genscripts.sh: 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
HAVE_SBRK here.
* config/*.mt, config/*.mh: Remove.
Tue Sep 5 14:55:24 1995 Ken Raeburn <raeburn@cygnus.com>
* configure.in: 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 <dje@canuck.cygnus.com>
* scripttempl/pe.sc: Fix typo in spelling of .ctors/.dtors.
Fri Sep 1 13:13:29 1995 Ian Lance Taylor <ian@cygnus.com>
* ldmain.c (warning_callback): Add abfd, section, and address
parameters.
* 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 <jsmith@beauty.cygnus.com>
* configure.in: Added mips*vr4300-idt-elf* and
mips*vr4300el-idt-elf* targets.
* Makefile.in: Added eelf32vr4300* targets.
* emulparams/{elf32vr4300.sh, elf32vr4300el.sh}: Added.
* config/{mips-vr4300.mt, mips-vr4300el.mt}: Added.
Fri Sep 1 10:51:45 1995 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/a29k.sc: Fix to be reasonable. From Brendan Kehoe
<brendan@cygnus.com>.
Thu Aug 31 16:37:07 1995 steve chamberlain <sac@slash.cygnus.com>
* 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 <ian@cygnus.com>
* 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 <sac@slash.cygnus.com>
* 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/pe.sc: Use new symbols.
Thu Aug 24 18:12:18 1995 Ian Lance Taylor (ian@cygnus.com)
* 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 <sac@slash.cygnus.com>
* scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
* emulparams/armpe.sh: Run PE script.
Mon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
* 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 <sac@slash.cygnus.com>
* emultempl/{armpe.sc, i386pe.sc}: Deleted.
* emultempl/pe.sc: New file performs generic PE support and sorts
archive members.
* emulparams/{armpe.sh,i386pe.sh}: Use new file.
* scripttempl/{armpe.sc, i386pe.sc}: Deleted
* scripttempl/pe.sc: New.
* Makefile.in: Use new files.
Thu Aug 17 14:46:34 1995 Doug Evans <dje@canuck.cygnus.com>
* scripttempl/h8500s.sc (.rdata): All data must go in data segment.
(.strings,.ctors,.dtors): Likewise.
Wed Aug 16 11:38:59 1995 steve chamberlain <sac@slash.cygnus.com>
* scripttempl/armpe.sc: 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 <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <raeburn@kr-laptop.cygnus.com>
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Use xmalloc
instead of alloca.
Tue Aug 8 15:24:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Don't use
$r/../gcc/xgcc unless it is present.
Thu Aug 3 11:56:22 1995 Ian Lance Taylor <ian@cygnus.com>
* scripttempl/m68kcoff.sc: Only put .ctors and .dtors in .text
when CONSTRUCTING.
* scripttempl/m68klynx.sc: Likewise.
* scripttempl/nw.sc: Likewise.
* scripttempl/sa29200.sc: Likewise.
* scripttempl/sparclynx.sc: Likewise.
Fri Jul 28 12:02:23 1995 steve chamberlain <sac@slash.cygnus.com>
* emulparams/{z8001.sh, z8002.sh}: Fix typo.
Thu Jul 27 21:06:21 1995 Ken Raeburn <raeburn@cygnus.com>
* configure.in (i[345]86-*-linuxoldld): Treat like linuxaout*.
Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>
* scripttempl/i386pe.sc: Cope with constructors.
* scripttempl/z8ksim.sc: Deleted.
* scripttempl/z8000.sc: Resurrected as this, but
can handle z8001 and z8002 formats.
* emulparams/z8ksim.sh: Deleted.
* emulparams/{z8001.sh, z8002.sh}: New files.
* config/z8ksim.mt: Deleted
* config/z8k-coff.mt: New, generates both emulations.
Tue Jul 25 14:53:02 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* ldlang.c (lang_process): Call reset_memory_regions for each
relaxation pass.
Fri Jul 21 22:49:44 1995 Michael Meissner <meissner@cygnus.com>
* scripttempl/elfppc.sc: Add support for .sdata, .sbss, and
_SDA_BASE.
Thu Jul 20 16:26:55 1995 Ken Raeburn <raeburn@cygnus.com>
* 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 <dje@canuck.cygnus.com>
* emulparams/armpe.sh (OUTPUT_FORMAT): Change to pei-arm-little.
(LITTLE_OUTPUT_FORMAT, BIG_OUTPUT_FORMAT): Define.
Mon Jul 17 13:57:00 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <meissner@cygnus.com>
* emulparams/elf32ppc.sh (TEMPLATE_NAME): Define as elf32.
(GENERATE_SHLIB_SCRIPT): Define as yes.
Fri Jul 14 12:11:46 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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
bfd_size_type.
* Makefile.in (ALL_EMULATIONS): It's earmaoutb.o, not earmoutb.o.
Wed Jul 12 11:32:22 1995 Ian Lance Taylor <ian@cygnus.com>
* ldemul.h (ldemul_open_dynamic_archive): Add search parameter to
declaration.
(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
ldemul_open_dynamic_archive.
(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):
Likewise.
Tue Jul 11 16:44:21 1995 Ian Lance Taylor <ian@cygnus.com>
* ldmain.c (set_scripts_dir): Don't base script directory on
current directory.
Tue Jul 11 12:29:02 1995 Rick Sladkey <jrs@world.std.com>
* ldmisc.c (vfinfo): Don't print the line number if it isn't
meaningful.
Mon Jul 10 13:38:28 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <hjl@nynexst.com>:
* 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.
* Makefile.in: Rebuild dependencies.
* ld.texinfo, ld.1: Document -Bstatic, -Bdynamic, -Bshared, and
-shared.
Mon Jul 10 13:29:43 1995 Eric Youngdale <eric@aib.com>
* ldmain.c (main): Set link_info.symbolic to false.
* lexsup.c (parse_args): Handle -Bsymbolic.
Wed Jul 5 00:12:11 1995 Fred Fish (fnf@cygnus.com)
* 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 <ian@cygnus.com>
* 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
gld${EMULATION_NAME}_after_open.
Mon Jul 3 14:26:37 1995 Steve Chamberlain <sac@slash.cygnus.com>
* configure.in (i386-*-win32): New target.
Mon Jul 3 14:39:22 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <sac@slash.cygnus.com>
* ldmain.c (main): Always initialize PE info in link_info.
* lexsup.c (OPTION_BASE_FILE): New option.
(parse_args): Handle new option.
* emulparams/armpe.sh: Output pei.
* emultempl/i386pe.em: Add newline to end.
* scripttempl/armpe.sc: Change output and quote the $s.
* scripttempl/i386pe.sc: Change output and quote the $s.
Thu Jun 22 19:55:41 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
Sun May 7 11:53:41 MDT 1995 Bryan Ford <baford@cs.utah.edu>
* configure.in (i386-*-msdos*, i386-*-moss*): New targets.
* Makefile.in (ALL_EMULATIONS): Added i386msdos.o.
(i386msdos.o): New target.
* config/i386-msdos.mt: Created.
* emulparams/i386msdos.sh: Created.
* scripttempl/i386msdos.sc: Created.
Thu Jun 22 15:06:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
* scripttempl/elfppc.sc (.fixup): Add support for a .fixup section
that contains pointers to be relocated.
Tue Jun 20 17:47:20 1995 Stan Shebs <shebs@andros.cygnus.com>
* mpw-esh.c: New file, modified for MPW from esh.c.
* scripttempl/sh.sc: Reformatted to simplify MPWification,
use *() to concat stab sections instead of [].
Thu Jun 15 08:48:16 1995 Steve Chamberlain <sac@slash.cygnus.com>
* scripttempl/armpe.sc: Add constructor support.
Tue Jun 13 09:11:20 1995 Steve Chamberlain <sac@slash.cygnus.com>
* ldlang.c (lang_size_sections): Any section with a DATA
statement has contents.
Sun Jun 11 15:20:46 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
* emulparams/m68kelf.sh (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 <sac@slash.cygnus.com>
* emulparams/armpe.sh, scripttempl/armpe.sc: Add end and stack.
Mon Jun 5 02:16:24 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
* configure.in (i[345]86-*-gnu*): Use GNU elf config.
Thu May 25 11:49:28 1995 Michael Meissner <meissner@tiktok.cygnus.com>
From Andrew Cagney <cagney@highland.com.au>
* Makefile.in: Fixup more gotchas from renaming elf32ppcle to
elf32lppc.
Wed May 24 11:23:21 1995 Steve Chamberlain <sac@slash.cygnus.com>
Add support for ARM-PE.
* Makefile.in (ALL_EMULATIONS): Add armpe.o
* configure.in: Recognize armpe.
* config/arm-pe.mt: New file.
* emulparams/armpe.sh: New file.
* scripttempl/armpe.sc: New file.
Mon May 22 15:19:26 1995 Doug Evans <dje@chestnut.cygnus.com>
* configure.in (h8300h-*-hms): Deleted
* config/cf-h8300h.mt: Deleted.
Thu May 18 04:26:10 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
From David Taylor (dtaylor@armltd.co.uk)
* Makefile.in (ALL_EMULATIONS): Add earmout[lb].o
* configure.in: Recognize arm{,e[lb]-*-aout.
* config/arm[lb]-aout.mt: New files.
* emulparams/armaout[lb].sh: New files.
* scripttempl/armaout.sc: New file.
Tue May 16 18:27:11 1995 Michael Meissner <meissner@tiktok.cygnus.com>
* config/ppcle-elf32.mt (EMUL): Use elf32lppc, not elf32ppcle, to
be unique in 8 characters for DOS.
* emulparams/elf32lppc.sh: New file, renamed from elf32ppcle.sh.
* emulparams/elf32ppcle.sh: Deleted.
Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
Tom Griest <griest@cs.yale.edu>
Initial support for PE executables (eg NT, win32)
* Makefile.in (configure.in, 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/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
New files
Wed May 10 18:37:59 1995 Stu Grossman (grossman@andros.cygnus.com)
* scripttempl/hppaelf.sc: Remove .PARISC.unwind section from text
segment. This allows ld -r to preserve unwind sections.
Tue May 9 17:19:57 1995 Michael Meissner <meissner@tiktok.cygnus.com>
* configure.in: Add little endian PowerPC support.
* Makefile.in (ALL_EMULATIONS): Add eelf32ppcle.o.
(eelf32ppcle.c): Support for little endian PowerPC.
* config/ppcle-elf32.mt: New file for little endian PowerPC.
* emulparams/elf32ppcle.sh: Ditto.
Wed May 3 12:56:32 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
* ldlang.c (print_output_section_statement): Check
subsection_alignment, instead of checking section_alignment twice.
Noticed by Alan Modra <alan@spri.levels.unisa.edu.au>.
Tue May 2 16:36:07 1995 Jeff Law (law@snake.cs.utah.edu)
* configure.in (hppa*-*-lites*): Handle like hppa*-*-*elf*.
Mon Apr 24 19:21:02 1995 Michael Meissner <meissner@cygnus.com>
* 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 <raeburn@cujo.cygnus.com>
* Makefile.in (ALL_EMULATIONS): Added em68kelf.o.
(em68kelf.o): New target.
* config/m68k-elf.mt, emulparams/m68kelf.sh: New files.
* configure.in: Use them for m68*-*-elf.
Tue Apr 11 12:02:03 1995 Stan Shebs <shebs@andros.cygnus.com>
Merge in support for Mac MPW as a host.
(Old change descriptions retained for informational value.)
* mpw-config.in (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.
* mpw-make.in (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.
* mpw-config.in (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.
* mpw-config.in (emulname): Set based on target.
(ldemul-list.h): Construct.
* mpw-make.in (install-only): New target.
(install): Depend on install-only.
* mpw-make.in (bindir): Fix pathname.
(install): Move here from mpw-build.in.
* mpw-config.in: New file, MPW configuration fragment.
* mpw-make.in: New file, MPW makefile fragment.
(This file is semi-automatically generated from Makefile.in.)
* 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 <sac@bang.hack.com>
* ldwrite.c (clone_section): Align clone sections on even
boundaries.
Thu Mar 30 14:32:26 1995 H.J. Lu (hjl@nynexst.com)
* configure.in: Change linux to default to elf. Using
i[345]86-*-linuxaout will build a linker which defaults to a.out.
* config/i386-laout.mt: Rename from old config/i386-linux.mt.
* config/i386-linux.mt: Rename from old config/i386-lelf.mt.
* config/i386-lelf.mt: Remove.
Thu Mar 30 13:09:46 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <ian@cygnus.com>
* 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 <ian@cygnus.com>
* ldlang.c (load_symbols): An empty archive is OK.
Fri Mar 17 16:15:31 1995 Stan Shebs <shebs@andros.cygnus.com>
* ldmain.c (progress.h): Include.
(main): Call START_PROGRESS and END_PROGRESS.
Thu Mar 16 17:17:33 1995 Michael Meissner <meissner@cygnus.com>
* scripttempl/elfppc.sc: 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 <roland@churchy.gnu.ai.mit.edu>
* 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 <ian@cygnus.com>
* genscripts.sh (EMULATION_NAME): Set LIB_PATH to empty when not
using the default emulation.
* config/dgux.mh (HOSTING_EMU): Use -m rather than trying to set
LDEMULATION.
* config/hppaelf.mh (HOSTING_EMU): Likewise.
Tue Mar 14 12:28:03 1995 Ian Lance Taylor <ian@cygnus.com>
* emultempl/sunos.em (gld${EMULATION_NAME}_find_so): Set force_maj
for -lc.N. From H.J. Lu <hjl@nynexst.com>.
Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <meissner@tiktok.cygnus.com>
* ldlang.c (lang_check): If the architectures are compatible call
bfd_merge_private_bfd_data to let the backend do additional
checks.
Tue Mar 7 00:53:08 1995 Ian Lance Taylor <ian@cygnus.com>
* ldemul.c (ldemul_choose_mode): If emulation not recognized, list
all supported emulations.
Mon Mar 6 14:03:50 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <dje@canuck.cygnus.com>
* scripttempl/elf.sc (.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 <ian@cygnus.com>
* 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 <ian@cygnus.com>
Doc note from pierre@phi.la.tce.com (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 <ian@cygnus.com>
* emulparams/gld960coff.sh (COFF_CTORS): Define.
* scripttempl/i960.sc: Use COFF_CTORS if CONSTRUCTING.
Tue Feb 28 12:42:56 1995 Ian Lance Taylor <ian@cygnus.com>
* configure.in (i[345]86-*-linuxelf*): New target. Use i386-lelf.
(i[345]86-*-gnuelf*): New target. Use i386-gelf.
* config/i386-lelf.mt: New file.
* config/i386-gelf.mt: New file.
Tue Feb 28 10:27:54 1995 Rob Savoye <rob@darkstar.cygnus.com>
* configure.in: Match on mips-ecoff, and default to the IDT
configuration.
Fri Feb 17 13:06:47 1995 Michael Meissner <meissner@cygnus.com>
* scripttempl/elfppc.sc: 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 <raeburn@cujo.cygnus.com>
* Makefile.in (distclean): Do recursive deletion, since ldscripts
is a directory.
Thu Feb 9 11:38:22 1995 Ian Lance Taylor <ian@cygnus.com>
* 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 <ian@cygnus.com>
* ldlang.c (lang_one_common): Adjust references to common symbol
information for new structure.
Mon Feb 6 12:17:24 1995 Ian Lance Taylor <ian@cygnus.com>
* 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/alpha.sc: Set address of .data section correctly
when -n or -N is used. Patch from Chris G Demetriou
<Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>.
* scripttempl/mips.sc: Similar change.