Commit graph

148 commits

Author SHA1 Message Date
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