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
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
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
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
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
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
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
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
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
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
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