1275718Sjhibbits2009-02-15 Alan Modra <amodra@bigpond.net.au> 2275718Sjhibbits 3275718Sjhibbits * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx, 4275718Sjhibbits add toc.symndx and toc.add. 5275718Sjhibbits (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here. 6275718Sjhibbits Set up toc.add. 7275718Sjhibbits (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all 8275718Sjhibbits callers. 9275718Sjhibbits (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd. 10275718Sjhibbits (branch_reloc_hash_match): New function, extracted from.. 11275718Sjhibbits (ppc64_elf_tls_optimize): ..here. 12275718Sjhibbits (ppc64_elf_relocate_section): Properly set addends when optimizing 13275718Sjhibbits tls sequences. Avoid unnecessary reading and writing of insns. 14275718Sjhibbits Only redo reloc when symbol changed. Bypass symbol checks when 15275718Sjhibbits using tlsld_got. 16275718Sjhibbits * elf32-ppc.c (ppc_elf_tls_setup): Correct comment. 17275718Sjhibbits (branch_reloc_hash_match): New function, extracted from.. 18275718Sjhibbits (ppc_elf_tls_optimize): ..here. 19275718Sjhibbits (ppc_elf_relocate_section): Avoid unnecessary reading of insns. 20275718Sjhibbits Don't clear addend on zapped __tls_get_addr reloc. 21275718Sjhibbits 22275718Sjhibbits2008-08-11 Alan Modra <amodra@bigpond.net.au> 23275718Sjhibbits 24275718Sjhibbits * elf64-ppc.c (toc_adjusting_stub_needed): Any call via the plt 25275718Sjhibbits needs r2 valid, not just those to external syms. 26275718Sjhibbits 27275718Sjhibbits2007-11-06 Alan Modra <amodra@bigpond.net.au> 28275718Sjhibbits 29275718Sjhibbits * elf32-ppc.c (ppc_elf_check_relocs): Don't refcount tlsld_got here.. 30275718Sjhibbits (ppc_elf_gc_sweep_hook): ..or here.. 31275718Sjhibbits (ppc_elf_tls_optimize): ..or here. Make two passes through the 32275718Sjhibbits relocs, ensuring that tls_get_addr calls follow gd and ld relocs. 33275718Sjhibbits (allocate_dynrelocs): Refcount tlsld_got here. 34275718Sjhibbits (ppc_elf_size_dynamic_sections): Call allocate_dynrelocs before 35275718Sjhibbits allocating tlsld_got. 36275718Sjhibbits (ppc_elf_relocate_section): Remove check that a tls_get_addr 37275718Sjhibbits call follows gd and ld relocs. 38275718Sjhibbits 39275718Sjhibbits2007-08-13 Alan Modra <amodra@bigpond.net.au> 40275718Sjhibbits 41275718Sjhibbits * elf64-ppc.c (ADDI_R12_R12, LD_R11_0R2, LD_R2_0R2): Define. 42275718Sjhibbits Update stub comments. 43275718Sjhibbits (build_plt_stub): Build two variants, one without "addis". 44275718Sjhibbits (ppc_build_one_stub): Build stubs without "addis" if possible. 45275718Sjhibbits (ppc_size_one_stub): Size new stubs. 46275718Sjhibbits 47218822Sdim2007-07-02 Joseph Myers <joseph@codesourcery.com> 48107492Sobrien 49218822Sdim * elfxx-mips.c (mips_elf_calculate_relocation): Handle 50218822Sdim R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64. 51218822Sdim * elf64-mips.c (mips_elf64_howto_table_rela): Support 52218822Sdim R_MIPS_TLS_DTPREL64. 53107492Sobrien 54218822Sdim2007-07-02 Alan Modra <amodra@bigpond.net.au> 55107492Sobrien 56218822Sdim * Makefile.am: Run "make dep-am". 57218822Sdim * Makefile.in: Regenerate. 58218822Sdim * aclocal.m4: Regenerate. 59218822Sdim * config.in: Regenerate. 60218822Sdim * po/SRC-POTFILES.in: Regenerate. 61218822Sdim * po/bfd.pot: Regenerate. 62107492Sobrien 63218822Sdim2007-07-02 Alan Modra <amodra@bigpond.net.au> 64107492Sobrien 65218822Sdim * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Tidy 66218822Sdim symsec != NULL tests. 67107492Sobrien 68218822Sdim2007-07-02 Alan Modra <amodra@bigpond.net.au> 69107492Sobrien 70218822Sdim PR 4712 71218822Sdim * elf.c (assign_file_positions_for_load_sections): Adjust lma 72218822Sdim by p_vaddr_offset. 73107492Sobrien 74218822Sdim2007-06-30 H.J. Lu <hongjiu.lu@intel.com> 75107492Sobrien 76218822Sdim * aclocal.m4: Regenerated. 77218822Sdim * Makefile.in: Likewise. 78218822Sdim 79218822Sdim2007-06-29 Joseph Myers <joseph@codesourcery.com> 80218822Sdim 81218822Sdim * elf32-ppc.c (ppc_elf_merge_obj_attributes): New. 82218822Sdim (ppc_elf_merge_private_bfd_data): Call it. 83218822Sdim 84218822Sdim2007-06-29 Joseph Myers <joseph@codesourcery.com> 85218822Sdim 86218822Sdim * elfxx-mips.c (mips_elf_merge_obj_attributes): New. 87218822Sdim (_bfd_mips_elf_merge_private_bfd_data): Call it. 88218822Sdim 89218822Sdim2007-06-29 Joseph Myers <joseph@codesourcery.com> 90218822Sdim 91218822Sdim * elf-attrs.c: New. 92218822Sdim * Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo. 93218822Sdim (BFD32_BACKENDS_CFILES): Add elf-attrs.c. 94218822Sdim (elf-attrs.lo): Generate dependencies. 95218822Sdim * Makefile.in: Regenerate. 96218822Sdim * configure.in (elf): Add elf-attrs.lo. 97104834Sobrien * configure: Regenerate. 98218822Sdim * elf-bfd.h (struct elf_backend_data): Add entries for object 99218822Sdim attributes. 100218822Sdim (NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list, 101218822Sdim OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST, 102218822Sdim Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility): 103218822Sdim New. 104218822Sdim (struct elf_obj_tdata): Add entries for object attributes. 105218822Sdim (elf_known_obj_attributes, elf_other_obj_attributes, 106218822Sdim elf_known_obj_attributes_proc, elf_other_obj_attributes_proc): 107218822Sdim New. 108218822Sdim (bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents, 109218822Sdim bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int, 110218822Sdim bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string, 111218822Sdim bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat, 112218822Sdim bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup, 113218822Sdim _bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type, 114218822Sdim _bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New. 115218822Sdim * elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes. 116218822Sdim (bfd_section_from_shdr): Handle attributes sections. 117218822Sdim * elflink.c (bfd_elf_final_link): Handle attributes sections. 118218822Sdim * elfxx-target.h (elf_backend_obj_attrs_vendor, 119218822Sdim elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type, 120218822Sdim elf_backend_obj_attrs_section_type): New. 121218822Sdim (elfNN_bed): Update. 122218822Sdim * elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute, 123218822Sdim aeabi_attribute_list): Remove. 124218822Sdim (struct elf32_arm_obj_tdata): Remove object attributes fields. 125218822Sdim (check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2, 126218822Sdim elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes): 127218822Sdim Update for new object attributes interfaces. 128218822Sdim (uleb128_size, is_default_attr, eabi_attr_size, 129218822Sdim elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute, 130218822Sdim elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link, 131218822Sdim elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int, 132218822Sdim elf32_arm_add_eabi_attr_int, attr_strdup, 133218822Sdim elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat, 134218822Sdim copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved 135218822Sdim to generic code in elf-attrs.c. 136218822Sdim (elf32_arm_obj_attrs_arg_type): New. 137218822Sdim (elf32_arm_fake_sections): Do not handle .ARM.attributes. 138218822Sdim (elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES. 139218822Sdim (bfd_elf32_bfd_final_link): Remove. 140218822Sdim (elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section, 141218822Sdim elf_backend_obj_attrs_arg_type, 142218822Sdim elf_backend_obj_attrs_section_type): New. 143218822Sdim * elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object 144218822Sdim attributes. 145218822Sdim * elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise. 146218822Sdim * elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise. 147218822Sdim * elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise. 148218822Sdim * elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise. 149218822Sdim * elf32-sh.c (sh_elf_copy_private_data): Likewise. 150218822Sdim * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise. 151104834Sobrien 152218822Sdim2007-06-29 Paul Brook <paul@codesourcery.com> 153104834Sobrien 154218822Sdim * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress 155218822Sdim call veneers for call relocations against undefined symbols. 156218822Sdim (elf32_arm_final_link_relocate): Turn call to undefined symbol 157218822Sdim into a jump to the next instruction. 158104834Sobrien 159218822Sdim2007-06-29 Michael Snyder <msnyder@svkmacdonelllnx> 160104834Sobrien 161218822Sdim * bfd.c (bfd_demangle): Plug memory leak (Coverity). 162104834Sobrien 163218822Sdim2007-06-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com> 164104834Sobrien 165218822Sdim * Makefile.am: Add cr16 related entry 166218822Sdim * Makefile.in: Regenerate 167218822Sdim * archures.c: Add bfd_cr16_arch 168218822Sdim * bfd-in2.h: Regenerate 169218822Sdim * config.bfd: Add cr16-elf 170218822Sdim * configure.in: Add bfd_elf32_cr16_vec 171218822Sdim * configure: Regenerate. 172218822Sdim * targets.c: Added cr16 related information 173218822Sdim * cpu-cr16.c: New file. 174218822Sdim * elf32-cr16.c: New file. 175218822Sdim * reloc.c: Added cr16 relocs. 176104834Sobrien 177218822Sdim2007-06-29 Alan Modra <amodra@bigpond.net.au> 178104834Sobrien 179218822Sdim * elflink.c (_bfd_elf_link_assign_sym_version): Improve error 180218822Sdim message for undefined version nodes. 181218822Sdim (elf_gc_sweep): Don't warn when zero size sections are 182218822Sdim removed. 183104834Sobrien 184218822Sdim2007-06-29 Nathan Froyd <froydnj@codesourcery.com> 185104834Sobrien 186218822Sdim * elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation 187218822Sdim types. 188104834Sobrien 189218822Sdim2007-06-29 Alan Modra <amodra@bigpond.net.au> 190104834Sobrien 191218822Sdim * elf32-spu.c (spu_elf_fake_sections): New function. 192218822Sdim (elf_backend_fake_sections): Define. 193104834Sobrien 194218822Sdim2007-06-29 Alan Modra <amodra@bigpond.net.au> 195104834Sobrien 196218822Sdim * elf.c (assign_file_positions_for_load_sections): Use elf 197218822Sdim section header sh_size rather than bfd section size, simplifying 198218822Sdim .tbss handling. 199104834Sobrien 200218822Sdim2007-06-29 Alan Modra <amodra@bigpond.net.au> 201104834Sobrien 202218822Sdim PR ld/4701 203218822Sdim * elf.c (assign_file_positions_for_load_sections): Ensure bss 204218822Sdim segments meet gABI alignment requirements. Don't allocate 205218822Sdim file space for bss sections in a segment also containing file 206218822Sdim or program headers. 207104834Sobrien 208218822Sdim2007-06-27 Alan Modra <amodra@bigpond.net.au> 209104834Sobrien 210218822Sdim * bfd.c (struct bfd): Rename "next" to "archive_next". 211218822Sdim * archive.c: Rename uses throughout file. 212218822Sdim * archive64.c: Likewise. 213218822Sdim * coff-rs6000.c: Likewise. 214218822Sdim * ecoff.c: Likewise. 215218822Sdim * som.c: Likewise. 216218822Sdim * bfd-in2.h: Regenerate. 217104834Sobrien 218218822Sdim * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over 219218822Sdim input bfds. 220218822Sdim * elf32-spu.c (spu_elf_create_sections): Likewise. 221104834Sobrien 222218822Sdim2007-06-26 H.J. Lu <hongjiu.lu@intel.com> 223104834Sobrien 224218822Sdim * dwarf2.c (find_line): New. Contains the duplicated code from: 225218822Sdim (_bfd_dwarf2_find_nearest_line): Use it. 226218822Sdim (_bfd_dwarf2_find_line): Use it. 227104834Sobrien 228218822Sdim2007-06-26 Joseph Myers <joseph@codesourcery.com> 229104834Sobrien 230218822Sdim * elf32-arm.c (copy_eabi_attributes): Copy type of attributes. 231104834Sobrien 232218822Sdim2007-06-25 Richard Sandiford <richard@codesourcery.com> 233104834Sobrien 234218822Sdim * elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs 235218822Sdim to be used for calls from MIPS16 code. 236104834Sobrien 237218822Sdim2007-06-23 Andreas Schwab <schwab@suse.de> 238218822Sdim 239218822Sdim * configure.in (--with-separate-debug-dir): New option. 240104834Sobrien * configure: Regenerate. 241218822Sdim * Makefile.am (dwarf2.lo): Add rule to pass DEBUGDIR. 242218822Sdim * Makefile.in: Regenerate. 243218822Sdim * dwarf2.c (_bfd_dwarf2_find_nearest_line): Pass DEBUGDIR to 244218822Sdim bfd_follow_gnu_debuglink. 245218822Sdim (_bfd_dwarf2_find_line): Likewise. 246104834Sobrien 247218822Sdim2007-06-22 Nick Clifton <nickc@redhat.com> 248104834Sobrien 249218822Sdim * dwarf2.c: Add support for reading in debug information via a 250218822Sdim .gnu_debuglink section: 251218822Sdim (struct dwarf2_debug): Add bfd field to record the bfd containing 252218822Sdim the debug info. 253218822Sdim (parse_comp_unit): Remove ABFD parameter. Instead use the bfd 254218822Sdim field in the dwarf2_debug structure. 255218822Sdim (_bfd_dwarf2_find_nearest_line): If a debug info section could not 256218822Sdim be found in the current bfd call bfd_follow_gnu_debuglink to see 257218822Sdim if another file contains the debug information. If it does, open 258218822Sdim it and continue. 259218822Sdim (_bfd_dwarf2_find_line): Likewise. 260218822Sdim 261218822Sdim2007-06-19 H.J. Lu <hongjiu.lu@intel.com> 262218822Sdim 263218822Sdim PR ld/4590 264218822Sdim * elfxx-ia64.c (sort_dyn_sym_info): Keep the valid got_offset 265218822Sdim when removing duplicated entries. 266218822Sdim (get_dyn_sym_info): Initialize the got_offset field to -1. 267218822Sdim Update call to sort_dyn_sym_info. 268218822Sdim (elfNN_ia64_relocate_section): Call sort_dyn_sym_info to sort 269218822Sdim array of addend and remove duplicates. 270218822Sdim 271218822Sdim2007-06-18 H.J. Lu <hongjiu.lu@intel.com> 272218822Sdim 273218822Sdim * libpei.h (_bfd_XXi_final_link_postscript): Remove 274218822Sdim duplication. 275218822Sdim (bfd_target_pei_p): New. 276218822Sdim (bfd_target_pei_arch): New 277218822Sdim (bfd_target_efi_p): Likewise. 278218822Sdim (bfd_target_efi_arch): New 279218822Sdim (bfd_pe_executable_p): Use bfd_target_pei_p and 280218822Sdim bfd_target_efi_p. 281218822Sdim 282218822Sdim * peicode.h (arch_type): New enum. 283218822Sdim (pe_arch): New function. 284218822Sdim (pe_bfd_object_p): Don't match PE/EFI target with EFI/PE file 285218822Sdim if there is an EFI/PE target. 286218822Sdim 287218822Sdim2007-06-14 H.J. Lu <hongjiu.lu@intel.com> 288218822Sdim 289218822Sdim * Makefile.am (ACLOCAL_AMFLAGS): Add -I . -I ../config. 290218822Sdim 291218822Sdim * acinclude.m4: Don't include m4 files. Remove libtool 292218822Sdim kludge. 293218822Sdim 294218822Sdim * Makefile.in: Regenerated. 295218822Sdim * aclocal.m4: Likewise. 296130561Sobrien * configure: Likewise. 297104834Sobrien 298218822Sdim2007-06-11 Sterling Augustine <sterling@tensilica.com> 299218822Sdim Bob Wilson <bob.wilson@acm.org> 300104834Sobrien 301218822Sdim * elf32-xtensa.c (extend_ebb_bounds_forward): Use renamed 302218822Sdim XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM. 303218822Sdim (extend_ebb_bounds_backward, compute_text_actions): Likewise. 304218822Sdim (compute_ebb_proposed_actions, coalesce_shared_literal): Likewise. 305218822Sdim (xtensa_get_property_predef_flags): Likewise. 306218822Sdim (compute_removed_literals): Pass new arguments to is_removable_literal. 307218822Sdim (is_removable_literal): Add sec, prop_table and ptblsize arguments. 308218822Sdim Do not remove literal if the NO_TRANSFORM property flag is set. 309104834Sobrien 310218822Sdim2007-05-31 Richard Sandiford <rsandifo@nildram.co.uk> 311104834Sobrien 312218822Sdim * elfxx-mips.c (mips_elf_initialize_tls_index): When processing a 313218822Sdim type (3) single-GOT entry, read tls_type from the hash table entry 314218822Sdim rather than the GOT entry. 315104834Sobrien 316218822Sdim2007-06-01 Alan Modra <amodra@bigpond.net.au> 317104834Sobrien 318218822Sdim * simple.c (bfd_simple_get_relocated_section_contents): Init 319218822Sdim input_bfds_tail. 320104834Sobrien 321218822Sdim2007-05-30 Alan Modra <amodra@bigpond.net.au> 322104834Sobrien 323218822Sdim * elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections 324218822Sdim created by objcopy --only-keep-debug. 325218822Sdim (_bfd_elf_init_private_section_data): Only change elf_section_type 326218822Sdim if it is SHT_NULL. 327104834Sobrien 328218822Sdim * elf.c (assign_file_positions_for_load_sections): Correct sh_type 329218822Sdim to SHT_NOBITS earlier. Base actions in rest of function on sh_type 330218822Sdim and sh_flags instead of bfd section flags. Delete voff and code 331218822Sdim keeping nobits segments aligned. 332104834Sobrien 333218822Sdim2007-05-25 Eric Christopher <echristo@apple.com> 334104834Sobrien 335218822Sdim * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): 336218822Sdim Check that sym_sec isn't NULL before accessing. 337104834Sobrien 338218822Sdim2007-05-24 Steve Ellcey <sje@cup.hp.com> 339104834Sobrien 340218822Sdim * Makefile.in: Regnerate. 341218822Sdim * configure: Regenerate. 342218822Sdim * aclocal.m4: Regenerate. 343218822Sdim * doc/Makefile.in: Regenerate. 344104834Sobrien 345218822Sdim2007-05-22 Paul Brook <paul@codesourcery.com> 346104834Sobrien 347218822Sdim * elf32-arm.c (output_arch_syminfo): Replace plt_shndx and plt_offset 348218822Sdim with sec and sec_shndx. 349218822Sdim (elf32_arm_ouput_plt_map_sym): Use them. 350218822Sdim (elf32_arm_output_arch_local_syms): Output mapping symbols for 351218822Sdim interworking glue. 352104834Sobrien 353218822Sdim2007-05-18 Paul Brook <paul@codesourcery.com> 354104834Sobrien 355218822Sdim * elf32-arm.c (ARM2THUMB_V5_STATIC_GLUE_SIZE): Define. 356218822Sdim (a2t1v5_ldr_insn, a2t1v5_ldr_insn): New. 357218822Sdim (record_arm_to_thumb_glue): Add v5t non-pic glue. 358218822Sdim (elf32_arm_create_thumb_stub): Ditto. 359104834Sobrien 360218822Sdim2007-05-16 H.J. Lu <hongjiu.lu@intel.com> 361218822Sdim Alan Modra <amodra@bigpond.net.au> 362104834Sobrien 363218822Sdim * elflink.c (_bfd_elf_adjust_dynamic_copy): Align dynamic bss 364218822Sdim section to the minimum alignment. 365104834Sobrien 366218822Sdim2007-05-15 H.J. Lu <hongjiu.lu@intel.com> 367218822Sdim Alan Modra <amodra@bigpond.net.au> 368104834Sobrien 369218822Sdim PR ld/4504 370218822Sdim * elf-bfd.h (_bfd_elf_adjust_dynamic_copy): New. 371218822Sdim * elflink.c (_bfd_elf_adjust_dynamic_copy): New. 372104834Sobrien 373218822Sdim * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Call 374218822Sdim _bfd_elf_adjust_dynamic_copy to adjust for the copy in dynamic 375218822Sdim bss section. 376218822Sdim * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise. 377218822Sdim * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise. 378218822Sdim * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. 379218822Sdim * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise. 380218822Sdim * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise. 381218822Sdim * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise. 382218822Sdim * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. 383218822Sdim * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. 384218822Sdim * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. 385218822Sdim * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise. 386218822Sdim * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise. 387218822Sdim * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. 388218822Sdim * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. 389218822Sdim * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise. 390218822Sdim * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise. 391218822Sdim * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Likewise. 392218822Sdim * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. 393218822Sdim 394218822Sdim2007-05-15 Richard Sandiford <richard@codesourcery.com> 395218822Sdim 396218822Sdim * elfxx-mips.c (mips_elf_create_local_got_entry): Remove 397218822Sdim input_section argument. Create .rela.dyn relocations against 398218822Sdim symbol 0 rather than the section symbol. 399218822Sdim (mips_elf_local_got_index): Remove input_section argument. 400218822Sdim Update call to mips_elf_create_local_got_entry. 401218822Sdim (mips_elf_got_page, mips_elf_got16_entry): Likewise. 402218822Sdim (mips_elf_calculate_relocation): Update calls to 403218822Sdim mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page. 404218822Sdim 405218822Sdim2007-05-15 Mark Shinwell <shinwell@codesourcery.com> 406218822Sdim 407218822Sdim * elf32-arm.c (elf32_arm_final_link_relocate): Correctly 408218822Sdim handle the Thumb-2 JUMP19 relocation. 409218822Sdim 410218822Sdim2007-05-15 Alan Modra <amodra@bigpond.net.au> 411218822Sdim 412218822Sdim PR 4479 413218822Sdim * elf.c (elf_fake_sections): Don't allow backend to change 414218822Sdim SHT_NOBITS if called for strip/objcopy --only-keep-debug. 415218822Sdim * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove similar 416218822Sdim fix from here. 417218822Sdim 418218822Sdim2007-05-14 Alan Modra <amodra@bigpond.net.au> 419218822Sdim 420218822Sdim * elf.c (bfd_elf_string_from_elf_section): Return NULL on 421218822Sdim invalid shstrndx. 422218822Sdim (bfd_elf_get_str_section): Likewise. 423218822Sdim 424218822Sdim2007-05-12 Alan Modra <amodra@bigpond.net.au> 425218822Sdim 426218822Sdim PR 4497 427218822Sdim * elf-eh-frame.c (struct cie): Add "local_personality". Make 428218822Sdim "personality" a union. 429218822Sdim (cie_eq): Compare local_personality too. Adjust personality 430218822Sdim comparison. 431218822Sdim (_bfd_elf_discard_section_eh_frame): Check binding on personality 432218822Sdim reloc sym to allow for bad symtab. Use stashed local syms rather 433218822Sdim than reading personality local sym. Handle discarded sections. 434218822Sdim 435218822Sdim2007-05-12 Alan Modra <amodra@bigpond.net.au> 436218822Sdim 437218822Sdim * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X. 438218822Sdim 439218822Sdim2007-05-11 Alan Modra <amodra@bigpond.net.au> 440218822Sdim 441218822Sdim * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype. 442218822Sdim (enum ppc_elf_plt_type): Move from.. 443218822Sdim * elf32-ppc.c: ..here. 444218822Sdim (struct ppc_elf_obj_tdata): Add makes_plt_call and has_rel16. 445218822Sdim (struct ppc_elf_link_hash_table): Reorder. Add old_bfd. Delete 446218822Sdim can_use_new_plt. Make is_vxworks a bitfield. 447218822Sdim (ppc_elf_link_hash_table_create): Don't clear is_vxworks (again). 448218822Sdim (ppc_elf_check_relocs): Update setting of reloc flags. Set old_bfd. 449218822Sdim (ppc_elf_select_plt_layout): Modify parameters. Use bfd reloc 450218822Sdim flags to better detect object files needing old bss-style plt. 451218822Sdim Allow secure plt to be used without rel16 relocs being detected. 452218822Sdim Warn if secure plt request cannot be allowed. 453218822Sdim 454218822Sdim2007-05-11 Alan Modra <amodra@bigpond.net.au> 455218822Sdim 456218822Sdim * reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define. 457218822Sdim * elf-bfd.h (struct elf_backend_data): Change return type of 458218822Sdim elf_backend_relocate_section to int. 459218822Sdim * elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and 460218822Sdim R_SPU_PPU64. 461218822Sdim (spu_elf_bfd_to_reloc_type): Convert new relocs. 462218822Sdim (spu_elf_count_relocs): New function. 463218822Sdim (elf_backend_count_relocs): Define. 464218822Sdim (spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and 465218822Sdim R_SPU_PPU64 relocs. 466218822Sdim * elflink.c (elf_link_input_bfd): Emit relocs if relocate_section 467218822Sdim returns 2. 468218822Sdim * bfd-in2.h: Regenerate. 469218822Sdim * libbfd.h: Regenerate. 470218822Sdim 471218822Sdim2007-05-10 Richard Sandiford <richard@codesourcery.com> 472218822Sdim 473218822Sdim * elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries 474218822Sdim for R_ARM_ABS12 relocs. 475218822Sdim (elf32_arm_finish_dynamic_symbol): Fix the loop that creates 476218822Sdim non-shared VxWorks PLT entries. 477218822Sdim 478218822Sdim2007-05-11 Alan Modra <amodra@bigpond.net.au> 479218822Sdim 480218822Sdim PR 4454 481218822Sdim * elf-eh-frame.c (struct cie): Make "personality" a bfd_vma. 482218822Sdim (_bfd_elf_discard_section_eh_frame): Handle local syms on 483218822Sdim personality relocation. 484218822Sdim 485218822Sdim2007-05-10 Richard Sandiford <richard@codesourcery.com> 486218822Sdim 487218822Sdim * elf.c (assign_file_positions_for_load_sections): Use p_memsz 488218822Sdim rather than p_filesz to calculate the LMA of the end of a segment. 489218822Sdim 490218822Sdim2007-05-10 Jakub Jelinek <jakub@redhat.com> 491218822Sdim 492218822Sdim * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc 493218822Sdim processing if symbol is defined in the executable. 494218822Sdim 495218822Sdim2007-05-10 Alexandre Oliva <aoliva@redhat.com> 496218822Sdim 497218822Sdim * elf32-frv.c (_frvfdpic_check_discarded_relocs): New. 498218822Sdim (frvfdpic_elf_discard_info): New. 499218822Sdim (elf_backend_discard_info): Define for FDPIC. 500218822Sdim 501218822Sdim2007-05-09 Mark Shinwell <shinwell@codesourcery.com> 502218822Sdim 503218822Sdim * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't 504218822Sdim attempt to scan if the bfd doesn't correspond to an ELF image. 505218822Sdim (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. 506218822Sdim 507218822Sdim2007-05-08 Alexandre Oliva <aoliva@redhat.com> 508218822Sdim 509218822Sdim * elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs 510218822Sdim for which _bfd_elf_section_offset returns -1. 511218822Sdim 512218822Sdim2007-05-08 Alan Modra <amodra@bigpond.net.au> 513218822Sdim 514218822Sdim * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms. 515218822Sdim (mark_functions_via_relocs): Likewise. 516218822Sdim 517218822Sdim2007-05-07 Alan Modra <amodra@bigpond.net.au> 518218822Sdim 519218822Sdim * elflink.c (bfd_elf_final_link): Correct reloc handling for 520218822Sdim elf_backend_count_relocs. 521218822Sdim (bfd_elf_discard_info): Print an error if we can't read syms. 522218822Sdim 523218822Sdim2007-05-07 Alan Modra <amodra@bigpond.net.au> 524218822Sdim 525218822Sdim * elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on 526218822Sdim invalid reloc code. 527218822Sdim (spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions. 528218822Sdim (elf_backend_gc_mark_hook, elf_backend_section_processing): Don't 529218822Sdim define. 530218822Sdim 531218822Sdim2007-05-07 Alan Modra <amodra@bigpond.net.au> 532218822Sdim 533218822Sdim * elf.c (assign_file_positions_for_load_sections): Don't check 534218822Sdim core segment. 535218822Sdim 536218822Sdim2007-05-04 H.J. Lu <hongjiu.lu@intel.com> 537218822Sdim 538218822Sdim * elflink.c (elf_link_sort_relocs): Return if both .rela.dyn 539218822Sdim and .rel.dyn aren't present. 540218822Sdim 541218822Sdim2007-05-04 Nick Clifton <nickc@redhat.com> 542218822Sdim 543218822Sdim * elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn 544218822Sdim sections are present examine the indirect sections in an attempt 545218822Sdim to compute the correct relocation size. If there is any 546218822Sdim ambiguity, produce an error and refuse to sort. 547218822Sdim 548218822Sdim2007-05-03 Sandra Loosemore <sandra@codesourcery.com> 549218822Sdim 550218822Sdim * elf32-arm.c (allocate_dynrelocs): Fix typo in comment. 551218822Sdim 552218822Sdim2007-05-03 Vincent Riviere <vincent.riviere@freesbee.fr> 553218822Sdim Nick Clifton <nickc@redhat.com> 554218822Sdim 555218822Sdim PR gas/3041 556218822Sdim * aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols 557218822Sdim in the same way as relocs against external symbols. 558218822Sdim 559218822Sdim2007-05-02 Alan Modra <amodra@bigpond.net.au> 560218822Sdim 561218822Sdim * elf.c (assign_file_positions_for_load_sections): Set sh_offset 562218822Sdim here. Set sh_type to SHT_NOBITS if we won't be allocating 563218822Sdim file space. Don't bump p_memsz for non-alloc sections. Adjust 564218822Sdim section-in-segment check. 565218822Sdim (assign_file_positions_for_non_load_sections): Don't set sh_offset 566218822Sdim here for sections that have already been handled above. 567218822Sdim 568218822Sdim2007-04-30 Alan Modra <amodra@bigpond.net.au> 569218822Sdim 570218822Sdim * elf32-spu.c (struct spu_link_hash_table): Add stack_analysis 571218822Sdim and emit_stack_syms bitfields. 572218822Sdim (get_sym_h): Read all symbols if stack analysis will be done. 573218822Sdim (spu_elf_create_sections): Add stack_analysis and emit_stack_syms 574218822Sdim params, and stash in hash table. 575218822Sdim (is_hint): Split off from.. 576218822Sdim (is_branch): ..here. Adjust callers. 577218822Sdim (spu_elf_size_stubs): Add stack_analysis param. Arrange to read 578218822Sdim and keep all syms. 579218822Sdim (write_one_stub): Fix mem leak. 580218822Sdim (find_function_stack_adjust): New function. 581218822Sdim (sort_syms_syms, sort_syms_psecs): New vars. 582218822Sdim (sort_syms): New function. 583218822Sdim (struct call_info, struct function_info): New. 584218822Sdim (struct spu_elf_stack_info): New. 585218822Sdim (alloc_stack_info, maybe_insert_function, func_name): New functions. 586218822Sdim (is_nop, insns_at_end, check_function_ranges): Likewise. 587218822Sdim (find_function, insert_callee, mark_functions_via_relocs): Likewise. 588218822Sdim (pasted_function, interesting_section, discover_functions): Likewise. 589218822Sdim (mark_non_root, call_graph_traverse, build_call_tree): Likewise. 590218822Sdim (sum_stack, spu_elf_stack_analysis, spu_elf_final_link): Likewise. 591218822Sdim (bfd_elf32_bfd_final_link): Define. 592218822Sdim * elf32-spu.h (struct _spu_elf_section_data): Add stack_info field. 593218822Sdim (spu_elf_create_sections, spu_elf_size_stubs): Update prototypes. 594218822Sdim 595218822Sdim2007-04-28 Sergey Rogozhkin <rogozhkin@niisi.msk.ru> 596218822Sdim 597218822Sdim * elfxx-mips.c (mips_elf_create_dynamic_relocation): Don't access 598218822Sdim memory which we might not own. 599218822Sdim 600218822Sdim2007-04-27 Bob Wilson <bob.wilson@acm.org> 601218822Sdim 602218822Sdim * elf32-xtensa.c (elf_xtensa_make_sym_local): Restore deleted function. 603218822Sdim (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Likewise. 604218822Sdim (elf_xtensa_allocate_dynrelocs): Use elf_xtensa_make_sym_local. 605218822Sdim 606218822Sdim2007-04-27 Bob Wilson <bob.wilson@acm.org> 607218822Sdim 608218822Sdim * elf32-xtensa.c (xtensa_read_table_entries): Step through table 609218822Sdim contents and relocs in parallel. 610218822Sdim 611218822Sdim2007-04-27 Bob Wilson <bob.wilson@acm.org> 612218822Sdim 613218822Sdim * elf32-xtensa.c (relax_property_section): Remove extra irel increment. 614218822Sdim 615218822Sdim2007-04-27 Alan Modra <amodra@bigpond.net.au> 616218822Sdim 617218822Sdim * cpu-rs6000.c: Write Mimi's name in ASCII. 618218822Sdim * coff-rs6000.c: Likewise. 619218822Sdim * rs6000-core.c: Likewise. 620218822Sdim 621218822Sdim2007-04-27 Alan Modra <amodra@bigpond.net.au> 622218822Sdim 623218822Sdim * sysdep.h: Include config.h first. 624218822Sdim Many files: Include sysdep.h before bfd.h. 625218822Sdim * Makefile.am: Run "make dep-am". 626104834Sobrien * Makefile.in: Regenerate. 627104834Sobrien 628218822Sdim2007-04-25 Alan Modra <amodra@bigpond.net.au> 629104834Sobrien 630218822Sdim * sysdep.h: Revert last change. 631104834Sobrien 632218822Sdim2007-04-24 Nick Clifton <nickc@redhat.com> 633218822Sdim 634218822Sdim * coffcode.h (coff_slurp_reloc_table): Initialise dst.r_offset. 635218822Sdim * coff-m68k.c (m68kcoff_rtype_to_howto): Initialize relent.howto. 636218822Sdim 637218822Sdim2007-04-24 Alan Modra <amodra@bigpond.net.au> 638218822Sdim 639218822Sdim * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if 640218822Sdim eh_frame_hdr table won't be created. 641218822Sdim 642218822Sdim2007-04-24 Alan Modra <amodra@bigpond.net.au> 643218822Sdim 644218822Sdim * acinclude.m4: Include config/stdint.m4. 645218822Sdim * configure.in: Invoke GCC_HEADER_STDINT. 646218822Sdim * sysdep.h: Don't include ansidecl.h here. 647218822Sdim * configure: Regenerate. 648218822Sdim * config.in: Regenerate. 649104834Sobrien * Makefile.in: Regenerate. 650104834Sobrien 651218822Sdim2007-04-23 Nathan Sidwell <nathan@codesourcery.com> 652104834Sobrien 653218822Sdim * archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac, 654218822Sdim bfd_mach_mcf_isa_c_emac): New. 655218822Sdim * elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry, 656218822Sdim elf_isac_plt_entry, elf_isac_plt_info): New. 657218822Sdim (elf32_m68k_object_p): Add ISA_C. 658218822Sdim (elf32_m68k_print_private_bfd_data): Print ISA_C. 659218822Sdim (elf32_m68k_get_plt_info): Detect ISA_C. 660218822Sdim * cpu-m68k.c (arch_info): Add ISAC. 661218822Sdim (m68k_arch_features): Likewise, 662218822Sdim (bfd_m68k_compatible): ISAs B & C are not compatible. 663104834Sobrien 664218822Sdim2007-04-21 Nick Clifton <nickc@redhat.com> 665104834Sobrien 666218822Sdim * ecoff.c (_bfd_ecoff_write_armap): Initialise rehash. 667218822Sdim (ecoff_link_add_archive_symbols): Likewise. 668218822Sdim * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise 669218822Sdim relent.howto. 670218822Sdim * ieee.c (parse_int): Initialise x. 671218822Sdim (must_parse_int): Initialise result. 672218822Sdim (ieee_slurp_external_symbols): Initialise value. 673104834Sobrien 674218822Sdim2007-04-21 Alan Modra <amodra@bigpond.net.au> 675104834Sobrien 676218822Sdim * config.bfd (spu-*-elf): Delete targ_selvecs. 677104834Sobrien 678218822Sdim2007-04-19 Nick Clifton <nickc@redhat.com> 67999461Sobrien 680218822Sdim * coffcode.h (coff_rtype_to_howto): Initialise genrel.howto. 681104834Sobrien 682218822Sdim2007-04-19 Alan Modra <amodra@bigpond.net.au> 683218822Sdim 684218822Sdim * bfd.c (bfd_demangle): New function. 685218822Sdim * Makefile.am: Run "make dep-am". 686218822Sdim * Makefile.in: Regenerate. 687104834Sobrien * bfd-in2.h: Regenerate. 688104834Sobrien 689218822Sdim2007-04-18 Matthias Klose <doko@ubuntu.com> 690104834Sobrien 691218822Sdim * Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion. 692218822Sdim (bfdver.h): Use the date in non-release builds for the soversion. 693218822Sdim * Makefile.in: Regenerate. 69499461Sobrien 695218822Sdim2007-04-17 Paul Brook <paul@codesourcery.com> 69699461Sobrien 697218822Sdim * elf.c (_bfd_elf_is_function_type): New function. 698218822Sdim * elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type. 699218822Sdim (_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p, 700218822Sdim is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto. 701218822Sdim * elf-bfd.h (elf_backend_data): Add is_function_type. 702218822Sdim (_bfd_elf_is_function_type): Add prototype. 703218822Sdim * elfxx-target.h (elf_backend_is_function_type): Add default 704218822Sdim definition. 705218822Sdim (elfNN_bed): Add elf_backend_is_function_type. 706218822Sdim * elf32-arm.c (elf32_arm_is_function_type): New function. 707218822Sdim (elf_backend_is_function_type): Define. 708104834Sobrien 709218822Sdim2007-04-17 Daniel Jacobowitz <dan@codesourcery.com> 710104834Sobrien 711218822Sdim * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put 712218822Sdim DT_MIPS_RLD_MAP before DT_DEBUG again. 713104834Sobrien 714218822Sdim2007-04-14 Steve Ellcey <sje@cup.hp.com> 715104834Sobrien 716218822Sdim * Makefile.am: Add ACLOCAL_AMFLAGS. 717218822Sdim * configure.in: Change macro call order. 718218822Sdim * Makefile.in: Regnerate. 719218822Sdim * doc/Makefile.in: Regenerate. 720218822Sdim * configure: Regenerate. 72199461Sobrien 722218822Sdim2007-04-14 Jakub Jelinek <jakub@redhat.com> 72399461Sobrien 724218822Sdim * elflink.c (bfd_elf_final_link): Don't free symbuf for 725218822Sdim non-elf input bfds. 726218822Sdim (bfd_elf_size_dynamic_sections): Don't access elf_section_data 727218822Sdim for non-elf input bfds. 72894536Sobrien 729218822Sdim2007-04-12 Richard Sandiford <richard@codesourcery.com> 730104834Sobrien 731218822Sdim * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add 732218822Sdim DT_MIPS_RTLD_MAP for PIEs. 733104834Sobrien 734218822Sdim2007-04-12 Richard Sandiford <richard@codesourcery.com> 735104834Sobrien 736218822Sdim * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL 737218822Sdim when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation 738218822Sdim in a read-only section. 739218822Sdim (_bfd_mips_elf_check_relocs): Likewise. 740104834Sobrien 741218822Sdim2007-04-12 Bob Wilson <bob.wilson@acm.org> 742104834Sobrien 743218822Sdim * elf32-xtensa.c (xtensa_is_insntable_section): New. 744218822Sdim (xtensa_is_proptable_section): New. 745218822Sdim (elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property 746218822Sdim tables with 12-byte entries, as well as tables with 8-byte entries. 747218822Sdim Sort the relocations before examining them. 748218822Sdim (relax_property_section): Use xtensa_is_proptable_section and 749218822Sdim xtensa_is_littable_section. Rewrite code for combining table entries 750218822Sdim to be more robust in case of unexpected relocations. Do not set offset 751218822Sdim of unused relocations to less than zero. 752218822Sdim (xtensa_is_property_section): Use other functions instead of 753218822Sdim duplicating section name comparisons. 754218822Sdim (xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.". 755218822Sdim (xtensa_get_property_predef_flags): Use xtensa_is_insntable_section. 756104834Sobrien 757218822Sdim2007-04-12 Bob Wilson <bob.wilson@acm.org> 758104834Sobrien 759218822Sdim * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references 760218822Sdim from Xtensa property sections. 761218822Sdim 762218822Sdim2007-04-12 Alan Modra <amodra@bigpond.net.au> 763218822Sdim 764218822Sdim * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data 765218822Sdim is non-NULL before dereferencing. 766218822Sdim 767218822Sdim2007-04-11 Nathan Sidwell <nathan@codesourcery.com> 768218822Sdim 769218822Sdim * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot 770218822Sdim relocs too. 771218822Sdim 772218822Sdim2007-04-10 Richard Henderson <rth@redhat.com> 773218822Sdim 774218822Sdim * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip. 775218822Sdim (elf64_alpha_size_got_sections): Remove unused something_changed local. 776218822Sdim (elf64_alpha_size_plt_section): Return void. 777218822Sdim (elf64_alpha_size_rela_got_section): Likewise. 778218822Sdim (elf64_alpha_relax_section): Only regenerate got+plt if the 779218822Sdim relax_trip counter has changed. 780218822Sdim 781218822Sdim2007-04-09 Daniel Jacobowitz <dan@codesourcery.com> 782218822Sdim 783218822Sdim * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi. 784218822Sdim * doc/Makefile.am (DOCFILES): Add bfdver.texi. 785218822Sdim (bfdver.texi): New rule. 786218822Sdim * Makefile.in, doc/Makefile.in: Regenerated. 787218822Sdim 788218822Sdim2007-04-03 Matt Thomas <matt@netbsd.org> 789218822Sdim 790218822Sdim * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc 791218822Sdim in a shared object if it is not in a CODE section or if it is against 792218822Sdim a section symbol. This allows DWARF2 to use pcrel format. 793218822Sdim 794218822Sdim2007-04-05 H.J. Lu <hongjiu.lu@intel.com> 795218822Sdim 796218822Sdim PR ld/4304 797218822Sdim * elflink.c (bfd_elf_final_link): Call einfo callback in 798218822Sdim bfd_link_info instead of _bfd_error_handler for DT_TEXTREL 799218822Sdim warning. 800218822Sdim 801218822Sdim2007-04-05 Alan Modra <amodra@bigpond.net.au> 802218822Sdim 803218822Sdim * elf32-spu.c (spu_elf_output_symbol_hook): New function. 804218822Sdim (elf_backend_link_output_symbol_hook): Define. 805218822Sdim 806218822Sdim2007-04-02 Nick Clifton <nickc@redhat.com> 807218822Sdim 808218822Sdim PR binutils/4292 809218822Sdim * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit 810218822Sdim targets as 64-bit values, even if running on a 64-bit host. 811218822Sdim * coffgen.c (coff_print_symbol): Likewise. 812218822Sdim 813218822Sdim2007-03-29 Nick Clifton <nickc@redhat.com> 814218822Sdim 815218822Sdim PR binutils/4110 816218822Sdim * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro. 817218822Sdim (setup_group): Use it. Report corrupt group section headers. 818218822Sdim (bfd_section_from_shdr): Use new macro. Replace constant 4 with 819218822Sdim GRP_ENTRY_SIZE. Cope with NULLs in the group section table. 820218822Sdim (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE. 821218822Sdim 822218822Sdim2007-03-29 Alan Modra <amodra@bigpond.net.au> 823218822Sdim 824218822Sdim PR ld/4267 825218822Sdim * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma 826218822Sdim for rel->r_info values. 827218822Sdim (bfd_elf_perform_complex_relocation): Likewise. 828218822Sdim * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for 829218822Sdim unused entries. Don't clear plt.plist in loop. 830218822Sdim 831218822Sdim2007-03-28 Richard Sandiford <richard@codesourcery.com> 832218822Sdim 833218822Sdim * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela. 834218822Sdim * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32): 835218822Sdim Merge into... 836218822Sdim (sparc_elf_append_rela): ...this new function. 837218822Sdim (SPARC_ELF_APPEND_RELA): Delete. 838218822Sdim (_bfd_sparc_elf_link_hash_table_create): Don't initialize 839218822Sdim the deleted append_rela field. 840218822Sdim (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela 841218822Sdim instead of SPARC_ELF_APPEND_RELA. 842218822Sdim (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the 843218822Sdim elf_size_info structure to find the size of a RELA entry and 844218822Sdim the associated swap-out function. 845218822Sdim (sparc64_finish_dyn, sparc64_finish_dyn): Merge into... 846218822Sdim (sparc_finish_dyn): ...this new function. 847218822Sdim (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly. 848218822Sdim 849218822Sdim2007-03-28 Richard Sandiford <richard@codesourcery.com> 850218822Sdim Phil Edwards <phil@codesourcery.com> 851218822Sdim 852218822Sdim * doc/bfd.texinfo: Put the contents after the title page rather 853218822Sdim than at the end of the document. 854218822Sdim 855218822Sdim2007-03-27 Andreas Schwab <schwab@suse.de> 856218822Sdim 857218822Sdim * elfxx-ia64.c (elf_backend_default_execstack): Define to 0. 858218822Sdim 859218822Sdim2007-03-26 H.J. Lu <hongjiu.lu@intel.com> 860218822Sdim 861218822Sdim * configure: Regenerated. 862218822Sdim 863218822Sdim2007-03-26 Alan Modra <amodra@bigpond.net.au> 864218822Sdim 865218822Sdim * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields. 866218822Sdim (allocate_spuear_stubs): New function. 867218822Sdim (spu_elf_size_stubs): Call allocate_spuear_stubs. 868218822Sdim 869218822Sdim2007-03-26 Alan Modra <amodra@bigpond.net.au> 870218822Sdim 871218822Sdim * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define. 872218822Sdim * aout-arm.c (MY_bfd_reloc_name_lookup): Define. 873218822Sdim (MY (bfd_reloc_name_lookup)): New function. 874218822Sdim * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function. 875218822Sdim * aout-target.h (NAME (aout, reloc_name_lookup)): Declare. 876218822Sdim (MY_bfd_reloc_name_lookup): Define. 877218822Sdim * aout-tic30.c (tic30_aout_reloc_name_lookup): New function. 878218822Sdim (MY_bfd_reloc_name_lookup): Define. 879218822Sdim * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare. 880218822Sdim (NAME (aout, reloc_name_lookup)): New function. 881218822Sdim * bout.c (b_out_bfd_reloc_name_lookup): New function. 882218822Sdim * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function. 883218822Sdim (_bfd_ecoff_bfd_reloc_name_lookup): Define. 884218822Sdim * coff-arm.c (coff_arm_reloc_name_lookup): New function. 885218822Sdim (coff_bfd_reloc_name_lookup): Define. 886218822Sdim * coff-i386.c (coff_bfd_reloc_name_lookup): Define. 887218822Sdim (coff_i386_reloc_name_lookup): New function. 888218822Sdim * coff-i860.c (coff_i860_reloc_name_lookup): New function. 889218822Sdim (coff_bfd_reloc_name_lookup): Define. 890218822Sdim * coff-i960.c (coff_i960_reloc_name_lookup): New function. 891218822Sdim (coff_bfd_reloc_name_lookup): Define. 892218822Sdim * coff-m68k.c (m68k_reloc_name_lookup): New function. 893218822Sdim (coff_bfd_reloc_name_lookup): Define. 894218822Sdim * coff-maxq.c (maxq_reloc_name_lookup): New function. 895218822Sdim (coff_bfd_reloc_name_lookup): Define. 896218822Sdim * coff-mcore.c (mcore_coff_reloc_name_lookup): New function. 897218822Sdim (coff_bfd_reloc_name_lookup): Define. 898218822Sdim * coff-mips.c (mips_bfd_reloc_name_lookup): New function. 899218822Sdim (_bfd_ecoff_bfd_reloc_name_lookup): Define. 900218822Sdim * coff-ppc.c (ppc_coff_reloc_name_lookup): New function. 901218822Sdim (coff_bfd_reloc_name_lookup): Define. 902218822Sdim * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define. 903218822Sdim (_bfd_xcoff_reloc_name_lookup): New function. 904218822Sdim (rs6000coff_vec, pmac_xcoff_vec): Init new field. 905218822Sdim * coff-sh.c (coff_bfd_reloc_name_lookup): Define. 906218822Sdim (sh_coff_reloc_name_lookup): New function. 907218822Sdim * coff-sparc.c (coff_sparc_reloc_name_lookup): New function. 908218822Sdim (coff_bfd_reloc_name_lookup): Define. 909218822Sdim * coff-tic30.c (coff_bfd_reloc_name_lookup): Define. 910218822Sdim (tic30_coff_reloc_name_lookup): New function. 911218822Sdim * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define. 912218822Sdim (tic4x_coff_reloc_name_lookup): New function. 913218822Sdim * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define. 914218822Sdim (tic54x_coff_reloc_name_lookup): New function. 915218822Sdim * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define. 916218822Sdim (coff_amd64_reloc_name_lookup): New function. 917218822Sdim * coff-z80.c (coff_z80_reloc_name_lookup): New function. 918218822Sdim (coff_bfd_reloc_name_lookup): Define. 919218822Sdim * coff-z8k.c (coff_z8k_reloc_name_lookup): New function. 920218822Sdim (coff_bfd_reloc_name_lookup): Define. 921218822Sdim * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define. 922218822Sdim (xcoff64_reloc_name_lookup): New function. 923218822Sdim (rs6000coff64_vec, aix5coff64_vec): Init new field. 924218822Sdim * coffcode.h (coff_bfd_reloc_name_lookup): Define. 925218822Sdim * elf-hppa.h (elf_hppa_reloc_name_lookup): New function. 926218822Sdim * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function. 927218822Sdim * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function. 928218822Sdim * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function. 929218822Sdim * elf32-arm.c (elf32_arm_reloc_name_lookup): New function. 930218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 931218822Sdim * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function. 932218822Sdim * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function. 933218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 934218822Sdim * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function. 935218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 936218822Sdim * elf32-cris.c (cris_reloc_name_lookup): New function. 937218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 938218822Sdim * elf32-crx.c (elf_crx_reloc_name_lookup): New function. 939218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 940218822Sdim * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function. 941218822Sdim * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function. 942218822Sdim * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function. 943218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 944218822Sdim * elf32-fr30.c (fr30_reloc_name_lookup): New function. 945218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 946218822Sdim * elf32-frv.c (frv_reloc_name_lookup): New function. 947218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 948218822Sdim * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define. 949218822Sdim * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function. 950218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 951218822Sdim * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define. 952218822Sdim * elf32-i370.c (i370_elf_reloc_name_lookup): New function. 953218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 954218822Sdim * elf32-i386.c (elf_i386_reloc_name_lookup): New function. 955218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 956218822Sdim * elf32-i860.c (elf32_i860_reloc_name_lookup): New function. 957218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 958218822Sdim * elf32-i960.c (elf32_i960_reloc_name_lookup): New function. 959218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 960218822Sdim * elf32-ip2k.c (ip2k_reloc_name_lookup): New function. 961218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 962218822Sdim * elf32-iq2000.c (iq2000_reloc_name_lookup): New function. 963218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 964218822Sdim * elf32-m32c.c (m32c_reloc_name_lookup): New function. 965218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 966218822Sdim * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function. 967218822Sdim * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function. 968218822Sdim * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function. 969218822Sdim * elf32-m68k.c (reloc_name_lookup): New function. 970218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 971218822Sdim * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define. 972218822Sdim * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function. 973218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 974218822Sdim * elf32-mep.c (mep_reloc_name_lookup): New function. 975218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 976218822Sdim * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function. 977218822Sdim (mips_vxworks_bfd_reloc_name_lookup): Likewise. 978218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 979218822Sdim * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function. 980218822Sdim * elf32-mt.c (mt_reloc_name_lookup): New function. 981218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 982218822Sdim * elf32-openrisc.c (openrisc_reloc_name_lookup): New function. 983218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 984218822Sdim * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function. 985218822Sdim * elf32-pj.c (pj_elf_reloc_name_lookup): New function. 986218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 987218822Sdim * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function. 988218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 989218822Sdim * elf32-s390.c (elf_s390_reloc_name_lookup): New function. 990218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 991218822Sdim * elf32-score.c (elf32_score_reloc_name_lookup): New function. 992218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 993218822Sdim * elf32-sh.c (sh_elf_reloc_name_lookup): New function. 994218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 995218822Sdim * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define. 996218822Sdim * elf32-spu.c (spu_elf_reloc_name_lookup): New function. 997218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 998218822Sdim * elf32-v850.c (v850_elf_reloc_name_lookup): New function. 999218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 1000218822Sdim * elf32-vax.c (reloc_name_lookup): New function. 1001218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 1002218822Sdim * elf32-xc16x.c (xc16x_reloc_name_lookup): New function. 1003218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 1004218822Sdim * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function. 1005218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 1006218822Sdim * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function. 1007218822Sdim (bfd_elf32_bfd_reloc_name_lookup): Define. 1008218822Sdim * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function. 1009218822Sdim (bfd_elf64_bfd_reloc_name_lookup): Define. 1010218822Sdim * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define. 1011218822Sdim * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define. 1012218822Sdim * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function. 1013218822Sdim * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function. 1014218822Sdim * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function. 1015218822Sdim (bfd_elf64_bfd_reloc_name_lookup): Define. 1016218822Sdim * elf64-s390.c (elf_s390_reloc_name_lookup): New function. 1017218822Sdim (bfd_elf64_bfd_reloc_name_lookup): Define. 1018218822Sdim * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function. 1019218822Sdim (bfd_elf64_bfd_reloc_name_lookup): Define. 1020218822Sdim * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define. 1021218822Sdim * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function. 1022218822Sdim (bfd_elf64_bfd_reloc_name_lookup): Define. 1023218822Sdim * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function. 1024218822Sdim * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function. 1025218822Sdim (bfd_elfNN_bfd_reloc_name_lookup): Define. 1026218822Sdim * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function. 1027218822Sdim * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare. 1028218822Sdim * i386msdos.c (msdos_bfd_reloc_name_lookup): Define. 1029218822Sdim * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define. 1030218822Sdim * ieee.c (ieee_bfd_reloc_name_lookup): Define. 1031218822Sdim * libaout.h (NAME (aout, reloc_name_lookup)): Declare. 1032218822Sdim * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare. 1033218822Sdim * mipsbsd.c (MY_bfd_reloc_name_lookup): Define. 1034218822Sdim (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup). 1035218822Sdim (MY(reloc_name_lookup)): New function. 1036218822Sdim * nlm-target.h (nlm_bfd_reloc_name_lookup): Define. 1037218822Sdim * oasys.c (oasys_bfd_reloc_name_lookup): Define. 1038218822Sdim * pdp11.c (NAME (aout, reloc_name_lookup)): New function. 1039218822Sdim * pe-mips.c (coff_mips_reloc_name_lookup): New function. 1040218822Sdim (coff_bfd_reloc_name_lookup): Define. 1041218822Sdim * reloc.c (bfd_reloc_name_lookup): New function. 1042218822Sdim * riscix.c (riscix_reloc_name_lookup): New function. 1043218822Sdim (MY_bfd_reloc_name_lookup): Define. 1044218822Sdim * som.c (som_bfd_reloc_name_lookup): New function. 1045218822Sdim * targets.c (struct bfd_target): Add reloc_name_lookup. 1046218822Sdim (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup. 1047218822Sdim * versados.c (versados_bfd_reloc_name_lookup): Define. 1048218822Sdim * vms.c (vms_bfd_reloc_name_lookup): New function. 1049218822Sdim * bfd-in2.h: Regenerate. 1050218822Sdim * libbfd.h: Regenerate. 1051218822Sdim 1052218822Sdim2007-03-26 Thiemo Seufer <ths@mips.com> 1053218822Sdim 1054218822Sdim PR ld/4208 1055218822Sdim * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no 1056218822Sdim matching relocation is found. 1057218822Sdim (_bfd_mips_elf_relocate_section): Only warn about missing relocations. 1058218822Sdim 1059218822Sdim2007-03-23 H.J. Lu <hongjiu.lu@intel.com> 1060218822Sdim 1061218822Sdim * configure: Regenerated. 1062218822Sdim 1063218822Sdim2007-03-23 Joseph Myers <joseph@codesourcery.com> 1064218822Sdim 1065218822Sdim * configure.in: Use ACX_PKGVERSION and ACX_BUGURL. 1066130561Sobrien * configure: Regenerate. 1067104834Sobrien 1068218822Sdim2007-03-23 Alan Modra <amodra@bigpond.net.au> 1069104834Sobrien 1070218822Sdim * elf32-spu.c (spu_stub_name): Don't put input section in stub name. 1071218822Sdim Remove input_sec param. Adjust all calls. 1072218822Sdim (write_one_stub): Adjust stub symbol. 1073218822Sdim (needs_ovl_stub): New function, extracted from.. 1074218822Sdim (spu_elf_size_stubs): ..here. 1075218822Sdim (spu_elf_relocate_section): Use needs_ovl_stub. 1076104834Sobrien 1077218822Sdim2007-03-22 Joseph Myers <joseph@codesourcery.com> 1078104834Sobrien 1079218822Sdim * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi 1080218822Sdim if nonempty. 1081218822Sdim * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix. 1082218822Sdim * Makefile.in, configure, doc/Makefile.in: Regenerate. 1083104834Sobrien 1084218822Sdim2007-03-22 H.J. Lu <hongjiu.lu@intel.com> 1085104834Sobrien 1086218822Sdim PR ld/4210 1087218822Sdim * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual 1088218822Sdim address and virtual size of the last section for the image 1089218822Sdim size. 1090218822Sdim 1091218822Sdim2007-03-22 H.J. Lu <hongjiu.lu@intel.com> 1092218822Sdim 1093218822Sdim PR ld/4007 1094218822Sdim * elf.c (assign_file_positions_for_load_sections): Check if 1095218822Sdim all sections are in the segment. 1096218822Sdim 1097218822Sdim2007-03-20 H.J. Lu <hongjiu.lu@intel.com> 1098218822Sdim 1099218822Sdim PR ld/4208 1100218822Sdim * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing 1101218822Sdim matching LO16 relocation for HI16 relocation. 1102218822Sdim 1103218822Sdim2007-03-20 Paul Brook <paul@codesourcery.com> 1104218822Sdim 1105218822Sdim * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype. 1106104834Sobrien * bfd-in2.h: Regenerate. 1107218822Sdim * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer. 1108218822Sdim (record_arm_to_thumb_glue): Use globals->pic_veneer. 1109218822Sdim (elf32_arm_create_thumb_stub): Ditto. 1110218822Sdim (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer. 1111104834Sobrien 1112218822Sdim2007-03-18 Mark Shinwell <shinwell@codesourcery.com> 111394536Sobrien 1114218822Sdim * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *" 1115218822Sdim argument and extra last argument. 1116104834Sobrien * bfd-in2.h: Regenerate. 1117218822Sdim * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning 1118218822Sdim member. 1119218822Sdim (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and 1120218822Sdim extra last argument. Set no_enum_size_warning appropriately. 1121218822Sdim (elf32_arm_merge_eabi_attributes): Improve enum sizes 1122218822Sdim diagnostic, suppressing it when no_enum_size_warning dictates. 112394536Sobrien 1124218822Sdim2007-03-20 Nick Clifton <nickc@redhat.com> 1125104834Sobrien 1126218822Sdim PR binutils/3535 1127218822Sdim * elf.c (copy_private_bfd_data): Widen the scope of Solaris 1128218822Sdim specific conditions that need the program headers to be 1129218822Sdim rewritten. 113094536Sobrien 1131218822Sdim2007-03-19 H.J. Lu <hongjiu.lu@intel.com> 1132104834Sobrien 1133218822Sdim * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic, 1134218822Sdim MajorLinkerVersion, MinorLinkerVersion, SizeOfCode, 1135218822Sdim SizeOfInitializedData, SizeOfUninitializedData, 1136218822Sdim AddressOfEntryPoint, BaseOfCode and BaseOfData in internal 1137218822Sdim extra PE a.out header. 1138218822Sdim (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined. 1139218822Sdim (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not 1140218822Sdim defined. 1141218822Sdim (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not 1142218822Sdim defined. 1143218822Sdim (_bfd_XX_print_private_bfd_data_common): Also print Magic, 1144218822Sdim MajorLinkerVersion, MinorLinkerVersion, SizeOfCode, 1145218822Sdim SizeOfInitializedData, SizeOfUninitializedData, 1146218822Sdim AddressOfEntryPoint, BaseOfCode and BaseOfData from internal 1147218822Sdim extra PE a.out header. 1148104834Sobrien 1149218822Sdim2007-03-18 H.J. Lu <hongjiu.lu@intel.com> 1150104834Sobrien 1151218822Sdim * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec 1152218822Sdim only if BFD64 is defined. 1153104834Sobrien 1154218822Sdim2007-03-17 Alan Modra <amodra@bigpond.net.au> 1155104834Sobrien 1156218822Sdim * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub 1157218822Sdim on setjmp calls. 115894536Sobrien 1159218822Sdim2007-03-15 H.J. Lu <hongjiu.lu@intel.com> 116092828Sobrien 1161218822Sdim * doc/Makefile.in: Regenerated. 116292828Sobrien 1163218822Sdim2007-03-15 H.J. Lu <hongjiu.lu@intel.com> 116492828Sobrien 1165218822Sdim * Makefile.am (bfdver.h): Substitute report_bugs_to. Also 1166218822Sdim create doc/bfdver.texi. 1167218822Sdim * Makefile.in: Regenerated. 1168104834Sobrien 1169218822Sdim * configure.in (--with-bugurl): New option. 1170218822Sdim * configure: Regenerated. 117192828Sobrien 1172218822Sdim * version.h (REPORT_BUGS_TO): New. 117392828Sobrien 1174218822Sdim2007-03-13 H.J. Lu <hongjiu.lu@intel.com> 117592828Sobrien 1176218822Sdim PR binutils/3826 1177218822Sdim * elf-bfd.h (elf_backend_data): Add elf_osabi. 1178218822Sdim (_bfd_elf_set_osabi): New. 1179104834Sobrien 1180218822Sdim * elf.c (_bfd_elf_set_osabi): New. 1181104834Sobrien 1182218822Sdim * elf32-hppa.c (elf32_hppa_post_process_headers): Removed. 1183218822Sdim (elf_backend_post_process_headers): Defined with 1184218822Sdim _bfd_elf_set_osabi. 1185218822Sdim (ELF_OSABI): Properly defined for each target. 1186104834Sobrien 1187218822Sdim * elf32-i370.c (i370_elf_post_process_headers): Removed. 1188218822Sdim (ELF_OSABI): Defined. 1189218822Sdim (elf_backend_post_process_headers): Defined with 1190218822Sdim _bfd_elf_set_osabi. 1191104834Sobrien 1192218822Sdim * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for 1193218822Sdim freebsd. 1194218822Sdim (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi. 119591041Sobrien 1196218822Sdim * elf32-msp430.c (elf32_msp430_post_process_headers): Removed. 1197218822Sdim (ELF_OSABI): Defined. 1198218822Sdim (elf_backend_post_process_headers): Defined with 1199218822Sdim _bfd_elf_set_osabi. 120091041Sobrien 1201218822Sdim * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for 1202218822Sdim freebsd. 1203218822Sdim (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with 1204218822Sdim elf_osabi. 1205104834Sobrien 1206218822Sdim * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI 1207218822Sdim with elf_osabi. 1208218822Sdim (ELF_OSABI): Properly defined for each target. 1209218822Sdim (elf_backend_post_process_headers): Defined with 1210218822Sdim _bfd_elf_set_osabi for Linux. 1211104834Sobrien 1212218822Sdim * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed. 1213218822Sdim (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd. 1214218822Sdim (elf_backend_post_process_headers): Defined with 1215218822Sdim _bfd_elf_set_osabi. 1216104834Sobrien 1217218822Sdim * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed. 1218218822Sdim (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd. 1219218822Sdim (elf_backend_post_process_headers): Defined with 1220218822Sdim _bfd_elf_set_osabi. 1221104834Sobrien 1222218822Sdim * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target 1223218822Sdim with any ELF target of the compatible machine for which we do not 1224218822Sdim have a specific backend. 122591041Sobrien 1226218822Sdim * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI 1227218822Sdim with elf_osabi. 122891041Sobrien 1229218822Sdim * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE. 1230218822Sdim (elfNN_bed): Initialize elf_osabi with ELF_OSABI. 123191041Sobrien 1232218822Sdim2007-03-08 Alan Modra <amodra@bigpond.net.au> 123391041Sobrien 1234218822Sdim * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out 1235218822Sdim V850_OTHER_* bits. 1236104834Sobrien 1237218822Sdim2007-03-08 Alan Modra <amodra@bigpond.net.au> 1238104834Sobrien 1239218822Sdim * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo. 1240218822Sdim (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c. 1241218822Sdim Run "make dep-am". 1242218822Sdim * Makefile.in: Regenerate. 1243218822Sdim * po/SRC-POTFILES.in: Regenerate. 1244104834Sobrien 1245218822Sdim2007-03-07 H.J. Lu <hongjiu.lu@intel.com> 1246104834Sobrien 1247218822Sdim * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec. 1248218822Sdim (x86_64-*-kfreebsd*-gnu): Likewise. 1249218822Sdim (x86_64-*-netbsd*): Likewise. 1250218822Sdim (x86_64-*-openbsd*): Likewise. 1251218822Sdim (x86_64-*-linux-*): Likewise. 125291041Sobrien 1253218822Sdim * configure.in: Support bfd_efi_app_x86_64_vec. 1254218822Sdim * configure: Regenerated. 125591041Sobrien 1256218822Sdim * efi-app-x86_64.c: New file. 125791041Sobrien 1258218822Sdim * targets.c (bfd_efi_app_x86_64_vec): New. 1259218822Sdim (_bfd_target_vector): Add bfd_efi_app_x86_64_vec. 126091041Sobrien 1261218822Sdim2007-03-07 Kai Tietz <kai.tietz@onevision.com> 1262104834Sobrien 1263218822Sdim * reloc.c (bfd_generic_get_relocated_section_contents): Remove 1264218822Sdim const for type reloc_howto_type. 1265104834Sobrien 1266218822Sdim2007-03-07 Alan Modra <amodra@bigpond.net.au> 1267104834Sobrien 1268218822Sdim PR 3958 1269218822Sdim * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link. 1270218822Sdim (elf_discarded_section): Move.. 1271218822Sdim * bfd-in.h: ..to here. 1272218822Sdim * bfd-in2.h: Regenerate. 1273218822Sdim * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols 1274218822Sdim from discarded sections before relocate_section has done its job. 1275218822Sdim * reloc.c (bfd_generic_get_relocated_section_contents): Handle 1276218822Sdim relocs against symbols from discarded sections. 1277218822Sdim * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on 1278218822Sdim SECREL32. 1279218822Sdim (elf_hppa_relocate_section): Handle relocatable link after setting 1280218822Sdim sec, sym, h etc. for final link. Squash error messages for 1281218822Sdim relocatable link. Clear section contents for relocs against 1282218822Sdim symbols in discarded sections, and zero reloc. Remove existing 1283218822Sdim zero r_symndx code. 1284218822Sdim * elf-m10200.c (mn10200_elf_relocate_section): Likewise. 1285218822Sdim * elf-m10300.c (mn10300_elf_relocate_section): Likewise. 1286218822Sdim * elf32-arm.c (elf32_arm_relocate_section): Likewise. 1287218822Sdim * elf32-avr.c (elf32_avr_relocate_section): Likewise. 1288218822Sdim * elf32-bfin.c (bfinfdpic_relocate_section): Likewise. 1289218822Sdim (bfin_relocate_section): Likewise. 1290218822Sdim * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise. 1291218822Sdim * elf32-cris.c (cris_elf_relocate_section): Likewise. 1292218822Sdim * elf32-crx.c (elf32_crx_relocate_section): Likewise. 1293218822Sdim * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. 1294218822Sdim * elf32-fr30.c (fr30_elf_relocate_section): Likewise. 1295218822Sdim * elf32-frv.c (elf32_frv_relocate_section): Likewise. 1296218822Sdim * elf32-h8300.c (elf32_h8_relocate_section): Likewise. 1297218822Sdim * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. 1298218822Sdim * elf32-i370.c (i370_elf_relocate_section): Likewise. 1299218822Sdim * elf32-i386.c (elf_i386_relocate_section): Likewise. 1300218822Sdim * elf32-i860.c (elf32_i860_relocate_section): Likewise. 1301218822Sdim * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise. 1302218822Sdim * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise. 1303218822Sdim * elf32-m32c.c (m32c_elf_relocate_section): Likewise. 1304218822Sdim * elf32-m32r.c (m32r_elf_relocate_section): Likewise. 1305218822Sdim * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise. 1306218822Sdim * elf32-m68k.c (elf_m68k_relocate_section): Likewise. 1307218822Sdim * elf32-mcore.c (mcore_elf_relocate_section): Likewise. 1308218822Sdim * elf32-mep.c (mep_elf_relocate_section): Likewise. 1309218822Sdim * elf32-msp430.c (elf32_msp430_relocate_section): Likewise. 1310218822Sdim * elf32-mt.c (mt_elf_relocate_section): Likewise. 1311218822Sdim * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. 1312218822Sdim * elf32-ppc.c (ppc_elf_relocate_section): Likewise. 1313218822Sdim * elf32-s390.c (elf_s390_relocate_section): Likewise. 1314218822Sdim * elf32-score.c (_bfd_score_elf_relocate_section): Likewise. 1315218822Sdim * elf32-sh.c (sh_elf_relocate_section): Likewise. 1316218822Sdim * elf32-spu.c (spu_elf_relocate_section): Likewise. 1317218822Sdim * elf32-v850.c (v850_elf_relocate_section): Likewise. 1318218822Sdim * elf32-vax.c (elf_vax_relocate_section): Likewise. 1319218822Sdim * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise. 1320218822Sdim * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. 1321218822Sdim * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. 1322218822Sdim * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise. 1323218822Sdim (elf64_alpha_relocate_section): Likewise. 1324218822Sdim * elf64-mmix.c (mmix_elf_relocate_section): Likewise. 1325218822Sdim * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. 1326218822Sdim * elf64-s390.c (elf_s390_relocate_section): Likewise. 1327218822Sdim * elf64-sh64.c (sh_elf64_relocate_section): Likewise. 1328218822Sdim * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. 1329218822Sdim * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise. 1330218822Sdim * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise. 1331218822Sdim * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. 1332104834Sobrien 1333218822Sdim * elf32-arm.c (elf32_arm_relocate_section): Always adjust section 1334218822Sdim symbols for relocatable link. Don't use always-zero st_value. 1335218822Sdim (elf_backend_rela_normal): Don't define. 1336218822Sdim * elf32-bfin.c (bfinfdpic_relocate_section): Use 1337218822Sdim RELOC_FOR_GLOBAL_SYMBOL. 1338218822Sdim * elf32-frv.c (elf32_frv_relocate_section): Likewise. 1339218822Sdim * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE 1340218822Sdim section symbol adjustments with same for relocatable link. 1341218822Sdim * elf32-i386.c (elf_i386_relocate_section): Likewise. 1342218822Sdim * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move.. 1343218822Sdim (elf32_m68hc11_check_relocs): ..to here. 1344218822Sdim * elf32-score.c (score_elf_final_link_relocate): Remove zero 1345218822Sdim r_symndx code. 1346218822Sdim * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. 1347104834Sobrien 1348218822Sdim2007-03-07 Alan Modra <amodra@bigpond.net.au> 134991041Sobrien 1350218822Sdim PR 4144 1351218822Sdim * elf.c (assign_file_positions_for_load_sections): Don't 1352218822Sdim adjust p_memsz for !SEC_LOAD section vma modulo page size. 1353218822Sdim Instead, use the same lma based adjustment for SEC_LOAD 1354218822Sdim sections. 135591041Sobrien 1356218822Sdim2007-03-01 Bob Wilson <bob.wilson@acm.org> 1357218822Sdim 1358218822Sdim * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing. 1359218822Sdim (find_relaxable_sections): Do not increment src_count for unknown 1360218822Sdim opcodes. Decode only once instead of calling is_l32r_relocation. 1361218822Sdim (compute_text_actions): Remove unused no_insn_move flag. Assert that 1362218822Sdim src_next matches src_count in relax_info. 1363218822Sdim 1364218822Sdim2007-03-01 Joseph Myers <joseph@codesourcery.com> 1365218822Sdim 1366218822Sdim * Makefile.am (bfdver.h): Use "." not " " between version number 1367218822Sdim and date. 1368218822Sdim * Makefile.in: Regenerate. 1369218822Sdim * configure.in (PKGVERSION): Default to "(GNU Binutils) ". 1370104834Sobrien * configure: Regenerate. 1371104834Sobrien 1372218822Sdim2007-02-28 Nathan Sidwell <nathan@codesourcery.com> 137391041Sobrien 1374218822Sdim * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza. 137591041Sobrien 1376218822Sdim2007-02-27 Alan Modra <amodra@bigpond.net.au> 1377104834Sobrien 1378218822Sdim * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const. 1379218822Sdim * elf32-spu.c (ovl_mgr_pread): Add const to casts. 1380104834Sobrien 1381218822Sdim2007-02-23 Carlos O'Donell <carlos@codesourcery.com> 138291041Sobrien 1383218822Sdim * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit 1384218822Sdim DWARF even with 64-bit addresses. 1385218822Sdim (_bfd_dwarf2_find_nearest_line): Likewise. 138691041Sobrien 1387218822Sdim2007-02-23 Nick Clifton <nickc@redhat.com> 138891041Sobrien 1389218822Sdim PR binutils/3535 1390218822Sdim * elf.c (copy_private_bfd_data): Always rewrite the program 1391218822Sdim headers when a Solaris interpreter segment is involved. 139291041Sobrien 1393218822Sdim2007-02-22 Paul Brook <paul@codesourcery.com> 139491041Sobrien 1395218822Sdim * elflink.c (gc_mark_hook_fn): Remove. 1396218822Sdim (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn. 1397218822Sdim (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections. 1398218822Sdim * elf-bfd.h (elf_gc_mark_hook_fn): Define. 1399218822Sdim (elf_backend_data): Add gc_mark_extra_sections. 1400218822Sdim * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default 1401218822Sdim definition. 1402218822Sdim (elfNN_bed): Add elf_backend_gc_mark_extra_sections. 1403218822Sdim * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function. 1404218822Sdim (elf_backend_gc_mark_extra_sections): Define. 140591041Sobrien 1406218822Sdim2007-02-21 Nick Clifton <nickc@redhat.com> 140791041Sobrien 1408218822Sdim * elf.c (_bfd_elf_map_sections_to_segments): If the 1409218822Sdim override_segment_assignment callback is defined then call it. 141091041Sobrien 1411218822Sdim2007-02-21 Alan Modra <amodra@bigpond.net.au> 141291041Sobrien 1413218822Sdim * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args. 141491041Sobrien 1415218822Sdim2007-02-19 Thiemo Seufer <ths@mips.com> 141691041Sobrien 1417218822Sdim * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove 1418218822Sdim translation marker from untranslatable strings. 141991041Sobrien 1420218822Sdim2007-02-19 Alan Modra <amodra@bigpond.net.au> 142191041Sobrien 1422218822Sdim * elf-bfd.h (struct elf_backend_data): Add default_execstack. 1423218822Sdim * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack. 1424218822Sdim * elfxx-target.h (elf_backend_default_execstack): Define to 1. 1425218822Sdim (elfNN_bed): Init new field. 1426218822Sdim * elf64-ppc.c (elf_backend_default_execstack): Define to 0. 142791041Sobrien 1428218822Sdim2007-02-17 Mark Mitchell <mark@codesourcery.com> 1429218822Sdim Nathan Sidwell <nathan@codesourcery.com> 1430218822Sdim Vladimir Prus <vladimir@codesourcery.com 1431218822Sdim Joseph Myers <joseph@codesourcery.com> 143291041Sobrien 1433218822Sdim * configure.in (--with-pkgversion): New option. 1434218822Sdim * configure: Regenerate. 1435218822Sdim * Makefile.am (bfdver.h): Substitute for @bfd_version_package@. 1436218822Sdim * Makefile.in: Regenerate. 1437218822Sdim * version.h (BFD_VERSION_STRING): Define using 1438218822Sdim @bfd_version_package@. 143991041Sobrien 1440218822Sdim2007-02-16 Carlos O'Donell <carlos@codesourcery.com> 144191041Sobrien 1442218822Sdim * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): 1443218822Sdim Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT 1444218822Sdim and EF_MIPS_UCODE. 144591041Sobrien 1446218822Sdim2007-02-15 Alan Modra <amodra@bigpond.net.au> 144791041Sobrien 1448218822Sdim * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define, 1449218822Sdim declare. 1450218822Sdim (_bfd_norelocs_canonicalize_reloc): Likewise. 1451218822Sdim * libbfd.h: Regenerate. 1452218822Sdim * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function. 1453218822Sdim (_bfd_norelocs_canonicalize_reloc): Likewise. 1454218822Sdim * binary.c (binary_bfd_reloc_type_lookup): Don't define. 1455218822Sdim (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise. 1456218822Sdim (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS. 1457218822Sdim * ihex.c: Similarly. 1458218822Sdim * mach-o-target.c: Similarly. 1459218822Sdim * mach-o.c: Similarly. 1460218822Sdim * mmo.c: Similarly. 1461218822Sdim * pef.c: Similarly. 1462218822Sdim * ppcboot.c: Similarly. 1463218822Sdim * srec.c: Similarly. 1464218822Sdim * xsym.c: Similarly. 146591041Sobrien 1466218822Sdim2007-02-14 H.J. Lu <hongjiu.lu@intel.com> 146791041Sobrien 1468218822Sdim PR ld/3953 1469218822Sdim * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol 1470218822Sdim when adding default symbol. 1471218822Sdim 1472218822Sdim2007-02-13 Alan Modra <amodra@bigpond.net.au> 1473218822Sdim 1474218822Sdim * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt" 1475218822Sdim for branch lookup table. 1476218822Sdim 1477218822Sdim2007-02-12 Alan Modra <amodra@bigpond.net.au> 1478218822Sdim 1479218822Sdim * elf64-ppc.c (create_linkage_sections): Don't create 1480218822Sdim .rela.rodata.brlt for --emit-relocs. 1481218822Sdim (ppc_build_one_stub): Create relocs for brlt --emit-relocs here. 1482218822Sdim (ppc_size_one_stub): Count them. Simplify test of stub type 1483218822Sdim when counting stub relocs. Set SEC_RELOC too. 1484218822Sdim (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC. 1485218822Sdim (ppc64_elf_finish_dynamic_sections): Output brlt relocs. 1486218822Sdim 1487218822Sdim2007-02-12 Alan Modra <amodra@bigpond.net.au> 1488218822Sdim 1489218822Sdim * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs 1490218822Sdim with a zero symbol index. 1491218822Sdim 1492218822Sdim2007-02-12 Alan Modra <amodra@bigpond.net.au> 1493218822Sdim 1494218822Sdim * elflink.c (bfd_elf_discard_info): Tidy setting of "eh". 1495218822Sdim 1496218822Sdim2007-02-05 Dave Brolley <brolley@redhat.com> 1497218822Sdim Stan Cox <scox@redhat.com> 1498218822Sdim 1499218822Sdim PR ld/3972 1500218822Sdim * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms. 1501218822Sdim 1502218822Sdim2007-02-05 Dave Brolley <brolley@redhat.com> 1503218822Sdim Richard Sandiford <rsandifo@redhat.com> 1504218822Sdim Stan Cox <scox@redhat.com> 1505218822Sdim Nick Clifton <nickc@redhat.com> 1506218822Sdim DJ Delorie <dj@redhat.com> 1507218822Sdim Frank Ch. Eigler <fche@redhat.com> 1508218822Sdim Ben Elliston <bje@redhat.com> 1509218822Sdim Richard Henderson <rth@redhat.com> 1510218822Sdim 1511218822Sdim * Makefile.am (ALL_MACHINES): Add cpu-mep.lo. 1512218822Sdim (ALL_MACHINES_CFILES): Add CPU_MEP.c. 1513218822Sdim (BFD32_BACKENDS): Add elf32-mep.lo. 1514218822Sdim (BFD32_BACKENDS_CFILES): Add elf32-mep.c. 1515218822Sdim (cpu-mep.lo,elf32-mep.lo): New targets. 1516218822Sdim * archures.c (bfd_arch_mep): New enumerator. 1517218822Sdim (bfd_mach_mep, bfd_mach_mep_h1): New macros. 1518218822Sdim (bfd_mep_arch): New external variable. 1519218822Sdim (bfd_archures_list): Add bfd_mep_arch. 1520218822Sdim * config.bfd: Support mep-*-elf. 1521218822Sdim * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec. 1522218822Sdim * reloc.c (BFD_RELOC_MEP_*): New relocation numbers. 1523218822Sdim * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern 1524218822Sdim declarations. 1525218822Sdim (_bfd_target_vector): Add bfd_elf32_mep_vec and 1526218822Sdim bfd_elf32_mep_little_vec. 1527218822Sdim * mep-relocs.pl: New file. 1528218822Sdim * cpu-mep.c: New file. 1529218822Sdim * elf32-mep.c: New file. 1530218822Sdim * bfd-in2.h: Regenerate. 1531218822Sdim * po/POTFILES.in: Regenerate. 1532218822Sdim * libbfd.h: Regenerate. 1533218822Sdim * Makefile.in: Regenerate. 1534218822Sdim * configure: Regenerate. 1535218822Sdim 1536218822Sdim2007-02-05 Dave Brolley <brolley@redhat.com> 1537218822Sdim 1538218822Sdim * elflink.c (evaluate_complex_relocation_symbols): Check for 1539218822Sdim STT_SRELC for global symbols. 1540218822Sdim (perform_complex_relocations): Renamed to 1541218822Sdim perform_complex_relocation and now examines only one relocation. 1542218822Sdim (elf_link_input_bfd): Don't call perform_complex_relocations. 1543218822Sdim * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype. 1544218822Sdim * elf32-mep.c (mep_elf_howto_table): Add R_RELC. 1545218822Sdim (OD,OS,OU): #undefs corrected to N, S and U repectively. 1546218822Sdim (mep_reloc_type_lookup): Handle BFD_RELOC_RELC. 1547218822Sdim (complex_reloc_installation_howto): Removed. 1548218822Sdim (mep_info_to_howto_rela): Remove special case for r_type==0xff. 1549218822Sdim (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation. 1550218822Sdim 1551218822Sdim2007-02-05 Dave Brolley <brolley@redhat.com> 1552218822Sdim Richard Sandiford <rsandifo@redhat.com> 1553218822Sdim DJ Delorie <dj@redhat.com> 1554218822Sdim Graydon Hoare <graydon@redhat.com> 1555218822Sdim Nick Clifton <nickc@cambridge.redhat.com> 1556218822Sdim Jeff Holcomb <jeffh@redhat.com> 1557218822Sdim Frank Ch. Eigler <fche@redhat.com> 1558218822Sdim 1559218822Sdim * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype. 1560218822Sdim * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC. 1561218822Sdim * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC. 1562218822Sdim * elflink.c (set_symbolValue): New static function. 1563218822Sdim (resolve_symbol): Likewise. 1564218822Sdim (resolve_section): Likewise. 1565218822Sdim (undefined_reference): Likewise. 1566218822Sdim (eval_symbol): Likewise. 1567218822Sdim (evaluate_complex_relocation_symbols): Likewise. 1568218822Sdim (put_value): Likewise. 1569218822Sdim (get_value): Likewise. 1570218822Sdim (decode_complex_addend): 1571218822Sdim (bfd_elf_perform_complex_relocation): New function. 1572218822Sdim (elf_link_input_bfd): Call evaluate_complex_relocation_symbols. 1573218822Sdim * reloc.c (BFD_RELOC_RELC): New relocation number. 1574218822Sdim * syms.c (BSF_RELC,BSF_SRELC): New macros. 1575218822Sdim 1576218822Sdim2007-02-05 Bob Wilson <bob.wilson@acm.org> 1577218822Sdim 1578218822Sdim * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete. 1579218822Sdim (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete. 1580218822Sdim (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size) 1581218822Sdim (elf_xtensa_allocate_got_size): Replace these with... 1582218822Sdim (elf_xtensa_allocate_dynrelocs): ...this new function. 1583218822Sdim (elf_xtensa_size_dynamic_sections): Use it. 1584218822Sdim 1585218822Sdim2007-02-05 Bob Wilson <bob.wilson@acm.org> 1586218822Sdim 1587218822Sdim * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT> 1588218822Sdim <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>: 1589218822Sdim Set src_mask to zero. 1590218822Sdim <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask. 1591218822Sdim <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE. 1592218822Sdim 1593218822Sdim2007-02-02 Bob Wilson <bob.wilson@acm.org> 1594218822Sdim 1595218822Sdim * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to... 1596218822Sdim (elf_xtensa_dynamic_symbol_p): ...this. 1597218822Sdim 1598218822Sdim2007-02-02 Bob Wilson <bob.wilson@acm.org> 1599218822Sdim 1600218822Sdim * elf32-xtensa.c (plt_reloc_count): Move into link hash table. 1601218822Sdim (struct elf_xtensa_link_hash_table): New. 1602218822Sdim (elf_xtensa_hash_table): New. 1603218822Sdim (elf_xtensa_link_hash_table_create): New. 1604218822Sdim (elf_xtensa_check_relocs): Update plt_reloc_count references. 1605218822Sdim Update arguments to add_extra_plt_sections. 1606218822Sdim (elf_xtensa_create_dynamic_sections): Record new sections in the hash 1607218822Sdim table. Update for plt_reloc_count and add_extra_plt_sections. 1608218822Sdim (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj 1609218822Sdim argument with link info. Update calls to elf_xtensa_get_plt_section 1610218822Sdim and elf_xtensa_get_gotplt_section. 1611218822Sdim (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections) 1612218822Sdim (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections) 1613218822Sdim (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections) 1614218822Sdim (relax_property_section): Get sections from the hash table and update 1615218822Sdim function calls. 1616218822Sdim (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace 1617218822Sdim dynobj argument with link info. Get sections for first plt chunk from 1618218822Sdim the hash table. 1619130561Sobrien (bfd_elf32_bfd_link_hash_table_create): Define. 162091041Sobrien 1621218822Sdim2007-02-02 Jakub Jelinek <jakub@redhat.com> 162291041Sobrien 1623218822Sdim * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *. 1624218822Sdim * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types. 1625218822Sdim (struct elf_symbol): Change first member into union. 1626218822Sdim (elf_sort_elf_symbol): Compare pointers to internal syms rather than 1627218822Sdim internal syms. Only compare st_shndx fields. 1628218822Sdim (elf_create_symbuf): New function. 1629218822Sdim (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available 1630218822Sdim for bfds, use a binary search, otherwise don't qsort symbols 1631218822Sdim unnecessarily only to select which symbols are for the particular 1632218822Sdim shndx. 163391041Sobrien 1634218822Sdim2007-02-01 Nick Clifton <nickc@redhat.com> 163591041Sobrien 1636218822Sdim PR ld/3852 1637218822Sdim * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields 1638218822Sdim in the elf_link_hash_table structure. 163991041Sobrien 1640218822Sdim2007-02-01 Alan Modra <amodra@bigpond.net.au> 164191041Sobrien 1642218822Sdim * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note. 1643218822Sdim * elfxx-target.h (elf_backend_write_core_note): Define and use. 1644218822Sdim * elf.c (elfcore_write_prpsinfo): Call the above. Add support for 1645218822Sdim 32-bit core note on 64-bit target. 1646218822Sdim (elfcore_write_prstatus): Likewise. 1647218822Sdim (elfcore_write_lwpstatus): Make note_name const. 1648218822Sdim (elfcore_write_prfpreg): Likewise. 1649218822Sdim (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit 1650218822Sdim target. 1651218822Sdim * elf32-ppc.c (ppc_elf_write_core_note): New function. 1652218822Sdim (elf_backend_write_core_note): Define. 1653218822Sdim * elf64-ppc.c (ppc64_elf_write_core_note): New function. 1654218822Sdim (elf_backend_write_core_note): Define. 165591041Sobrien 1656218822Sdim2007-01-31 H.J. Lu <hongjiu.lu@intel.com> 165791041Sobrien 1658218822Sdim * elf32-cris.c (INCLUDED_TARGET_FILE): Removed. 1659218822Sdim (elf32_bed): Defined for elf32-us-cris. 166091041Sobrien 1661218822Sdim * elf64-sh64.c (elf64_bed): Defined for Linux. 1662218822Sdim (INCLUDED_TARGET_FILE): Removed. 166391041Sobrien 1664218822Sdim * elfxx-target.h (elfNN_bed): Always define. Don't check 1665218822Sdim INCLUDED_TARGET_FILE. 166691041Sobrien 1667218822Sdim2007-01-31 DJ Delorie <dj@redhat.com> 1668218822Sdim 1669218822Sdim * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning 1670218822Sdim message for dangerous relocs, special case the common user error. 1671218822Sdim 1672218822Sdim2007-01-30 H.J. Lu <hongjiu.lu@intel.com> 1673218822Sdim 1674218822Sdim * elf.c (copy_elf_program_header): Start from the first section 1675218822Sdim in a segment and stop when all sections in a segment are 1676218822Sdim accounted for. 1677218822Sdim 1678218822Sdim2007-01-29 Julian Brown <julian@codesourcery.com> 1679218822Sdim 1680218822Sdim * bfd-in2.h: Regenerate. 1681218822Sdim * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11 1682218822Sdim instruction scanning should be done. 1683218822Sdim (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan) 1684218822Sdim (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes. 1685218822Sdim (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to 1686218822Sdim prototype. 1687218822Sdim * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info 1688218822Sdim argument. 1689218822Sdim * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME) 1690218822Sdim (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros. 1691218822Sdim (elf32_vfp11_erratum_type): New enum. 1692218822Sdim (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to 1693218822Sdim veneers. 1694218822Sdim (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist. 1695218822Sdim (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size, 1696218822Sdim vfp11_fix and num_vfp11_fixes fields. 1697218822Sdim (elf32_arm_link_hash_table_create): Initialise vfp11_fix, 1698218822Sdim vfp11_erratum_glue_size, num_vfp11_fixes fields. 1699218822Sdim (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer. 1700218822Sdim (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum 1701218822Sdim glue section. 1702218822Sdim (elf32_arm_section_map_add): Add an code/data mapping symbol entry 1703218822Sdim to a section's map. 1704218822Sdim (record_vfp11_erratum_veneer): Create a single veneer, and its 1705218822Sdim associated symbols. 1706218822Sdim (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue. 1707218822Sdim (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input 1708218822Sdim BFDs. 1709218822Sdim (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround 1710218822Sdim required. 1711218822Sdim (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes. 1712218822Sdim (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn. 1713218822Sdim (bfd_arm_vfp11_write_mask): Update write mask according to coded 1714218822Sdim register number. 1715218822Sdim (bfd_arm_vfp11_antidependency): New function. 1716218822Sdim (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn. 1717218822Sdim (elf32_arm_compare_mapping): Declare. 1718218822Sdim (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input 1719218822Sdim BFD for potential erratum-triggering insns. Record results. 1720218822Sdim (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers 1721218822Sdim and branches to veneers have been placed in virtual memory after 1722218822Sdim layout. 1723218822Sdim (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global 1724218822Sdim hash table. 1725218822Sdim (elf32_arm_output_symbol_hook): Remove. 1726218822Sdim (elf32_arm_write_section): Output veneers, and branches to veneers. 1727218822Sdim Use maps from input sections, not output sections, for code 1728218822Sdim byte-swapping. 1729218822Sdim * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument. 1730218822Sdim * elf32-score.c (_bfd_score_elf_write_section): Likewise. 1731218822Sdim * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise. 1732218822Sdim * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise. 1733218822Sdim 1734218822Sdim2007-01-27 H.J. Lu <hongjiu.lu@intel.com> 1735218822Sdim 1736218822Sdim * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux. 1737218822Sdim (INCLUDED_TARGET_FILE): Removed. 1738218822Sdim 1739218822Sdim2007-01-27 Mike Frysinger <vapier@gentoo.org> 1740218822Sdim 1741218822Sdim * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd. 1742218822Sdim (INCLUDED_TARGET_FILE): Remove. 1743218822Sdim 1744218822Sdim2007-01-25 DJ Delorie <dj@redhat.com> 1745218822Sdim 1746218822Sdim * elf32-m32c.c (m32c_elf_howto_table): Don't complain about 1747218822Sdim R_M32C_16 or R_M32C_24 relocs. 1748218822Sdim 1749218822Sdim2007-01-25 Nick Clifton <nickc@redhat.com> 1750218822Sdim 1751218822Sdim PR binutils/3874 1752218822Sdim * elf32-avr.c (avr_link_hash_table): Check to make sure that the 1753218822Sdim hash table was created by elf32_avr_link_hash_table_create before 1754218822Sdim using it. 1755218822Sdim (elf32_avr_link_hash_newfunc): New function. Just pass the call 1756218822Sdim through to _bfd_elf_link_hash_newfunc. 1757218822Sdim (elf32_avr_link_hash_table_create): Use 1758218822Sdim elf32_avr_link_hash_newfunc instead of 1759218822Sdim _bfd_elf_link_hash_newfunc. 1760218822Sdim (elf32_avr_relocate_section): Check for the hash table pointer 1761218822Sdim being NULL. 1762218822Sdim (elf32_avr_relax_section, avr_build_one_stub, 1763218822Sdim elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs, 1764218822Sdim elf32_avr_build_stubs): Likewise. 1765218822Sdim 1766218822Sdim2007-01-16 H.J. Lu <hongjiu.lu@intel.com> 1767218822Sdim 1768218822Sdim PR ld/3831 1769218822Sdim * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an 1770218822Sdim argument, Elf_Internal_Sym *. 1771218822Sdim 1772218822Sdim * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data 1773218822Sdim symbol dynamic if info->dynamic_data is TRUE. 1774218822Sdim (bfd_elf_record_link_assignment): Updated call to 1775218822Sdim bfd_elf_record_link_assignment. 1776218822Sdim (_bfd_elf_merge_symbol): Likewise. Always call 1777218822Sdim bfd_elf_link_mark_dynamic_symbol. 1778218822Sdim 1779218822Sdim2007-01-12 H.J. Lu <hongjiu.lu@intel.com> 1780218822Sdim 1781218822Sdim * Makefile.am (BFD_LIBS): Removed. 1782218822Sdim * Makefile.in: Regenerated. 1783218822Sdim 1784218822Sdim2007-01-11 H.J. Lu <hongjiu.lu@intel.com> 1785218822Sdim 1786218822Sdim PR binutils/3631 1787218822Sdim * Makefile.am (OFILES): Add @bfd64_libs@. 1788218822Sdim (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES). 1789218822Sdim * Makefile.in: Regenerated. 1790218822Sdim 1791218822Sdim * configure.in (bfd_libs): Replaced by ... 1792218822Sdim (bfd64_libs): This. 1793218822Sdim * configure: Regenerated. 1794218822Sdim 1795218822Sdim2007-01-11 Nathan Sidwell <nathan@codesourcery.com> 1796218822Sdim 1797218822Sdim * elf.c (assign_file_positions_for_load_sections): We can 1798218822Sdim require fewer phdrs than expected. 1799218822Sdim 1800218822Sdim2007-01-08 Kazu Hirata <kazu@codesourcery.com> 1801218822Sdim 1802218822Sdim * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido. 1803218822Sdim * bfd-in2.h: Regenerate. 1804218822Sdim * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of 1805218822Sdim bfd_mach_cpu32_fido. 1806218822Sdim (m68k_arch_features): Use fido_a instead of cpu32. 1807218822Sdim (bfd_m68k_compatible): Reject the combination of Fido and 1808218822Sdim ColdFire. Accept the combination of CPU32 and Fido with a 1809218822Sdim warning. 1810218822Sdim * elf32-m68k.c (elf32_m68k_object_p, 1811218822Sdim elf32_m68k_merge_private_bfd_data, 1812218822Sdim elf32_m68k_print_private_bfd_data): Treat Fido as an 1813218822Sdim architecture by itself. 1814218822Sdim 1815218822Sdim2007-01-08 Kai Tietz <kai.tietz@onevision.com> 1816218822Sdim 1817218822Sdim * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*. 1818218822Sdim 1819218822Sdim2007-01-05 Jakub Jelinek <jakub@redhat.com> 1820218822Sdim 1821218822Sdim * texhex.c (first_phase): Don't fall through into the default 1822218822Sdim case. 1823218822Sdim (pass_over): Replace abort () calls with return FALSE. Fix 1824218822Sdim buffer overflow. 1825218822Sdim 1826218822Sdim2007-01-04 Jie Zhang <jie.zhang@analog.com> 1827218822Sdim 1828218822Sdim * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set 1829218822Sdim SEC_EXCLUDE on zero size .eh_frame. 1830218822Sdim 1831218822SdimFor older changes see ChangeLog-2006 183233965Sjdp 183333965SjdpLocal Variables: 183433965Sjdpmode: change-log 183533965Sjdpleft-margin: 8 183633965Sjdpfill-column: 74 183733965Sjdpversion-control: never 183833965SjdpEnd: 1839