Nick Clifton
e3c8793a40
Fixes to improve the ability to translate messages in the binutils tools
2001-12-06 10:22:36 +00:00
Tom Rix
f2eab0af2b
Remove eaixppc64 from Makefile.am
2001-12-05 21:46:39 +00:00
Tom Rix
249172c3f2
Formatting and misc cleanup for AIX.
2001-12-05 13:34:46 +00:00
Hans-Peter Nilsson
5b5cd1b0fa
* emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
...
(OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
__Sbss.
(OTHER_END_SYMBOLS): Fix formatting.
* emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
(OTHER_END_SYMBOLS): Fix formatting.
2001-12-04 18:28:31 +00:00
Alan Modra
7cecdbff28
* ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2001-12-04 00:10:40 +00:00
Tom Rix
e826c14a72
Removing, redundant with support of -b64
2001-12-03 23:19:06 +00:00
Tom Rix
742aeb63e9
Pass argc and argv to ldemul_choose_target.
...
Support -b64 in AIX
2001-12-03 23:15:28 +00:00
H.J. Lu
82e03011ac
2001-11-30 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp (build_vers_lib): Preserve the library
order.
2001-11-30 15:41:17 +00:00
H.J. Lu
679547726a
2001-11-29 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp (build_vers_lib): Support linking against
more than one libraries.
Add "vers20a" and "vers20" tests for common symbols.
* ld-elfvers/vers20.c: New.
* ld-elfvers/vers20.dsym: New.
* ld-elfvers/vers20.map: New.
* ld-elfvers/vers20.ver: New.
* ld-elfvers/vers20a.ver: New.
2001-11-30 08:07:34 +00:00
Nick Clifton
607334a109
Add .cvsignore files to skip .gmo files
2001-11-28 18:57:14 +00:00
H.J. Lu
484593416a
2001-11-27 H.J. Lu <hjl@gnu.org>
...
* emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
* emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
* emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
* emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
* emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
* emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
* emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
* emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
* scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
is not empty.
(SDATA): Likewise.
(REL_SDATA): Likewise.
(REL_SBSS): Likewise.
(REL_SDATA2): Likewise.
(REL_SBSS2): Likewise.
(SBSS2): Define if ${NO_SMALL_DATA} is not empty.
(SDATA2): Likewise.
2001-11-27 19:06:07 +00:00
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
Jakub Jelinek
ec38dd0548
* doc/as.texinfo: Document M and S ELF section flags.
...
* emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
-z nocombreloc in usage.
2001-10-05 16:36:55 +00:00
Jim Blandy
cedd6b0d8e
* genscripts.sh: Include a comment at the top of each generated
...
script, explaining its purpose.
2001-10-03 21:36:43 +00:00
Alan Modra
8bd621d883
Add support for -z nocopyreloc.
2001-10-03 15:11:48 +00:00
Alan Modra
fcd8210c95
Regenerate configure to include the gettext.m4 change. Update
...
opcodes/po/POTFILES.in
2001-10-03 13:46:35 +00:00
Alan Modra
d32820f2fa
* ldver.h (ld_program_version): Remove declaration.
...
* lexsup.c (parse_args): Move printing of copyright message..
* ldver.c (ldversion): .. to here.
Use BFD_VERSION_STRING in place of BFD_VERSION.
(ld_program_version): Remove.
* Makefile.am (Makefile): Depend on bfd/configure.in
Run "make dep-am"
* Makefile.in: Regenerate.
2001-10-02 06:04:23 +00:00
Hans-Peter Nilsson
af46bcdc57
* Makefile.am: Update dependencies with "make dep-am".
...
* Makefile.in: Regenerate.
2001-09-30 22:22:05 +00:00
Hans-Peter Nilsson
c9253ef63b
Oops - forgot to remove xfail
2001-09-29 13:02:24 +00:00
Hans-Peter Nilsson
8e13f7b1f9
* ld-linkonce/linkonce.exp: New file.
...
* ld-linkonce/x.s, ld-linkonce/y.s, ld-linkonce/zeroeh.ld,
ld-linkonce/zeroehl32.d: New test.
2001-09-29 13:01:17 +00:00
Alan Modra
4818e05fe5
From John Reiser <jreiser@BitWagon.com>
...
* ldlang.c (lang_common): Conditionally inhibit Common allocation.
* lexsup.c: Add --no-define-common commandline option.
* ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
* ldlex.l: Likewise.
* ld.h: Add command_line.inhibit_common_definition.
* ldmain.c (main): Initialize.
* ld.texinfo: Document.
2001-09-29 12:57:54 +00:00
Alan Modra
862517b650
* section.c (struct sec): Remove kept_section.
...
(STD_SECTION): Remove kept_section initialisation.
(bfd_make_section_anyway): Here too.
* ecoff.c (bfd_debug_section): Remove kept_section initialisation.
* cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
* elflink.h (elf_link_input_bfd): Set discarded link-once section
symbols to zero, and remove all code involved with kept_section
and tracking section symbol values.
* bfd-in2.h: Regenerate.
* configure.in: Bump version number.
* configure: Regenerate.
* ldlang.c (section_already_linked): Remove assignment to kept_section.
2001-09-29 12:07:01 +00:00
Alan Modra
d5e0ebeb62
* ldmisc.c (USE_STDARG): Remove.
...
(info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
(einfo): Likewise.
(minfo): Likewise.
(lfinfo): Likewise.
* ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
declarations. Update copyright.
2001-09-26 01:55:44 +00:00
H.J. Lu
5d5849d7b5
2001-09-25 H.J. Lu <hjl@gnu.org>
...
* ld-elfweak/dso.dsym: Updated for alpha.
* ld-elfweak/dsodata.dsym: Likewise.
* ld-elfweak/strong.sym: Likewise.
* ld-elfweak/strongcomm.sym: Likewise.
* ld-elfweak/strongdata.sym: Likewise.
2001-09-25 20:24:00 +00:00
Nick Clifton
85c774585e
Fix thinko
2001-09-24 21:16:47 +00:00
Nick Clifton
9cc16c3a6b
Remove spurious prototype.
2001-09-24 21:13:48 +00:00
Nick Clifton
c406afafb1
oops - frag omitted from previous patch application
2001-09-24 18:35:08 +00:00
Nick Clifton
aa3d9aba51
oops - omitted from previous delta
2001-09-24 18:21:24 +00:00
Nick Clifton
2f8d8971c6
improve documenation about auto-import
2001-09-24 16:17:46 +00:00
Nick Clifton
72358f6568
Define and use pe_get_data_import_dll_name().
2001-09-24 15:03:01 +00:00
H.J. Lu
3882b01078
Locale changes from Bruno Haible <haible@clisp.cons.org>.
2001-09-19 05:33:36 +00:00
Alan Modra
db09f25b32
* deffilep.y (def_stash_module): Constify "name" param.
...
* pe-dll.c: Replace CONST with const throughout.
(quick_symbol): Constify "n1", "n2", "n3" params.
(make_singleton_name_thunk): Constify "import" param. Make
"buffer_len" a size_t.
(make_import_fixup_entry): Constify "name", "fixup_name",
"dll_symname" params.
(pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
(pe_get32): Likewise.
(pe_implied_import_dll): Likewise.
* emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
(sort_by_section_name): Likewise.
* emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
(make_import_fixup): Cast printf arg, rel->address to long rather
than int.
(gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2001-09-18 10:10:21 +00:00
Alan Modra
7469926815
* ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
...
defines BufferSize. Increase buffer size by one.
2001-09-16 04:25:33 +00:00
Hans-Peter Nilsson
cfe5266f79
* lib/ld-lib.exp (run_dump_test): Handle new option
...
"objcopy_linked_file". Return after failing, if errors were
expected but none were found.
(slurp_options): Support underscores in option names.
2001-09-15 00:56:42 +00:00
H.J. Lu
0c52a746f7
2001-09-14 H.J. Lu <hjl@gnu.org>
...
* ld-elfweak/bar.c: Updated.
* ld-elfweak/bar1a.c: Likewise.
* ld-elfweak/main.c: Likewise.
* ld-elfweak/main1.c: Likewise.
* ld-elfweak/elfweak.exp: Likewise.
* ld-elfweak/weakdata.dsym: Updated.
2001-09-14 23:43:17 +00:00
Nick Clifton
775cabad23
Fix memory leak
2001-09-14 14:19:05 +00:00
Nick Clifton
056a1d49d7
Add support for arm-openbsd target
2001-09-14 11:46:40 +00:00
H.J. Lu
a7d792bb15
2001-09-12 H.J. Lu <hjl@gnu.org>
...
* Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
eelf64lppc.o to ...
(ALL_64_EMULATIONS): Here.
* Makefile.in: Regenerated.
2001-09-12 23:57:21 +00:00
Charles Wilson
0d888aac30
2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
...
* emultempl/pe.em(make_import_fixup): change signature to
take asection as well as arelec; we need this for proper
error reporting. Only call pe_create_import_fixup() if
there is no attempt to add a constant addend to the reloc;
otherwise, report error condition.
* pe-dll.c(pe_walk_relocs_of_symbol): change signature,
since final argument is a pointer to make_import_fixup().
Change call to cb() to match make_import_fixup() signature.
(make_import_fixup_mark): make buffer_len unsigned.
* pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
* ld.texinfo: add verbose documentation for auto-import
direct-addressing workaround, to compliment the terse
error message.
2001-09-12 15:58:10 +00:00
Catherine Moore
cedacdc05a
* scripttempl/v850.sc: Add gcc_except_table sections.
2001-09-12 14:09:18 +00:00
H.J. Lu
bd7c9df68b
2001-09-11 H.J. Lu <hjl@gnu.org>
...
* ld-elfweak/elfweak.exp (build_lib): Take a list of object
files.
(build_exec): Likewise.
Add more tests and make some xfail.
* ld-elfweak/dso.dsym: Support symbol versioning.
* ld-elfweak/dsow.dsym: Likewise.
* ld-elfweak/main1.c: New.
* ld-elfweak/bar1a.c: Likewise.
* ld-elfweak/bar1b.c: Likewise.
* ld-elfweak/bar1c.c: Likewise.
* ld-elfweak/foo1a.c: Likewise.
* ld-elfweak/foo1b.c: Likewise.
* ld-elfweak/dsodata.dsym: Likewise.
* ld-elfweak/dsowdata.dsym: Likewise.
* ld-elfweak/weakdata.dsym: Likewise.
* ld-elfweak/strongcomm.sym: Likewise.
* ld-elfweak/strongdata.sym: Likewise.
* ld-elfweak/weakdata.dat: Likewise.
* ld-elfweak/strongdata.dat: Likewise.
2001-09-11 14:25:16 +00:00
H.J. Lu
16a572840c
2001-09-10 H.J. Lu <hjl@gnu.org>
...
* ld-elfweak/elfweak.exp: New.
* ld-elfweak/bar.c: Likewise.
* ld-elfweak/foo.c: Likewise.
* ld-elfweak/main.c: Likewise.
* ld-elfweak/dso.dsym: Likewise.
* ld-elfweak/dsow.dsym: Likewise.
* ld-elfweak/strong.sym: Likewise.
* ld-elfweak/strong.dat: Likewise.
* ld-elfweak/weak.dat: Likewise.
2001-09-10 17:11:34 +00:00
Jeff Law
38be0bb1e6
* emulparams/h8300helf.sh: Move stack to a much higher memory address.
...
* emulparams/h8300self.sh: Similarly.
2001-09-07 17:35:04 +00:00
Tom Rix
1fdf02497c
Fix import symbols for AIX.
2001-09-06 15:20:01 +00:00
Nick Clifton
559e4713db
Set correct value for default (PE) stack size.
2001-09-05 16:00:13 +00:00
Andreas Jaeger
9b5799b87b
* emultempl/beos.em: Declare prototypes for comparions functions,
...
adjust definitions.
2001-09-03 07:29:50 +00:00
Andreas Jaeger
48f6162b7a
* emultempl/aix.em: Add missing prototype.
...
* emultempl/lnk960.em: Likewise.
* emultempl/vanilla.em: Likewise.
* emultempl/armcoff.em: Likewise.
* emultempl/armelf_oabi.em: Likewise.
* emultempl/beos.em: Likewise.
* emultempl/gld960c.em: Likewise.
* emultempl/gld960.em: Likewise.
* emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
for prototype declaration.
2001-09-03 06:43:37 +00:00
Eric Christopher
39e5585e1b
2001-08-31 Eric Christopher <echristo@redhat.com>
...
Jason Eckhardt <jle@redhat.com>
* ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2001-08-31 21:28:05 +00:00
Andreas Jaeger
3fc90ddbe3
* emultempl/pe.em: Add missing prototypes.
...
(gld_${EMULATION_NAME}_after_open): Remove extra args to
pe_find_data_imports.
(pr_sym): Add unused attribute.
2001-08-31 13:30:13 +00:00
Nick Clifton
063cb91d19
omitted in previous delta
2001-08-30 12:19:49 +00:00
Phil Blundell
d43ded80a7
2001-08-29 Joel Sherrill <joel@OARcorp.com>
...
* configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
default from coff to elf.
2001-08-29 18:47:28 +00:00
Jeff Law
3946dd2f8d
* emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
...
ARCH specification.
* emulparams/h8300self.sh: Similarly.
2001-08-29 17:35:27 +00:00
Nick Clifton
70d0c6e9db
Add missing changelog entry
2001-08-29 17:18:52 +00:00
Joern Rennecke
8af6dd4198
* Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
...
eh8300self.o .
(eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
* configure.tgt (h8300-*-elf*): New case.
* emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
* emulparams/h8300self.sh: New file.
* Makefile.in: Regenerated.
2001-08-29 12:51:26 +00:00
Alan Modra
ad9f78d1a8
* ld-checks/checks.exp: .lcomm is incompatible with ppc coff.
...
* ld-scripts/cross1.t: Add .toc section.
* ld-scripts/cross2.t: Likewise.
* ld-scripts/phdrs.exp: powerpc64 is 64 bit.
* ld-srec/srec.exp: xfail powerpc64
2001-08-27 10:49:55 +00:00
Alan Modra
5c67d4bb59
* Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
...
(eelf64ppc.c, eelf64lppc.c): Add make targets.
Run "make dep-am"
* Makefile.in: Regenerate.
* configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
entries to correct alphabetical position.
* emulparams/elf64ppc.sh: New.
* emulparams/elf64lppc.sh: New.
2001-08-27 10:45:55 +00:00
Nick Clifton
081310158f
Declare BSIZE as static
2001-08-27 08:52:50 +00:00
Jakub Jelinek
db6751f2e7
* elf-bfd.h (enum elf_reloc_type_class): New.
...
(struct elf_backend_data): Add elf_backend_reloc_type_class.
(_bfd_elf_reloc_type_class): New.
* elfxx-target.h (elf_backend_reloc_type_class): Define.
(elfNN_bed): Add elf_backend_reloc_type_class.
* elf.c (_bfd_elf_reloc_type_class): New.
* elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
is against read-only section.
(elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf_i386_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(elf32_sparc_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
reloc is against read-only section.
(sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
looking up section names for DT_TEXTREL.
(sparc64_elf_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
(elfNN_ia64_hash_table_create): Clear ia64_info.
(get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
section.
(elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
instead of looking up section names for DT_TEXTREL.
(elfNN_ia64_reloc_type_class): New.
(elf_backend_reloc_type_class): Define.
* elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
(struct elf_link_sort_rela): New.
(elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
(elf_bfd_final_link): Call elf_link_sort_relocs.
Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
necessary.
* bfdlink.h (struct bfd_link_info): Add combreloc and
spare_dynamic_tags fields.
* emultempl/elf32.em (place_orphan): Place orphan .rel* sections
into .rel.dyn resp. .rela.dyn if combreloc.
(get_script): If .x linker script is equal to .xn, only put it
once into the binary.
Add .xc and .xsc scripts.
(parse_args): Handle -z combreloc and -z nocombreloc.
* scripttempl/elf.sc (.rela.sbss): Fix a typo.
For .xc and .xsc scripts put all .rel* or .rela* input sections
but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
* genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
is elf.
Strip trailing whitespace from script.
Generate .xc and .xsc scripts if requested.
* ldmain.c (main): Initialize link_info.combreloc and
link_info.spare_dynamic_tags.
* lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
(ld_options): Add --spare-dynamic-tags option.
(parse_args): Likewise.
* ld.texinfo: Document -z combreloc and -z nocombreloc.
* ldint.texinfo: Document .xc and .xsc linker scripts.
* NEWS: Add notes about -z combreloc and SHF_MERGE.
2001-08-23 15:14:18 +00:00
H.J. Lu
63d069c06f
2001-08-22 H.J. Lu <hjl@gnu.org>
...
* emulparams/elf32fr30.sh: Add a newline.
2001-08-22 16:00:25 +00:00
Nick Clifton
453abe3171
Return if target is `vax-*-ultrix*'.
...
Continue with other tests when there is a compilation error.
2001-08-21 16:04:37 +00:00
Andreas Jaeger
948f9114c9
* deffilep.y: Add missing prototypes.
...
* pe-dll.c: Likewise.
2001-08-21 11:42:57 +00:00
Alan Modra
2af022575a
* ldlang.c (insert_pad): Fix typos in last patch.
2001-08-20 03:09:07 +00:00
Alan Modra
bba1a0c062
* ldlang.c: When traversing lang_statement_union_type lists,
...
consistently use "header.next" rather than "next".
* mpw-eppcmac.c: Likewise.
* emultempl/beos.em: Likewise.
* emultempl/hppaelf.em: Likewise.
* emultempl/pe.em: Likewise.
* ldlang.h (union lang_statement_union): Remove "next" field.
2001-08-20 02:14:50 +00:00
Alan Modra
c0c330a70f
* ldlang.c (insert_pad): Use offsetof macro.
...
(lang_size_sections): Always neuter padding statements.
* emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2001-08-20 01:21:08 +00:00
Alan Modra
ae7fb08f1a
* pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
...
passed to lang_size_sections.
(pe_exe_fill_sections): Likewise.
* emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
(gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2001-08-20 00:22:41 +00:00
Alan Modra
fab80407fe
* emultempl/aix.em: Formatting fixes.
2001-08-18 15:42:26 +00:00
Alan Modra
b3327aadfd
* ldlang.c (insert_pad): Make use of an existing pad statement if
...
available. Move code calculating alignment, adjusting section
alignment power, and adjusting dot to ..
(size_input_section): .. here. Remove unused relax param.
(lang_size_sections): Change boolean `relax' param to boolean *.
Adjust call to size_input_section. Make use of insert_pad to
place pad after the assignment statement. If relaxing, zap
padding statements.
(reset_memory_regions): Reset output_bfd section sizes too.
(relax_again): Move to..
(lang_process): ..here. Adjust call to lang_size_sections, and
remove duplicated code.
* ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2001-08-18 14:54:26 +00:00
Alan Modra
563e308f24
* ld.texinfo: Document that fill values now use the four least
...
significant bytes.
* emulparams/elf32fr30.sh (NOP): Update.
* emulparams/elf32mcore.sh: Likewise.
* emulparams/elf64_s390.sh: Likewise.
* emulparams/elf_i386.sh: Likewise.
* emulparams/elf_i386_be.sh: Likewise.
* emulparams/elf_i386_chaos.sh: Likewise.
* emulparams/elf_i386_ldso.sh: Likewise.
* emulparams/elf_s390.sh: Likewise.
* emulparams/elf_x86_64.sh: Likewise.
* emulparams/i386moss.sh: Likewise.
* emulparams/i386nw.sh: Likewise.
* emulparams/m68kelf.sh: Likewise.
* scripttempl/elf.sc: Update NOP comment.
* scripttempl/elfi370.sc: Likewise.
* scripttempl/elfm68hc11.sc: Likewise.
* scripttempl/elfm68hc12.sc: Likewise.
* scripttempl/nw.sc: Likewise.
2001-08-17 09:51:08 +00:00
Tom Rix
b90e1c6f3e
Fix for ld
2001-08-15 17:10:18 +00:00
Alan Modra
cde43e70f1
* emultempl/elf32.em: Formatting fixes.
...
(output_prev_sec_find): Test for bfd_ind_section too; do so by
looking at sec->owner.
(output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
(gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
unused code, and reorganize orphan section placement code.
2001-08-14 04:40:38 +00:00
Alan Modra
39dcfe18ca
(wild_doit): Rename to lang_add_section.
2001-08-14 02:01:31 +00:00
Richard Henderson
908d20b308
* emultempl/needrelax.em: New file.
...
* emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
* Makefile.am (eelf64_ia64.c): Depend on it.
* Makefile.in: Rebuild.
2001-08-13 20:40:31 +00:00
Alan Modra
22af9fd35c
* emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
...
output_section is set non-NULL.
2001-08-13 14:28:57 +00:00
Alan Modra
0f33d40bfc
* emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
...
`true' for SEC_EXCLUDE sections so that the generic code doesn't
needlessly create an output_section_statement. Treat a correctly
named output_section_statement with NULL bfd_section as compatible.
2001-08-13 10:56:21 +00:00
Hans-Peter Nilsson
738472a889
Update copyright notice
2001-08-13 07:31:29 +00:00
Hans-Peter Nilsson
55ab6103c5
* emultempl/generic.em: Support EXTRA_EM_FILE.
...
(ld_${EMULATION_NAME}_emulation): Support emulation parameters
LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
LDEMUL_FIND_POTENTIAL_LIBRARIES.
2001-08-13 07:24:58 +00:00
Richard Henderson
24098abb6c
* scripttempl/elf.sc, scripttempl/elfd30v.sc,
...
scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
scripttempl/v850.sc: Keep .jcr data.
2001-08-12 20:19:49 +00:00
Nick Clifton
b9a8de1ea3
Make --verbose always display linker script
2001-08-12 07:59:28 +00:00
Andreas Jaeger
0218d1e4c2
* configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
...
to build warnings.
* configure: Regenerate.
2001-08-10 10:56:47 +00:00
Alan Modra
738108961e
* emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2001-08-09 14:44:18 +00:00
Alan Modra
5253f23b62
* scripttempl/elf.sc: Move non-text .dynamic section before
...
.plt/.got/.sdata* group.
(OTHER_GOT_SECTIONS): Move to immediately after .got.
(OTHER_SDATA_SECTIONS): Add.
* emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
OTHER_GOT_SECTIONS.
* emulparams/crislinux.sh: Likewise.
* emulparams/elf32b4300.sh: Likewise.
* emulparams/elf32bmip.sh: Likewise.
* emulparams/elf32bmipn32.sh: Likewise.
* emulparams/elf32bsmip.sh: Likewise.
* emulparams/elf32btsmip.sh: Likewise.
* emulparams/elf32ebmip.sh: Likewise.
* emulparams/elf32elmip.sh: Likewise.
* emulparams/elf32l4300.sh: Likewise.
* emulparams/elf32lmip.sh: Likewise.
* emulparams/elf32lsmip.sh: Likewise.
* emulparams/elf32ltsmip.sh: Likewise.
* emulparams/elf64bmip.sh: Likewise.
* emulparams/elf64btsmip.sh: Likewise.
* emulparams/elf64ltsmip.sh: Likewise.
2001-08-09 14:25:59 +00:00
Alan Modra
179c732cf6
* genscripts.sh: Source the emulparams script before each output
...
script is generated so that variables like `RELOCATING' may affect
variables defined in the emulparams script.
2001-08-08 13:14:38 +00:00
Alan Modra
20713691c2
* emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
...
order.
2001-08-04 04:14:10 +00:00
Alan Modra
3fd367102d
* emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
...
ie. iterate over wild_statement.section_list.
(gld${EMULATION_NAME}_place_orphan): Likewise.
2001-08-04 01:21:43 +00:00
Stephane Carrez
de0b18539d
* scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
...
.fini[0-4] sections used by _exit
(CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
(*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
* scripttempl/elfm68hc11.sc: Likewise.
2001-08-03 20:41:26 +00:00
H.J. Lu
ff7e6f8868
2001-08-03 H.J. Lu <hjl@gnu.org>
...
* emultempl/beos.em (init): Add the missing initialization.
2001-08-03 19:19:42 +00:00
Alan Modra
b6bf44ba1b
* ld.texinfo (Input Section Basics): Clarify ordering of output
...
sections.
* ldlang.c (callback_t): Add wildcard_list param.
(walk_wild_section): Remove "section" param. Rewrite for
lang_wild_statement_type change. Remove unique_section_p test.
(walk_wild_file): Remove "section" param.
(walk_wild): Remove "section" and "file" params.
(lang_gc_wild): Likewise.
(wild): Likewise. Modify for lang_wild_statement_type change.
(wild_sort): Likewise. Add "sec" param.
(gc_section_callback): Likewise.
(output_section_callback): Likewise. Do unique_section_p test.
(map_input_to_output_sections): Modify call to wild.
(lang_gc_sections_1): Likewise.
(print_wild_statement): Modify for lang_wild_statement_type
change.
(lang_add_wild): Replace filename, filenames_sorted param with
filespec. Replace section_name, sections_sorted,
exclude_filename_list with section_list.
* ldlang.h (lang_add_wild): Here too.
(lang_wild_statement_type): Replace section_name, sections_sorted,
and exclude_filename_list with section_list.
* ldgram.y (current_file): Delete.
(%union): Add wildcard_list.
(file_NAME_list): Set type to wildcard_list. Build a linked list
rather than calling lang_add_wild for each entry.
(input_section_spec_no_keep): Call lang_add_wild here instead.
* ld.h (struct wildcard_list): Declare.
* mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2001-08-03 01:11:21 +00:00
Charles Wilson
b044cda1de
2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
...
* ldmain.c (main): initialize link_info.pei386_auto_import
* pe-dll.c: new tables for auto-export filtering
(auto_export): change API, pass abfd for contextual filtering.
Loop thru tables of excluded symbols instead of comparing
"by hand".
2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
* pe-dll.c: new variable pe_dll_enable_extra_debug. New
static variable current_sec (static struct sec *). Add
forward declaration for add_bfd_to_link.
(process_def_file): Don't export undefined symbols. Do not
export symbols starting with "_imp__". Call auto_export()
with new API.
(pe_walk_relocs_of_symbol): New function.
(generate_reloc): add optional extra debugging
(pe_dll_generate_def_file): eliminate extraneous initial blank
line in output
(make_one): enlarge symtab to make room for __nm__ symbols
(DATA auto-import support).
(make_singleton_name_thunk): New function.
(make_import_fixup_mark): New function.
(make_import_fixup_entry): New function.
(pe_create_import_fixup): New function.
(add_bfd_to_link): Specify that 'name' argument is a CONST
char *.
* pe-dll.h: declare new variable pe_dll_extra_pe_debug;
declare new functions pe_walk_relocs_of_symbol and
pe_create_import_fixup.
* emultempl/pe.em: add new options --enable-auto-import,
--disable-auto-import, and --enable-extra-pe-debug.
(make_import_fixup): New function.
(pe_find_data_imports): New function.
(pr_sym): New function.
(gld_${EMULATION_NAME}_after_open): Add optional extra pe
debugging. Call pe_find_data_imports. Mark .idata as DATA, not
CODE.
2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
* ld.texinfo: add additional documentation for
--export-all-symbols. Document --out-implib,
--enable-auto-image-base, --disable-auto-image-base,
--dll-search-prefix, --enable-auto-import, and
--disable-auto-import.
* ldint.texinfo: Add detailed documentation on auto-import
implementation.
2001-08-02 23:12:02 +00:00
Charles Wilson
decc363800
2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
...
* ldmain.c (main): initialize link_info.pei386_auto_import
* pe-dll.c: new tables for auto-export filtering
(auto_export): change API, pass abfd for contextual filtering.
Loop thru tables of excluded symbols instead of comparing
"by hand".
2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
* pe-dll.c: new variable pe_dll_enable_extra_debug. New
static variable current_sec (static struct sec *). Add
forward declaration for add_bfd_to_link.
(process_def_file): Don't export undefined symbols. Do not
export symbols starting with "_imp__". Call auto_export()
with new API.
(pe_walk_relocs_of_symbol): New function.
(generate_reloc): add optional extra debugging
(pe_dll_generate_def_file): eliminate extraneous initial blank
line in output
(make_one): enlarge symtab to make room for __nm__ symbols
(DATA auto-import support).
(make_singleton_name_thunk): New function.
(make_import_fixup_mark): New function.
(make_import_fixup_entry): New function.
(pe_create_import_fixup): New function.
(add_bfd_to_link): Specify that 'name' argument is a CONST
char *.
* pe-dll.h: declare new variable pe_dll_extra_pe_debug;
declare new functions pe_walk_relocs_of_symbol and
pe_create_import_fixup.
* emultempl/pe.em: add new options --enable-auto-import,
--disable-auto-import, and --enable-extra-pe-debug.
(make_import_fixup): New function.
(pe_find_data_imports): New function.
(pr_sym): New function.
(gld_${EMULATION_NAME}_after_open): Add optional extra pe
debugging. Call pe_find_data_imports. Mark .idata as DATA, not
CODE.
2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
* ld.texinfo: add additional documentation for
--export-all-symbols. Document --out-implib,
--enable-auto-image-base, --disable-auto-image-base,
--dll-search-prefix, --enable-auto-import, and
--disable-auto-import.
* ldint.texinfo: Add detailed documentation on auto-import
implementation.
2001-08-02 23:03:10 +00:00
Nick Clifton
39c183c149
Do not require any exception support library. Check results against NRV.
2001-08-01 14:37:47 +00:00
Nick Clifton
22a517d05e
Do not require any exception support library.
2001-08-01 14:26:18 +00:00
Nick Clifton
156e34dd45
Fix computation in SECTIONS example.
2001-07-30 18:12:07 +00:00
H.J. Lu
e0d85c2645
2001-07-27 H.J. Lu <hjl@gnu.org>
...
* ld-selective/selective.exp: Fix the error in the last change.
2001-07-27 17:48:27 +00:00
Alan Modra
067f207480
* ld-selective/selective.exp: Support g++ V3 ABI (along side
...
the old ABI). Make comparisons against normalized (to
V3-style) demangled nm output.
2001-07-24 11:09:24 +00:00
Alan Modra
992c450de8
* config/default.exp (ld_nm): Add "nmflags" arg.
...
* lib/ld-lib.exp (default_ld_nm): Likewise.
* ld-empic/empic.exp: Adjust call to ld_nm.
* ld-scripts/defined.exp: Likewise.
* ld-scripts/script.exp: Likewise.
* ld-scripts/sizeof.exp: Likewise.
* ld-selective/selective.exp: Likewise.
* ld-sh/sh.exp: Likewise.
2001-07-24 11:07:16 +00:00
Alan Modra
d623142740
Update dependencies with "make dep-am".
2001-07-24 10:08:32 +00:00
Alan Modra
e14ec88b39
* ldcref.c (check_section_sym_xref): New function.
...
(check_nocrossrefs): Call it.
(check_nocrossref): Interate over h->refs here instead of..
(check_refs): ..here. Pass in the symbol name, section, and bfd
rather than hash_entry pointers.
(struct check_refs_info): Keep symbol name rather than hash entry.
Remove "same".
(check_reloc_refs): Tweak for above changes in check_refs_info.
Only report references to section syms when symname is NULL to
prevent duplicate messages for the same reloc.
2001-07-23 07:54:04 +00:00
Nick Clifton
c7d701b094
Use stderr if config.map_file is not available. Do not print NULL trees.
2001-07-19 16:41:00 +00:00
Nick Clifton
1545243be0
If a region is specified assign it to all sections inside the overlay unless they have been assigned to the own, non-default, memory region.
2001-07-19 16:21:39 +00:00
Nick Clifton
1b577b00bd
Change bug reporting email address.
2001-07-19 10:43:13 +00:00
H.J. Lu
5030876b5d
2001-07-14 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em (output_prev_sec_find): Never return
bfd_abs_section_ptr, bfd_com_section_ptr nor
bfd_und_section_ptr.
2001-07-14 16:36:25 +00:00
Nick Clifton
18c7a9a534
Fix dependency for em32relf.c
2001-07-14 15:47:17 +00:00
Matthew Green
9ffecff1ce
* configure.tgt (i386-*-netbsdelf*): New target.
...
(i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2001-07-14 14:45:42 +00:00
Jakub Jelinek
95500e1ca4
* emultempl/elf32.em (output_prev_sec_find): New.
...
(place_orphan): Use it.
2001-07-13 07:25:18 +00:00
H.J. Lu
bbfebd390d
2001-07-12 H.J. Lu <hjl@gnu.org>
...
* ld-selective/selective.exp: Mark selective1, selective2,
selective4 and selective5 xfail on alpha*-*.
2001-07-12 15:03:27 +00:00
H.J. Lu
e97cb84f5a
2001-07-11 H.J. Lu <hjl@gnu.org>
...
* ldmain.c (main): Fix typos in the last change.
2001-07-11 19:50:56 +00:00
Jakub Jelinek
7333607ede
2001-07-11 Jakub Jelinek <jakub@redhat.com>
...
* ldmain.c (main): Disallow -F and -f without -shared.
2001-07-11 14:19:05 +00:00
Nick Clifton
d29d80f20c
Check for the output_bfd not having any coff_data structure allocated to it.
2001-07-11 08:11:16 +00:00
David O'Brien
c2a1a436ff
2001-07-09 David O'Brien <obrien@FreeBSD.org>
...
* emultempl/elf32.em: Do not assuming that contents of the buffer
returned from basename function will remain unchanged accross other
function calls.
NOTE: DJ Delorie recomends doing a basename()->lbasename() conversion.
Approved by: DJ Delorie
<200107100030.UAA01223@envy.delorie.com>
2001-07-10 00:38:16 +00:00
H.J. Lu
63653551a8
2001-07-03 H.J. Lu <hjl@gnu.org>
...
* scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2001-07-03. It creates dynamic entries even for static binaries.
2001-07-03 23:22:20 +00:00
H.J. Lu
d303a449f2
2001-07-03 Jakub Jelinek <jakub@redhat.com>
...
* scripttempl/elf.sc (DYNAMIC_PAD): New variable.
(DYNAMIC): Use it to reserve few dynamic entries for
post-linking tools.
2001-07-03 17:40:14 +00:00
Alan Modra
9f22353f5b
* emulparams/hppa64linux.sh: New file.
...
* configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
* Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
(ehppa64linux.c): Add rule to make it.
Run "make dep-am".
* Makefile.in: Regenerate.
2001-06-27 08:42:29 +00:00
Hans-Peter Nilsson
62bf86b426
* ld.texinfo (Options, -r): Mention restrictions when using
...
different object formats.
2001-06-20 22:40:13 +00:00
Hans-Peter Nilsson
429d935daa
* ldlang.c (lang_check): Emit fatal error if relocatable link
...
between different object flavours with relocations in input.
2001-06-19 19:57:39 +00:00
H.J. Lu
cb840a31ad
2001-06-19 H.J. Lu <hjl@gnu.org>
...
* ld.texinfo (-E, --export-dynamic): Mention --version-script.
(--version-script): Mention the language support.
2001-06-19 15:22:39 +00:00
H.J. Lu
9bf03accc3
2001-06-19 H.J. Lu <hjl@gnu.org>
...
* ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2001-06-19 14:39:02 +00:00
Nick Clifton
c45021f2d2
Remove auot generated man pages
2001-06-19 11:57:29 +00:00
Hans-Peter Nilsson
605d9b3a4f
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
...
Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
* mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
* ld.h (args_type): Remove member export_dynamic. All users
changed to use struct bfd_link_info member.
2001-06-18 22:20:57 +00:00
Hans-Peter Nilsson
6caa99ab75
* Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
...
$(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
* Makefile.in: Regenerate.
2001-06-18 20:19:52 +00:00
H.J. Lu
6f9efd9751
2001-06-18 H.J. Lu <hjl@gnu.org>
...
* ldlang.c (init_os): Add the newline to the einfo call.
(lang_check): Likewise.
(lang_do_version_exports_section): Likewise.
2001-06-18 17:23:52 +00:00
H.J. Lu
5af9fd8b93
2001-06-15 H.J. Lu <hjl@gnu.org>
...
* lexsup.c (parse_args); Save optind to report unrecognized
option.
2001-06-16 03:41:45 +00:00
Hans-Peter Nilsson
7e66c3f530
* ldlang.c (lang_check): Emit fatal error if relocatable link
...
between different object flavours.
2001-06-15 13:13:46 +00:00
Hans-Peter Nilsson
2a096f0438
* lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
...
Set new link_info member export_dynamic.
* ldmain.c (main): Initialize new link_info member export_dynamic.
2001-06-15 13:02:23 +00:00
Nick Clifton
6770ec8c9e
Chnage load_symbols() to a boolean function
2001-06-15 09:00:11 +00:00
Hans-Peter Nilsson
261def7062
* config/default.exp (AS, GASP, OBJDUMP, NM, NMFLAGS, OBJCOPY,
...
OBJCOPYFLAGS, READELF, READELFFLAGS, LD, LDFLAGS): Provide
default.
* lib/ld-lib.exp (run_dump_test): Import from gas testsuite. Add
new options "ld", "source", "xfail", "target", "notarget" and
"error". Support the runtest_file_p "*.exp=testname" feature.
(slurp_options, regexp_diff, file_contents, verbose_eval): Import
from gas testsuite.
2001-06-13 03:08:21 +00:00
Nick Clifton
1e9f9630d4
Correct setup_xfail rule.
2001-06-12 16:02:13 +00:00
Alan Modra
b6a71ccaa1
Move an entry to the correct ChangeLog.
2001-06-10 13:41:43 +00:00
Alan Modra
8529105a0e
* ldlang.c (record_bfd_errors): Remove.
...
* emultempl/aix.em: Fix copyright dates.
2001-06-08 01:58:20 +00:00
Andreas Jaeger
8f3aa7a03f
* emulparms/elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
...
(TEXT_START_ADDR): Likewise.
2001-06-07 11:18:18 +00:00
H.J. Lu
a5c9dff1ba
Fix a typo.
2001-06-06 21:08:09 +00:00
H.J. Lu
66517a2f18
2001-06-06 H.J. Lu <hjl@gnu.org>
...
* ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3
on Linux/mips.
* ld-elfvers/vers.exp: Also run on istarget Linux/mips.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-shared/shared.exp: Likewise.
* ld-selective/selective.exp: Mark selective2, selective3,
selective4 and selective5 xfail on Linux/mips.
* ld-shared/main.c: Skip invalid -Bsymbolic tests on Linux/mips.
* symbolic.dat: Remove invalid -Bsymbolic tests on Linux/mips.
* ld-srec/srec.exp: Add Linux/mips to xfail.
2001-06-06 21:03:59 +00:00
Alan Modra
d52f97627b
* ld-undefined/undefined.exp: Add a setup_xfail line for a test
...
that will always fail on s/390.
2001-06-06 12:11:53 +00:00
Alan Modra
3277f888eb
* configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2001-06-06 12:11:23 +00:00
DJ Delorie
3763134dca
* emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2001-06-05 00:48:41 +00:00
H.J. Lu
5929ebc003
2001-05-31 H.J. Lu <hjl@gnu.org>
...
* ldlang.c (open_input_bfds): Don't change the bfd error
handler whilst loading symbols.
2001-05-31 21:14:59 +00:00
Nick Clifton
1e329ce6ac
For sh-*-linux-gnu target add a start address for the text section.
2001-05-28 10:55:23 +00:00
Nick Clifton
c04a062df3
Rmeove i370-mvs architecture - it is not supported.
2001-05-28 08:25:20 +00:00
H.J. Lu
96fcab3e8d
2001-05-25 H.J. Lu <hjl@gnu.org>
...
* emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
like emulparams/aixppc.sh.
2001-05-25 22:49:14 +00:00
H.J. Lu
db8d4f2320
2001-05-25 H.J. Lu <hjl@gnu.org>
...
* emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
setting of output_filename after bfd_scan_arch.
* emultempl/pe.em: Likewise.
2001-05-25 22:48:14 +00:00
H.J. Lu
5f64210127
2001-05-25 H.J. Lu <hjl@gnu.org>
...
* emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
like emulparams/aixppc.sh.
* emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
instead of ${srcdir}/emultempl/stringify.sed.
2001-05-25 21:19:46 +00:00
Timothy Wall
64e9ece0ca
monterey updates
2001-05-25 12:42:28 +00:00
Alan Modra
c709b09623
s/linuxaout/linux*aout/, s/linuxoldld/linux*oldld/
2001-05-25 07:21:01 +00:00
H.J. Lu
6cbdcc6fa9
2001-05-24 H.J. Lu <hjl@gnu.org>
...
* emultempl/stringify.sed: Removed again.
2001-05-25 05:56:38 +00:00
H.J. Lu
86af25fe1d
2001-05-24 H.J. Lu <hjl@gnu.org>
...
* emultempl/aix.em (OUTPUT_ARCH): Defined.
(gld${EMULATION_NAME}_before_parse): Initialize
ldfile_output_architecture, ldfile_output_machine and
ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
* emultempl/beos.em: Likewise.
* emultempl/elf32.em: Likewise.
* emultempl/linux.em: Likewise.
* emultempl/mipsecoff.em: Likewise.
* emultempl/pe.em: Likewise.
* emultempl/sunos.em: Likewise.
2001-05-25 05:39:22 +00:00
H.J. Lu
936f9717c0
2001-05-24 H.J. Lu <hjl@gnu.org>
...
* ld-scripts/phdrs.exp: Add sparc64 to 64 bit platform.
2001-05-25 04:31:55 +00:00
Tom Rix
3b1b01cf25
Support for xcoff64
2001-05-24 20:59:23 +00:00
Alexandre Oliva
57e6abd277
* emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
...
variable to avoid non-portable shell construct.
2001-05-24 02:44:06 +00:00
Nick Clifton
d1cf510e5e
Add MIPS r12k support
2001-05-23 17:26:40 +00:00
Nick Clifton
506eee2253
Improve Solaris compatability
2001-05-22 14:00:18 +00:00
Alexandre Oliva
6be7c12c05
* ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
...
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254. Rebuilt a number
of subdir/configure scripts to use the new libtool.m4.
2001-05-20 19:02:56 +00:00
H.J. Lu
9d8b3bf43c
2001-05-18 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp: Revert the last change.
* ld-elfvers/vers2.ver: Put back "tmpdir/" the version
references.
* ld-elfvers/vers3.ver: Likewise.
* ld-elfvers/vers6.ver: Likewise.
* ld-elfvers/vers18.ver: Likewise.
2001-05-18 16:15:42 +00:00
H.J. Lu
0f3f880889
2001-05-17 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers.exp: Pass "-rpath .:$tmpdir" to "vers19".
* ld-elfvers/vers1.ver: Remove "tmpdir/" from the version
definition.
* ld-elfvers/vers2.ver: Likewise.
* ld-elfvers/vers3.ver: Likewise.
* ld-elfvers/vers4a.ver: Likewise.
* ld-elfvers/vers6.ver: Likewise.
* ld-elfvers/vers7a.ver: Likewise.
* ld-elfvers/vers8.ver: Likewise.
* ld-elfvers/vers9.ver: Likewise.
* ld-elfvers/vers15.ver: Likewise.
* ld-elfvers/vers16a.ver: Likewise.
* ld-elfvers/vers17.ver: Likewise.
* ld-elfvers/vers18.ver: Likewise.
2001-05-18 01:25:34 +00:00
Alan Modra
d1778b88f8
Add a flag to asection, linker_has_input, and use it to reliably
...
determine whether an input section is the first one assigned to
an output section.
2001-05-17 03:58:45 +00:00
DJ Delorie
02649152cc
* Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
...
* Makefile.in: Ditto.
2001-05-14 16:55:23 +00:00
Jakub Jelinek
579f31ac74
* elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
...
sections as well.
(elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
to .gnu.linkonce.t.FOO text section.
* readelf.c (process_unwind): Print all unwind sections, not just
one.
* config/tc-ia64.c (special_linkonce_name): New.
(make_unw_section): Map .gnu.linkonce.t.FOO text section into
.gnu.linkonce.ia64unw{,i}.FOO.
(ia64_elf_section_type): Handle .gnu.linkonce.ia64unw{,i}.FOO.
(dot_endp): Add comment about it.
* elf/ia64.h (ELF_STRING_ia64_unwind_once): Define.
(ELF_STRING_ia64_unwind_info_once): Define.
* emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
.gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
output sections.
* emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2001-05-11 12:36:47 +00:00
Jakub Jelinek
8550eb6e64
* merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
...
fields, change sec into secinfo.
(struct sec_merge_info): Add chain, remove last fields.
(struct sec_merge_sec_info): Add next, sec, psecinfo fields.
(sec_merge_hash_lookup): If lookup could not use a string only
because it has bad alignment, mark the old string for deletion.
(sec_merge_add): Add secinfo argument. Don't compute entry's
position, instead record the section.
(sec_merge_emit): Update for the sec into secinfo change in
struct sec_merge_hash_entry.
(_bfd_merge_section): Only record the section for merging, defer
putting strings into the hash table.
(cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
_bfd_merge_sections): New functions.
(_bfd_merged_section_offset): Update for the sec_merge_hash_entry
changes.
* libbfd-in.h (_bfd_merge_sections): Add prototype.
(_bfd_nolink_bfd_merge_sections): Define.
* libbfd.h: Likewise.
(bfd_generic_merge_sections): Add prototype.
* targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
(struct bfd_target): Likewise.
* bfd.c (bfd_merge_sections): Define.
* bfd-in2.h: Rebuilt.
* elf.c (_bfd_elf_merge_sections): New function.
* elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
* elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
* reloc.c (bfd_generic_merge_sections): New function.
* vms.c (vms_bfd_merge_sections): New function.
* aout-adobe.c (aout_32_bfd_merge_sections): Define.
* aout-target.h (MY_bfd_merge_sections): Define.
* aout-tic30.c (MY_bfd_merge_sections): Define.
* binary.c (binary_bfd_merge_sections): Define.
* bout.c (b_out_bfd_merge_sections): Define.
* coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
* coffcode.c (coff_bfd_merge_sections): Define.
* coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
* i386msdos.c (msdos_bfd_merge_sections): Define.
* i386os9k.c (os9k_bfd_merge_sections): Define.
* ieee.c (ieee_bfd_merge_sections): Define.
* ihex.c (ihex_bfd_merge_sections): Define.
* nlm-target.h (nlm_bfd_merge_sections): Define.
* oasys.c (oasys_bfd_merge_sections): Define.
* ppcboot.c (ppcboot_bfd_merge_sections): Define.
* som.c (som_bfd_merge_sections): Define.
* srec.c (srec_bfd_merge_sections): Define.
* tekhex.c (tekhex_bfd_merge_sections): Define.
* versados.c (versados_bfd_merge_sections): Define.
* xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
* ldlang.c (lang_process): Call bfd_merge_sections.
2001-05-11 12:23:48 +00:00
Alan Modra
8e5a525cbb
* ldgram.y: Fix typo.
2001-05-07 09:20:25 +00:00
H.J. Lu
1c9acd948f
2001-05-03 H.J. Lu <hjl@gnu.org>
...
* emultempl/elf32.em: Include "libiberty.h".
(gld${EMULATION_NAME}_vercheck): Call basename () to get the
basename of the bfd filename.
(gld${EMULATION_NAME}_stat_needed): Likewise.
(gld${EMULATION_NAME}_try_needed): Likewise.
(gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2001-05-03 06:26:26 +00:00
H.J. Lu
8b0fa28299
2001-05-03 H.J. Lu <hjl@gnu.org>
...
* ld-elfvers/vers19.ver: Expect vers17.so instead of
*tmpdir/vers17.so.
2001-05-03 06:25:58 +00:00
H.J. Lu
14fe918ef2
2001-05-02 H.J. Lu <hjl@gnu.org>
...
* emultempl/pe.em: Include <ctype.h>.
2001-05-02 21:01:03 +00:00
Nick Clifton
c7e4034828
Add gas and ld support for openrisc
2001-05-02 18:14:31 +00:00
H.J. Lu
d1b2b2dcb9
2001-05-02 H.J. Lu <hjl@gnu.org>
...
* ldfile.c: Include "libiberty.h".
* ldlex.l: Likewise.
* ldmisc.c (buystring): Removed.
* ldmisc.h: Likewise.
* ldfile.c: Replace buystring with xstrdup.
* ldlang.c: Likewise.
* ldlex.l: Likewise.
* ldmain.c: Likewise.
* ldmisc.c: Likewise.
* lexsup.c: Likewise.
* mpw-eppcmac.c: Likewise.
2001-05-02 16:42:55 +00:00
Andreas Jaeger
7f9adacd07
* ld-scripts/phdrs.exp: Fix regexp, s390x is 64 bit platform.
...
* ld-scripts/phdrs.t: Use startaddress that's greater than any
MAXPAGESIZE used.
2001-05-01 08:07:35 +00:00
Andreas Jaeger
35714f2a5d
* emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2001-04-30 09:37:08 +00:00
H.J. Lu
f0f077e5e5
2001-04-29 H.J. Lu <hjl@gnu.org>
...
* ld-shared/symbolic.dat: New.
* ld-shared/shared.exp: Also check -Bsymbolic.
2001-04-29 19:10:21 +00:00
Nick Clifton
884fb58eeb
Give emulation a chance to process unrecognized file before fatal error is
...
reported, not after.
2001-04-28 18:00:10 +00:00
Andreas Jaeger
b3992bc715
* ld-scripts/phdrs.exp: x86-64 is a 64 bit ELF platform, handle it
...
special.
2001-04-28 16:14:39 +00:00
Nick Clifton
87748b3227
Add support for arm-vxworks target
2001-04-27 17:12:18 +00:00
J.T. Conklin
7ce691aec4
* ld.texinfo: Document --fatal-warnings.
...
* ld.1: Regenerate.
* ldmisc.c (vfinfo): Set flag to inhibit making executable if
warnings have been turned into errors.
* lexsup.c (OPTION_WARN_FATAL): Define.
(ld_options): Entry for --fatal-warnings.
(parse_args): Handle OPTION_WARN_FATAL.
* ld.h (ld_config_type): Add fatal_warnings field.
2001-04-13 02:22:23 +00:00
Jakub Jelinek
f5fa8ca231
bfd/
...
* libbfd-in.h (_bfd_merge_section): New.
(_bfd_write_merged_section): New.
(_bfd_merged_section_offset): New.
* libbfd.h: Rebuilt.
* linker.c (_bfd_generic_link_output_symbols): Handle
discard_sec_merge.
* aoutx.h (aout_link_write_symbols): Likewise.
* pdp11.c (aout_link_write_symbols): Likewise.
* elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
(elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
sections.
(elf_link_sec_merge_syms): New.
(elf_link_input_bfd): Call _bfd_merged_section_offset
and _bfd_write_merged_section.
Handle discard_sec_merge.
* elf-bfd.h (struct elf_link_hash_table): Add merge_info
field.
(struct bfd_elf_section_data): Likewise.
* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
SEC_STRINGS section flags and entsize from their ELF counterparts.
(_bfd_elf_link_hash_table_init): Initialize merge_info.
(elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
from their BFD counterparts.
* merge.c: New file.
* Makefile.am: Add strtab.lo.
* Makefile.in: Rebuilt.
include/
* bfdlink.h (bfd_link_discard): Add discard_sec_merge.
gas/
* config/obj-elf.c (obj_elf_change_section): Add entsize argument,
handle SHF_MERGE and SHF_STRINGS.
(obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
(obj_elf_section): Allow additional argument specifying entity size.
* write.c (adjust_reloc_syms): Keep relocations against local symbols
in SEC_MERGE sections.
ld/
* ldmain.c (main): Default to discard_sec_merge.
* lexsup.c (OPTION_DISCARD_NONE): Define.
(ld_options): Add --discard-none.
(parse_args): Handle OPTION_DISCARD_NONE.
* ldlang.c (wild_doit): SEC_MERGE should be set in the output
section only if SEC_MERGE and SEC_STRINGS flags and entsize of
all its input sections match.
2001-04-13 00:34:36 +00:00
H.J. Lu
fdec3cfc83
2001-04-05 Steven J. Hill <sjhill@cotw.com>
...
* Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
(ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
(eelf32ltsmip.c): New target.
(eelf64btsmip.c): Likewise.
(eelf64ltsmip.c): Likewise.
* Makefile.in: Regenerated.
* configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
target.
(mips*-*-linux-gnu*): Likewise.
* emulparams/elf32ltsmip.sh: New. Traditional little endian
MIPS taget.
* emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
target.
* emulparams/elf64ltsmip.sh: New. Traditional 64bit little
endian target.
2001-04-08 05:13:57 +00:00
Hans-Peter Nilsson
589bad82a2
* emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
...
correct value of __Stext here.
(TEXT_START_SYMBOLS): Define; always define __Stext, to start of
.startup section.
* emulparams/crislinux.sh: Remove FIXME.
2001-04-05 20:37:54 +00:00
David O'Brien
358a550280
2001-04-01 David O'Brien <obrien@FreeBSD.org>
...
* ld-undefined/undefined.exp: XFAIL on FreeBSD/i386 for the usual (even
though it doesn't use DWARF2 yet (but its output is identical).
Approved by: Alan Modra <alan@linuxcare.com.au>
<Pine.LNX.4.21.0104021511350.487-100000@front.linuxcare.com.au>
2001-04-02 23:44:03 +00:00
David O'Brien
44df2f94b9
001-04-01 David O'Brien <obrien@FreeBSD.org>
...
* ld-selective/selective.exp: Use -O with gcc rather than -O2.
This optimization level is buggy on some platforms, and this test
is not intended to test compiler optimizations.
Approved by: Alan Modra <alan@linuxcare.com.au>
<Pine.LNX.4.21.0104021510450.487-100000@front.linuxcare.com.au>
2001-04-02 23:33:20 +00:00
Alan Modra
94202e16cf
Bump page size to 64k
2001-04-02 01:21:27 +00:00
Hans-Peter Nilsson
1268a053f8
* configure.tgt (cris-*-*): Change default emulation to criself.
...
(cris-*-*aout*): New rule.
2001-03-27 02:37:41 +00:00
Alan Modra
d85e9ff7b1
Go to 16k page size on hppa-linux.
2001-03-27 00:42:47 +00:00
Andreas Jaeger
0879a67a8f
2001-03-26 Andreas Jaeger <aj@suse.de>
...
* binutils.texi (nm): Fix texi syntax.
2001-03-26 Andreas Jaeger <aj@suse.de>
* ld.texinfo (Overview): Fix syntax in texi code.
2001-03-26 07:02:59 +00:00
Nick Clifton
0285c67df1
Automate generate on man pages
2001-03-25 20:32:31 +00:00
Nick Clifton
c20ec07b9a
Support the GCC flags '-ffunction-sections' and '-fdata-sections'.
...
Set the VMA of STABS sections to zero.
2001-03-23 23:05:07 +00:00
Ulrich Drepper
cc5ce05235
* emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
...
is an absolute path look only for this file and not along the path.
2001-03-20 18:39:21 +00:00
Ulrich Drepper
a1ab1d2aa3
* emultempl/elf32.em (OPTION_GROUP): New macro.
...
Add new option Bgroup to longopts.
(gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
(gld*_list_options): Add -Bgroup and -z defs.
* ld.1: Document -Bgroup and -z defs.
* ld.texinfo: Likewise.
2001-03-17 21:24:26 +00:00
Nick Clifton
a2b64bede3
Fixtypos in ChangeLogs, fix copyright dates in files
2001-03-13 06:14:29 +00:00
Michael Meissner
f9faad58a2
Fixup checkin of wrong source
2001-03-08 02:26:19 +00:00
Michael Meissner
788fca5a32
Add support for -fdata-sections
2001-03-08 02:20:25 +00:00
DJ Delorie
b536df83ee
* ld-scripts/cross2.t: Support any type of text/data sections, not
...
just the canonical ones.
2001-03-06 23:03:28 +00:00
Alan Modra
1c7566d167
* emultempl/m68kelf.em (m68k_elf_after_allocation): Call
...
after_allocation_default, not gld..._before_allocation.
2001-03-05 05:02:03 +00:00
Matthew Hiller
c19bd1c6f4
*** empty log message ***
2001-03-01 19:39:30 +00:00
Matthew Hiller
1688b748f1
2001-02-28 Matt Hiller <hiller@redhat.com>
...
* testsuite/ld-scripts/crossref.exp: Initialize flags to
[big_or_little_endian].
* testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
in ld invocations.
* testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
-eb, EL and el.
(is_endian_output_format): New function.
(default_ld_link): Set flags to [big_or_little_endian] only if ld
is being invoked such that the output format being used is of
known endianness.
(default_ld_simple_link): Ditto.
2001-03-01 19:13:27 +00:00
Alan Modra
27b7e12d2d
Bump version to 2.11.90, fix missing dependencies in bfd/,
...
and run "make dep-am".
2001-02-27 06:43:56 +00:00
Timothy Wall
2bc551c701
Add aix5 settings.
2001-02-27 03:23:00 +00:00
Nick Clifton
1276aefac0
BFD: Catch & report unhandled PE section flags.
...
LD: Catch BFD errors whilst loading symbols and do not produce an executable.
2001-02-27 01:38:06 +00:00
Timothy Wall
41c4999810
Add ia64-*-aix* configuration.
2001-02-22 17:24:33 +00:00
Kazu Hirata
1ac7e077c9
Fix a typo.
2001-02-21 00:19:45 +00:00
H.J. Lu
78f85fd798
2001-02-20 H.J. Lu <hjl@gnu.org>
...
* ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
false if we found the file.
2001-02-20 21:07:24 +00:00
David O'Brien
fb33b90691
001-02-18 David O'Brien <obrien@FreeBSD.org>
...
* configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
Approved by: Philip Blundell <philb@gnu.org>
Message-Id: <E14URxF-00023n-00@kings-cross.london.uk.eu.org>
2001-02-19 06:51:51 +00:00
Nick Clifton
e135f41bc2
Add PDP-11 support
2001-02-18 23:33:11 +00:00
David O'Brien
a842aceb48
2001-02-17 David O'Brien <obrien@FreeBSD.org>
...
* configure.host: Add a generic FreeBSD configuration entry such that
all [modern] FreeBSD systems on all platforms will look the same.
Approved by: Alan Modra <alan@linuxcare.com.au>
<Pine.LNX.4.21.0102172155140.30011-100000@front.linuxcare.com.au>
2001-02-18 02:17:24 +00:00
H.J. Lu
69f03d6521
Change "armelf" to armelf.
2001-02-15 17:18:35 +00:00
H.J. Lu
ad995491f8
2001-02-14 H.J. Lu <hjl@gnu.org>
...
* ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3
for -static on ia64.
* ld-checks/checks.exp: Don't run on ia64-*-elf* nor
ia64-*-linux*.
* ld-elfvers/vers.exp: Also run ia64-*-elf* and ia64-*-linux*.
* ld-elfvsb/elfvsb.exp: Use i?86-*-*. Also run on ia64-*-linux*.
Set up expected failures for ia64-*-linux*.
* ld-shared/shared.exp: Likewise.
2001-02-15 01:17:07 +00:00
H.J. Lu
24174db0fa
2001-02-14 H.J. Lu <hjl@gnu.org>
...
* configure.tgt: Remove mention of earmelf_linux26.
2001-02-14 18:34:13 +00:00