Stephane Carrez
ecfdd20cce
* scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
...
destructor in rom.
* scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2001-11-25 17:29:27 +00:00
H.J. Lu
da54c6eb1c
2001-11-22 H.J. Lu <hjl@gnu.org>
...
* Makefile.in: Regenerated with automake based on automake
1.4-8 in RedHat 7.1.
2001-11-22 18:49:12 +00:00
Alan Modra
465bc359f9
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
...
(config.status): Delete rule.
Add extra dependencies to cover sourced emulparams files.
* Makefile.in: Regenerate.
* scripttempl/elf.sc: Order <section>, <section>.* and
corresponding linkonce sections as seen in input files.
Formatting fixes. Zero vma of all sections if not relocating.
(STACK): Define and insert if STACK_ADDR defined.
(OTHER_RELOCATING_SECTIONS): Delete.
(OTHER_END_SYMBOLS): Define.
(OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
(OTHER_READWRITE_SECTIONS): Likewise.
(OTHER_GOT_SECTIONS): Likewise.
(OTHER_SDATA_SECTIONS): Likewise.
(OTHER_BSS_SECTIONS): Likewise.
* scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
(OTHER_READWRITE_SECTIONS): Likewise.
* scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
(OTHER_READWRITE_SECTIONS): Likewise
* emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
(STACK_ADDR): Define.
* emulparams/armelf_oabi.sh: As for armelf.sh.
* emulparams/elf32mcore.sh: As for armelf.sh.
* emulparams/h8300elf.sh: As for armelf.sh.
* emulparams/mn10200.sh: As for armelf.sh.
* emulparams/shelf.sh: As for armelf.sh.
* emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
(OTHER_END_SYMBOLS): Define.
* emulparams/m32relf.sh: As for elf32fr30.sh.
* emulparams/h8300helf.sh: As for elf32fr30.sh.
* emulparams/h8300self.sh: As for elf32fr30.sh.
* emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
defines with RELOCATING test.
(OTHER_SDATA_SECTIONS): Likewise.
(OTHER_RELOCATING_SECTIONS): Delete, replacing with..
(OTHER_END_SYMBOLS): ..this.
* emulparams/crislinux.sh: As for criself.sh.
* emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
if not relocating.
(OTHER_RELOCATING_SECTIONS): Delete, replacing with..
(OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
normal and linkonce sections as seen in input files.
* emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
(TEXT_DYNAMIC): Likewise.
(INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
(OTHER_SDATA_SECTIONS): Likewise.
* emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
* emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
* emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
* emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
* emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
(OTHER_PLT_RELOC_SECTIONS): Likewise.
(OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
sections as seen in input files.
* emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
* emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
if not relocating.
(OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
(OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
* emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
(OTHER_SECTIONS): Instead, use this..
(OTHER_END_SYMBOLS): ..and this.
* emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
* emulparams/elf32bsmip.sh: Likewise.
* emulparams/elf32btsmip.sh: Likewise.
* emulparams/elf32ebmip.sh: Likewise.
* emulparams/elf32lmip.sh: Likewise.
* emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
* emulparams/elf32lsmip.sh: Likewise.
* emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
* emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
* emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
* emulparams/elf64btsmip.sh: Likewise.
* emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
* emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
* emulparams/elf32ppclinux.sh: Likewise.
* emulparams/elf32ppcsim.sh: Likewise.
* emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
* emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
* emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
* emulparams/h8300self.sh: Likewise.
* emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
* emulparams/sh.sh: Comment.
* emulparams/shl.sh: Source sh.sh, remove duplicates.
* emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
* emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2001-11-22 09:08:05 +00:00
Alan Modra
abc6ab0a54
* ldlang.c (map_input_to_output_sections): Replace "break"
...
accidentally removed with 2001-08-03 change.
(lang_gc_sections_1): Likewise.
2001-11-21 01:13:15 +00:00
Alan Modra
2181f54fd8
* ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2001-11-20 15:31:10 +00:00
Alan Modra
ca0b584738
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
...
of false when calling lang_size_sections.
(hppaelf_layout_sections_again): Likewise.
2001-11-20 15:19:39 +00:00
H.J. Lu
f5e0494514
2001-11-19 H.J. Lu <hjl@gnu.org>
...
* ld-elfvsb/define.s: Mark all global lables as object.
* ld-elfvsb/hidden0.d: Match large section number.
* ld-elfvsb/hidden1.d: Likewise.
* ld-elfvsb/internal0.d: Likewise.
* ld-elfvsb/internal1.d: Likewise.
* ld-elfvsb/protected0.d: Likewise.
* ld-elfvsb/protected1.d: Likewise.
* ld-elfvsb/hidden0.d: Change NOTYPE to OBJECT.
* ld-elfvsb/internal0.d: Likewise.
* ld-elfvsb/protected0.d: Likewise.
2001-11-19 20:32:02 +00:00
H.J. Lu
c3b1835c01
2001-11-15 H.J. Lu <hjl@gnu.org>
...
* ld-sh/ld-r-1.d: Updated.
2001-11-15 19:10:05 +00:00
Alan Modra
c56feb2b8c
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
...
function when LDEMUL_FINISH isn't set to the same name. Don't
call ${LDEMUL_FINISH}.
(ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
* emultempl/armelf.em (arm_elf_finish): Call
gld${EMULATION_NAME}_finish.
* emultempl/hppaelf.em (hppaelf_finish): Rename to
gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
hppaelf_layout_sections_again if necessary.
(need_laying_out): New var.
(hppaelf_layaout_sections_again): Rename to
hppaelf_layout_sections_again. Clear need_laying_out.
(PARSE_AND_LIST_OPTIONS): Format text.
2001-11-15 12:44:03 +00:00
H.J. Lu
a48ca7f2ea
2001-11-14 H.J. Lu <hjl@gnu.org>
...
* emultempl/armelf.em (arm_elf_finish): Renamed from
gld${EMULATION_NAME}_finish.
(LDEMUL_FINISH): Set to arm_elf_finish.
2001-11-15 07:12:48 +00:00
Daniel Jacobowitz
73d074b4e2
2001-11-11 Daniel Jacobowitz <drow@mvista.com>
...
* bfd-in.h (bfd_elf32_discard_info): Add prototype.
(bfd_elf64_discard_info): Likewise.
* bfd-in2.h: Regenerate.
* elf-bfd.h (struct elf_reloc_cookie): New.
(struct elf_backend_data): Add elf_backend_discard_info,
elf_backend_ignore_discarded_relocs, and elf_backend_write_section.
(_bfd_elf32_reloc_symbol_deleted_p): Add prototype.
(_bfd_elf64_reloc_symbol_deleted_p): Likewise.
* elf32-mips.c (_bfd_elf32_mips_discard_info): New.
(_bfd_elf32_mips_ignore_discarded_relocs): New.
(_bfd_elf32_mips_write_section): New.
(elf_backend_discard_info): Define.
(elf_backend_ignore_discarded_relocs): Define.
(elf_backend_write_section): Define.
* elfcode.h (elf_bfd_discard_info): Define.
(elf_reloc_symbol_deleted_p): Define.
* elflink.h (elf_link_input_bfd): Check
elf_section_ignore_discarded_relocs. Call
bed->elf_backend_write_section if available.
(elf_reloc_symbol_deleted_p): New.
(elf_bfd_discard_info): New.
(elf_section_ignore_discarded_relocs): New.
* elfxx-target.h (elf_backend_discard_info): Define.
(elf_backend_ignore_discarded_relocs): Define.
(elf_backend_write_section): Define.
(elfNN_bed): Add elf_backend_discard_info,
elf_backend_ignore_discarded_relocs, and
elf_backend_write_section.
* libbfd-in.h (_bfd_discard_section_stabs): Add prototype.
* libbfd.h: Regenerate.
* stabs.c (_bfd_discard_section_stabs): New.
2001-11-11 Daniel Jacobowitz <drow@mvista.com>
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
(struct ld_emulation_xfer_struct): Use it.
2001-11-15 01:34:12 +00:00
Nick Clifton
86017ce918
Only scan tail of executable for PE targets.
2001-11-14 11:18:42 +00:00
Jeff Law
fc65c60263
* emulparams/elf64hppa.sh (OTHER_BSS_END_SECTIONS): Add
...
additional symbols referenced by newer crt0.o files from HP.
2001-11-13 18:25:37 +00:00
Nick Clifton
d7b784871a
Only compare the tail end of the two binary files produced in order to avoid
...
date stamp present in PE binaries.
2001-11-12 16:26:17 +00:00
Nick Clifton
f11b702702
New symbol: DATA_START_SYMBOLS
2001-11-12 14:39:11 +00:00
Alan Modra
3bf2994f9c
* Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
...
* Makefile.in: Regenerate.
2001-11-12 00:20:16 +00:00
Hans-Peter Nilsson
fec91dc5a6
* ld-mmix/sec-5.d (Sections): Add whitespace missing in commit.
2001-11-11 11:47:37 +00:00
H.J. Lu
3a921b779a
2001-11-09 H.J. Lu <hjl@gnu.org>
...
* ld-discard/discard.exp: New. Test ld discard.
* ld-discard/discard.ld: Likewise.
* ld-discard/exit.s: Likewise.
* ld-discard/extern.d: Likewise.
* ld-discard/extern.s: Likewise.
* ld-discard/start.d: Likewise.
* ld-discard/start.s: Likewise.
* ld-discard/static.d: Likewise.
* ld-discard/static.s: Likewise.
2001-11-10 01:17:58 +00:00
Stephane Carrez
ff5dcc9215
* ld.texinfo: Use @command for commands, @option for options.
...
* Makefile.am (POD2MAN): Use 'GNU Development Tools' for
the page man title.
* Makefile.in: Rebuild.
2001-11-09 20:30:40 +00:00
Chris Demetriou
9fb9af6ef4
[ gas/ChangeLog ]
...
2001-11-04 Chris Demetriou <cgd@broadcom.com>
* configure.in (mips-*-netbsd*): Add support for target.
* configure: Regenerate.
[ gas/testsuite/ChangeLog ]
2001-11-04 Chris Demetriou <cgd@broadcom.com>
* gas/mips/mips.exp (svr4pic): Set if target is *-*-netbsd*.
(aout): Don't set if *-*-netbsd*.
[ ld/ChangeLog ]
2001-11-04 Chris Demetriou <cgd@broadcom.com>
* configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
Add support for targets.
2001-11-04 19:06:38 +00:00
Nick Clifton
3c62831e20
Add translations
2001-11-02 19:09:06 +00:00
H.J. Lu
04827a14fb
2001-11-02 H.J. Lu <hjl@gnu.org>
...
* ld-elfvsb/elfvsb.exp: Add the "ld -r" test.
* ld-elfvsb/hidden0.d: New.
* ld-elfvsb/hidden1.d: New.
* ld-elfvsb/internal0.d: New.
* ld-elfvsb/internal1.d: New.
* ld-elfvsb/protected0.d: New.
* ld-elfvsb/protected1.d: New.
* ld-elfvsb/undef.s: New.
* ld-elfvsb/undef.s: New.
2001-11-02 17:24:54 +00:00
Nick Clifton
dc5e727b86
Fix testsuites for bigendian sh-linux
2001-11-02 17:07:52 +00:00
Nick Clifton
3a9091c4e5
Set targ_emul, targ_extra_emuls as little endian default and to support big endian.
2001-11-02 16:58:18 +00:00
Chris Demetriou
361b220ebe
2001-11-01 Chris Demetriou <cgd@broadcom.com>
...
* ld.texinfo (Options): Document new option, -nostdlib.
* lexsup.c (OPTION_NOSTDLIB): New definition.
(ld_options): Add entry for "nostdlib".
(parse_args): Handle OPTIONS_NOSTDLIB.
* ldfile.c (ldfile_add_library_path): Don't add directories
to the search path if they weren't specified on the command line
and -nostdlib was specified.
* ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2001-11-02 01:13:09 +00:00
Nick Clifton
210a7bd13d
Fix infinite parsing loop
2001-10-31 15:41:19 +00:00
Nick Clifton
114283d84f
Update documentation about -T augmenting linker scripts
2001-10-31 14:19:22 +00:00
Nick Clifton
7649aa5088
Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu targets
2001-10-31 09:50:09 +00:00
Hans-Peter Nilsson
457345460c
* ld-mmix/locdo-1.d: Prune character dump part.
2001-10-31 05:52:41 +00:00
Hans-Peter Nilsson
6ef81afda6
* ld-mmix/local7m.d, ld-mmix/loc4.d, ld-mmix/loc4m.d,
...
ld-mmix/loc1.d, ld-mmix/bspec1m.d, ld-mmix/bspec2m.d,
ld-mmix/b-nosym.d, ld-mmix/b-fixo2.d, ld-mmix/b-loc64k.d,
ld-mmix/undef-3m.d, ld-mmix/locto.s, ld-mmix/loct.s,
ld-mmix/local3m.d, ld-mmix/local1m.d, ld-mmix/loc6m.d,
ld-mmix/loc2.s, ld-mmix/loc1.s, ld-mmix/gregldo1.s,
ld-mmix/dloc1.s, ld-mmix/b-widec3.s, ld-mmix/b-nosym.s: Remove
unnecessary empty lines.
2001-10-31 05:42:51 +00:00
Alan Modra
6e814ff881
* ldlang.c (lang_size_sections): Keep a valid output_offset field
...
for padding statements.
2001-10-31 01:12:26 +00:00
Nick Clifton
3c3bdf30e4
Add MMIX support
2001-10-30 15:20:14 +00:00
Kazu Hirata
ca0c1d3ede
* ldlang.c: Fix a comment typo.
2001-10-29 22:36:32 +00:00
Alan Modra
1a3d33ce81
* configure.host: Move alpha*-*-linux-gnu* entry to generic
...
entries, and match *-*-linux*.
2001-10-23 05:49:02 +00:00
Alan Modra
b47c420856
* ldgram.y (mri_script_command): Surround processing of INCLUDE
...
with ldlex_script, ldlex_popstate.
(ifile_p1): Likewise.
* ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
correct slot.
(lex_push_file): Save current lineno to lineno_stack. Set lineno
to 1. Don't BEGIN(SCRIPT).
(lex_redirect): Similarly.
* ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2001-10-20 13:49:00 +00:00
Nick Clifton
fd521b4750
Define __EH_FRAME_{BEGIN|END}__
2001-10-20 09:56:29 +00:00
DJ Delorie
59d28a9467
* pe-dll.c (autofilter_objectlist): Add gcrt0.o.
...
(auto-export): Fix indentation.
2001-10-19 14:25:51 +00:00
DJ Delorie
663dd37808
* pe-dll.c (autofilter_objectlist): Add startup objects
...
for profiling.
(auto-export): Constify char * p.
Extract file basename and use strcmp rather than ststr
for object lookup.
2001-10-19 00:00:55 +00:00
Chris Demetriou
31d677f9ba
2001-10-18 Chris Demetriou <cgd@broadcom.com>
...
* ldmain.c (get_emulation): Improve comment about the handling
of -mipsN options.
2001-10-18 23:44:17 +00:00
Alan Modra
aa200fe8a3
* po/POTFILES.in: Regenerate.
2001-10-17 05:41:53 +00:00
Alan Modra
146e7110d8
* emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
...
-z nocopyreloc and -z nocombreloc usage strings.
2001-10-15 23:28:21 +00:00
Hans-Peter Nilsson
d45d3ffb18
* ld-sh/sub2l-1.d, ld-sh/shared-1.d, ld-sh/weak1.d: Only run on
...
sh*-*-elf.
2001-10-15 00:14:37 +00:00
Hans-Peter Nilsson
b2da51b6a4
* lib/ld-lib.exp (run_dump_test): Fix typo: asflags(), not asflags{}.
2001-10-14 16:03:53 +00:00
Hans-Peter Nilsson
7739e068a7
* ld-sh/rd-sh.exp: New framework file.
...
* ld-sh/ld-r-1.d, ld-sh/ldr1.s, ld-sh/ldr2.s, ld-sh/shared-1.d,
ld-sh/weak1.s, ld-sh/weak1.d, ld-sh/sub2l.s, ld-sh/sub2l-1.d: New
test files.
2001-10-14 15:18:11 +00:00
Nick Clifton
b4330e85f7
Include -z nocopyreloc in usage
2001-10-12 10:34:25 +00:00
Nick Clifton
5af8a2fbdc
Fix arm aout placement of .bss section
2001-10-11 17:28:43 +00:00
DJ Delorie
5b784096c9
* pe-dll.c (autofilter_entry_type autofilter_liblist: Add
...
startup files for mingw32 dlls to list.
2001-10-11 17:16:58 +00:00
Chris Demetriou
61585df298
2001-10-10 Chris Demetriou <cgd@broadcom.com>
...
* emultempl/elf32.em: Fix shell 'if' usage for portability.
2001-10-10 23:05:55 +00:00
Aldy Hernandez
45cf6f3e23
2001-10-08 Aldy Hernandez <aldyh@redhat.com>
...
* configure.tgt (targ): Add arm9e-*-elf.
2001-10-08 18:54:13 +00:00
H.J. Lu
e24d7c123d
2001-10-05 H.J. Lu <hjl@gnu.org>
...
* genscripts.sh: Fix a typo in the last change.
2001-10-05 16:40:23 +00:00