Alan Modra
7b580b4aba
daily update
2002-11-13 23:00:05 +00:00
Alan Modra
b1c58715b4
* config.bfd: Add entries for powerpc-*-darwin and cousins.
2002-11-13 01:45:42 +00:00
Alan Modra
a7f8412542
Missed commit in last change.
2002-11-12 23:25:42 +00:00
Alan Modra
0b74bc7784
daily update
2002-11-12 23:00:04 +00:00
H.J. Lu
077ca68b4c
2002-11-13 H.J. Lu <hjl@gnu.org>
...
* elfcode.h (elf_object_p): Don't restore abfd->arch_info.
2002-11-12 22:49:45 +00:00
Alan Modra
e84d6fca26
* bfd.c (struct bfd_preserve): New.
...
(bfd_preserve_save): New function.
(bfd_preserve_restore): Ditto.
(bfd_preserve_finish): Ditto.
* bfd-in2.h: Regenerate.
* mach-o.c: Formatting.
(bfd_mach_o_scan_read_symtab_symbol): Make "value" unsigned.
(bfd_mach_o_object_p): Use bfd_preserve_save/restore/finish.
(bfd_mach_o_core_p): Ditto.
(bfd_mach_o_scan): Pass in mdata.
* mach-o.h (bfd_mach_o_scan): Update prototype.
* pef.c: Formatting.
(bfd_pef_object_p): Use bfd_preserve_save/restore/finish.
(bfd_pef_xlib_object_p): Ditto.
(bfd_pef_scan): Pass in mdata. Move version check to bfd_pef_object_p.
* pef.h (bfd_pef_scan): Update prototype.
* xsym.c: Formatting, K&R fixes.
(bfd_sym_object_p): Use bfd_preserve_save/restore/finish.
(bfd_sym_scan): New function split out from bfd_sym_object_p.
* xsym.h (bfd_sym_scan): Declare.
* elfcode.h (elf_object_p): Use bfd_preserve_save/restore/finish.
(elf_core_file_p): Likewise.
* targets.c (_bfd_target_vector): Revert 2002-11-08 change.
2002-11-12 15:44:24 +00:00
Nick Clifton
cd24c22246
Add new/updated Danish translations
2002-11-12 10:08:25 +00:00
Alan Modra
d6fe2dc102
* elflink.h (elf_link_add_object_symbols): Optimize stabs for
...
relocatable link too.
(elf_link_input_bfd): When emitting relocs, adjust offsets for
eh_frame and stab sections. Zap deleted relocs.
(elf_reloc_symbol_deleted_p): Return true for zero r_symndx.
(elf_bfd_discard_info): Run for relocatable link too.
* elf64-ppc.c (ppc64_elf_edit_opd): Rename from edit_opd. Make global.
Handle ld -r case.
(ppc64_elf_size_dynamic_sections): Don't call edit_opd from here.
* elf64-ppc.h (ppc64_elf_edit_opd): Declare.
2002-11-12 07:55:43 +00:00
Alan Modra
126495ed15
* elf-bfd.h (struct cie_header): Move from elf_eh-frame.c.
...
(struct cie, struct eh_cie_fde, struct eh_frame_sec_info): Likewise.
(struct eh_frame_array_ent, struct eh_frame_hdr_info): Likewise.
(enum elf_link_info_type): Remove ELF_INFO_TYPE_EH_FRAME_HDR.
(struct eh_frame_hdr_info): Add "hdr_sec", remove "split".
(struct elf_link_hash_table): Add eh_info.
(struct elf_obj_tdata): Change eh_frame_hdr to an asection *.
(_bfd_elf_discard_section_eh_frame): Update prototype.
(_bfd_elf_discard_section_eh_frame_hdr): Likewise.
(_bfd_elf_write_section_eh_frame): Likewise.
(_bfd_elf_write_section_eh_frame_hdr): Likewise.
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Remove "ehdrsec"
param. Get "hdr_info" from link hash table.
(_bfd_elf_discard_section_eh_frame_hdr): Remove "sec" param. Get
header section from link hash table. Save header section to elf_tdata.
(_bfd_elf_maybe_strip_eh_frame_hdr): Remove local "sec". Use
header section from link hash table. Don't alloc hdr_info. Clear
hdr_sec instead of setting "strip".
(_bfd_elf_eh_frame_section_offset): Formatting.
(_bfd_elf_write_section_eh_frame): Remove "ehdrsec", add "info" param.
Get header section from link hash table.
(_bfd_elf_write_section_eh_frame_hdr): Remove "sec", add "info" param.
Get header section from link hash table.
* elf.c (map_sections_to_segments): Use cached eh_frame_hdr.
(get_program_header_size): Likewise.
(_bfd_elf_section_offset): Formatting.
* elflink.h (elf_link_create_dynamic_sections): Stash eh frame header
section pointer in link hash table.
(elf_bfd_final_link): Adjust _bfd_elf_write_section_eh_frame_hdr
and _bfd_elf_write_section_eh_frame calls. Update comment about
eh_frame entries.
(elf_bfd_discard_info): Adjust _bfd_elf_discard_section_eh_frame and
_bfd_elf_discard_section_eh_frame_hdr calls. Remove "ehdr".
* po/SRC-POTFILES.in: Regenerate.
2002-11-12 07:35:26 +00:00
Alan Modra
99eb2ac83d
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't zero
...
relocs for discarded FDEs. Remove dead code.
(_bfd_elf_write_section_eh_frame_hdr): Remove dead code.
* elflink.h (elf_bfd_discard_info): Don't save edited relocs.
Tidy conditions under which stabs are edited. Formatting.
* elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
from discarded relocs.
* elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Add reloc output
section adjustments after testing magic values.
2002-11-12 06:21:05 +00:00
Alan Modra
7c319a271c
* elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Correct
...
references to large plt symbols.
2002-11-11 23:42:29 +00:00
Alan Modra
a95a455043
* mach-o.c (bfd_mach_o_scan_read_thread): Don't re-use 'i' when
...
looking for an unused section name.
2002-11-11 23:19:03 +00:00
Alan Modra
c9fcedcf17
daily update
2002-11-11 23:01:15 +00:00
Kazu Hirata
bc7eab726b
* coff-h8300.c: Fix formatting.
...
* elf32-h8300.c: Likewise.
* reloc16.c: Likewise.
2002-11-11 05:05:22 +00:00
Alan Modra
66cd976c53
daily update
2002-11-10 23:00:05 +00:00
Alan Modra
eb9e99e691
daily update
2002-11-09 23:00:04 +00:00
Alan Modra
52585bb8f1
* elf32-arm.h (elf32_arm_size_dynamic_sections): Don't strip output
...
section when dynamic section unused; _bfd_strip_section_from_output
instead.
2002-11-09 00:52:27 +00:00
Alan Modra
34f5246900
daily update
2002-11-08 23:00:04 +00:00
Alan Modra
207b304b84
Disable sym_vec too.
2002-11-07 23:26:51 +00:00
Alan Modra
3b029f6508
* targets.c (_bfd_target_vector): Disable pef_vec and pef_xlib_vec.
2002-11-07 23:13:30 +00:00
Alan Modra
4258491202
daily update
2002-11-07 23:00:09 +00:00
Alan Modra
9f632188f0
* dwarf2.c: Revert last change.
2002-11-07 22:19:59 +00:00
Nick Clifton
ec4530b540
Use bfd_simple_get_relocated_section_contents() instead of bfd_get_section_contents().
2002-11-07 14:36:31 +00:00
Hans-Peter Nilsson
205cfeb0bf
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOT,
...
case R_CRIS_32_GOT>: Correct test for filling in constant .got
contents, enabling for a non-DSO, for symbols defined in the
program with --export-dynamic.
2002-11-07 13:28:04 +00:00
Alan Modra
87e226ce81
* elf64-ppc.c: Comment typo fixes.
...
(ppc64_elf_merge_private_bfd_data): Allow BFD_ENDIAN_UNKNOWN input.
2002-11-07 12:45:29 +00:00
Nick Clifton
235c479450
Added/Updated Danish translation.
2002-11-07 08:45:25 +00:00
Alan Modra
cdc7558f46
daily update
2002-11-06 23:00:04 +00:00
Alexandre Oliva
4917946930
* elf64-mips.c (mips_elf64_slurp_one_reloc_table): Generate
...
exactly three internal relocs per external reloc. Set reloc_count
to the external reloc count.
2002-11-06 21:56:05 +00:00
Nick Clifton
246178f244
(stub_bytes): Mark as const.
...
Fix comment formatting.
2002-11-06 17:12:05 +00:00
Nick Clifton
3af9a47b1c
Add support for PEF, Mach-O, xSYM
2002-11-06 13:26:29 +00:00
Alan Modra
ad12c1c577
Ah bah, missed these from last commit.
2002-11-06 12:04:31 +00:00
Alan Modra
b6821651ed
* Makefile.am: Remove entries for elf32-qnx.[ch].
...
* Makefile.in: Regenerate.
* config.bfd: Change arm-nto to use bfd_elf32_{big|little}arm_vec,
ppc-nto to use bfd_elf32_powerpc{le}_vec, sh-nto to use
bfd_elf32_sh{l}_vec, and i386-nto to use bfd_elf32_i386_vec.
* configure.in: Remove support for bfd_elf32_sh{l}qnx_vec,
bfd_elf32_powerpc{le}qnx_vec, bfd_elf32_{big|little}armqnx_vec,
and bfd_elf32_i386qnx_vec, and removed elf32-qnx.lo from other targets.
bfd_elf32_sh{l}_vec, and i386-nto to use bfd_elf32_i386_vec.
* configure: Regenerate.
* elf32-qnx.c: Remove.
* elf32-qnx.h: Remove.
* elf.c: Remove calls to QNX specific set_nonloadable_filepos,
is_contained_by_filepos, and copy_private_bfd_data_p.
* elf32-i386.c: Remove QNX extended bfd support.
* elf32-ppc.c: Remove QNX extended bfd support.
* elf32-sh.c: Remove QNX extended bfd support.
* elfarm-nabi.c: Remove QNX extended bfd support.
* targets.c: Remove qnx vectors.
* elfxx-target.h (elf_backend_set_nonloadable_filepos): Remove
(elf_backend_is_contained_by_filepos): Remove.
(elf_backend_copy_private_bfd_data_p): Remove.
* po/SRC-POTFILES.in: Regenerate.
2002-11-06 11:38:35 +00:00
Alan Modra
41b6ea2f9e
daily update
2002-11-05 23:00:03 +00:00
Alan Modra
dad628168e
* elf64-sparc.c (sparc64_elf_relocate_section): Adjust addend of
...
dynamic relocs against section symbols for the output section vma.
2002-11-05 22:59:23 +00:00
Alan Modra
911b232a92
* elf32-arm.h (t2a1_push_insn, t2a2_ldr_insn, t2a3_mov_insn,
...
t2a4_bx_insn, t2a5_pop_insn, t2a6_bx_insn): Remove.
2002-11-05 05:01:11 +00:00
Alan Modra
08f740041a
* config.bfd (sh-*-linux*): Use bfd_elf*_sh64*lin_vec as sh64
...
vectors in target_selvecs.
(shle-*-netbsdelf*): Use bfd_elf*_sh64*nbsd_vec as sh64 vectors
in target_selvecs.
(sh-*-netbsdelf*): Likewise.
* configure.in (assocvecs): New variable. Handle assocvecs like
selvecs.
* configure: Regenerate.
* format.c (bfd_check_format_matches): Store bfd_target pointers
in matching_vector instead of target names. Select first target
from bfd_associated_vector that matches a list of ambiguous targets.
* targets.c (_bfd_associated_vector): New array.
(bfd_associated_vector): New variable.
(_bfd_target_vector): Add bfd_elf*_sh64*lin_vec.
* libbfd-in.h (bfd_associated_vector): Declare.
* libbfd.h: Regenerate.
2002-11-05 01:18:56 +00:00
Alan Modra
89117aabb3
* vms-gsd.c (_bfd_vms_write_gsd): Check that symbol->udata.p is
...
non-NULL before dereferencing.
2002-11-05 01:08:18 +00:00
Alan Modra
b88b8dd891
daily update
2002-11-04 23:00:04 +00:00
Kaz Kojima
5e9aae3e09
* vms.c (vms_object_p): Restore the start address when returning
...
NULL.
2002-11-04 21:44:36 +00:00
Alan Modra
c97e73ddb6
* elflink.h (struct elf_final_link_info): Add shndxbuf_size.
...
(elf_bfd_final_link): Don't bother zeroing symtab_hdr fields.
Set up a larger symshndxbuf, and write it out. Free it on
exit rather than freeing symbuf twice. Correct section index
on output section symbol loop.
(elf_link_output_sym): Accumulate symbol extension section
indices, reallocating symshndxbuf rather than writing it out.
(elf_link_flush_output_syms): Don't flush symshndxbuf.
* elf.c (assign_section_numbers): Init i_shdrp to all zero.
Use bfd_zalloc to clear i_shdrp[0] too.
2002-11-04 13:20:56 +00:00
Stephen Clarke
3463048e40
* elf32-sh64-com.c (sh64_address_in_cranges): Use
...
_raw_size of cranges section if _cooked_size not yet set.
2002-11-04 00:02:13 +00:00
Alan Modra
b2d3a55a49
daily update
2002-11-03 23:00:08 +00:00
Hans-Peter Nilsson
63a2379942
* elf32-v850.c (v850_elf_relax_delete_bytes): Correct parameters
...
for bfd_elf32_swap_symbol_out.
2002-11-03 10:43:44 +00:00
Alan Modra
b793562e43
daily update
2002-11-02 23:00:05 +00:00
Alan Modra
856695231a
daily update
2002-11-01 23:00:07 +00:00
David O'Brien
e68cc12e04
2002-10-31 David O'Brien <obrien@FreeBSD.org>
...
* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't mix
signed and unsigned in comparison.
Approved by: Alan Modra <amodra@bigpond.net.au>
Message-ID: <20021012185224.Y979@bubble.sa.bigpond.net.au>
2002-10-31 09:18:48 +00:00
Daniel Jacobowitz
db4b6d0145
* coffcode.h: Remove extraneous '\'.
2002-10-30 15:50:17 +00:00
Alan Modra
8c05f9b85d
daily update
2002-10-29 00:20:31 +00:00
H.J. Lu
840f024325
2002-10-28 H.J. Lu <hjl@gnu.org>
...
* Makefile.am (targets.lo): Depend on Makefile instead of
config.status.
(archures.lo): Likewise.
* Makefile.in: Regenerated.
2002-10-28 22:30:29 +00:00
Alan Modra
f6e80f3298
daily update
2002-10-27 23:00:04 +00:00