Commit Graph

409 Commits

Author SHA1 Message Date
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
Jeff Law
e5b08bf0d3 * emulparms/elf64hppa.sh (LIB_PATH): Define. 1999-09-10 14:31:09 +00:00
Jeff Law
904ecb2d78 * emulparms/elf64hppa.sh (OTHER_READONLY_SECTIONS): Put stubs before
unwinders so that they are closer to the text section.
        (OTHER_BSS_SECTIONS): Define.
        (EXECUTABLE_SYMBOLS): Provide __SYSTEM_ID and _FPU_STATUS.
        (INIT_START, INIT_END): Define.
        (FINI_START, FINI_END): Define.
        * scripttempl/elf.sc: Add support for INIT_START, INIT_END,
        FINI_START, FINI_END and OTHER_BSS_SECTIONS.
1999-09-10 06:30:37 +00:00
Jeff Law
7e4d694ea7 * emulparms/elf64hppa.sh (TEXT_START_ADDR): Move up one page.
(DATA_ADDR): Define.
1999-09-10 03:49:14 +00:00
Richard Henderson
2f2bc1bb67 * emulparams/d10velf.sh (READONLY_START_ADDR): Set to 0x2000004. 1999-09-10 01:04:25 +00:00
Andreas Schwab
1d0a3c9c5f * ld.texinfo: Fix arguments of @var to not contain punctuation. 1999-09-09 16:12:28 +00:00
Jeff Law
040266ab33 Thu Sep 9 05:52:34 1999 Jeffrey A Law (law@cygnus.com)
* emulparms/elf64hppa.sh (OTHER_READWRITE_SECTIONS): Define.

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

        * emulparams/elf64hppa.sh (ELFSIZE): New.  Set to 64.

Wed Sep  8 00:07:39 1999  Jeffrey A Law  (law@cygnus.com)

        * emulparms/elf64hppa.sh (ENTRY): Define to main.
1999-09-09 11:56:00 +00:00
Nick Clifton
1c56fb878f Applied patch from Scott Bambrough <scottb@netwinder.org>:
Added HOSTING_CRT0, HOSTING_LIBS for target "arm*-*-linux-gnu*"
1999-09-06 09:51:16 +00:00
Ian Lance Taylor
c6c8c6dc7a 1999-09-04 Steve Chamberlain <sac@pobox.com>
* configure.tgt (pjl-*-*, pj-*-*): New targets.
	* emulparams/pjelf.sh: New file.
	* emulparams/pjlelf.sh: New file.
	* scripttempl/pj.sc: New file.
	* Makefile.am (ALL_EMULATIONS): Add epjelf.o and epjlelf.o.
	(epjelf.o, epjlelf.o): New targets.
	* Makefile.in: Rebuild.
1999-09-04 17:37:36 +00:00
Jeff Law
4b69d4ada3 * emulparams/elf64hppa.sh (MAXPAGESIZE): Define.
(OTHER_READONLY_SECTIONS, DATA_PLT): Likewise.
1999-09-04 02:20:41 +00:00
Jeff Law
f6e143a199 * emulparams/elf64hppa.sh: New file.
* configure.tgt (hppa*w-*-*): Use elf64hppa emulation.
        * Makefile.am (ALL_64_EMULATIONS): Add eelf64hppa.o
        (eelf64hppa.c): Add dependencies.
        * Makefile.in: Rebuilt.
1999-09-02 20:35:35 +00:00
Nick Clifton
0f1ee88922 Patch from Philip Blundell <pb@nexus.co.uk>: Define __end__ 1999-08-25 13:46:28 +00:00
Nick Clifton
8959586aab Patch from Roland McGrath <roland@baalperazim.frob.com>
Add arm-netbsd target.
1999-08-24 15:17:23 +00:00
Nick Clifton
093505ad61 Implement --base-file command line switch. 1999-08-23 09:13:56 +00:00
Nick Clifton
3b108066c9 Add ability for individual targets to have their own command line switches by
defining PARSE_AND_LIST_ARGS.
1999-08-23 09:07:45 +00:00
Andreas Schwab
cd5d26f264 * configure.host: Use ${CC} instead of gcc for finding compiler
related files.
1999-08-19 07:34:07 +00:00
Ian Lance Taylor
5be8a006bb 1999-08-17 H.J. Lu <hjl@gnu.org>
* ld-cdtest/cdtest-foo.cc (Foo::init_foo): Use "%ld" for sizeof.
1999-08-17 07:56:29 +00:00
Nick Clifton
0811443ae7 Fix typo in defintion of OUTPUT_FORMAT. 1999-08-11 09:21:38 +00:00
Ian Lance Taylor
9c9ef45f16 1999-08-09 Mark Elbrecht <snowball3@bigfoot.com>
* scripttempl/i386go32.sc: Handle g++ exception sections.
1999-08-10 03:07:46 +00:00
Ian Lance Taylor
10e80b4145 rebuild with patched automake 1999-08-09 20:22:04 +00:00
Ian Lance Taylor
b33b6e4569 1999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
* ld-elfvers/vers.exp: Run tests on sparc*-*-linux*.
	* ld-shared/shared.exp: Likewise.
1999-08-09 14:49:32 +00:00
Ian Lance Taylor
fe9edd2275 From Wally Iimura <iimura@microunity.com>:
* ldlang.c (lang_size_sections): When checking whether an address
	is within a region, don't get confused by wrapping around at the
	end of the address space.
1999-08-09 06:14:09 +00:00
Ian Lance Taylor
667f51773f * ldlang.c (wild_doit): Update for renaming of SEC_SHORT to
SEC_SMALL_DATA.
1999-08-09 03:22:27 +00:00
Ian Lance Taylor
f4162f5cef * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
MKDEP.  Rebuild dependencies.
	* Makefile.in: Rebuild.
1999-08-08 17:37:50 +00:00
Ian Lance Taylor
ae97059cc1 1999-08-08 Jakub Jelinek <jj@ultra.linux.cz>
* configure.host (sparc-*-linux-gnu*): New host.
	(sparc64-*-linux-gnu*): New host.
1999-08-08 15:30:08 +00:00
Ian Lance Taylor
3d9f627799 * lexsup.c (is_num): Reindent.
(parse_args): Mention program name in error message.
1999-08-06 23:33:33 +00:00
Ian Lance Taylor
597e25914e * emultempl/ostring.sed: Rename from stringify.sed.
* emultempl/astring.sed: New file.
	* Makefile.am (stringify.sed): New target.
	(GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
	stringify.sed.
	* configure.in: Define and substitute STRINGIFY.
	* emultempl/*.em: Use stringify.sed from build directory rather
	than source directory.
	* emultempl/elf32.em: Use stringify.sed rather than inline sed
	script.
	* emultempl/gld960.em, emultempl/gld960c.em: Likewise.
	* emultempl/hppaelf.em, emultempl/linux.em: Likewise.
	* emultempl/lnk960.em, emultempl/sunos.em: Likewise.
	* configure, Makefile.in: Rebuild.
1999-08-06 22:46:03 +00:00
Ian Lance Taylor
a7e78dae79 1999-08-05 Donn Terry <donn@interix.com>
* emulparams/i386pe.sh: Define ENTRY, SUBSYSTEM, and
	INITIAL_SYMBOL_CHAQR.
	* emulparams/i386pe_posix.sh: New file.
	* Makefile.am (YACC): If bison is not in the source tree, use
	@YACC@ rather than bison -y.
	(LEX): If flex is not in the source tree, use @LEX@ rather than
	flex.
	(ALL_EMULATIONS): Add ei386pe_posix.o.
	(ei386pe_posix.c): New target.
	* configure.tgt (i[3456]86-*-interix*): New target.
	* configure.host (i[3456]86-pc-interix*): New host.
	* Makefile.in: Rebuild.
1999-08-05 16:03:56 +00:00
Ian Lance Taylor
18069efc88 * emulparams/elf32ppc.sh (MAXPAGESIZE): Change to 0x10000.
* emulparams/elf32ppclinux.sh (MAXPAGESIZE): Likewise.
1999-08-03 16:47:16 +00:00
Ian Lance Taylor
f7cc0a4d91 1999-08-03 H.J. Lu <hjl@gnu.org>
* Makefile.am (ALL_EMULATIONS): Remove ego32.o.
	(ego32.c): Remove.
	* Makefile.in: Rebuild.
1999-08-03 15:34:40 +00:00
Nick Clifton
38e31547d1 Notice multlib switches. 1999-07-28 08:18:22 +00:00
Nick Clifton
5fa803d337 Philip Blundell <pb@nexus.co.uk>
* emulparams/armelf_linux26.sh (DATA_START_SYMBOLS): Define.
	(OTHER_BSS_SYMBOLS, OTHER_BSS_END_SYMBOLS): Likewise.
	* emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Define.

	* configure.tgt (arm*-*-uclinux*, thumb-*-uclinux*,
	thumb-*-linux-gnu*): New targets.
1999-07-22 12:51:45 +00:00
Ian Lance Taylor
5a1bd109d4 1999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
* scripttempl/i386go32.sc: Add handling of linkonce sections.
1999-07-22 01:42:27 +00:00
Ian Lance Taylor
b4089fdd75 1999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
* emulparams/go32.sh: Remove; obsolete.
	* scripttempl/go32coff.sc: Remove; obsolete.
1999-07-22 01:25:10 +00:00
Ian Lance Taylor
8f36e47c10 From Mark Elbrecht:
* configure.bat: Remove; obsolete.
1999-07-22 01:16:49 +00:00
Ian Lance Taylor
41d390a7ac 1999-07-21 H.J. Lu <hjl@gnu.org>
* configure.tgt (mips*el-*-vxworks*): New target.

1999-07-21  Brad M. Garcia  <bgarcia@fore.com>

	* configure.tgt (i[3456]86-*-vxworks*): New target.
1999-07-22 00:49:09 +00:00
Ian Lance Taylor
0cd9f5f03b 1999-07-21 H.J. Lu <hjl@gnu.org>
* ld-elfvers/vers1.c: Add missing prototypes and include
	<stdio.h> if necessary.
	* ld-elfvers/vers15.c: Likewise.
	* ld-elfvers/vers19.c: Likewise.
	* ld-elfvers/vers2.c: Likewise.
	* ld-elfvers/vers3.c: Likewise.
	* ld-elfvers/vers4.c: Likewise.
	* ld-elfvers/vers6.c: Likewise.
	* ld-elfvers/vers7.c: Likewise.
	* ld-elfvers/vers9.c: Likewise.
	* ld-shared/main.c: Likewise.
	* ld-srec/sr3.cc (Foo::Foo): Remove arg name.
1999-07-22 00:40:34 +00:00
Doug Evans
7c83b342ee * ldlang.c (lang_gc_sections): Only handle the start symbol
specially if there is one.
1999-07-20 22:27:31 +00:00
Mark Mitchell
0ca638235f * emulparams/elf32bmipn32.sh (OTHER_RELOCATING_SECTIONS): Add
.MIPS.events and .MIPS.content handling.
	* emulparams/elf64bmip.sh (OTHER_RELOCATING_SECTIONS): Likewise.
1999-07-19 20:21:52 +00:00
Nick Clifton
e50d80767c Improve selection of output format 1999-07-19 14:57:03 +00:00
Richard Henderson
e76d716a43 * emulparams/elf64_sparc.sh: Add 64-bit directories to native LIB_PATH. 1999-07-16 21:43:43 +00:00
Mark Mitchell
d49560a9c3 * ld-undefined/undefined.exp: XFAIL on IRIX6 for the usual as
with other DWARF2 targets.
1999-07-15 17:02:34 +00:00
Mark Mitchell
88659ef5b6 * configure.host: Set up HOSTING_CRT0 and HOSTING_LIBS for IRIX6. 1999-07-15 14:57:35 +00:00
Ian Lance Taylor
2844ed430f * configure.in: Bump version number to 2.9.5.
* configure: Rebuild.
1999-07-15 12:09:55 +00:00
Richard Henderson
0eaf982050 Update 1999-07-14 16:46:20 +00:00
Richard Henderson
9e4141bc7b * scripttempl/elf.sc: Re-order .rel[a].foo outputs to the
same order seen for the main sections.  Add
        OTHER_READONLY_RELOC_SECTIONS and OTHER_GOT_RELOC_SECTIONS.
1999-07-14 16:45:54 +00:00
Richard Henderson
9e41f97317 * ldlang.c (wild_doit): Copy SEC_SHORT to output section. 1999-07-14 16:45:13 +00:00
Nick Clifton
5dcf458ac4 Remove xfails for arm toolchains. 1999-07-13 09:25:10 +00:00
Andreas Schwab
49bdcdba9f * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Fill in
structure initializations.
1999-07-12 08:31:34 +00:00
Andreas Schwab
5d341b0e2a * emultempl/elf32.em (ld_${EMULATION_NAME}_emulation): Add missing
comma in initializer.
1999-07-12 06:24:03 +00:00
Ian Lance Taylor
87f2a3464b * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
as appropriate.  Fill in structure initializations.
1999-07-11 20:09:04 +00:00
Ian Lance Taylor
b90d114661 * ldfile.c: Revert patch of 1999-07-08.
(ldfile_try_open_bfd): If we are searching for the file, skip
	files with an incompatible architecture.
1999-07-09 22:52:05 +00:00
Ian Lance Taylor
734caf4d9f * ld-elfvers/vers.exp: Use -rpath in new vers19 test. 1999-07-09 22:45:24 +00:00
Nick Clifton
6da0974a11 Include big endian and little endian formats in OUTPUT_FORMAT directive. 1999-07-09 08:12:48 +00:00
Nick Clifton
7a2746396a Applied patch from Felix Lee <flee@cygnus.com>:
Fix quoting problem, for bash 2.x
1999-07-09 03:27:25 +00:00
Richard Henderson
99f8f232c6 Jakub Jelinek <jj@ultra.linux.cz>
* ldfile.c (ldfile_open_file_search): Skip libraries made for
        incompatible architectures in the search path. Let the user know
        about any such skips.
1999-07-08 16:50:53 +00:00
Jeff Law
5c61c5ab19 * configure.tgt (hppa*-linux-gnu*): New target. 1999-07-08 11:38:48 +00:00
Mark Mitchell
22c675a780 * Makefile.am (ALL_64_EMULATIONS): Add eelf64bmip.
(eelf64bmip): New target.
	* Makefile.in: Regenerated.
	* configure.tgt (mips-sgi-irix6*): Add 64-bit emulation.
	* emulparams/elf64bmip.sh: New file.
1999-07-08 00:22:51 +00:00
Ian Lance Taylor
f04894943e * ld-elfvers/vers.exp: Add new tests vers17 to vers19.
* ld/elfvers/{vers17.*, vers18.*, vers19.*}: New files.
1999-07-07 15:36:29 +00:00
Nick Clifton
f11523b013 Abort if input format is ARM and output format is not 1999-07-05 07:51:39 +00:00
Ian Lance Taylor
39e878bf53 x 1999-07-02 07:46:15 +00:00
Ian Lance Taylor
e361c369df * ldlang.c: Revert change of 1999-06-23. 1999-07-02 07:45:31 +00:00
Ian Lance Taylor
85f7047147 rebuild 1999-07-02 07:18:40 +00:00
Mark Mitchell
dc83197880 * Makefile.am (ALL_EMULATIONS): Add eelf32bmipn32.o.
(eelf32bmipn32.c): New target.
	* Makefile.in: Regenerated.
	* configure.tgt (mips-sgi-irix6*): Make n32 the default
	emulation.
	* emulparams/elf32bmipn32.sh: New file.
1999-06-30 21:00:10 +00:00
Nick Clifton
a0290afa96 Patch from: Jim Pick <jim@jimpick.com>
Added code so that .xs linker scripts are called so that ARM shared libraries
are built correctly.
  CVS: ----------------------------------------------------------------------
1999-06-29 02:45:00 +00:00
Mark Mitchell
3dbf70a218 * ldmain.c (main): Initialize link_info.init_function and
link_info.fini_function.
	* lexsup.c (OPTION_INIT): New macro.
	(OPTION_FINI): Likewise.
	(ld_options): Add descriptions for them.
	(parse_args): Handle them.
1999-06-23 11:09:30 +00:00
Ian Lance Taylor
7b9eea348f * ldlang.c (section_already_linked): Only discard link once
sections if we are building constructors.
1999-06-22 21:13:24 +00:00
Nick Clifton
5c6bbab8fe document behaviour of dot inside sections. 1999-06-22 11:23:06 +00:00
Mark Mitchell
a8e53fb060 * scripttempl/elf.sc (WRITABLE_RODATA): New variable for
controlling whether or not .rodata is in the data segment or the
	text segment.
1999-06-21 13:11:05 +00:00
Nick Clifton
6f798e5c17 Add new command line switch --thumb-entry. 1999-06-21 03:30:32 +00:00
Richard Henderson
ba2be5816c H.J. Lu <hjl@gnu.org>
* configure.in (all_libpath): Accumulate across all enabled targets.
1999-06-20 17:43:44 +00:00
Richard Henderson
f97f730029 * emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
DEFAULT_EMULATION.
        * emultempl/elf32.em: Likewise.
        * emultempl/sunos.em: Likewise.
1999-06-20 14:12:08 +00:00
Richard Henderson
3336653ad1 * Makefile.am (GENSCRIPTS): Pass EMULATION_LIBPATH, not EMUL.
* configure.in (all_emuls): Add targ_extra_libpath.
        (all_libpath, EMULATION_LIBPATH): Define.
        * configure.tgt (powerpc-*-linux-gnu*): Define targ_extra_libpath.
        * genscripts.sh (LIB_PATH): Define if emulation in EMULATION_LIBPATH.
1999-06-18 15:25:45 +00:00
Andreas Schwab
308b1ffded Fix use of @item vs. @itemx. 1999-06-14 01:40:26 +00:00
Ian Lance Taylor
2575273dcb mention --no-undefined 1999-06-13 19:25:57 +00:00
Ian Lance Taylor
277c9afe08 mention EXCLUDE_FILE 1999-06-13 10:20:50 +00:00
Ian Lance Taylor
197a7bfdca * ld-checks/asm.s: Use a symbol name for .lcomm.
* ld-checks/checks.exp: Use different names for the two tests.
	Don't add extra text when invoking fail.
1999-06-12 22:40:18 +00:00
Ian Lance Taylor
aa8804e46e This fixes ! to work as documented in a memory region attribute list.
From Thomas Zenker <thz@lennartz-electronic.de>:
	* ldgram.y (attributes_opt): Use attributes_list instead of NAME.
	(attributes_list, attributes_string): New nonterminals.
	* ldlang.c (lang_set_flags): Add invert parameter.  Don't handle
	'!'.
	* ldlang.c (lang_set_flags): Update declaration.
1999-06-12 21:24:56 +00:00
Ian Lance Taylor
2a275620b1 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Don't add
entry_symbol as an undefined symbol when doing a relocateable
	link.  From <jeffdb@goodnet.com>.
1999-06-12 14:00:03 +00:00
Ian Lance Taylor
2641b0c9d8 1999-06-12 David O'Brien <obrien@freebsd.org>
* configure.tgt: (i[3456]86-*-freebsd*): Now defaults to ELF.
1999-06-12 13:18:26 +00:00
Ian Lance Taylor
99c262f8b0 * ld-scripts/phdrs.exp: Change target check from "*-*-linuxaout*"
to "*-*-linux*aout*".
	* ld-scripts/weak.exp: Likewise.
	* ld-shared/shared.exp: Likewise.  Simplify condition a bit.
1999-06-12 10:47:08 +00:00
Nick Clifton
f75692fe1a restore previous format of --help output 1999-06-09 05:35:55 +00:00
Andreas Schwab
2bdba6c9ec * ld-cdtest/cdtest-main.cc: Avoid `implicit int' warning.
* ld-shared/sh1.c: Fix typo.
1999-06-09 03:04:03 +00:00
Ian Lance Taylor
77e0b0efdb 1999-06-04 H.J. Lu <hjl@gnu.org>
* lib/ld-lib.exp (default_ld_nm): Clear nm_output first if
	necessary.
1999-06-04 20:49:14 +00:00
Nick Clifton
434d1125a3 Rename epoc-pe interworking function names to avoid a name space clash 1999-06-04 07:40:35 +00:00
Richard Henderson
e0a2c38a7b Update. 1999-06-03 03:26:53 +00:00
Richard Henderson
4305932a21 Jason Merrill <jason@yorick.cygnus.com>
* scripttempl/v850.sc: Add initp support.
1999-06-02 20:47:23 +00:00
Nick Clifton
46d23b7c90 Rename ARM interworking functions to avoid a name space collision 1999-06-02 14:26:01 +00:00
Richard Henderson
cd785be602 Forgot to commit. 1999-06-02 12:29:27 +00:00
Richard Henderson
ec2f040d55 Cort Dougan <cort@attis.cs.nmt.edu>
* Makefile.am (ALL_EMULATIONS): Add eelf32ppclinux.o.
        * configure.tgt (powerpc-*-linux-gnu): Use it.
        * emulparams/elf32ppclinux.sh: New file.
1999-05-30 15:55:31 +00:00
Ian Lance Taylor
511ab9e95b * ld.texinfo (Options): Clarify that options which refer to files
must be properly ordered.
1999-05-29 19:43:33 +00:00
Nick Clifton
7ca69e9e10 Implement new command line option for new ABI: -p which prevents the ARM code
from exhibiting any knowledge of the length of the processor's pipeline.
1999-05-29 10:57:44 +00:00
Nick Clifton
229cf42b33 fix typo. 1999-05-28 10:53:04 +00:00
Nick Clifton
b3043ee4e2 Minor formatting changes. 1999-05-28 10:50:29 +00:00
Ian Lance Taylor
0ccf812a6e 1999-05-28 Martin Dorey <mdorey@madge.com>
* configure.tgt (i960-*-elf*): New target.
	* emulparams/elf32_i960.sh: New file.
	* Makefile.am (ALL_EMULATIONS): Add eelf32_i960.o.
	(eelf32_i960.c): New target.
	* Makefile.in: Rebuild.
1999-05-27 21:49:21 +00:00
Nick Clifton
a13cba0d36 Use correct template 1999-05-26 17:23:32 +00:00
Nick Clifton
31ce062864 1999-05-24 Philip Blundell <philb@gnu.org>
* emultempl/armelf.em (before_parse): Set config.dynamic_link and
 	config.has_shared.
	* emulparams/armelf.sh (GENERATE_SHLIB_SCRIPT): Define.
	* emulparams/armelf_linux.sh (GENERATE_SHLIB_SCRIPT): Likewise
1999-05-24 12:49:30 +00:00
Nick Clifton
1220a72943 Add definitions related to shared objects (copied from elf32.em) 1999-05-22 09:55:50 +00:00
Andreas Schwab
3699964af7 * Makefile.am (ALL_EMULATIONS): Remove earmlinux.o and
earm26linux.o, add earmelf_linux.o and earmelf_linux26.o.
	* Makefile.in: Regenerated.
1999-05-19 03:50:52 +00:00
Nick Clifton
8535ca756a Add xfail for mcore-elf 1999-05-17 09:46:52 +00:00
Nick Clifton
06f2f02a3d Add mcore-elf support for shared libraries 1999-05-16 14:02:47 +00:00
Richard Henderson
de24ad2106 Joel Sherrill (joel@OARcorp.com)
* configure.tgt (i386-*-rtemself*, sh-*-rtemself*): New targets.
        (mips*el-*-rtems*, powerpcle-*-rtems*): New targets.
1999-05-13 09:49:48 +00:00
DJ Delorie
c6c37250e9 1999-05-10 DJ Delorie <dj@cygnus.com>
* scripttempl/pe.sc: Specify the output arch, which Ian says is
	the Right Thing to do.
	* emultempl/pe.em: various changes to parameterize the
	target-specific information.
	(gld_i386pe_after_open): Detect and fix MS import libraries
	by renaming the member objects (which are all named the same).
	* pe-dll.c: various changes to parameterize the target-specific
	information.
	(generate_reloc): support relocs more generically to allow for
	expansion.
	(pe_exe_build_sections): new; used to add .relocs to .exes
	(pe_exe_fill_sections): ditto
1999-05-11 21:06:50 +00:00
DJ Delorie
69f868fa5d * ld-srec/srec.exp: Do not run tests for PE based ports. 1999-05-11 20:31:53 +00:00
Catherine Moore
626e01051a 1999-05-10 Catherine Moore <clm@cygnus.com>
* emulttempl/pe.em (gld_${EMULATION_NAME}_after_open):
	Check for TARGET_IS_arm_epoc_pe.
	(gld_${EMULATION_NAME}_before_allocation): Likewise.
1999-05-10 18:30:21 +00:00
Richard Henderson
4dec4d4e74 * ldlang.c (walk_wild, walk_wild_file, walk_wild_section,
output_section_callback, gc_section_callback): New functions for
     generic section walks.
     (wild, lang_gc_wild): Use walk_wild.
     (wild_file, lang_gc_wild_file): Deleted. Common logic moved to
     walk_wild_file.
     (wild_section, lang_gc_wild_section): Deleted. Common logic moved
     to walk_fild_section.  Unique logic moved into callbacks
     output_section_callback and gc_section_callback.
1999-05-08 23:40:58 +00:00
Nick Clifton
71acc4e8d5 REstore mcore support (duh!) 1999-05-07 07:40:05 +00:00
Nick Clifton
bb3596ae84 fix output format. 1999-05-07 07:34:06 +00:00
Nick Clifton
09a3f5d4e3 restore. (Duh!) 1999-05-07 07:33:44 +00:00
Nick Clifton
9484f685a5 Remove traces of mcore. 1999-05-06 07:20:24 +00:00
Richard Henderson
252b5132c7 19990502 sourceware import 1999-05-03 07:29:11 +00:00