aboutsummaryrefslogtreecommitdiff
path: root/bfd
AgeCommit message (Collapse)AuthorFilesLines
2002-08-27daily updateAlan Modra1-1/+1
2002-08-26 * coffcode.h (coff_set_arch_mach_hook): Handle W65MAGIC.Alan Modra2-0/+11
2002-08-26 * aoutx.h (NAME(aout,reloc_type_lookup)): Handle BFD_RELOC_8.Alan Modra2-0/+5
2002-08-26daily updateAlan Modra1-1/+1
2002-08-25daily updateAlan Modra1-1/+1
2002-08-24 * elf32-sh.c (sh_elf_copy_indirect_symbol): New.Alan Modra2-583/+1014
(create_got_section, allocate_dynrelocs, readonly_dynrelocs): Likewise. (struct elf_sh_pcrel_relocs_copied): Removed. (struct elf_sh_dyn_relocs): New. (struct elf_sh_link_hash_entry): Replace pcrel_relocs_copied field with dyn_relocs. (struct elf_sh_link_hash_table): Add short-cuts to get dynamic sections and sym_sec. (sh_elf_link_hash_newfunc): Clear dyn_relocs. (sh_elf_link_hash_table_create): Clear shorts-cuts and sym_sec. (sh_elf_create_dynamic_sections): Use create_got_section instead of _bfd_elf_create_got_section. (sh_elf_check_relocs): Likewise. (sh_elf_create_dynamic_sections): Use short-cuts to the dynamic sections. (sh_elf_adjust_dynamic_symbol, sh_elf_size_dynamic_sections, sh_elf_relocate_section, sh_elf_check_relocs, sh_elf_finish_dynamic_symbol, sh_elf_finish_dynamic_sections): Likewise. (sh_elf_adjust_dynamic_symbol): Handle nocopyreloc. Keep the dynamic relocations and avoiding the copy relocation when we didn't find any dynamic relocations in the section which has contents or is read-only. (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New. (sh_elf_size_dynamic_sections): Don't reset the size of .rela.got section even if dynamic_sections_created flag is off. Don't use sh_elf_discard_copies. Scan all input bfd and use allocate_dynrelocs. Call readonly_dynrelocs to determine whether we need DT_TEXTREL. (sh_elf_adjust_dynamic_symbol): Use plt.refcount to determine whether the symbol was never referred to. (sh_elf_relocate_section): Use WILL_CALL_FINISH_DYNAMIC_SYMBOL. (sh_elf_gc_sweep_hook): Fill with the real sweep function. (sh_elf_check_relocs): Call create_got_section if the short-cut to .got is null. Increment reference counters only instead of allocating space on dynamic sections here. Don't conditionalize uninitialized got.offset value when marking the symbol as a global offset table entry. Keep relocations for symbols satisfied by a dynamic library to avoid copy relocations for the symbol. Set dynobj field of an elf hash table if needed. (sh_elf_finish_dynamic_sections): Handle null section pointer correctly. (elf_backend_copy_indirect_symbol): Defined. (elf_backend_can_refcount): Defined.
2002-08-24daily updateAlan Modra1-1/+1
2002-08-23Undo previous delta. Add comment explaining why.Nick Clifton2-1/+11
2002-08-23 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le): CopyAlan Modra3-16/+41
contents of .got.plt[2] to tr0, not address of .got.plt. (sh_elf_finish_dynamic_symbol): Do not apply GOT_BIAS when patching absolute plt entry. For shmedia plt entry, set bottom bit of branch to plt0 as this is a branch to an shmedia instruction. * elf64-sh64.c (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le): Copy contents of .got.plt[2] to tr0, not address of .got.plt. (elf_sh64_plt_entry_be, elf_sh64_plt_entry_le): Use ptrel to branch to plt0. (sh64_elf64_finish_dynamic_symbol): Do not apply GOT_BIAS when patching absolute plt entry. For shmedia plt entry, branch to plt0 is now ptrel, so use relative offset. Set bottom bit of branch target as it is a branch to an shmedia instruction.
2002-08-23 * elf32-sh.c (sh_elf_finish_dynamic_sections): Set LSB of DT_INITAlan Modra3-2/+51
value if .init is an SHmedia function. Similarly for DT_FINI. * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
2002-08-23 * bfd/elf32-sh.c (sh_elf_size_dynamic_sections): Zero initializeAlan Modra3-2/+8
dynamic section. * bfd/elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
2002-08-23daily updateAlan Modra1-1/+1
2002-08-22Use a simple byte read when reading the return address register column.Nick Clifton2-1/+6
2002-08-22Add powerpc64-*-*bsd* target.Nick Clifton2-1/+6
2002-08-22Add sh-nto supportNick Clifton10-17/+88
2002-08-22Updated Turkish translation.Nick Clifton2-1251/+1609
2002-08-22Set bfd_error to no_symbols if the symbols could not be read.Nick Clifton2-0/+6
2002-08-22 * elf32-m68hc11.c: Formatting fixes.Alan Modra3-58/+45
(elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test. * elf32-m68hc12.c: Formatting fixes. (elf32_m68hc11_gc_mark_hook): Correct params. Remove unnecessary test.
2002-08-22 * coff-rs6000.c (rs6000coff_vec <object_flags>): Add SEC_CODE andAlan Modra3-4/+10
SEC_DATA. (pmac_xcoff_vec): Likewise. * coff64-rs6000.c (rs6000coff64_vec): Likewise. (aix5coff64_vec): Likewise.
2002-08-22 * elf-bfd.h (struct elf_backend_data): Add struct elf_backend_dataAlan Modra13-33/+72
param to elf_backend_copy_indirect_symbol. (_bfd_elf_link_hash_copy_indirect): Likewise. * elflink.h (elf_add_default_symbol, elf_fix_symbol_flags): Adjust calls to copy_indirect_symbol. * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise. * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise. * elf32-s390.c (elf_s390_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. * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise. * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Likewise. * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Properly test refcounts for "used" values.
2002-08-22daily updateAlan Modra1-1/+1
2002-08-21daily updateAlan Modra1-1/+1
2002-08-20 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Add PARAMS toAlan Modra2-1/+6
argument declaration.
2002-08-20daily updateAlan Modra1-1/+1
2002-08-192002-08-19 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni4-0/+22
* archures.c (bfd_mach_ppc_e500): Added. * bfd-in2.h: Rebuilt. * cpu-powerpc.c (bfd_powerpc_archs): Added e500.
2002-08-19 * elf32-m68hc12.c (elf_backend_can_gc_sections): False.Alan Modra2-1/+6
2002-08-19daily updateAlan Modra1-1/+1
2002-08-18daily updateAlan Modra1-1/+1
2002-08-17* elf.c (bfd_elf_get_elf_syms): Change type of `esym' toAndrew Cagney2-1/+6
`bfd_byte'.
2002-08-17 * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Use theStan Cox2-7/+12
IRIX 6 segment layout for NEWABI.
2002-08-17daily updateAlan Modra1-1/+1
2002-08-16 * bfd/elf32-sh.c (sh_elf_gc_mark_hook): For sh64, skip indirectStephen Clarke3-0/+14
symbols when looking for section referred to by a relocation. * bfd/elf64-sh.c (sh_elf64_gc_mark_hook): Likewise.
2002-08-16daily updateAlan Modra1-1/+1
2002-08-15Remove bfd/ prefix from files.Alan Modra1-8/+8
2002-08-15 * elf32-i370.c: Move reloc enum to include/elf/i370.h.Alan Modra2-30/+9
2002-08-15 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): AddHans-Peter Nilsson2-1/+8
missing check for whether the symbol is referenced by DSO before unexporting it as an unneeded dynamic symbol.
2002-08-15daily updateAlan Modra1-1/+1
2002-08-142002-08-14 H.J. Lu <hjl@gnu.org>H.J. Lu2-0/+9
* libbfd.h: Regenerate.
2002-08-14Add "want64=yes" to 32bit Linux/mips.H.J. Lu1-0/+2
2002-08-14Always enable 64bit targets for 32bit Linux/mips.H.J. Lu2-4/+6
2002-08-14 * elf32-m68hc11.c (m68hc11_relax_group): New to relax group ofStephane Carrez2-0/+1067
instructions. (m68hc11_direct_relax): New to define table of relaxable instructions. (find_relaxable_insn): New, find a relaxable insn. (compare_reloc): New to compare two relocs. (m68hc11_elf_relax_section): New, relax text sections. (m68hc11_elf_relax_delete_bytes): New, delete bytes and adjust branchs. (elf32_m68hc11_check_relocs): New function for GC support. (elf32_m68hc11_relocate_section): New function for GC support. (bfd_elf32_bfd_relax_section): Define to support linker relaxation. (elf_backend_check_relocs): Likewise. (elf_backend_relocate_section): Likewise.
2002-08-142002-08-13 H.J. Lu <hjl@gnu.org>H.J. Lu2-1/+10
* elflink.h (NAME(bfd_elf,size_dynamic_sections): Don't count definitions in shared objects when checking symbol with undefined version.
2002-08-14daily updateAlan Modra1-1/+1
2002-08-13 * elf32-m68hc11.c (elf32_m68hc11_gc_mark_hook): New for section GC.Stephane Carrez3-1/+136
(elf32_m68hc11_gc_sweep_hook): Likewise. (elf_backend_gc_mark_hook): Define for GC section support. (elf_backend_gc_sweep_hook): Likewise. (elf_backend_can_gc_sections): Likewise. * elf32-m68hc12.c: Likewise.
2002-08-13Fix integration pb for:Stephane Carrez1-4/+50
* elf32-m68hc11.c (elf_m68hc11_howto_table): Add the new relocs; fix masks for PC-rel relocs. (m68hc11_elf_ignore_reloc): New function.
2002-08-13 * elf32-m68hc11.c (_bfd_m68hc11_elf_print_private_bfd_data): New.Stephane Carrez3-0/+293
(_bfd_m68hc11_elf_merge_private_bfd_data): New function. (_bfd_m68hc11_elf_set_private_flags): New function. Use them to set/check/print ELF flags specific to 68HC11. * elf32-m68hc12.c (_bfd_m68hc12_elf_print_private_bfd_data): New. (_bfd_m68hc12_elf_merge_private_bfd_data): New function. (_bfd_m68hc12_elf_set_private_flags): New function. Use them to set/check/print ELF flags specific to 68HC12.
2002-08-13 * elf32-m68hc11.c (elf_m68hc11_howto_table): Add the new relocs;Stephane Carrez3-21/+413
fix masks for PC-rel relocs. (m68hc11_elf_ignore_reloc): New function. * elf32-m68hc12.c (m68hc12_elf_special_reloc): New to handle specific 68HC12 banked addressing relocs. (m68hc12_phys_addr): New to compute physical address of banked memory. (m68hc12_phys_page): Likewise for page. (m68hc12_addr_is_banked): New to see if address is in banked area. (elf_m68hc12_howto_table): Add new relocs and rename to xx12.
2002-08-13 * reloc.c (BFD_RELOC_M68HC11_RL_JUMP, BFD_RELOC_M68HC11_RL_GROUP,Stephane Carrez3-6/+80
BFD_RELOC_M68HC11_LO16, BFD_RELOC_M68HC11_PAGE, BFD_RELOC_M68HC11_24): New relocs for 68HC11/68HC12. * bfd-in2.h: Regenerate.
2002-08-13 * header.sed: Strip tabs.Alan Modra2-0/+5
2002-08-13daily updateAlan Modra1-1/+1