Alan Modra
2c0e1b8dad
daily update
2003-12-02 23:00:04 +00:00
Alan Modra
6ad841a183
Rename bfd_link_hash_entry field "next" -> "und_next".
2003-12-02 23:00:00 +00:00
Nick Clifton
f9d1e83fed
Add Romanian translation for bfd.
2003-12-02 10:49:10 +00:00
Alan Modra
9fa06c65f0
make "dep-am"
2003-12-02 08:14:35 +00:00
Alan Modra
13570a3db5
daily update
2003-12-01 23:00:06 +00:00
Nick Clifton
771e446b94
Set page_size to 1 instead of 0 in the case file alignment value is zero.
2003-12-01 18:46:21 +00:00
Kazu Hirata
1c3bed7b30
* coff-rs6000.c: Remove ARGSUSED and VARARGS.
...
* coff64-rs6000.c: Likewise.
* coffcode.h: Likewise.
* elf32-vax.c: Likewise.
* hash.c: Likewise.
* hppabsd-core.c: Likewise.
* hpux-core.c: Likewise.
* ihex.c: Likewise.
* netbsd-core.c: Likewise.
* osf-core.c: Likewise.
* pdp11.c: Likewise.
* ptrace-core.c: Likewise.
* sco5-core.c: Likewise.
* section.c: Likewise.
* sunos.c: Likewise.
* trad-core.c: Likewise.
2003-12-01 06:33:01 +00:00
Alan Modra
0eddce27a9
* elf-bfd.h (is_elf_hash_table): Take hash tab rather than info arg.
...
* elf.c (_bfd_elf_merge_sections): Adjust to suit.
(_bfd_elf_link_just_syms): Likewise.
(bfd_elf_get_needed_list): Likewise.
(bfd_elf_get_runpath_list): Likewise.
(_bfd_elf_link_hash_copy_indirect): Remove unneeded parens.
* elf32-hppa.c (elf32_hppa_setup_section_lists): Don't check hash tab
creator flavour.
(elf32_hppa_set_gp): Look up output sections rather than using htab.
* elf32-i960.c: Comment fix. Formatting.
* elf32-m32r.c (m32r_elf_add_symbol_hook): Use is_elf_hash_table
rather than testing creator flavour.
* elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
* elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
* elflink.c (_bfd_elf_link_create_dynamic_sections): Adjust for
is_elf_hash_table change. Remove redundant test.
(bfd_elf_record_link_assignment): Use is_elf_hash_table rather than
testing creator flavour.
(elf_link_record_local_dynamic_symbol): Adjust for is_elf_hash_table.
(_bfd_elf_fix_symbol_flags): Likewise.
(_bfd_elf_adjust_dynamic_symbol): Likewise.
* elflink.h (elf_link_add_object_symbols): Likewise. Remove redundant
checks. Use is_elf_hash_table rather than testing creator flavour.
Use hash_table throughout in place of info->hash.
(elf_add_dynamic_entry): Adjust for is_elf_hash_table change.
(NAME(bfd_elf,size_dynamic_sections)): Likewise. Remove redundant
check.
(elf_bfd_final_link): Adjust for is_elf_hash_table change.
(elf_link_check_versioned_symbol): Use is_elf_hash_table rather than
testing creator flavour.
(elf_gc_sections): Add is_elf_hash_table check.
(elf_gc_common_finalize_got_offsets): Likewise.
(elf_bfd_discard_info): Adjust for is_elf_hash_table change. Remove
redundant check.
* elfxx-ia64.c (elfNN_ia64_relax_section): Use is_elf_hash_table
rather than testing creator flavour.
2003-12-01 06:28:24 +00:00
Alan Modra
3e9b847674
daily update
2003-11-30 23:00:05 +00:00
Kazu Hirata
7dee875eb1
* ChangeLog: Fix typos.
...
* ecoff.c: Fix comment typos.
* ecofflink.c: Likewise.
* format.c: Likewise.
* hp300hpux.c: Likewise.
* i386linux.c: Likewise.
* ieee.c: Likewise.
* m68klinux.c: Likewise.
* mach-o.h: Likewise.
* mipsbsd.c: Likewise.
* oasys.c: Likewise.
* opncls.c: Likewise.
* peXXigen.c: Likewise.
* reloc.c: Likewise.
* reloc16.c: Likewise.
* section.c: Likewise.
* simple.c: Likewise.
* som.c: Likewise.
* som.h: Likewise.
* sparclinux.c: Likewise.
* srec.c: Likewise.
* syms.c: Likewise.
* targets.c: Likewise.
* tekhex.c: Likewise.
* versados.c: Likewise.
* vms-gsd.c: Likewise.
* vms-hdr.c: Likewise.
* vms-misc.c: Likewise.
* xcofflink.c: Likewise.
* xsym.h: Likewise.
* bfd-in2.h: Regenerate.
2003-11-30 18:40:41 +00:00
Alan Modra
50daa0894c
daily update
2003-11-28 23:00:04 +00:00
Christian Groessler
552585edcb
* cpu-z8k.c: Convert to ISO C90.
...
* coff-z8k.c: Likewise.
2003-11-28 20:07:44 +00:00
Alan Modra
fdec90e86d
daily update
2003-11-27 23:00:12 +00:00
Kazu Hirata
4cc11e7607
* elf32-arm.h: Fix comment typos.
...
* elf32-d30v.c: Likewise.
* elf32-dlx.c: Likewise.
* elf32-h8300.c: Likewise.
* elf32-i370.c: Likewise.
* elf32-ip2k.c: Likewise.
* elf32-m68hc11.c: Likewise.
* elf32-mcore.c: Likewise.
* elf32-ppc.c: Likewise.
* elf32-s390.c: Likewise.
* elf32-sh.c: Likewise.
* elf32-v850.c: Likewise.
* elf32-xtensa.c: Likewise.
* elf64-alpha.c: Likewise.
* elf64-hppa.c: Likewise.
* elf64-mips.c: Likewise.
* elf64-mmix.c: Likewise.
* elf64-ppc.c: Likewise.
* elf64-sparc.c: Likewise.
* elflink.c: Likewise.
* elflink.h: Likewise.
* elfn32-mips.c: Likewise.
* elfxx-ia64.c: Likewise.
* elfxx-mips.c: Likewise.
2003-11-27 18:49:39 +00:00
Alexandre Oliva
c84fca4d18
* elf-bfd.h (elf_backend_data::elf_backend_modify_segment_map):
...
Add link info argument.
* elf32-i370.c (elf_backend_modify_segment_map): Likewise.
* elf32-ppc.c (ppc_elf_modify_segment_map): Likewise.
* elf32-xtensa.c (elf_xtensa_modify_segment_map): Likewise.
* elf64-hppa.c (elf64_hppa_modify_segment_map): Likewise.
* elfxx-ia64.c (elfNN_ia64_modify_segment_map): Likewise.
* elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Likewise.
* elfxx-mips.h (_bfd_mips_elf_modify_segment_map): Likewise.
* elf.c (assign_file_positions_except_relocs,
assign_file_positions_for_segments): Likewise. Adjust calls.
2003-11-27 16:43:25 +00:00
Mark Kettenis
7720ba9f5c
* elf.c (elfcore_grok_netbsd_procinfo): Make a pseudosection out
...
of the note.
2003-11-27 12:28:35 +00:00
Alan Modra
dacfaafef8
daily update
2003-11-26 23:00:04 +00:00
Richard Sandiford
0626d45128
* elfxx-mips.c (mips_elf_set_global_got_offset): Don't set no_fn_stub.
...
(mips_elf_set_no_stub): New function.
(mips_elf_multi_got): Call it.
(_bfd_mips_elf_finish_dynamic_symbol): If a relocation is needed for
a secondary GOT entry, create an R_MIPS_32 or R_MIPS_64 relocation and
use mips_elf_create_dynamic_relocation to deal with any compatibility
issues. Store the adjusted addend in the GOT slot.
2003-11-26 20:58:45 +00:00
Alan Modra
a221dd44da
daily update
2003-11-25 23:00:06 +00:00
Nick Clifton
955a76eb5f
Skip N_EXCL stabs when procesing N_BINCL stabs.
2003-11-25 11:59:57 +00:00
Alan Modra
ee7de3e631
* elf64-ppc.c (ppc_type_of_stub): Disallow stubs other than
...
ppc_stub_plt_call to symbols defined in shared libs.
2003-11-25 02:14:25 +00:00
Alan Modra
f6d410d92f
daily update
2003-11-24 23:00:05 +00:00
Kazu Hirata
5c4491d385
* aix5ppc-core.c: Fix comment typos.
...
* aout-arm.c: Likewise.
* aout-ns32k.c: Likewise.
* aoutx.h: Likewise.
* archures.c: Likewise.
* bfd-in.h: Likewise.
* bfd.c: Likewise.
* bfdio.c: Likewise.
* coff-arm.c: Likewise.
* coff-h8300.c: Likewise.
* coff-i860.c: Likewise.
* coff-m88k.c: Likewise.
* coff-mcore.c: Likewise.
* coff-ppc.c: Likewise.
* coff-rs6000.c: Likewise.
* coff-z8k.c: Likewise.
* coff64-rs6000.c: Likewise.
* coffcode.h: Likewise.
* cofflink.c: Likewise.
* cpu-alpha.c: Likewise.
* cpu-arm.c: Likewise.
* cpu-ns32k.c: Likewise.
* dwarf2.c: Likewise.
* bfd-in2.h: Regenerate.
2003-11-24 18:06:40 +00:00
Alan Modra
bf640c9003
daily update
2003-11-23 23:00:05 +00:00
Alan Modra
f15b280f12
daily update
2003-11-22 23:00:06 +00:00
Jakub Jelinek
c6585bbb10
2003-11-22 Jakub Jelinek <jakub@redhat.com>
...
* elf-bfd.h (ELF_LINK_POINTER_EQUALITY_NEEDED): Define new flag.
* elf.c (_bfd_elf_link_hash_copy_indirect): Copy it.
* elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
(elf_i386_check_relocs): Set it.
(elf_i386_finish_dynamic_symbol): If it is not set,
clear st_value of SHN_UNDEF symbol.
2003-11-22 10:45:44 +00:00
Alan Modra
11ebb15728
daily update
2003-11-21 23:00:05 +00:00
Alan Modra
d805683360
daily update
2003-11-20 23:00:06 +00:00
Jim Blandy
43dd9340d4
* cpu-powerpc.c (powerpc_compatible): Any ISA in the PowerPC
...
family is a superset of <bfd_arch_rs6000,bfd_mach_rs6k>.
2003-11-20 18:42:21 +00:00
Martin Schwidefsky
90ced0dda1
* elf32-s390.c (elf_s390_relocate_section): Don't recalculate symbol
...
section for reloc output and subtract the output section's address
from the addend when converting a relocation into one against a
section symbol.
* elf64-s390.c (elf_s390_relocate_section): Likewise.
2003-11-20 09:54:07 +00:00
Alan Modra
d6bfa74209
daily update
2003-11-19 23:00:07 +00:00
Jim Wilson
55936540a7
Fix -pie core dump with .rela.opd section.
...
bfd/ChangeLog
* elfxx-ia64.c (get_fptr): For fptr_rel, use dynobj not abfd.
(elfNN_ia64_size_dynamic_sections): When stripping sections, check
for ia64_info->rel_fptr_sec.
ld/ChangeLog
* emulparams/elf64_ia64.sh (OTHER_PLT_RELOC_SECTIONS): Include
.rela.opd if -pie.
2003-11-19 01:06:13 +00:00
Alan Modra
ccc411c1e2
daily update
2003-11-18 23:00:05 +00:00
Alan Modra
082c50f897
* elf64-ppc.c (toc_adjusting_stub_needed): Exit early if section
...
size is zero.
2003-11-18 04:14:15 +00:00
Alan Modra
ccb95e68c5
daily update
2003-11-17 23:00:05 +00:00
Daniel Jacobowitz
3addb0a9e8
* elf.c (_bfd_elf_link_hash_copy_indirect): Copy
...
ELF_LINK_HASH_NEEDS_PLT. Fix formatting.
* elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
* elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
* elf32-ppc.c (ppc_elf_copy_indirect_symbol): Likewise.
* elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
* elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise.
* elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
* elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
* elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
* elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
* elf32-xtensa.c (elf_xtensa_copy_indirect_symbol): Remove.
(elf_backend_copy_indirect_symbol): Don't define.
2003-11-17 21:31:11 +00:00
Alan Modra
0e9d87aaa9
daily update
2003-11-16 23:00:04 +00:00
Daniel Jacobowitz
caec41ff60
* elfxx-mips.c (mips_elf_merge_gots): Weaken assert for local
...
GOT entries.
2003-11-14 16:05:13 +00:00
Martin Schwidefsky
2eaa0d4f9f
Fix typo in ChangeLog entry: s/R_390_RELAVITE/R_390_RELATIVE/.
2003-11-14 09:25:00 +00:00
Martin Schwidefsky
b5727d755e
* elf32-s390.c (elf_s390_relocate_section): Only convert R_390_32
...
to R_390_RELAVITE. Convert the other relocations against local
symbols to relocations against the start of the section.
* elf64-s390.c (elf_s390_relocate_section): Only convert R_390_64
to R_390_RELAVITE. Convert the other relocations against local
symbols to relocations against the start of the section.
2003-11-13 15:56:50 +00:00
Alan Modra
5b27bdbe2e
daily update
2003-11-11 23:00:05 +00:00
Nick Clifton
893c4fe299
Fix decision about when a .interp section should exist
2003-11-11 13:32:38 +00:00
Alan Modra
9940635ce6
daily update
2003-11-10 23:00:04 +00:00
Nick Clifton
ca6dee30a3
Add initial support for TLS sections in PE format files.
2003-11-10 17:04:55 +00:00
Alan Modra
0800d55de8
daily update
2003-11-09 23:00:05 +00:00
Alan Modra
512f436a80
daily update
2003-11-08 23:00:05 +00:00
Alan Modra
680ded4240
daily update
2003-11-07 23:00:06 +00:00
Alan Modra
42cc5353c9
daily update
2003-11-06 23:00:04 +00:00
Alan Modra
9abc968f91
* elf32-ppc.c (ppc_elf_install_value): Delete.
...
(shared_stub_entry, stub_entry): Make them arrays of ints.
Remove initial branch.
(ppc_elf_relax_section): Write one branch around all trampolines
instead. Correct bogus R_PPC_PLTREL24 handling. Correct
branch range check. Only use shared_stub_entry when shared.
Test that branches can reach stubs. Write trampolines out at
end so that just one realloc is used. Handle little-endian
mode. Move relevant code from ppc_elf_install_value to here.
(ppc_elf_relocate_section): Move code handling RELAX32 from
ppc_elf_install_value to here.
2003-11-06 14:30:11 +00:00
Alan Modra
f31a141e8d
* elf32-ppc.c (ppc_elf_howto_raw); Add entry for R_PPC_RELAX32PC.
...
(ppc_elf_install_value): Handle R_PPC_RELAX32PC. Merge duplicate
cases.
(shared_stub_entry): Correct opcode.
(ppc_elf_relax_section): Generate R_PPC_RELAX32PC relocs.
(ppc_elf_relocate_section): Handle them.
2003-11-06 02:58:40 +00:00