Alan Modra
1f068d4adc
daily update
2001-11-28 23:00:04 +00:00
Jakub Jelinek
f7460f5f76
* elf64-alpha.c (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Defined.
...
(elf64_alpha_relocate_section): Translate local_got_entries
for STT_SECTION symbol to SHF_MERGE section the first time
we see it.
* elfxx-ia64.c (struct elfNN_ia64_local_hash_entry): Add
sec_merge_done.
(get_local_sym_hash): New, extracted from get_dyn_sym_info.
(get_dyn_sym_info): Use it.
(elfNN_ia64_relocate_section): Translate local dyn entries
for STT_SECTION symbol to SHF_MERGE section the first time
we see it.
* write.c (adjust_reloc_syms): Mark SEC_MERGE symbols as used
in reloc if it has non-zero addend.
* config/tc-alpha.c (tc_gen_reloc): Reinstall SEC_MERGE check.
* config/tc-sparc.c (md_apply_fix3): Likewise.
2001-11-28 19:15:14 +00:00
Nick Clifton
607334a109
Add .cvsignore files to skip .gmo files
2001-11-28 18:57:14 +00:00
Alan Modra
ccf505facf
daily update
2001-11-27 23:00:04 +00:00
H.J. Lu
163c1c309e
2001-11-27 H.J. Lu <hjl@gnu.org>
...
* elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't
ELF.
2001-11-27 19:03:27 +00:00
Alan Modra
1588780944
daily update
2001-11-26 23:00:06 +00:00
Jeff Law
fd0999e109
* stabs.c (_bfd_discard_section_stabs): Use PARAMS in function
...
prototypes.
2001-11-26 19:31:27 +00:00
Alan Modra
9edf3ae12a
daily update
2001-11-25 23:00:06 +00:00
Alan Modra
0fde5b57d5
daily update
2001-11-24 23:00:04 +00:00
Alan Modra
a248e267b4
* elf32-hppa.c (elf32_hppa_size_stubs): Decrease default stub
...
group sizes to accomodate c++.
2001-11-24 07:39:11 +00:00
Alan Modra
c79d05084e
daily update
2001-11-23 23:00:05 +00:00
Jakub Jelinek
2e549b45b8
* elf32-sparc.c (elf32_sparc_relocate_section): Don't clear
...
relocations in non-alloced sections against global symbols
defined in shared library being built.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2001-11-23 13:16:39 +00:00
Jakub Jelinek
f8df10f4f5
* elf.c (_bfd_elf_rela_local_sym): New.
...
* elflink.h (elf_link_input_bfd): Don't consider empty
merged sections as removed in relocation tests.
* elf-bfd.h (_bfd_elf_rela_local_sym): Add prototype.
* elf32-i386.c (elf_i386_relocate_section): Handle relocs
against STT_SECTION symbol of SHF_MERGE section.
* elf32-arm.h (elf32_arm_relocate_section): Likewise.
* elf32-avr.c (elf32_avr_relocate_section): Call
_bfd_elf_rela_local_sym.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
* elf32-fr30.c (fr30_final_link_relocate): Likewise.
* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-i860.c (elf32_i860_relocate_section): Likewise.
* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-s390.c (elf_s390_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf32-v850.c (v850_elf_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elf-hppa.h (elf_hppa_relocate_section): Likewise.
* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise for
!partial_inplace relocs. Handle relocs against STT_SECTION
symbol of SHF_MERGE for partial_inplace relocs.
* config/tc-alpha.c (tc_gen_reloc): Remove SEC_MERGE test.
* write.c (adjust_reloc_syms): Don't handle relocs against
SEC_MERGE section symbols specially.
(fixup_segment): Likewise.
2001-11-23 12:17:21 +00:00
Alan Modra
95a1f57169
daily update
2001-11-22 23:00:05 +00:00
Nick Clifton
313e863fa9
Move SRC-POTFILES.in and BLD-POTFILES.in to maintainer-clean target.
2001-11-22 16:21:01 +00:00
Alan Modra
e614115148
daily update
2001-11-21 23:00:51 +00:00
Alan Modra
d7458677f4
* elfxx-ia64.c (elfNN_ia64_relocate_section): Test r_symndx rather
...
than sym_sec->output_section to detect relocs against discarded
sections.
2001-11-21 14:58:26 +00:00
Alan Modra
7a47c3a29c
daily update
2001-11-21 00:53:38 +00:00
H.J. Lu
45e9217a8f
2001-11-19 H.J. Lu <hjl@gnu.org>
...
* elflink.h (elf_link_input_bfd): Assert r_symndx != 0 when
discarding relocations.
2001-11-20 00:54:51 +00:00
Alan Modra
b572d65c66
daily update
2001-11-19 23:00:05 +00:00
Nick Clifton
84c254c646
Define and use bfd_is_const_section().
2001-11-19 15:35:38 +00:00
Alan Modra
a0e94dc00c
* elf32-hppa.c (clobber_millicode_symbols): Dec dynstr refcount.
2001-11-19 03:52:37 +00:00
Alan Modra
2a5aaecb4a
* elf32-hppa.c (elf32_hppa_size_stubs): Don't consider undefined
...
millicode syms as candidates for import stubs.
2001-11-19 03:01:43 +00:00
Alan Modra
e5ee5df190
* elf32-hppa.c (PLABEL_PLT_ENTRY_SIZE): Delete.
...
(allocate_PIC_calls): Rename to allocate_plt_static.
(allocate_dynrelocs): Move most of code handling .plt entries to..
(allocate_plt_static): ..here. Don't drop plabel entries.
2001-11-19 01:25:00 +00:00
Hans-Peter Nilsson
6eeb40b2c0
* mmo.c: Adjust documentation tags to use texinfo 4 features.
2001-11-19 01:22:45 +00:00
Alan Modra
7138fabc3c
daily update
2001-11-18 23:00:04 +00:00
Alan Modra
b66167ff38
daily update
2001-11-17 23:00:06 +00:00
Alan Modra
773a0d1a66
daily update
2001-11-16 23:00:05 +00:00
Daniel Jacobowitz
44421011e3
* elflink.h (elf_reloc_symbol_deleted_p): Catch all relocs against
...
local syms from discarded sections. Update comment.
2001-11-16 02:56:08 +00:00
Alan Modra
949f8813f9
daily update
2001-11-15 23:00:05 +00:00
Alan Modra
beb1d4ece2
* po/SRC-POTFILES.in: Regenerate.
2001-11-15 12:18:27 +00:00
Alan Modra
f9f32305f7
* elflink.h (elf_link_input_bfd): Complain about all relocs
...
against local syms from discarded sections.
(elf_reloc_symbol_deleted_p): Don't try to swap in external syms.
2001-11-15 09:31:25 +00:00
Alexandre Oliva
6361c4c9bc
* elf64-sparc.c (sparc64_elf_relocate_section): Disregard
...
overflows in the .stab section.
2001-11-15 04:13:35 +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
Alan Modra
883d69e653
daily update
2001-11-14 23:00:06 +00:00
Martin Schwidefsky
27018c3f68
* elf32-s390.c (elf_s390_relocate_section): Use the "unresolved_reloc"
...
scheme to get rid of an ugly complicated test.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
2001-11-14 18:48:26 +00:00
Andreas Jaeger
58a3581362
* cpu-i386.c (bfd_x86_64_arch_intel_syntax,bfd_x86_64_arch): Use
...
x86-64 for display.
2001-11-14 12:01:58 +00:00
Jakub Jelinek
d03ba2a185
* dwarf2.c (struct line_head) [total_length]: Change type to
...
bfd_vma.
(struct dwarf2_debug): Add dwarf_str_buffer and dwarf_str_size.
(struct comp_unit): Add stash and offset_size.
(read_8_bytes): Return bfd_vma.
(read_indirect_string): New.
(read_attribute): Handle DW_FORM_strp.
(decode_line_info): Support 64-bit DWARF format.
(_bfd_dwarf2_find_nearest_line): Likewise.
(parse_comp_unit): Set offset_size and stash.
2001-11-14 11:16:47 +00:00
Richard Henderson
cf716c5663
* dwarf2.c (read_attribute_value): New function to handle
...
DW_FORM_indirect.
(read_attribute): Use it.
2001-11-13 23:37:41 +00:00
Alan Modra
13d574884b
daily update
2001-11-13 23:00:10 +00:00
Geoffrey Keating
1a509dcc12
Index: bfd/ChangeLog
...
2001-11-11 Geoffrey Keating <geoffk@redhat.com>
* dwarf2.c (decode_line_info): Properly deal with unknown standard
opcodes.
Index: binutils/ChangeLog
2001-11-11 Geoffrey Keating <geoffk@redhat.com>
* readelf.c (display_debug_lines): Deal with unknown standard
opcodes. Handle DW_LNS_set_prologue_end, DW_LNS_set_epilogue_begin,
DW_LNS_set_isa.
Index: include/elf/ChangeLog
2001-11-11 Geoffrey Keating <geoffk@redhat.com>
* dwarf2.h (dwarf_line_number_ops): Add DWARF 3 opcodes.
2001-11-13 20:13:30 +00:00
Alan Modra
4e6bfe8ada
* section.c (bfd_make_section_anyway): Don't increment section_id
...
and the BFD's section_count if adding the section failed.
* vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway
change.
2001-11-13 03:52:25 +00:00
Hans-Peter Nilsson
bc0d28ee42
* elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
...
core dump format.
2001-11-12 23:47:02 +00:00
Alan Modra
968d5a056e
daily update
2001-11-12 23:01:05 +00:00
H.J. Lu
350836e342
2001-11-11 H.J. Lu <hjl@gnu.org>
...
* elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
_bfd_elf_strtab_size instead of _bfd_stringtab_size.
* elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
dynstr type to `struct elf_strtab_hash *'.
2001-11-11 23:51:36 +00:00
Alan Modra
50e480d974
daily update
2001-11-11 23:00:05 +00:00
Hans-Peter Nilsson
b959dc73d0
* elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
...
size_t. Rename second i to j.
2001-11-11 22:18:01 +00:00
Alan Modra
94753239c5
daily update
2001-11-10 23:00:05 +00:00
Jeff Law
7e250b6c31
* binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
2001-11-10 15:53:31 +00:00
Alan Modra
ec33885937
* elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
...
relocs into shared libs.
* elf32-cris.c (cris_elf_relocate_section): Likewise.
* elf32-i370.c (i370_elf_relocate_section): Likewise.
* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf32-sh.c (sh_elf_relocate_section): Likewise.
* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
* elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
* elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
* elf.c (bfd_section_from_r_symndx): New function.
* elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
(struct sym_sec_cache): New.
(bfd_section_from_r_symndx): Declare.
(struct bfd_elf_section_data): Change local_dynrel type to PTR.
* elflink.h (elf_link_input_bfd): Don't test for removed linkonce
relocs when relocatable. Don't zero entire reloc, just zero the
addend and sym.
* elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
(elf_i386_link_hash_table_create): Init it.
(elf_i386_check_relocs): Track dynamic relocs needed for local
syms on a per-section basis as we do for globals.
(elf_i386_gc_sweep_hook): Update for local_dynrel change.
Remove dead code.
(allocate_dynrelocs): Warning fix.
(elf_i386_size_dynamic_sections): Don't allocate relocs when
section has been discarded.
(elf_i386_relocate_section): Don't copy STN_UNDEF relocs
into shared libs.
* elf32-hppa.c: Likewise.
* elf32-s390.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-s390.c: Likewise.
2001-11-10 00:23:35 +00:00