Commit Graph

294 Commits

Author SHA1 Message Date
Alan Modra 2114f57b93 Update dependencies. 2000-05-26 14:14:21 +00:00
Alan Modra 5af11cab92 Eli Zaretskii's DOSish file name patches. 2000-05-26 13:11:57 +00:00
Nick Clifton 1f0df59a27 When deciding if ".text" section should be read-only, don't forget to reset
SEC_READONLY because it could be already set.
2000-05-23 21:03:35 +00:00
Nick Clifton 176355da99 Patch from Thomas de Lellis to implement --section-start 2000-05-22 21:58:40 +00:00
H.J. Lu e80778cf3d 2000-05-21 H.J. Lu (hjl@gnu.org)
* ld-elfvsb/main.c (main_visibility_check): Fix the protected
	visibility test.
2000-05-21 21:08:17 +00:00
H.J. Lu 8c5ff9729d 2000-05-18 H.J. Lu <hjl@gnu.org>
* lexsup.c (parse_args): `i' == `r', not `q'.
2000-05-18 22:01:04 +00:00
Jeff Law 0b76fe778f * configure.tgt (hppa*64*-*-*): Enable PA64 target. 2000-05-18 16:48:14 +00:00
Nick Clifton 079a8e4af5 Fix typo in previous delta 2000-05-17 19:53:11 +00:00
Nick Clifton a712da2085 Apply patch from Richard Gorton <gorton@scrugs.lkg.dec.com> to implement
--emit-relocs switch to the linker to preserve relocs in an output executable
2000-05-17 19:38:53 +00:00
Nick Clifton 690a460e0c Apply patch from Charles Wilson to make PE ports search for dynamic libraries
in foo.dll and libfoo.dll before libfoo.a.
2000-05-16 20:53:26 +00:00
Alan Modra c2f1343c8b Update printed copyright. 2000-05-15 02:17:52 +00:00
H.J. Lu 6fc49d288b 2000-05-13 H.J. Lu (hjl@gnu.org)
* lib/ld-lib.exp (default_ld_link): Redirect the linker output
	to link_output and make it global.

	* ld-elfvsb/elf-offset.ld: New. ELF visibility fearture
	tests.
	* ld-elfvsb/elfvsb.dat: Likewise.
	* ld-elfvsb/elfvsb.exp: Likewise.
	* ld-elfvsb/main.c: Likewise.
	* ld-elfvsb/sh1.c: Likewise.
	* ld-elfvsb/sh2.c: Likewise.
2000-05-13 16:54:32 +00:00
Alan Modra 897083bdcd Quell some gcc warnings by defining textdomain and bindtextdomain
as intl/libgettext.h does.
2000-05-13 13:05:36 +00:00
H.J. Lu cd4c806ac9 2000-05-10 H.J. Lu <hjl@gnu.org>
* ldlang.c (open_input_bfds): Don't load the same file within
	a group again if the whole archive has been loaded already.
2000-05-10 23:12:35 +00:00
Alan Modra 9369728402 Fix 64 bit target section start on 32 bit machine. 2000-05-03 11:22:42 +00:00
Jim Wilson 99a4150f8b Fix just added ia64-linux support to conform with others.
* configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2000-05-02 00:58:51 +00:00
Jim Wilson ebd6fc2935 Ld testsuite support for ia64-linux.
* configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
	host "ia64-*-linux-gnu*".
2000-05-02 00:39:34 +00:00
Alan Modra a1934524a3 Correctly check gcc version. 2000-04-29 00:56:29 +00:00
Jeff Law 730a39a0a3 * Makefile.am: Add PA64 support. Add missing dependencies for
PA32 elf support.
        * Makefile.in: Rebuilt.
        * configure.tgt: Add PA64 support (currently disabled).
2000-04-25 17:21:28 +00:00
Alan Modra aea4bd9d34 place_orphan optimisations 2000-04-25 05:14:16 +00:00
Nick Clifton 2b5fc1f5d0 Note that output section data commands can only appear inside output section
descriptions and not between them.
2000-04-25 00:27:24 +00:00
Jim Wilson b32711aa6a A misc IA-64 ELF patch I missed in the first pass.
* testsuite/ld-scripts/phdrs.exp: IA-64 is 64-bit ELF too.
2000-04-21 22:17:28 +00:00
Jeff Law d8475ff6b6 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support. 2000-04-21 21:52:48 +00:00
Jim Wilson 800eeca487 IA-64 ELF support. 2000-04-21 20:22:24 +00:00
Richard Henderson c9637625e4 * scripttempl/elfd30v.sc: Place .gcc_except_table. 2000-04-21 17:29:15 +00:00
Alan Modra 28ea9521fe Match space at start of file name, not end. 2000-04-20 02:13:01 +00:00
H.J. Lu 20d04697a8 2000-04-18 H.J. Lu <hjl@gnu.org>
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
	lang_leave_output_section_statement () after calling
	lang_enter_output_section_statement ().
	* emultempl/armelf.em: Likewise.
2000-04-18 23:39:03 +00:00
Alan Modra 5ba474214c Yet another set of fixes for orphan sections. 2000-04-18 05:53:41 +00:00
Geoffrey Keating bdbe570575 * scripttempl/elfppc.sc: Remove.
* emulparams/elf32ppc.sh: Use elf.sc.
* emulparams/elf32lppc.sh: Use elf.sc.
* emulparams/elf32ppclinux.sh: Use elf.sc.
* emulparams/elf32ppcsim.sh: New file.
* emulparams/elf32lppcsim.sh: New file.
* Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
(ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
* Makefile.in: Regenerate.
* configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2000-04-14 21:18:23 +00:00
Alan Modra 01cc8ff856 Zero start address of orphan ~(SEC_LOAD | SEC_ALLOC) sections. 2000-04-14 01:58:29 +00:00
Geoffrey Keating 4ab10e93d6 Correct previous misapplied patch. 2000-04-13 23:38:46 +00:00
Geoffrey Keating 6c86c54107 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
Add new BSS_PLT variable for when .plt need not be contained in
the file.  Move _etext so that it is also after .fini, and provide
both etext and _etext with a leading underscore.  Mark the start
and end of .sbss.
2000-04-13 23:32:48 +00:00
Alan Modra 62043cea9b Add workaround for gcc-2.95.2 failure. 2000-04-12 12:55:06 +00:00
Alan Modra e76e4c9104 (test4): Test for presence of foo__1B, not absence 2000-04-12 12:47:25 +00:00
Alan Modra 3017ff0eca (test4): Delete incorrect foo__1B test. Reformat file. 2000-04-12 03:44:15 +00:00
Alan Modra 6a345e871d Keep output orphan sections in the same order as input. 2000-04-12 02:43:37 +00:00
Alan Modra 8be867464d Remove extraneous paragraph. 2000-04-11 11:39:38 +00:00
Andrew Cagney a2d91340f3 Remove ``-W -Wall'' from top-level Makefile/configure.
Add ``-W -Wall'' to sub-directories bfd, binutils, gas gprof, ld and
opcodes by the addition of WARN_CFLAGS to Makefile.am and configury to
set it.  Add configure option --enable-build-warnings.
Re-generate all and sundry using auto*-000227.
2000-04-09 12:17:43 +00:00
Timothy Wall 5948916f52 Note new "AT>" feature. 2000-04-07 17:04:19 +00:00
Alan Modra 8ad3436c79 Move translated part of bug report string back into .c files so
xgettext can find it.  Regnerate .pot files.
2000-04-04 14:32:35 +00:00
Alan Modra 41b49281c1 Use "gcc -MM" for dependencies, and update them. 2000-04-04 10:53:56 +00:00
Alan Modra c20f4f8c21 Move bug report string to one place. 2000-04-03 14:10:05 +00:00
Alan Modra adde6300e0 ATMEL AVR microcontroller support. 2000-03-27 08:39:14 +00:00
Nick Clifton e40eb3e94d discard all unexpected sections. 2000-03-14 01:40:30 +00:00
H.J. Lu 9282ff4155 2000-03-09 Andreas Jaeger <aj@suse.de>
* Makefile.am (check-DEJAGNU): Also unset LANG.
	* Makefile.in: Rebuild.
2000-03-09 16:41:21 +00:00
Ian Lance Taylor a999880517 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
archive.
2000-03-06 18:08:38 +00:00
Nick Clifton f9bc20e78d Include getopt.h 2000-03-02 18:37:14 +00:00
Ian Lance Taylor 4e277b3808 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware. 2000-03-02 01:35:52 +00:00
Ian Lance Taylor 9b1d3b78a3 mention new -Bsymbolic behaviour 2000-03-02 01:26:27 +00:00
Nick Clifton f0c87f889d Fix building with --enable-targets=all. 2000-03-01 20:54:37 +00:00
H.J. Lu b6f29aaaea 2000-03-01 H.J. Lu <hjl@gnu.org>
* ldmain.c (undefined_symbol): Take one more arg, fatal, to
	indicate if the undefined symbol is a fatal error or not.
	Don't delete the output file if "fatal" is false.
2000-03-01 19:37:03 +00:00
H.J. Lu af28fce3e5 2000-02-29 H.J. Lu <hjl@gnu.org>
* Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
	Set LC_COLLATE and LC_ALL to null and export them. It is for
	sort which expects the C locale.
	Add $(LIBS) to all $(HOSTING_LIBS).
	* Makefile.in: Rebuild.
2000-02-29 19:52:31 +00:00
Alan Modra 40d109bfbc GCC warning fix: Add missing NULL initialiser for find_potential_libraries. 2000-02-29 05:53:53 +00:00
Jim Blandy db5be682e7 *** empty log message *** 2000-02-29 03:29:27 +00:00
Jim Blandy 765b7cbe05 * ldgram.y (exclude_name_list): Don't require a comma to separate
list entries; the lexer considers commas to be valid part of a
filename, so in something like `foo, bar' the comma is considered
part of the first filename, `foo,'.
* ld.texinfo: Update section on EXCLUDE_FILE lists.
2000-02-29 03:28:57 +00:00
Ian Lance Taylor 3558ff4cdb 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
* configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
	host "i[3456]86-*-freebsdelf*".
2000-02-28 04:31:30 +00:00
Ian Lance Taylor 4eee26817d 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
* scripttempl/i386go32.sc: Move misplaced semicolons.
2000-02-28 03:55:16 +00:00
H.J. Lu d1bcade6ba 2000-02-27 H.J. Lu (hjl@gnu.org)
* lib/ld-lib.exp (default_ld_link): Added "$LIBS" to libs.
2000-02-27 18:59:40 +00:00
Ian Lance Taylor a74801baf8 rebuild with current tools 2000-02-27 16:55:52 +00:00
Ian Lance Taylor 8d75d12d1b * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
(ALL_64_EMULATIONS): Remove eelf64hppa.o.
	(eelf64hppa.c, ehppaelf.c): Remove targets.
	* Makefile.in: Rebuild.
2000-02-26 03:38:18 +00:00
Alexandre Oliva ad51fb572c * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
GNU/Linux/sparc, but keep the default as 32.
2000-02-25 19:43:12 +00:00
Alexandre Oliva a1836d496f * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
it default if sparcv9 or sparc64.
2000-02-25 19:30:22 +00:00
Nick Clifton f5619cc233 fix typo in previous delta 2000-02-24 21:49:15 +00:00
Nick Clifton 344a211f99 Add support for WinCE based toolchains. 2000-02-24 17:53:12 +00:00
Richard Henderson eaba1dd3fb * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
Add and use memory regions.
2000-02-23 23:38:47 +00:00
Alan Modra 5b93d8bb51 Add IBM 370 support. 2000-02-23 13:52:23 +00:00
Alan Modra f6af82bd44 This lot mainly cleans up `comparison between signed and unsigned' gcc
warnings.  One usused var, and a macro parenthesis fix too.  Also check
input sections are elf when doing gc in elflink.h.
2000-02-21 12:01:27 +00:00
Richard Henderson 9e673ad141 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION. 2000-02-16 19:07:43 +00:00
Timothy Wall 562d3460fb Add LMA memory region functionality. 2000-02-16 18:53:32 +00:00
Timothy Wall 9e4ed18ce8 These snippets were missed in the previous bytes vs octets patch to
the linker.
2000-02-09 14:42:48 +00:00
Timothy Wall 32edc927fa Fix typo in ALIGN_N usage. 2000-02-04 19:49:21 +00:00
Timothy Wall 4cbfc3ac19 Add octets vs bytes functionality to LD. 2000-02-03 18:24:46 +00:00
Alan Modra 305c72062b Most of these changes are really only cosmetic. The readelf.c patch
fixes a thinko in get_dynamic_flags.  I found at least one message
string that included a `%' being passed to printf in the format
argument.
2000-01-26 23:11:48 +00:00
Alan Modra e1c47aa42d To satisfy latest CVS gcc:
* emultempl/*.em (ld_emulation_xfer_struct): Add missing NULL
	initialisers, and comments.
	* testsuite/ld-srec/sr3.cc (__rethrow): New.
2000-01-22 23:22:18 +00:00
Nick Clifton 13392b77a7 fix typo in comment. 2000-01-21 17:44:51 +00:00
Nick Clifton cce4c4c5bd Apply H.J.'s patch to fix NOLOAD section sizes and dot updates 2000-01-18 23:58:58 +00:00
Nick Clifton 0decc84046 Add arm-conix target 2000-01-10 19:48:27 +00:00
Nick Clifton fa19fce003 Fix description of -n command line switch 2000-01-07 19:46:04 +00:00
Nick Clifton 4e53152f8f Remind users about -Wl, 2000-01-07 19:06:46 +00:00
Catherine Moore 18625d5459 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
(name_list): New.
        * ld.texinfo (EXCLUDE_FILE): Update documentation.
        * ldgram.y (wildcard_spec): Support a list of excluded_files.
        (exclude_name_list): New.
        ldlang.c (walk_wild_section): Support list of excluded files.
        (print_wild_statement): Likewise.
        (lang_add_wild): Likewise.
        * ldlang.h (lang_wild_statement_type): Likewise.
        * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2000-01-05 14:12:23 +00:00
Nick Clifton 0752a4049e oops - change omitted from previous delta 2000-01-04 23:48:31 +00:00
Nick Clifton 870df5dcbc Applied Mumit Kha's patch to tweak dll production code. 2000-01-04 23:44:03 +00:00
Nick Clifton a6483292c2 Added year 2000 copyright notice 2000-01-04 23:33:29 +00:00
Nick Clifton 5aaace278d Apply patch from Mumit Khan to fix bugs generating dll names. 2000-01-04 23:30:51 +00:00
Nick Clifton e68692499c Add arm-epoc-pe specific linker script 1999-12-02 11:49:20 +00:00
Andreas Schwab e4dabd0ef5 * configure.in: Put AC_MSG_CHECKING/AC_MSG_RESULT around check for
STRINGIFY.  Use yes/no instead of true/false as value for cache
	variable.
	* configure: Regenerate.
1999-11-26 16:19:30 +00:00
Nick Clifton 50e05050cd Fix bug in previous delta 1999-11-24 11:43:11 +00:00
Nick Clifton 33275c22c0 Do not check sections without a LOAD attribute for overlap 1999-11-23 14:13:07 +00:00
Jeff Law 93a6d43674 Wed Nov 3 23:31:19 1999 Jeffrey A Law (law@cygnus.com)
* emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
        Clean up code to use EXTRA_SHLIB_EXTENSION.

1999-09-14  Ulrich Drepper  <drepper@cygnus.com>

        * configure.in: Define EXTRA_SHLIB_EXTENSION to ".sl" for HP target.
        * config.in: Add EXTRA_SHLIB_EXTENSION.

        * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
        Search for second shared lib extension only if EXTRA_SHLIB_EXTENSION
        is defined.
1999-11-04 06:45:07 +00:00
Nick Clifton 829ce3071e Change the default endianness to little. 1999-11-03 18:19:22 +00:00
Ian Lance Taylor 9503fd8735 1999-11-01 Steve Chamberlain <sac@pobox.com>
* ldlang.c (section_already_linked): Rework to use hash table.
	(already_linked_newfunc): New function.
	(already_linked_table_init): New function.
	(already_linked_table_free): New function.
	(lang_process): Initialize and free the already_linked hash table.
1999-11-01 23:37:48 +00:00
Nick Clifton 197d87f8ec Fixed test to disable these checks if the target is PE based. 1999-11-01 16:29:06 +00:00
Catherine Moore 05d26f04bc *** empty log message *** 1999-10-29 15:32:19 +00:00
Catherine Moore 7cdea22fb0 Remove test6. 1999-10-29 15:31:54 +00:00
Nick Clifton abdbda5ecb Fix testsuite failures for arm -linux 1999-10-28 16:22:48 +00:00
Ian Lance Taylor d7498c1ee1 1999-10-27 Andreas Jaeger <aj@suse.de>
* ld/configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
	target "mips*-*-linux-gnu*".
1999-10-28 03:42:49 +00:00
Nick Clifton 29c4c6b539 fix compile time warnings 1999-10-27 18:13:28 +00:00
Nick Clifton 1ac6a75211 Remove extraneous underscore from prototype 1999-10-26 12:13:20 +00:00
Geoffrey Keating cfd0966cb5 * scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocs
being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*.
(.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*.
(.rel.sbss): Make like .rel.bss.
(.rela.sbss): Make like .rel.bss.
(.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when
ld -r.
(.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS,
.dynsbss.
1999-10-07 02:19:45 +00:00
DJ Delorie 6eec49fcec * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Defer
merging sections when not relocating.
1999-09-29 17:44:35 +00:00