Commit Graph

260 Commits

Author SHA1 Message Date
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
DJ Delorie
8a5b676cd2 * pe-dll.c (process_def_file): Move the offset lookup from here to
(fill_exported_offsets): here. New static function.
(fill_edata): Use.
1999-09-29 00:31:40 +00:00
DJ Delorie
7c9e78f8e4 * deffilep.y (tokens): Add upper and lower case versions of DATA,
CONSTANT, NONAME and PRIVATE tokens.
(command): Use DATAU.
(expline): Allow for drectve syntax as well.
(exp_opt_list): Likewise.
(exp_opt): Likewise.
* pe-dll.c (make_one): Only generate the idata entries for data
symbols.
1999-09-28 20:22:55 +00:00
Geoffrey Keating
13d92f2c5b * scripttempl/elf.sc (.sdata): Include .gnu.linkonce.s.* sections
in .sdata too.
1999-09-28 04:16:51 +00:00
Nick Clifton
3c9cf3a394 Merge sections named .bss.* into .bss section. Similarly for .sbss. 1999-09-26 09:37:45 +00:00
Nick Clifton
be2153ad14 Add earm_epoc_pe.c build target. 1999-09-22 08:32:06 +00:00
Jeff Law
26040066e0 * emulparms/elf64hppa.sh (OTHER_READONLY_SYMBOLS): Remove ".stubs",
they've been renamed to ".stub", which is handled automatically
        by elf.sc.
1999-09-18 14:00:24 +00:00
Alan Modra
b7be1db6b5 Support 8 and 16-bit relocs for i386coff. Enable i386 gas testsuite tests
previously disabled for lack of such support.  For *-*-linux*libc1 targets,
XFAIL a ld testsuite that fails due to a bug in the dynamic linker prior to
glibc-2.1.
1999-09-18 00:44:47 +00:00
Jeff Law
9f5b33d795 Fix typo in last change. 1999-09-17 21:58:45 +00:00
Jeff Law
f68ca33612 * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Kill completely.
(DATA_START_SYMBOLS): Kill __hp_load_map definition
1999-09-17 17:02:03 +00:00
Jeff Law
d3cc5bd625 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
Use the same filename extension for the bfd_elf_dt_needed_name call
        as we did for finding the library.
1999-09-16 20:53:09 +00:00
Jeff Law
88e99a394d * emulparms/elf64hppa.sh (DATA_START_SYMBOLS): Define.
(OTHER_READWRITE_SECTIONS): No longer define __hp_load_map.
1999-09-16 17:57:15 +00:00
Jeff Law
42d106a81f * emulparms/elf64hppa.sh (TEXT_START_SYMBOLS): Define. 1999-09-16 17:02:14 +00:00
Jeff Law
97444aea59 * emulparms/elf64hppa.sh (SHLIB_TEXT_START_ADDR): Define.
(SHLIB_DATA_ADDR): Likewise.

        * emulparms/elf64hppa.sh (TEXT_DYNAMIC): Define.
1999-09-16 06:23:28 +00:00
Jeff Law
3b97fa5ed0 Fix typo in last change. 1999-09-15 10:12:21 +00:00
Jeff Law
833be1c7bc * emulparms/elf64hppa.h (OTHER_READWRITE_SECTIONS): No longer combine
the .plt, .dlt, .opd  into a single output section.  Provide values
        for __gp and __hp_load_map.
1999-09-15 08:51:03 +00:00
Michael Meissner
a8100d5bb4 Fix problem with going to automake 2.14 1999-09-14 23:16:48 +00:00
DJ Delorie
e4e24acbc8 1999-09-14 Donn Terry <donn@interix.com>
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for
	terminating null.
1999-09-14 22:19:55 +00:00
Nick Clifton
cf8654428c Add earm_epoc_pe.c build target. 1999-09-14 13:18:43 +00:00
Jeff Law
2491f1100f * emulparms/elf64hppa.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.dlt. 1999-09-14 11:30:01 +00:00
Jeff Law
070f1aed4e * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
Search for file with .sl extension if no file with a .so extension
        is found.
1999-09-14 02:42:51 +00:00
Ian Lance Taylor
361d94e768 1999-09-13 Donn Terry <donn@interix.com>
* emultempl/pe.em: Remove the output file at the start, in case it
	is not writable.
1999-09-13 23:45:47 +00:00
Jeff Law
9169713a19 * emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Put .plt
at the start of the .dlt output section.
1999-09-13 06:20:55 +00:00
Ian Lance Taylor
71add73133 * pe.em: Don't include "../bfd/libbfd.h".
(gld_${EMULATION_NAME}_after_open): Use xmalloc rather than
	bfd_alloc.
1999-09-12 16:59:56 +00:00
Ian Lance Taylor
45455cddda 1999-09-12 Donn Terry <donn@interix.com>
* ld.h (ld_abort): Declare.
	(abort): Define.
	* ldmisc.c (ld_abort): Define.
1999-09-12 16:59:49 +00:00
Ian Lance Taylor
be4514d38d 1999-09-12 Donn Terry <donn@interix.com>
* scripttempl/pe.sc: Use ${ENTRY} rather than _mainCRTStartup.
	Move .bss section after .rdata.  Move .reloc section after .rsrc.
1999-09-12 16:48:02 +00:00
Ian Lance Taylor
c3d002bb17 Define ENTRY in PE emulation files. Also:
* emulparams/i386pe.sh (ENTRY): Define as _mainCRTStartup.
1999-09-12 16:45:16 +00:00
Ian Lance Taylor
d98dd8ba26 1999-09-12 Donn Terry <donn@interix.com>
* lexsup.c (parse_args): Use strtoul for --split-by-reloc
	argument.
1999-09-12 16:40:09 +00:00
Ian Lance Taylor
03983865c3 1999-09-12 Donn Terry <donn@interix.com>
* lexsup.c (parse_args): If we get an unrecognized argument,
	mention --help.
1999-09-12 16:35:20 +00:00
Ian Lance Taylor
bb8fe706a0 1999-09-12 Donn Terry <donn@interix.com>
* ldlang.c (section_already_linked): Use comdat information if it
	is available.
1999-09-12 16:10:00 +00:00
Ian Lance Taylor
777690b647 * ld-scripts/script.exp: Add --image-base 0 for PE targets. 1999-09-12 15:59:48 +00:00
Ian Lance Taylor
1069dd8da7 * pe-dll.h: New file.
* pe-dll.c: Include "pe-dll.h".  Mark unused arguments as needed
	to avoid warnings.
	(edata_sz, reloc_sz): Change from int to size_t.
	(pe_details_type): Change type of imagebase_reloc from int to
	unsigned int.
	(pe_detail_list): Fully initialize last entry.
	(pe_dll_id_target): Change parameter to const.
	(pe_dll_generate_def_file): Likewise.
	(pe_dll_generate_implib): Likewise.
	(pe_implied_import_dll): Likewise.  Change dll_name to const.
	* emultempl/pe.em: Include "pe-dll.h".  Remove declarations now in
	pe-dll.h.
	(init): Fully initialize __dll__ entry.
	(gld_${EMULATION_NAME}_after_open): Remove unused variables
	sequence, elt, and i.
	* deffile.h: Add preprocessor guard.
	* deffilep.y (def_debug): Remove.
	* Makefile.am: Rebuild dependencies.
	(HFILES): Add pe-dll.h.
1999-09-12 15:27:48 +00:00
Ian Lance Taylor
2be9b2c7ee 1999-09-12 Donn Terry <donn@interix.com>
* emultempl/pe.em (PE_DEF_SECTION_ALIGNMENT): If
	OVERRIDE_SECTION_ALIGNMENT is defined, change to that.
	(gld_${EMULATION_NAME}_before_parse): Use EXECUTABLE_NAME if it is
	defined, rather than a.exe.
	(init): Define __subsystem__ as ${SUBSYSTEM}.
	(set_pe_subsystem): Add ${INITIAL_SYMBOL_CHAR} before entry symbol
	name.
1999-09-12 14:52:33 +00:00
Ian Lance Taylor
1b69a0bfca * ldlang.c (open_output): Change local variable desired_endian
from int to enum bfd_endian.
1999-09-12 14:50:15 +00:00
Ian Lance Taylor
ff65f4f015 * emulparams/arm_epoc_pe.sh: Define SUBSYSTEM and
INITIAL_SYMBOL_CHAR.
	* emulparams/armpe.sh: Likewise.
	* emulparams/morepe.sh: Likewise.
	* emulparams/ppcpe.sh: Likewise.
	* emulparams/i386pe.sh (SUBSYSTEM): Define as PE_DEF_SUBSYSTEM.
1999-09-12 14:49:05 +00:00