aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2002-03-13Revert last change.Alan Modra2-57/+43
2002-03-13 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Use ELF sectionAlan Modra2-43/+57
types instead of section names to determine whether init/fini array dynamic tags are needed.
2002-03-13 * elflink.h: Formatting fixes.Alan Modra2-14/+13
(elf_link_output_extsym): Merge undefined and undef weak cases.
2002-03-13 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfdAlan Modra2-3/+9
when word size of input matches output word size.
2002-03-12daily updateAlan Modra1-1/+1
2002-03-12 * cpu-i386.c (i386_compatible): New. Use it instead ofAndreas Jaeger2-6/+27
bfd_default_compatible.
2002-03-11daily updateAlan Modra1-1/+1
2002-03-10daily updateAlan Modra1-1/+1
2002-03-09daily updateAlan Modra1-1/+1
2002-03-08daily updateAlan Modra1-1/+1
2002-03-07daily updateAlan Modra1-1/+1
2002-03-072002-03-07 H.J. Lu (hjl@gnu.org)H.J. Lu2-1/+6
* coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type as the type for bfd_reloc_val.
2002-03-06daily updateAlan Modra1-1/+1
2002-03-05daily updateAlan Modra1-1/+1
2002-03-052002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>Jeff Law3-24/+94
* bfd/elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function. (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols. (elf_hppa_final_link_relocate): Correct relocations for indirect references to local data through the DLT. Fix .opd creation for local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64 relocations. Use e_lsel selector for R_PARISC_DLTIND21L, R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per "Processor-Specific ELF for PA_RISC, Version 1.43" document. Similarly, use e_rsel for DLT and LTOFF 'R' relocations. * bfd/elf32-hppa.c (final_link_relocate): Revise relocation selectors as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2002-03-05 * merge.c (_bfd_merge_sections): Don't segfault if thereJakub Jelinek2-0/+8
is nothing to merge due to GC.
2002-03-05typo fixAlan Modra1-1/+1
2002-03-05 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keepAlan Modra2-4/+3
symbols that have been forced local.
2002-03-05 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsymAlan Modra2-156/+164
to output forced local syms for non-shared link. (elf_link_output_extsym): Tweak condition for calling backend adjust_dynamic_symbol so that previous behaviour is kept.
2002-03-04daily updateAlan Modra1-1/+1
2002-03-042002-03-04 H.J. Lu <hjl@gnu.org>H.J. Lu4-27/+55
* elf.c (bfd_section_from_shdr): Handle special sections, .init_array, .fini_array and .preinit_array. (elf_fake_sections): Likewise. * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the DT entry only if the section is in output for .init_array, .fini_array and .preinit_array. Complain about .preinit_array section in DSO. (elf_bfd_final_link): Warn zero size for .init_array, .fini_array and .preinit_array sections. * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY. (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and .preinit_array.
2002-03-04 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.Alan Modra3-22/+25
* configure: Regenerate.
2002-03-03daily updateAlan Modra1-1/+1
2002-03-02daily updategdb_5_3-branchpointgdb_5_2-branchpointAlan Modra1-1/+1
2002-03-02Replace immediate howto type initializers with symbolic.Tom Rix3-51/+56
2002-03-02 * elflink.h (size_dynamic_sections): If section namedRichard Henderson2-1/+75
".preinit_array" exists, create DT_PREINIT_ARRAY and DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for ".init_array" and ".fini_array". (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and DT_FINI_ARRAY.
2002-03-01daily updateAlan Modra1-1/+1
2002-02-27daily updateAlan Modra1-1/+1
2002-02-26daily updateAlan Modra1-1/+1
2002-02-25 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF localAlan Modra2-3/+9
dynsyms.
2002-02-25daily updateAlan Modra1-1/+1
2002-02-25 * elf64-hppa.h: Update copyright date.Alan Modra2-1/+3
2002-02-25 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.Alan Modra2-9/+27
(ppc64_elf_relocate_section): Don't generate power4 style branch hints for *_BRTAKEN and *_BRNTAKEN relocs.
2002-02-24daily updateAlan Modra1-1/+1
2002-02-23daily updateAlan Modra1-1/+1
2002-02-22daily updateAlan Modra1-1/+1
2002-02-22The "2002-02-05 Alan Modra <amodra@bigpond.net.au>" commit also affectedDavid O'Brien1-0/+1
elf32-i386.c
2002-02-22 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from myJakub Jelinek3-2/+8
last patch. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2002-02-21daily updateAlan Modra1-1/+1
2002-02-21 * elf64-x86-64.c: Major rework that introduces all recent changesAndreas Jaeger2-741/+1080
to the x86-64 backend. Get a closer match to elf32-i386. (struct elf64_x86_64_dyn_relocs): Rename from elf64_x86_64_pcrel_relocs_copied, add additional fields. Change all users. (struct elf64_x86_64_link_hash_table): Add short cuts to some sections. (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc, remove casts, initialize new hash members. (create_got_section): New. (elf64_x86_64_create_dynamic_sections): New. (elf64_x86_64_copy_indirect_symbol): New. (elf64_x86_64_check_relocs): Don't allocate space for dynamic relocs, .got or .relgot here but do it in allocate_dynrelocs. Reference count possible .plt and .got entries. Don't test input section SEC_READONLY here to try to avoid copy relocs, and keep dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of variables until needed. Cache pointer to "sreloc" section in elf_section_data. Tweak condition under which .got created. Report files with bad relocation section names. (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel. Reference count possible .plt entries. Don't deallocate .got and .relgot space here. (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy reloc processing for weakdefs. Remove redundant casts and aborts. Delay setting of vars until needed. Move creation of dynamic symbols and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace BFD_ASSERT with abort. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. (allocate_dynrelocs): New. (readonly_dynrelocs): New. (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs. Allocate space for dyn relocs. Replace BFD_ASSERT with abort. Zero out the dynamic allocated content space. (elf64_x86_64_discard_copies): Removed. (elf64_x86_64_relocate_section): Make use of dynamic section short-cuts. Localise vars, and delay setting. Better error reporting, replace BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the regular object file and tread the weak definition as the normal one. Don't discard relocs for undefweak or undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy relocs. (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for symbols that have been forced local. Use same test to decide if we can use a relative reloc for got as relocate_section. Expand SHN_UNDEF comment. Move expressions out of function calls. Replace BFD_ASSERT with abort. (bfd_elf64_bfd_final_link): Removed. (elf_backend_copy_indirect_symbol): Define.
2002-02-21XCOFF booke tests. Fix tlbre, tlbwe ppc WS field.Tom Rix3-4/+44
2002-02-20daily updateAlan Modra1-1/+1
2002-02-20 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files areAlan Modra2-2/+7
little endian.
2002-02-19daily updateAlan Modra1-1/+1
2002-02-192002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>Martin Schwidefsky6-12/+67
* archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31. (bfd_mach_s390_esame): Rename to bfd_mach_s390_64. * bfd-in2.h: Regenerate. * cpu-s390.c (arch_info_struct): Use renamed architecture defines. Replace architecture name "s390" with "s390:31-bit" and "s390:esame" with "s390:64-bit". * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations. (elf_s390_reloc_type_lookup): Likewise. (elf_s390_check_relocs): Likewise. (elf_s390_gc_sweep_hook): Likewise. (elf_s390_relocate_section): Likewise. (elf_s390_object_p): Use renamed architecture define. * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
2002-02-192002-02-19 Frank Ch. Eigler <fche@redhat.com>Frank Ch. Eigler2-9/+15
* syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
2002-02-19 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): EnableJakub Jelinek21-94/+124
absptr -> pcrel optimization for shared libs. Only create minimal .eh_frame_hdr if absptr FDE encoding in shared library cannot be converted to pcrel. (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr relative. * elf32-i386.c (elf_i386_relocate_section): If _bfd_elf_section_offset returned -2, skip, but make sure the relocation is installed. * elf32-arm.h (elf32_arm_final_link_relocate): Likewise. * elf32-cris.c (cris_elf_relocate_section): Likewise. * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. * elf32-i370.c (i370_elf_relocate_section): Likewise. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf32-s390.c (elf_s390_relocate_section): Likewise. * elf32-sh.c (sh_elf_relocate_section): Likewise. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. * elf64-s390.c (elf_s390_relocate_section): Likewise. * elf64-sh64.c (sh_elf64_relocate_section): Likewise. * elf64-sparc.c (sparc64_elf_relocate_section): Likewise. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Handle _bfd_elf_section_offset returning -2 the same way as -1. * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise. * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME and BFD_ASSERT. * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
2002-02-19Add support for -brtl, run time linking, to AIX ld.Tom Rix7-149/+232
2002-02-18daily updateAlan Modra1-1/+1
2002-02-18 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.Alan Modra2-31/+166
(struct ppc_link_hash_table): Add sfpr. (ppc64_elf_link_hash_table_create): Init it. (ppc64_elf_create_dynamic_sections): Split creation of .stub and .glink out to.. (create_linkage_sections): ..here. Make .sfpr too. (ppc64_elf_check_relocs): Call create_linkage_sections, and set dynobj early. (MIN_SAVE_FPR, MAX_SAVE_FPR): Define. (ppc64_elf_func_desc_adjust): Look for missing ._savef* and ._restf* functions, and create as needed. (func_desc_adjust): Only force_local for shared libs. * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.