1*377e23a2Schristos2009-12-31 Cary Coutant <ccoutant@google.com> 2*377e23a2Schristos 3*377e23a2Schristos * dwarf2.c (struct line_sequence): New struct. 4*377e23a2Schristos (struct line_info_table): Add num_sequences, remove last_line, 5*377e23a2Schristos add sequences. 6*377e23a2Schristos (add_line_info): Add new sequences as necessary. 7*377e23a2Schristos (compare_sequences): New function. 8*377e23a2Schristos (sort_line_sequences): New function. 9*377e23a2Schristos (decode_line_info): Initialize new fields in line table. 10*377e23a2Schristos Call sort_line_sequences. 11*377e23a2Schristos (lookup_address_in_line_info_table): Binary search for proper 12*377e23a2Schristos sequence. 13*377e23a2Schristos 14*377e23a2Schristos2009-12-28 Daniel Gutson <dgutson@codesourcery.com> 15*377e23a2Schristos 16*377e23a2Schristos * elf32-arm.c (elf32_arm_final_link_relocate): limits 17*377e23a2Schristos fixed. 18*377e23a2Schristos 19*377e23a2Schristos2009-12-28 Daniel Gutson <dgutson@codesourcery.com> 20*377e23a2Schristos 21*377e23a2Schristos * elf-attrs.c (_bfd_elf_merge_object_attributes): Error 22*377e23a2Schristos message rephrased. 23*377e23a2Schristos 24*377e23a2Schristos2009-12-21 Alan Modra <amodra@gmail.com> 25*377e23a2Schristos 26*377e23a2Schristos * elf64-ppc.c: Delete my email address. 27*377e23a2Schristos 28*377e23a2Schristos2009-12-18 Ulrich Weigand <uweigand@de.ibm.com> 29*377e23a2Schristos 30*377e23a2Schristos * elf.c (elfcore_grok_s390_high_gprs): New function. 31*377e23a2Schristos (elfcore_grok_note): Handle NT_S390_HIGH_GPRS notes. 32*377e23a2Schristos (elfcore_write_s390_high_gprs): New function. 33*377e23a2Schristos (elfcore_write_register_note): Call it. 34*377e23a2Schristos 35*377e23a2Schristos2009-12-17 Alan Modra <amodra@bigpond.net.au> 36*377e23a2Schristos 37*377e23a2Schristos PR ld/11088 38*377e23a2Schristos * elf32-ppc.c (update_plt_info): Clear sec here when addend is 39*377e23a2Schristos less than 32768.. 40*377e23a2Schristos (ppc_elf_check_relocs): ..rather than doing so here. Ignore new 41*377e23a2Schristos relax relocs. 42*377e23a2Schristos (ppc_elf_gc_sweep_hook): Don't segfault when symbol hiding has 43*377e23a2Schristos removed plt_entry records. 44*377e23a2Schristos (ppc_elf_tls_setup): Handle PIE calls to __tls_get_addr correctly. 45*377e23a2Schristos (ppc_elf_tls_optimize): Likewise. Also dec __tls_get_addr refcount 46*377e23a2Schristos when optimizing code using new tlsgd and tlsld marker relocs. 47*377e23a2Schristos (ppc_elf_relax_section): Differentiate relaxed PLTREL24 relocs 48*377e23a2Schristos from ADDR24 relocs using plt or glink. Don't clear the addend 49*377e23a2Schristos for R_PPC_RELAX_PLTREL24. 50*377e23a2Schristos (ppc_elf_relocate_section): Correctly handle addends on relaxed 51*377e23a2Schristos PLTREL24 relocs. 52*377e23a2Schristos 53*377e23a2Schristos2009-12-17 Alan Modra <amodra@bigpond.net.au> 54*377e23a2Schristos 55*377e23a2Schristos PR ld/11088 56*377e23a2Schristos * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Don't abort if symbol 57*377e23a2Schristos hiding has nulled out plt.plist. 58*377e23a2Schristos 59*377e23a2Schristos2009-12-15 H.J. Lu <hongjiu.lu@intel.com> 60*377e23a2Schristos 61*377e23a2Schristos * opncls.c (bfd_opnr_iovec): Replace _XXX with XXX_P in 62*377e23a2Schristos parameters. 63*377e23a2Schristos 64*377e23a2Schristos * tekhex.c (pass_over): Replace eof with is_eof. 65*377e23a2Schristos 66*377e23a2Schristos2009-12-15 Tristan Gingold <gingold@adacore.com> 67*377e23a2Schristos 68*377e23a2Schristos * mach-o.h (bfd_mach_o_uuid_command): Remove section field. 69*377e23a2Schristos * mach-o.c (bfd_mach_o_scan_read_uuid): Do not create a section 70*377e23a2Schristos from this command. 71*377e23a2Schristos 72*377e23a2Schristos2009-12-15 Tristan Gingold <gingold@adacore.com> 73*377e23a2Schristos 74*377e23a2Schristos * mach-o.c (struct mach_o_section_name_xlat): Add flags field. 75*377e23a2Schristos (dwarf_section_names_xlat): Add section flags. 76*377e23a2Schristos (text_section_names_xlat): Ditto. 77*377e23a2Schristos (data_section_names_xlat): Ditto. 78*377e23a2Schristos (bfd_mach_o_convert_section_name_to_bfd): Now return name and section 79*377e23a2Schristos flags by reference. 80*377e23a2Schristos (bfd_mach_o_make_bfd_section): Use section flags when know, otherwise 81*377e23a2Schristos try to guess. 82*377e23a2Schristos 83*377e23a2Schristos2009-12-14 Doug Kwan <dougkwan@google.com> 84*377e23a2Schristos 85*377e23a2Schristos * opncls.c (bfd_opnr_iovec): Rename parameters to avoid shawdowed 86*377e23a2Schristos variable warnings. 87*377e23a2Schristos * bfd-in2.h: Regnenerate. 88*377e23a2Schristos 89*377e23a2Schristos2009-12-12 Nick Clifton <nickc@redhat.com> 90*377e23a2Schristos 91*377e23a2Schristos * coff-arm.c (coff_arm_rtype_to_howto): Fix shadowed variable 92*377e23a2Schristos warning. 93*377e23a2Schristos 94*377e23a2Schristos2009-12-11 Tristan Gingold <gingold@adacore.com> 95*377e23a2Schristos 96*377e23a2Schristos * som.c (bfd_som_set_subsection_attributes) 97*377e23a2Schristos (bfd_section_from_som_symbol, som_reloc_queue_fix): Fix shadowed 98*377e23a2Schristos variable warnings. 99*377e23a2Schristos * cache.c (close_one): Likewise. 100*377e23a2Schristos 101*377e23a2Schristos2009-12-11 Nick Clifton <nickc@redhat.com> 102*377e23a2Schristos 103*377e23a2Schristos * warning.m4 (GCC_WARN_CFLAGS): Add -Wshadow. 104*377e23a2Schristos * configure: Regenerate. 105*377e23a2Schristos * Makefile.in: Regenerate. 106*377e23a2Schristos * doc/Makefile.in: Regenerate. 107*377e23a2Schristos * aout-arm.c: Fix shadowed variable warnings. 108*377e23a2Schristos * aout-tic30.c: Likewise. 109*377e23a2Schristos * aoutx.h: Likewise. 110*377e23a2Schristos * archive.c: Likewise. 111*377e23a2Schristos * coff-alpha.c: Likewise. 112*377e23a2Schristos * coff-i386.c: Likewise. 113*377e23a2Schristos * coff-x86_64.c: Likewise. 114*377e23a2Schristos * coffgen.c: Likewise. 115*377e23a2Schristos * dwarf2.c: Likewise. 116*377e23a2Schristos * ecoff.c: Likewise. 117*377e23a2Schristos * elf-eh-frame.c: Likewise. 118*377e23a2Schristos * elf-m10300.c: Likewise. 119*377e23a2Schristos * elf.c: Likewise. 120*377e23a2Schristos * elf32-arm.c: Likewise. 121*377e23a2Schristos * elf32-avr.c: Likewise. 122*377e23a2Schristos * elf32-bfin.c: Likewise. 123*377e23a2Schristos * elf32-cr16.c: Likewise. 124*377e23a2Schristos * elf32-i386.c: Likewise. 125*377e23a2Schristos * elf32-ip2k.c: Likewise. 126*377e23a2Schristos * elf32-lm32.c: Likewise. 127*377e23a2Schristos * elf32-m68hc1x.c: Likewise. 128*377e23a2Schristos * elf32-microblaze.c: Likewise. 129*377e23a2Schristos * elf32-ppc.c: Likewise. 130*377e23a2Schristos * elf32-rx.c: Likewise. 131*377e23a2Schristos * elf32-score.c: Likewise. 132*377e23a2Schristos * elf32-score7.c: Likewise. 133*377e23a2Schristos * elf32-sh.c: Likewise. 134*377e23a2Schristos * elf32-spu.c: Likewise. 135*377e23a2Schristos * elf32-v850.c: Likewise. 136*377e23a2Schristos * elf32-xtensa.c: Likewise. 137*377e23a2Schristos * elf64-hppa.c: Likewise. 138*377e23a2Schristos * elf64-ppc.c: Likewise. 139*377e23a2Schristos * elf64-x86-64.c: Likewise. 140*377e23a2Schristos * elflink.c: Likewise. 141*377e23a2Schristos * elfxx-ia64.c: Likewise. 142*377e23a2Schristos * elfxx-mips.c: Likewise. 143*377e23a2Schristos * elfxx-sparc.c: Likewise. 144*377e23a2Schristos * hash.c: Likewise. 145*377e23a2Schristos * ieee.c: Likewise. 146*377e23a2Schristos * libbfd.c: Likewise. 147*377e23a2Schristos * mach-o.c: Likewise. 148*377e23a2Schristos * merge.c: Likewise. 149*377e23a2Schristos * nlm32-sparc.c: Likewise. 150*377e23a2Schristos * oasys.c: Likewise. 151*377e23a2Schristos * opncls.c: Likewise. 152*377e23a2Schristos * pdp11.c: Likewise. 153*377e23a2Schristos * peXXigen.c: Likewise. 154*377e23a2Schristos * pef.c: Likewise. 155*377e23a2Schristos * versados.c: Likewise. 156*377e23a2Schristos * vms-gsd.c: Likewise. 157*377e23a2Schristos * vms-hdr.c: Likewise. 158*377e23a2Schristos * vms-tir.c: Likewise. 159*377e23a2Schristos * vms.c: Likewise. 160*377e23a2Schristos * xcofflink.c: Likewise. 161*377e23a2Schristos * xsym.c: Likewise. 162*377e23a2Schristos * xtensa-isa.c: Likewise. 163*377e23a2Schristos 164*377e23a2Schristos2009-12-10 Maciej W. Rozycki <macro@codesourcery.com> 165*377e23a2Schristos 166*377e23a2Schristos * elfxx-mips.c (mips_elf_calculate_relocation): Correct handling 167*377e23a2Schristos of undefined symbols. 168*377e23a2Schristos 169*377e23a2Schristos2009-12-09 Daniel Jacobowitz <dan@codesourcery.com> 170*377e23a2Schristos 171*377e23a2Schristos * elf32-arm.c (elf32_arm_next_input_section): Skip sections without 172*377e23a2Schristos SEC_CODE. 173*377e23a2Schristos 174*377e23a2Schristos2009-12-08 Alan Modra <amodra@bigpond.net.au> 175*377e23a2Schristos 176*377e23a2Schristos * elf.c (write_zeros): New function. 177*377e23a2Schristos (assign_file_positions_for_load_sections): Allocate file space for 178*377e23a2Schristos NOBITS sections that are followed by PROGBITS sections in a segment. 179*377e23a2Schristos 180*377e23a2Schristos2009-12-03 Tristan Gingold <gingold@adacore.com> 181*377e23a2Schristos 182*377e23a2Schristos * mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for 183*377e23a2Schristos all sections of the __DWARF segment. 184*377e23a2Schristos 185*377e23a2Schristos2009-12-03 Alan Modra <amodra@bigpond.net.au> 186*377e23a2Schristos 187*377e23a2Schristos PR ld/11047 188*377e23a2Schristos * elf32-ppc.c (ppc_elf_relocate_section): Delete __tls_get_addr 189*377e23a2Schristos symbol reference from relocs belonging to calls that are 190*377e23a2Schristos optimized away. 191*377e23a2Schristos * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. 192*377e23a2Schristos 193*377e23a2Schristos2009-12-02 Jerker Bäck <jerker.back@gmail.com> 194*377e23a2Schristos 195*377e23a2Schristos PR binutils/11017 196*377e23a2Schristos * coff-i386.h (COFF_PAGE_SIZE): Definition moved to coff/i386.h 197*377e23a2Schristos 198*377e23a2Schristos2009-11-30 Joseph Myers <joseph@codesourcery.com> 199*377e23a2Schristos 200*377e23a2Schristos * configure: Regenerate. 201*377e23a2Schristos 202*377e23a2Schristos2009-11-26 Per Øyvind Karlsen <peroyvind@mandriva.org> 203*377e23a2Schristos 204*377e23a2Schristos * plugin.c (bfd_plugin_bfd_copy_link_hash_symbol_type): Define. 205*377e23a2Schristos 206*377e23a2Schristos2009-11-24 Joel Brobecker <brobecker@adacore.com> 207*377e23a2Schristos 208*377e23a2Schristos * acinclude.m4: Add include of ../config/zlib.m4. 209*377e23a2Schristos * configure.in: AM_ZLIB to check for zlib support. 210*377e23a2Schristos * configure: Regenerate. 211*377e23a2Schristos 212*377e23a2Schristos2009-11-23 Paul Brook <paul@codesourcery.com> 213*377e23a2Schristos 214*377e23a2Schristos * libbfd-in.h (_bfd_generic_copy_link_hash_symbol_type): Add 215*377e23a2Schristos prototype. 216*377e23a2Schristos * elf-bfd.h (_bfd_elf_copy_link_hash_symbol_type): Add prototype. 217*377e23a2Schristos * linker.c (_bfd_generic_copy_link_hash_symbol_type): New function. 218*377e23a2Schristos * elflink.c (_bfd_elf_copy_link_hash_symbol_type): New function. 219*377e23a2Schristos * targets.c (BFD_JUMP_TABLE_LINK, struct bfd_target): Add 220*377e23a2Schristos _copy_link_hash_symbol_type. 221*377e23a2Schristos * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add 222*377e23a2Schristos _bfd_generic_copy_link_hash_symbol_type. 223*377e23a2Schristos * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add 224*377e23a2Schristos _bfd_generic_copy_link_hash_symbol_type. 225*377e23a2Schristos * aout-adobe.c (aout_32_bfd_copy_link_hash_symbol_type): Define. 226*377e23a2Schristos * aout-target.h (MY_bfd_copy_link_hash_symbol_type): Define. 227*377e23a2Schristos * aout-tic30.c (MY_bfd_copy_link_hash_symbol_type): Define. 228*377e23a2Schristos * binary.c (binary_bfd_copy_link_hash_symbol_type): Define. 229*377e23a2Schristos * bout.c (b_out_bfd_copy_link_hash_symbol_type): Define. 230*377e23a2Schristos * coffcode.h (coff_bfd_copy_link_hash_symbol_type): Define. 231*377e23a2Schristos * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type): Define. 232*377e23a2Schristos * i386msdos.c (msdos_bfd_copy_link_hash_symbol_type): Define. 233*377e23a2Schristos * i386os9k.c (os9k_bfd_copy_link_hash_symbol_type): Define. 234*377e23a2Schristos * ieee.c (ieee_bfd_copy_link_hash_symbol_type): Define. 235*377e23a2Schristos * ihex.c (ihex_bfd_copy_link_hash_symbol_type): Define. 236*377e23a2Schristos * libecoff.h (_bfd_ecoff_bfd_copy_link_hash_symbol_type): Define. 237*377e23a2Schristos * mach-o.c (bfd_mach_o_bfd_copy_link_hash_symbol_type): Define. 238*377e23a2Schristos * mmo.c (mmo_bfd_copy_link_hash_symbol_type): Define. 239*377e23a2Schristos * nlm-target.h (nlm_bfd_copy_link_hash_symbol_type): Define. 240*377e23a2Schristos * oasys.c (oasys_bfd_copy_link_hash_symbol_type): Define. 241*377e23a2Schristos * pef.c (bfd_pef_bfd_copy_link_hash_symbol_type): Define. 242*377e23a2Schristos * ppcboot.c (ppcboot_bfd_copy_link_hash_symbol_type): Define. 243*377e23a2Schristos * som.c (som_bfd_copy_link_hash_symbol_type): Define. 244*377e23a2Schristos * srec.c (srec_bfd_copy_link_hash_symbol_type): Define. 245*377e23a2Schristos * tekhex.c (tekhex_bfd_copy_link_hash_symbol_type): Define. 246*377e23a2Schristos * versados.c (versados_bfd_copy_link_hash_symbol_type): Define. 247*377e23a2Schristos * vms.c (vms_bfd_copy_link_hash_symbol_type): Define. 248*377e23a2Schristos * xsym.c (bfd_sym_bfd_copy_link_hash_symbol_type): Define. 249*377e23a2Schristos * bfd-in2.h: Regenerate. 250*377e23a2Schristos * libbfd.h: Regenerate. 251*377e23a2Schristos 252*377e23a2Schristos2009-11-19 Tristan Gingold <gingold@adacore.com> 253*377e23a2Schristos 254*377e23a2Schristos * coff-rs6000.c (rs6000coff_vec): Use generic routines instead of 255*377e23a2Schristos hard-coded casts. 256*377e23a2Schristos (pmac_xcoff_vec): Ditto. 257*377e23a2Schristos * coff64-rs6000.c (rs6000coff64_vec): Ditto. 258*377e23a2Schristos (aix5coff64_vec): Ditto. 259*377e23a2Schristos 260*377e23a2Schristos2009-11-18 Alan Modra <amodra@bigpond.net.au> 261*377e23a2Schristos 262*377e23a2Schristos * bfd-in.h (_bfd_elf_ppc_at_tls_transform): Declare. 263*377e23a2Schristos * bfd-in2.h: Regenerate. 264*377e23a2Schristos * elf64-ppc.c (ppc64_elf_relocate_section): Move code for R_PPC64_TLS 265*377e23a2Schristos insn optimisation to.. 266*377e23a2Schristos * elf32-ppc.c (_bfd_elf_ppc_at_tls_transform): ..here. New function. 267*377e23a2Schristos (ppc_elf_relocate_section): Use it. 268*377e23a2Schristos 269*377e23a2Schristos2009-11-18 Alan Modra <amodra@bigpond.net.au> 270*377e23a2Schristos 271*377e23a2Schristos * targets.c: Don't include alloca-conf.h. 272*377e23a2Schristos (bfd_get_target_info): Don't use alloca. 273*377e23a2Schristos 274*377e23a2Schristos2009-11-17 H.J. Lu <hongjiu.lu@intel.com> 275*377e23a2Schristos 276*377e23a2Schristos PR ld/10955 277*377e23a2Schristos * elfxx-ia64.c (elfNN_ia64_update_short_info): Also skip ABS 278*377e23a2Schristos sections. 279*377e23a2Schristos 280*377e23a2Schristos2009-11-17 H.J. Lu <hongjiu.lu@intel.com> 281*377e23a2Schristos 282*377e23a2Schristos PR ld/10955 283*377e23a2Schristos * elfxx-ia64.c (elfNN_ia64_link_hash_table): Update comments. 284*377e23a2Schristos (elfNN_ia64_update_short_info): Remove "->output_section" from 285*377e23a2Schristos ia64_info->max_short_sec and ia64_info->min_short_sec. 286*377e23a2Schristos (elfNN_ia64_choose_gp): Likewise. 287*377e23a2Schristos (elfNN_ia64_relax_section): Pass tsec->output_section to 288*377e23a2Schristos elfNN_ia64_update_short_info. 289*377e23a2Schristos 290*377e23a2Schristos2009-11-17 H.J. Lu <hongjiu.lu@intel.com> 291*377e23a2Schristos 292*377e23a2Schristos PR ld/10955 293*377e23a2Schristos * elfxx-ia64.c (elfNN_ia64_link_hash_table): Add max_short_sec, 294*377e23a2Schristos max_short_offset, min_short_sec and min_short_offset. 295*377e23a2Schristos (elfNN_ia64_update_short_info): New. 296*377e23a2Schristos (elfNN_ia64_relax_section): Update max_short_sec, 297*377e23a2Schristos max_short_offset, min_short_sec and min_short_offset. 298*377e23a2Schristos (elfNN_ia64_choose_gp): Use min_short_sec/max_short_sec if 299*377e23a2Schristos they are set. 300*377e23a2Schristos 301*377e23a2Schristos2009-11-17 Paul Brook <paul@codesourcery.com> 302*377e23a2Schristos Daniel Jacobowitz <dan@codesourcery.com> 303*377e23a2Schristos 304*377e23a2Schristos * elf32-arm.c (using_thumb_only, arch_has_arm_nop, 305*377e23a2Schristos arch_has_thumb2_nop): Handle TAG_CPU_ARCH_V7E_M. 306*377e23a2Schristos (tag_cpu_arch_combine): Ditto. Correct MAX_TAG_CPU_ARCH test. 307*377e23a2Schristos 308*377e23a2Schristos2009-11-17 Ulrich Weigand <uweigand@de.ibm.com> 309*377e23a2Schristos 310*377e23a2Schristos * elf32-spu.c (struct spu_link_hash_table): Remove overlay_fixed, 311*377e23a2Schristos reserved, and extra_stack_space members. 312*377e23a2Schristos (spu_elf_auto_overlay): Use auto_overlay_fixed, auto_overlay_reserved, 313*377e23a2Schristos and extra_stack_space members of htab->params instead. 314*377e23a2Schristos 315*377e23a2Schristos2009-11-17 Tristan Gingold <gingold@adacore.com> 316*377e23a2Schristos 317*377e23a2Schristos * targets.c: Include alloca-conf.h 318*377e23a2Schristos 319*377e23a2Schristos2009-11-16 Kai Tietz <kai.tietz@onevision.com> 320*377e23a2Schristos 321*377e23a2Schristos * targets.c (bfd_get_target_info): New function. 322*377e23a2Schristos (_bfd_find_arch_match): New function. 323*377e23a2Schristos * bfd-in2.h: Regenerated. 324*377e23a2Schristos 325*377e23a2Schristos2009-11-12 Nick Clifton <nickc@redhat.com> 326*377e23a2Schristos 327*377e23a2Schristos * po/ru.po: Updates Russian translation. 328*377e23a2Schristos 329*377e23a2Schristos2009-11-11 Nick Clifton <nickc@redhat.com> 330*377e23a2Schristos 331*377e23a2Schristos * po/id.po: Updated Indonesian translation. 332*377e23a2Schristos 333*377e23a2Schristos2009-11-11 Jan Kratochvil <jan.kratochvil@redhat.com> 334*377e23a2Schristos 335*377e23a2Schristos * configure.in: Call ACX_LARGEFILE. Stop calling AC_PLUGINS, 336*377e23a2Schristos AC_SYS_LARGEFILE and checking the Solaris largefile exception. 337*377e23a2Schristos * aclocal.m4: Regenerate. 338*377e23a2Schristos * configure: Regenerate. 339*377e23a2Schristos 340*377e23a2Schristos2009-11-09 H.J. Lu <hongjiu.lu@intel.com> 341*377e23a2Schristos 342*377e23a2Schristos PR ld/10911 343*377e23a2Schristos * elflink.c (elf_link_output_extsym): Don't return on 344*377e23a2Schristos STT_GNU_IFUNC symbol when stripping. 345*377e23a2Schristos 346*377e23a2Schristos2009-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 347*377e23a2Schristos 348*377e23a2Schristos * elf32-hppa.c (elf32_hppa_final_link): Don't sort unwind information 349*377e23a2Schristos in a relocatable link. 350*377e23a2Schristos * elf64-hppa.c (elf_hppa_final_link): Likewise. 351*377e23a2Schristos 352*377e23a2Schristos2009-11-05 Nick Clifton <nickc@redhat.com> 353*377e23a2Schristos 354*377e23a2Schristos * elflink.c (elf_link_add_object_symbols): Improve error 355*377e23a2Schristos message generated when a symbol is left unresolved because a 356*377e23a2Schristos --no-add-needed command line option has prevented the 357*377e23a2Schristos inclusion of the DSO defining it. 358*377e23a2Schristos 359*377e23a2Schristos2009-11-03 Alan Modra <amodra@bigpond.net.au> 360*377e23a2Schristos Ulrich Weigand <uweigand@de.ibm.com> 361*377e23a2Schristos 362*377e23a2Schristos * elf32-spu.c (mark_functions_via_relocs): Handle non-branch relocs 363*377e23a2Schristos (jump tables or other references to code labels) as well. 364*377e23a2Schristos 365*377e23a2Schristos2009-11-02 Paul Brook <paul@codesourcery.com> 366*377e23a2Schristos 367*377e23a2Schristos * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle VFPv4 368*377e23a2Schristos attributes. 369*377e23a2Schristos 370*377e23a2Schristos2009-11-02 Alan Modra <amodra@bigpond.net.au> 371*377e23a2Schristos 372*377e23a2Schristos * elflink.c (elf_link_add_object_symbols): Don't force debug 373*377e23a2Schristos symbols local. 374*377e23a2Schristos 375*377e23a2Schristos2009-10-29 Johan Kristell <johankri@axis.com> 376*377e23a2Schristos 377*377e23a2Schristos * elf32-cris.c (cris_elf_plt_sym_val): New function. 378*377e23a2Schristos (elf_backend_plt_sym_val): Define. 379*377e23a2Schristos 380*377e23a2Schristos2009-10-27 Kai Tietz <kai.tietz@onevision.com> 381*377e23a2Schristos 382*377e23a2Schristos * peXXigen.c (bfdver.h): Add include. 383*377e23a2Schristos (LINKER_VERSION): Do calculation based on BFD_VERSION. 384*377e23a2Schristos 385*377e23a2Schristos2009-10-25 Maciej W. Rozycki <macro@linux-mips.org> 386*377e23a2Schristos 387*377e23a2Schristos * elf32-vax.c (elf_vax_relocate_section): Correct assertion. 388*377e23a2Schristos 389*377e23a2Schristos2009-10-25 Maciej W. Rozycki <macro@linux-mips.org> 390*377e23a2Schristos 391*377e23a2Schristos * elf32-vax.c (elf_vax_plt_entry): Fix formatting. 392*377e23a2Schristos 393*377e23a2Schristos2009-10-25 Maciej W. Rozycki <macro@linux-mips.org> 394*377e23a2Schristos 395*377e23a2Schristos * elf32-vax.c (elf_vax_relocate_section): Fix a typo. 396*377e23a2Schristos 397*377e23a2Schristos2009-10-23 Kai Tietz <kai.tietz@onevision.com> 398*377e23a2Schristos 399*377e23a2Schristos * coff-x86_64.c (coff_amd64_rtype_to_howto): Subtract offset 400*377e23a2Schristos of R_AMD64_PCRLONG_<X> relocations from addend. 401*377e23a2Schristos 402*377e23a2Schristos2009-10-23 Alan Modra <amodra@bigpond.net.au> 403*377e23a2Schristos 404*377e23a2Schristos * plugin.c: Produce empty object if not BFD_SUPPORTS_PLUGINS. 405*377e23a2Schristos 406*377e23a2Schristos2009-10-20 Alan Modra <amodra@bigpond.net.au> 407*377e23a2Schristos 408*377e23a2Schristos PR binutils/10802 409*377e23a2Schristos * opncls.c (_maybe_make_executable): Make DYNAMIC files executable. 410*377e23a2Schristos 411*377e23a2Schristos2009-10-19 Hans-Peter Nilsson <hp@axis.com> 412*377e23a2Schristos 413*377e23a2Schristos * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_DTPREL>: 414*377e23a2Schristos Don't subtract the size of the TLS block for non-shared objects 415*377e23a2Schristos from the relocation. 416*377e23a2Schristos 417*377e23a2Schristos2009-10-17 Arnold Metselaar <arnold.metselaar@planet.nl> 418*377e23a2Schristos 419*377e23a2Schristos * coff-z80.c (z80coff_vec): Allow sections to be of type 420*377e23a2Schristos SEC_CODE or SEC_DATA 421*377e23a2Schristos 422*377e23a2Schristos2009-10-16 Alan Modra <amodra@bigpond.net.au> 423*377e23a2Schristos 424*377e23a2Schristos PR binutils/10785 425*377e23a2Schristos * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Don't bfd_alloc 426*377e23a2Schristos bim and bim->buffer. bfd_malloc instead. 427*377e23a2Schristos * peicode.h (pe_ILF_build_a_bfd): Similarly. 428*377e23a2Schristos (ILF_DATA_SIZE): Don't include bim. 429*377e23a2Schristos * opncls.c (bfd_close): Test bim->buffer non-NULL before freeing. 430*377e23a2Schristos 431*377e23a2Schristos2009-10-14 Alan Modra <amodra@bigpond.net.au> 432*377e23a2Schristos 433*377e23a2Schristos * aoutx.h (aout_link_check_ar_symbols): Typo fix. 434*377e23a2Schristos 435*377e23a2Schristos2009-10-13 H.J. Lu <hongjiu.lu@intel.com> 436*377e23a2Schristos 437*377e23a2Schristos PR binutils/10763 438*377e23a2Schristos * elf32-i386.c (elf_i386_finish_dynamic_symbol): Declare plt 439*377e23a2Schristos earlier. 440*377e23a2Schristos 441*377e23a2Schristos2009-10-13 Alan Modra <amodra@bigpond.net.au> 442*377e23a2Schristos 443*377e23a2Schristos * elflink.c (_bfd_elf_merge_symbol): Revert previous patch. 444*377e23a2Schristos 445*377e23a2Schristos2009-10-12 Roland McGrath <roland@frob.com> 446*377e23a2Schristos 447*377e23a2Schristos * elflink.c (elf_link_add_object_symbols, _bfd_elf_merge_symbol): 448*377e23a2Schristos Fix %s that should be %B in several message formats. 449*377e23a2Schristos 450*377e23a2Schristos2009-10-10 Alan Modra <amodra@bigpond.net.au> 451*377e23a2Schristos 452*377e23a2Schristos * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols for 453*377e23a2Schristos excluded output sections. 454*377e23a2Schristos 455*377e23a2Schristos2009-10-09 Tristan Gingold <gingold@adacore.com> 456*377e23a2Schristos 457*377e23a2Schristos * mach-o.c (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_RPATH. 458*377e23a2Schristos (bfd_mach_o_bfd_print_private_bfd_data): Ditto. 459*377e23a2Schristos 460*377e23a2Schristos2009-10-09 Tristan Gingold <gingold@adacore.com> 461*377e23a2Schristos 462*377e23a2Schristos * mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Rename to 463*377e23a2Schristos bfd_mach_o_read_symtab_symbols. 464*377e23a2Schristos (bfd_mach_o_scan_write_thread): Rename to bfd_mach_o_write_thread. 465*377e23a2Schristos (bfd_mach_o_scan_write_relocs): Rename to bfd_mach_o_write_relocs. 466*377e23a2Schristos (bfd_mach_o_scan_write_section_32): Rename to 467*377e23a2Schristos bfd_mach_o_write_section_32. 468*377e23a2Schristos (bfd_mach_o_scan_write_section_64): Rename to 469*377e23a2Schristos bfd_mach_o_write_section_64. 470*377e23a2Schristos (bfd_mach_o_scan_write_segment_32): Rename to 471*377e23a2Schristos bfd_mach_o_write_segment_32. 472*377e23a2Schristos (bfd_mach_o_scan_write_segment_64): Rename to 473*377e23a2Schristos bfd_mach_o_write_segment_64. 474*377e23a2Schristos (bfd_mach_o_scan_write_symtab): Rename to bfd_mach_o_write_symtab. 475*377e23a2Schristos (bfd_mach_o_scan_read_section_32): Rename to 476*377e23a2Schristos bfd_mach_o_read_section_32. 477*377e23a2Schristos (bfd_mach_o_scan_read_section_64): Rename to 478*377e23a2Schristos bfd_mach_o_read_section_64. 479*377e23a2Schristos (bfd_mach_o_scan_read_section): Rename to bfd_mach_o_read_section. 480*377e23a2Schristos (bfd_mach_o_scan_read_symtab_strtab): Rename to 481*377e23a2Schristos bfd_mach_o_read_symtab_strtab. 482*377e23a2Schristos (bfd_mach_o_scan_read_symtab_symbol): Rename to 483*377e23a2Schristos bfd_mach_o_read_symtab_symbol. 484*377e23a2Schristos (bfd_mach_o_scan_read_dysymtab_symbol): Rename to 485*377e23a2Schristos bfd_mach_o_read_dysymtab_symbol. 486*377e23a2Schristos (bfd_mach_o_scan_read_dylinker): Rename to bfd_mach_o_read_dylinker. 487*377e23a2Schristos (bfd_mach_o_scan_read_dylib): Rename to bfd_mach_o_read_dylib. 488*377e23a2Schristos (bfd_mach_o_scan_read_prebound_dylib): Rename to 489*377e23a2Schristos bfd_mach_o_read_prebound_dylib. 490*377e23a2Schristos (bfd_mach_o_scan_read_thread): Rename to bfd_mach_o_read_thread. 491*377e23a2Schristos (bfd_mach_o_scan_read_dysymtab): Rename to bfd_mach_o_read_dysymtab. 492*377e23a2Schristos (bfd_mach_o_scan_read_symtab): Rename to bfd_mach_o_read_symtab. 493*377e23a2Schristos (bfd_mach_o_scan_read_uuid): Rename to bfd_mach_o_read_uuid. 494*377e23a2Schristos (bfd_mach_o_scan_read_linkedit): Rename to bfd_mach_o_read_linkedit. 495*377e23a2Schristos (bfd_mach_o_scan_read_str): Rename to bfd_mach_o_read_str. 496*377e23a2Schristos (bfd_mach_o_scan_read_dyld_info): Rename to bfd_mach_o_read_dyld_info. 497*377e23a2Schristos (bfd_mach_o_scan_read_segment): Rename to bfd_mach_o_read_segment. 498*377e23a2Schristos (bfd_mach_o_scan_read_segment_32): Rename to 499*377e23a2Schristos bfd_mach_o_read_segment_32. 500*377e23a2Schristos (bfd_mach_o_scan_read_segment_64): Rename to 501*377e23a2Schristos bfd_mach_o_read_segment_64. 502*377e23a2Schristos (bfd_mach_o_scan_read_command): Rename to bfd_mach_o_read_command. 503*377e23a2Schristos * mach-o.h (bfd_mach_o_scan_read_dysymtab_symbol): Rename to 504*377e23a2Schristos bfd_mach_o_read_dysymtab_symbol. 505*377e23a2Schristos 506*377e23a2Schristos2009-10-09 Tristan Gingold <gingold@adacore.com> 507*377e23a2Schristos 508*377e23a2Schristos * mach-o.c (bfd_mach_o_section_get_entry_size): Moved. 509*377e23a2Schristos (bfd_mach_o_section_get_nbr_indirect): Ditto. 510*377e23a2Schristos (bfd_mach_o_get_synthetic_symtab): New function. 511*377e23a2Schristos (bfd_mach_o_print_private_header): Print the number of commands 512*377e23a2Schristos in decimal. 513*377e23a2Schristos * mach-o.h (bfd_mach_o_get_synthetic_symtab): Add prototype. 514*377e23a2Schristos * mach-o-target.c: Do not defined bfd_mach_o_get_synthetic_symtab. 515*377e23a2Schristos 516*377e23a2Schristos2009-10-08 Tristan Gingold <gingold@adacore.com> 517*377e23a2Schristos 518*377e23a2Schristos * config.bfd: Add bfd_mach_o_i386_vec in x86_64-darwin targ_selvecs. 519*377e23a2Schristos 520*377e23a2Schristos2009-10-06 H.J. Lu <hongjiu.lu@intel.com> 521*377e23a2Schristos 522*377e23a2Schristos * bfd-in2.h: Regenerated. 523*377e23a2Schristos 524*377e23a2Schristos2009-10-02 Alan Modra <amodra@bigpond.net.au> 525*377e23a2Schristos 526*377e23a2Schristos * aout-cris.c (N_SHARED_LIB): Don't define. 527*377e23a2Schristos * hp300bsd.c (N_SHARED_LIB): Don't define. 528*377e23a2Schristos * i386bsd.c (N_SHARED_LIB): Don't define. 529*377e23a2Schristos * i386linux.c (N_SHARED_LIB): Don't define. 530*377e23a2Schristos * i386lynx.c (N_SHARED_LIB): Don't define. 531*377e23a2Schristos * m68klinux.c (N_SHARED_LIB): Don't define. 532*377e23a2Schristos * m88kmach3.c (N_SHARED_LIB): Don't define. 533*377e23a2Schristos * mipsbsd.c (N_SHARED_LIB): Don't define. 534*377e23a2Schristos * newsos3.c (N_SHARED_LIB): Don't define. 535*377e23a2Schristos * pc532-mach.c (N_SHARED_LIB): Don't define. 536*377e23a2Schristos * pdp11.c (N_SHARED_LIB): Don't define. 537*377e23a2Schristos * sparclinux.c (N_SHARED_LIB): Don't define. 538*377e23a2Schristos * vaxbsd.c (N_SHARED_LIB): Don't define. 539*377e23a2Schristos 540*377e23a2Schristos2009-10-01 Dave Korn <dave.korn.cygwin@gmail.com> 541*377e23a2Schristos 542*377e23a2Schristos * cofflink.c (_bfd_coff_generic_relocate_section): Look for the aux 543*377e23a2Schristos symbol for a weak undef in the auxbfd, not the input bfd. 544*377e23a2Schristos 545*377e23a2Schristos2009-10-01 Ulrich Weigand <uweigand@de.ibm.com> 546*377e23a2Schristos 547*377e23a2Schristos * elf32-spu.c (spu_elf_auto_overlay): Insert icache linker script 548*377e23a2Schristos after .toe instead of before .text section. Set the LMA of all 549*377e23a2Schristos overlay sections to their icache IA address. 550*377e23a2Schristos (spu_elf_find_overlays): Determine icache set id without reference 551*377e23a2Schristos to the LMA. 552*377e23a2Schristos 553*377e23a2Schristos2009-09-30 Tristan Gingold <gingold@adacore.com> 554*377e23a2Schristos 555*377e23a2Schristos * configure.com: Use hosts/alphavms.h on both alpha and ia64 VMS. 556*377e23a2Schristos 557*377e23a2Schristos2009-09-29 H.J. Lu <hongjiu.lu@intel.com> 558*377e23a2Schristos 559*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_append_rela): New. 560*377e23a2Schristos (elf64_x86_64_relocate_section): Use it. 561*377e23a2Schristos (elf64_x86_64_finish_dynamic_symbol): Likewise. 562*377e23a2Schristos 563*377e23a2Schristos2009-09-29 DJ Delorie <dj@redhat.com> 564*377e23a2Schristos 565*377e23a2Schristos * Makefile.am (ALL_MACHINES): Add cpu-rx.lo. 566*377e23a2Schristos (ALL_MACHINES_CFILES): Add cpu-rx.c. 567*377e23a2Schristos (BFD32_BACKENDS): Add elf32-rx.lo. 568*377e23a2Schristos (BFD32_BACKENDS_CFILES): Add elf32-rx.c. 569*377e23a2Schristos * archures.c (bfd_architecture): Add bfd_arch_rx and bfd_mach_rx. 570*377e23a2Schristos Export bfd_rx_arch. 571*377e23a2Schristos (bfd_archures_list): Add bfd_rx_arch. 572*377e23a2Schristos * config.bfd: Add entry for rx-*-elf. 573*377e23a2Schristos * configure.in: Add entries for bfd_elf32_rx_le_vec and 574*377e23a2Schristos bfd_elf32_rx_be_vec. 575*377e23a2Schristos * reloc.c: Add RX relocations. 576*377e23a2Schristos * targets.c: Add RX target vectors. 577*377e23a2Schristos * Makefile.in: Regenerate. 578*377e23a2Schristos * bfd-in2.h: Regenerate. 579*377e23a2Schristos * configure: Regenerate. 580*377e23a2Schristos * libbfd.h: Regenerate. 581*377e23a2Schristos * cpu-rx.c: New file. 582*377e23a2Schristos * elf32-rx.c: New file. 583*377e23a2Schristos 584*377e23a2Schristos2009-09-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com> 585*377e23a2Schristos 586*377e23a2Schristos * elf32-cr16.c (elf32_cr16_relocate_section): Removed 587*377e23a2Schristos info->relocatable to fix the ld/testsuites/ld-elf/linkonce1 test case. 588*377e23a2Schristos 589*377e23a2Schristos2009-09-28 Nick Clifton <nickc@redhat.com> 590*377e23a2Schristos 591*377e23a2Schristos PR 10478: Accepting Solaris binaries. 592*377e23a2Schristos * elf.c (bfd_section_from_shdr): Allow SHN_BEFORE and SHN_AFTER 593*377e23a2Schristos section link values in x86 binaries. 594*377e23a2Schristos * elfcode.h (elf_object_p): Likewise. 595*377e23a2Schristos 596*377e23a2Schristos2009-09-28 Philippe De Muyter <phdm@macqel.be> 597*377e23a2Schristos 598*377e23a2Schristos * elf32-m68k.c (elf_m68k_final_write_processing): New function. 599*377e23a2Schristos (elf_backend_final_write_processing): Macro defined as above function. 600*377e23a2Schristos 601*377e23a2Schristos2009-09-25 Martin Thuresson <martint@google.com> 602*377e23a2Schristos 603*377e23a2Schristos Update sources to make alpha and arm targets compile cleanly with 604*377e23a2Schristos -Wc++-compat: 605*377e23a2Schristos * ecoff.c: Add casts. 606*377e23a2Schristos * ecofflink.c: Add casts. 607*377e23a2Schristos * elf64-alpha.c: Add casts. 608*377e23a2Schristos (struct alpha_elf_got_entry, struct alpha_elf_reloc_entry): Move 609*377e23a2Schristos to top level. 610*377e23a2Schristos (SKIP_HOWTO): Use enum name. 611*377e23a2Schristos * elf32-arm.c: Add casts. 612*377e23a2Schristos (elf32_arm_vxworks_bed): Update code to avoid multiple 613*377e23a2Schristos declarations. 614*377e23a2Schristos (struct map_stub): Move to top level. 615*377e23a2Schristos 616*377e23a2Schristos2009-09-24 H.J. Lu <hongjiu.lu@intel.com> 617*377e23a2Schristos 618*377e23a2Schristos PR ld/10630 619*377e23a2Schristos * elflink.c (elf_link_output_extsym): Turn off visibility on 620*377e23a2Schristos local symbol. 621*377e23a2Schristos (bfd_elf_final_link): Turn off visibility on dynamic local 622*377e23a2Schristos symbol. 623*377e23a2Schristos 624*377e23a2Schristos2009-09-24 Alan Modra <amodra@bigpond.net.au> 625*377e23a2Schristos 626*377e23a2Schristos PR binutils/10654 627*377e23a2Schristos * dwarf2.c (lookup_address_in_line_info_table): Remove workaround 628*377e23a2Schristos for invalid location lists generated by gcc-2.95 and Intel 6.0 C++. 629*377e23a2Schristos Remove "function" parm, adjust caller. 630*377e23a2Schristos 631*377e23a2Schristos2009-09-23 Matt Rice <ratmice@gmail.com> 632*377e23a2Schristos 633*377e23a2Schristos * bfd-in.h (bfd_elf_size_dynamic_sections): Add audit and depaudit 634*377e23a2Schristos arguments. 635*377e23a2Schristos * elflink.c (bfd_elf_size_dynamic_sections): Generate DT_AUDIT, 636*377e23a2Schristos DT_DEPAUDIT from audit/depaudit arguments. 637*377e23a2Schristos (elf_finalize_dynstr): Finalize DT_AUDIT and DT_DEPAUDIT strtab entries. 638*377e23a2Schristos (elf_link_add_object_symbols): Set dt_audit target data when finding a 639*377e23a2Schristos DT_AUDIT. 640*377e23a2Schristos * bfd-in2.h: Regenerate. 641*377e23a2Schristos * bfd-elf.h: Add dt_audit to elf_obj_tdata, and elf_dt_audit macro. 642*377e23a2Schristos 643*377e23a2Schristos2009-09-23 Jie Zhang <jie.zhang@analog.com> 644*377e23a2Schristos 645*377e23a2Schristos * elf32-bfin.c (_bfinfdpic_size_got_plt): Make sure empty 646*377e23a2Schristos .rel.plt and .plt sections are removed. 647*377e23a2Schristos (elf32_bfinfdpic_size_dynamic_sections): Remove empty .dynbss 648*377e23a2Schristos section. Remove the duplicated removing of empty .rel.plt 649*377e23a2Schristos section. 650*377e23a2Schristos 651*377e23a2Schristos2009-09-21 Richard Sandiford <rdsandiford@googlemail.com> 652*377e23a2Schristos 653*377e23a2Schristos * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Extend previous 654*377e23a2Schristos patch to handle the new personality relaxation. 655*377e23a2Schristos 656*377e23a2Schristos2009-09-21 Richard Sandiford <rdsandiford@googlemail.com> 657*377e23a2Schristos 658*377e23a2Schristos * elf-eh-frame.c (make_pc_relative): New function. 659*377e23a2Schristos (_bfd_elf_write_section_eh_frame): Use it. 660*377e23a2Schristos 661*377e23a2Schristos2009-09-21 Alan Modra <amodra@bigpond.net.au> 662*377e23a2Schristos 663*377e23a2Schristos * elf32-ppc.c (TLS_GET_ADDR_GLINK_SIZE): Define. 664*377e23a2Schristos (ADD_3_12_2, BEQLR, CMPWI_11_0, LWZ_11_3, LWZ_12_3): Define. 665*377e23a2Schristos (MR_0_3, MR_3_0): Define. 666*377e23a2Schristos (struct ppc_elf_link_hash_table): Add no_tls_get_addr_opt. 667*377e23a2Schristos (ppc_elf_select_plt_layout): Save emit_stub_syms param earlier. 668*377e23a2Schristos (ppc_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash 669*377e23a2Schristos table. Check for presense of __tls_get_addr_opt 670*377e23a2Schristos (allocate_dynrelocs): Increase glink entry size for __tls_get_addr. 671*377e23a2Schristos (ppc_elf_size_dynamic_sections): Add DT_PPC_TLS_OPT tag. 672*377e23a2Schristos (write_glink_stub): Add param p. 673*377e23a2Schristos (ppc_elf_relocate_section): Adjust write_glink_stub call. 674*377e23a2Schristos (ppc_elf_finish_dynamic_symbol): Emit special glink call stub for 675*377e23a2Schristos __tls_get_addr. 676*377e23a2Schristos * elf32-ppc.h (ppc_elf_tls_setup): Update prototype. 677*377e23a2Schristos * elf64-ppc.c (struct ppc_link_hash_table): Add no_tls_get_addr_opt. 678*377e23a2Schristos (ppc64_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash 679*377e23a2Schristos table. Check for presense of __tls_get_addr_opt. 680*377e23a2Schristos (ppc64_elf_size_dynamic_sections): Add DT_PPC64_TLS_OPT tag. 681*377e23a2Schristos (LD_R11_0R3, LD_R12_0R3, MR_R0_R3, CMPDI_R11_0, ADD_R3_R12_R13, 682*377e23a2Schristos BEQLR, MR_R3_R0, MFLR_R11, STD_R11_0R1, BCTRL, LD_R11_0R1, 683*377e23a2Schristos LD_R2_0R1, MTLR_R11): Define. 684*377e23a2Schristos (build_tls_get_addr_stub): New function. 685*377e23a2Schristos (ppc_build_one_stub): Call it. 686*377e23a2Schristos (ppc_size_one_stub): Add extra size for __tls_get_addr stub. 687*377e23a2Schristos (ppc64_elf_relocate_section): Don't change nop to ld 2,40(1) for 688*377e23a2Schristos __tls_get_addr plt call. 689*377e23a2Schristos * elf64-ppc.h (ppc64_elf_tls_setup): Update prototype. 690*377e23a2Schristos 691*377e23a2Schristos2009-09-19 Richard Sandiford <rdsandiford@googlemail.com> 692*377e23a2Schristos 693*377e23a2Schristos * elf-bfd.h (eh_cie_fde): Add personality_offset and 694*377e23a2Schristos make_per_encoding_relative to the CIE structure. Add a padding field. 695*377e23a2Schristos * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Use 0x70 696*377e23a2Schristos rather than 0xf0 when masking out the base address encoding 697*377e23a2Schristos Record the offset of personality data from the start of the CIE. 698*377e23a2Schristos Remove a repeated elf_backend_can_make_relative_eh_frame check. 699*377e23a2Schristos (find_merged_cie): Take an info argument. If the personality 700*377e23a2Schristos binds locally, try converting an absolute personality into 701*377e23a2Schristos a local one. 702*377e23a2Schristos (_bfd_elf_discard_section_eh_frame): Use 0x70 rather than 0xf0 703*377e23a2Schristos when masking out the base address encoding. Update the call to 704*377e23a2Schristos find_merged_cie. 705*377e23a2Schristos (_bfd_elf_eh_frame_section_offset): Discard relocations against 706*377e23a2Schristos the personality data if we are converting into PC-relative form. 707*377e23a2Schristos (_bfd_elf_write_section_eh_frame): Use 0x70 rather than 0xf0 708*377e23a2Schristos when masking out the base address encoding. Handle 709*377e23a2Schristos make_per_encoding_relative. 710*377e23a2Schristos 711*377e23a2Schristos2009-09-18 Alan Modra <amodra@bigpond.net.au> 712*377e23a2Schristos 713*377e23a2Schristos PR ld/10406 714*377e23a2Schristos * elf32-ppc.c (ppc_elf_howto_raw): Make R_PPC_EMB_SDAI16 and 715*377e23a2Schristos R_PPC_EMB_SDA2I16 complain_overflow_signed. 716*377e23a2Schristos (create_sdata_sym): Pass info rather than htab. 717*377e23a2Schristos Update all callers. Ensure symbols are hidden. 718*377e23a2Schristos (ppc_elf_check_relocs): Allow SDAREL16 when shared. 719*377e23a2Schristos (ppc_elf_size_dynamic_sections): When shared, equate _SDA_BASE_ to 720*377e23a2Schristos _GLOBAL_OFFSET_TABLE_. 721*377e23a2Schristos (elf_finish_pointer_linker_section): Don't assume that sdata base 722*377e23a2Schristos symbol is always at 0x8000 offset. Don't subtract the addend here. 723*377e23a2Schristos (is_static_defined): New function. 724*377e23a2Schristos (ppc_elf_relocate_section): Verify symbol base used in SDA relocs 725*377e23a2Schristos is statically defined. Clear addend for EMB_SDAI16 and EMB_SDA2I16 726*377e23a2Schristos relocs. Downgrade error on unexpected section for EMB_SDA2REL 727*377e23a2Schristos reloc symbols to a warning. 728*377e23a2Schristos 729*377e23a2Schristos2009-09-18 Nick Clifton <nickc@redhat.com> 730*377e23a2Schristos 731*377e23a2Schristos * po/es.po: Updated Spanish translation. 732*377e23a2Schristos * po/vi.po: Updated Vietnamese translation. 733*377e23a2Schristos 734*377e23a2Schristos2009-09-18 Alan Modra <amodra@bigpond.net.au> 735*377e23a2Schristos 736*377e23a2Schristos * elf64-ppc.c (follow_link, elf_follow_link, ppc_follow_link): New 737*377e23a2Schristos functions. Use throughout. 738*377e23a2Schristos (ppc64_elf_copy_indirect_symbol): Set direct symbol "oh" field 739*377e23a2Schristos from indirect symbol. 740*377e23a2Schristos (lookup_fdh): Rename from get_fdh. Follow indirect sym links. 741*377e23a2Schristos (add_symbol_adjust): Simplify. 742*377e23a2Schristos (defined_code_entry, defined_func_desc): New functions. 743*377e23a2Schristos (ppc64_elf_gc_keep): Follow indirect sym links. Use defined_code_entry. 744*377e23a2Schristos (ppc64_elf_gc_mark_dynamic_ref): Use defined_func_desc and 745*377e23a2Schristos defined_code_entry to follow indirect sym links. 746*377e23a2Schristos (ppc64_elf_gc_mark_hook, func_desc_adjust): Likewise. 747*377e23a2Schristos (ppc_type_of_stub): Follow indirect sym links. 748*377e23a2Schristos (toc_adjusting_stub_needed): Likewise. 749*377e23a2Schristos (ppc_build_one_stub): Likewise. Make undefined dot-symbols weak 750*377e23a2Schristos rather than defining them at stub. 751*377e23a2Schristos (ppc64_elf_relocate_section): Rewrite call test to avoid multiple 752*377e23a2Schristos assignments in test. 753*377e23a2Schristos 754*377e23a2Schristos2009-09-16 Tristan Gingold <gingold@adacore.com> 755*377e23a2Schristos 756*377e23a2Schristos * mach-o.h (bfd_mach_o_filetype): Add new constants from darwin10. 757*377e23a2Schristos Reindent. 758*377e23a2Schristos * mach-o.c (bfd_mach_o_cpu_name): Reindent. 759*377e23a2Schristos (bfd_mach_o_filetype_name): Complete with new constants. Reindent. 760*377e23a2Schristos (bfd_mach_o_print_private_header): Use fputs instead of fprintf 761*377e23a2Schristos when possible to avoid warnings. 762*377e23a2Schristos (bfd_mach_o_print_section_map): Ditto. 763*377e23a2Schristos (bfd_mach_o_section_get_entry_size): New function. 764*377e23a2Schristos (bfd_mach_o_section_get_nbr_indirect): Simplify using the newly 765*377e23a2Schristos added function. 766*377e23a2Schristos (bfd_mach_o_print_dysymtab): Print address of indirect symbols. 767*377e23a2Schristos 768*377e23a2Schristos2009-09-14 Nick Clifton <nickc@redhat.com> 769*377e23a2Schristos 770*377e23a2Schristos * po/fi.po: Updated Finnish translation. 771*377e23a2Schristos 772*377e23a2Schristos2009-09-11 Nick Clifton <nickc@redhat.com> 773*377e23a2Schristos 774*377e23a2Schristos * po/bfd.pot: Updated by the Translation project. 775*377e23a2Schristos 776*377e23a2Schristos2009-09-11 Philippe De Muyter <phdm@macqel.be> 777*377e23a2Schristos 778*377e23a2Schristos * binary.c (binary_object_p): Remove bfd_external_binary_architecture 779*377e23a2Schristos hack. objcopy `-B' (`--binary-architecture') option is now handled 780*377e23a2Schristos in a generic way. 781*377e23a2Schristos 782*377e23a2Schristos2009-09-11 Nick Clifton <nickc@redhat.com> 783*377e23a2Schristos 784*377e23a2Schristos * rs6000-core.c (read_hdr): Fix typo in recent C++ compatibility 785*377e23a2Schristos changes. 786*377e23a2Schristos 787*377e23a2Schristos2009-09-11 Jie Zhang <jie.zhang@analog.com> 788*377e23a2Schristos 789*377e23a2Schristos * elf32-bfin.c (bfinfdpic_relocs_info_find): Just return 790*377e23a2Schristos NULL if `ht' is NULL. 791*377e23a2Schristos 792*377e23a2Schristos2009-09-09 Martin Thuresson <martin@mtme.org> 793*377e23a2Schristos 794*377e23a2Schristos Update sources to compile cleanly with -Wc++-compat: 795*377e23a2Schristos * aoutx.h: Add casts. 796*377e23a2Schristos * archive.c: Add casts. 797*377e23a2Schristos * archive64.c: Add casts. 798*377e23a2Schristos * archures.c: Add casts. 799*377e23a2Schristos * bfd-in2.h: Regenerated. 800*377e23a2Schristos * bfd.c: Add casts. (enum bfd_direction): Move out to top level. 801*377e23a2Schristos * bfdio.c: Add casts. 802*377e23a2Schristos * binary.c: Add casts. 803*377e23a2Schristos * cache.c (cache_bseek,cache_bread_1,cache_bwrite): Updated 804*377e23a2Schristos parameter to use enum value instead of int. 805*377e23a2Schristos * coffcode.h: Add casts. 806*377e23a2Schristos * coffgen.c: Add casts. 807*377e23a2Schristos * cofflink.c: Add casts. 808*377e23a2Schristos * compress.c: Add casts. 809*377e23a2Schristos * dwarf1.c: Add casts. 810*377e23a2Schristos * dwarf2.c: Add casts. (struct dwarf2_debug): Rename member bfd to 811*377e23a2Schristos bfd_ptr. Update code to use new name. 812*377e23a2Schristos * elf-attrs.c: Add casts. 813*377e23a2Schristos * elf-bfd.h (elf_link_virtual_table_entry): Gives name to 814*377e23a2Schristos anonymous struct. (union gotplt_union, struct 815*377e23a2Schristos elf_link_virtual_table_entry): Move to top level. 816*377e23a2Schristos * elf-eh-frame.c: Add casts. 817*377e23a2Schristos * elf-strtab.c: Add casts. 818*377e23a2Schristos * elf.c: Add casts. (_bfd_elm_make_Section_from_phdr): Change 819*377e23a2Schristos argument name from typename to type_name. 820*377e23a2Schristos * elf32-i386.c: Add casts. 821*377e23a2Schristos * elf64-x86-64.c: Add casts. 822*377e23a2Schristos * elfcode.h: Add casts. 823*377e23a2Schristos * elfcore.h: Add casts. 824*377e23a2Schristos * elflink.c: Add casts. 825*377e23a2Schristos * format.c: Add casts. 826*377e23a2Schristos * hash.c: Add casts. 827*377e23a2Schristos * ihex.c: Add casts. 828*377e23a2Schristos * libaout.h (enum aout_subformat, enum aout_magic): Move to top 829*377e23a2Schristos level. 830*377e23a2Schristos * libbfd.c: Add casts. 831*377e23a2Schristos * linker.c: Add casts. 832*377e23a2Schristos * merge.c: Add casts. 833*377e23a2Schristos * opncls.c: Add casts. 834*377e23a2Schristos * peXXigen.c: Add casts. 835*377e23a2Schristos * peicode.h: Add casts. 836*377e23a2Schristos * reloc.c: Add casts. 837*377e23a2Schristos * section.c: Add casts. 838*377e23a2Schristos * simple.c: Add casts. 839*377e23a2Schristos * srec.c: Add casts. 840*377e23a2Schristos * stabs.c: Add casts. 841*377e23a2Schristos * syms.c: Add casts. 842*377e23a2Schristos * targets.c: Add casts. 843*377e23a2Schristos * tekhex.c: Add casts. 844*377e23a2Schristos * verilog.c: Add casts. 845*377e23a2Schristos 846*377e23a2Schristos2009-09-09 Paolo Bonzini <bonzini@gnu.org> 847*377e23a2Schristos 848*377e23a2Schristos * configure: Regenerate. 849*377e23a2Schristos 850*377e23a2Schristos2009-09-09 Daniel Jacobowitz <dan@codesourcery.com> 851*377e23a2Schristos 852*377e23a2Schristos * elf32-arm.c (elf32_arm_final_link_relocate): Set sym_flags 853*377e23a2Schristos for the mode of target PLT entries. 854*377e23a2Schristos (allocate_dynrelocs): Only adjust symbol type if setting its 855*377e23a2Schristos value. 856*377e23a2Schristos 857*377e23a2Schristos2009-09-09 Paolo Bonzini <bonzini@gnu.org> 858*377e23a2Schristos 859*377e23a2Schristos * configure: Regenerate. 860*377e23a2Schristos 861*377e23a2Schristos2009-09-09 Nick Clifton <nickc@redhat.com> 862*377e23a2Schristos 863*377e23a2Schristos PR 10478: 864*377e23a2Schristos * elf.c (bfd_section_from_shdr): Do not reject sparc binaries with 865*377e23a2Schristos section headers containing sh_link values of SHN_BEFORE or 866*377e23a2Schristos SHN_AFTER. 867*377e23a2Schristos * elfcode.h (elf_object_p): Likewise. 868*377e23a2Schristos 869*377e23a2Schristos2009-09-09 Tristan Gingold <gingold@adacore.com> 870*377e23a2Schristos 871*377e23a2Schristos Handle DYLD_INFO introduced by Darwin10. 872*377e23a2Schristos * mach-o.h (bfd_mach_o_load_command_type): Add 873*377e23a2Schristos BFD_MACH_O_LC_DYLD_INFO. 874*377e23a2Schristos (bfd_mach_o_dyld_info_command): New type. 875*377e23a2Schristos (bfd_mach_o_load_command): Add dyld_info field. 876*377e23a2Schristos * mach-o.c (bfd_mach_o_scan_read_str): Reduce size of buf. 877*377e23a2Schristos (bfd_mach_o_scan_read_dyld_info): New function. 878*377e23a2Schristos (bfd_mach_o_scan_read_command): Handle BFD_MACH_O_LC_DYLD_INFO. 879*377e23a2Schristos (bfd_mach_o_bfd_print_private_bfd_data): Ditto. 880*377e23a2Schristos (bfd_mach_o_load_command_name): AddB FD_MACH_O_LC_DYLD_INFO. 881*377e23a2Schristos (bfd_mach_o_print_dyld_info): New function. 882*377e23a2Schristos 883*377e23a2Schristos2009-09-09 M R Swami Reddy <MR.Swami.Reddy@nsc.com> 884*377e23a2Schristos 885*377e23a2Schristos * elf32-cr16.c (elf32_cr16_relocate_section): Add code to discard the 886*377e23a2Schristos linkonce or linker script discarded section. 887*377e23a2Schristos 888*377e23a2Schristos2009-09-09 Alan Modra <amodra@bigpond.net.au> 889*377e23a2Schristos 890*377e23a2Schristos * elf32-xtensa.c (elf_xtensa_relax_section): Delete -r check. 891*377e23a2Schristos 892*377e23a2Schristos2009-09-07 Andreas Schwab <schwab@linux-m68k.org> 893*377e23a2Schristos 894*377e23a2Schristos * elf32-m68k.c (rtype_to_howto): If the reloc index is out of 895*377e23a2Schristos range call the bfd error hander and use R_68K_NONE instead. 896*377e23a2Schristos 897*377e23a2Schristos2009-09-07 Tristan Gingold <gingold@adacore.com> 898*377e23a2Schristos 899*377e23a2Schristos * po/SRC-POTFILES.in: Regenerate. 900*377e23a2Schristos * po/bfd.pot: Regenerate. 901*377e23a2Schristos 902*377e23a2Schristos * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER, 903*377e23a2Schristos BFD_HAVE_SYS_STAT_TYPE_MEMBER): Moved to gas/acinclude.m4 904*377e23a2Schristos * configure.in: Move tests for tm_gmtoff, st_mtim.tv_sec and 905*377e23a2Schristos st_mtim.tv_nsec to gas/configure.in 906*377e23a2Schristos (bfd_elf64_ia64_vms_vec): Remove vmsutil.lo 907*377e23a2Schristos * configure: Regenerate. 908*377e23a2Schristos * config.in: Regenerate. 909*377e23a2Schristos * vmsutil.c: Moved to gas/config/te-vms.c 910*377e23a2Schristos * vmsutil.h: Removed. 911*377e23a2Schristos * Makefile.am (BFD32_BACKENDS_CFILES): Remove vmsutil.c 912*377e23a2Schristos (BFD32_BACKENDS): Remove vmsutil.lo 913*377e23a2Schristos * Makefile.in: Regenerate. 914*377e23a2Schristos 915*377e23a2Schristos2009-09-05 Eli Zaretskii <eliz@gnu.org> 916*377e23a2Schristos 917*377e23a2Schristos * coffcode.h: Include libiberty.h. 918*377e23a2Schristos 919*377e23a2Schristos2009-09-05 Martin Thuresson <martin@mtme.org> 920*377e23a2Schristos 921*377e23a2Schristos * coff-arm.c (coff_arm_relocate_section) 922*377e23a2Schristos (record_thumb_to_arm_glue, bfd_arm_process_before_allocation): 923*377e23a2Schristos Change member name class to symbol_class. 924*377e23a2Schristos * coff-i960.c (coff_i960_relocate_section) Rename variable 925*377e23a2Schristos class to class_val. Change member name class to symbol_class. 926*377e23a2Schristos * coff-rs6000.c (_bfd_xcoff_swap_aux_in) 927*377e23a2Schristos (_bfd_xcoff_swap_aux_out): Rename arguments class to in_class. 928*377e23a2Schristos * coff-stgo32.c (adjust_aux_in_post) 929*377e23a2Schristos (adjust_aux_out_pre, adjust_aux_out_post): Rename arguments class 930*377e23a2Schristos to in_class. 931*377e23a2Schristos * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in) 932*377e23a2Schristos (_bfd_xcoff64_swap_aux_out): Rename arguments class to in_class. 933*377e23a2Schristos * coffcode.h (coff_pointerize_aux_hook): Rename variable class 934*377e23a2Schristos to n_sclass. 935*377e23a2Schristos * coffgen.c (coff_write_symbol, coff_pointerize_aux): Rename 936*377e23a2Schristos variables named class to n_sclass. (coff_write_symbols): Rename 937*377e23a2Schristos variable class to sym_class. (bfd_coff_set_symbol_class): Rename 938*377e23a2Schristos argument class to symbol_class. 939*377e23a2Schristos * cofflink.c (_bfd_coff_link_hash_newfunc) 940*377e23a2Schristos (coff_link_add_symbols, _bfd_coff_link_input_bfd) 941*377e23a2Schristos (_bfd_coff_write_global_sym, _bfd_coff_generic_relocate_section): 942*377e23a2Schristos Update code to use renamed members. 943*377e23a2Schristos * coffswap.h (coff_swap_aux_in, coff_swap_aux_out): Rename 944*377e23a2Schristos argument class to in_class. 945*377e23a2Schristos * libcoff-in.h (struct coff_link_hash_entry, struct 946*377e23a2Schristos coff_debug_merge_type) Renamed members class to symbol_class and 947*377e23a2Schristos type_class. 948*377e23a2Schristos * libcoff.h Regenerated. 949*377e23a2Schristos * peXXigen.c: (_bfd_XXi_swap_aux_in, _bfd_XXi_swap_aux_out): 950*377e23a2Schristos Rename argument class to in_class. 951*377e23a2Schristos * pef.c (bfd_pef_parse_imported_symbol): Update code to use 952*377e23a2Schristos renamed members. 953*377e23a2Schristos * pef.h (struct bfd_pef_imported_symbol): Changed name of 954*377e23a2Schristos member class to symbol_class. 955*377e23a2Schristos 956*377e23a2Schristos2009-09-04 H.J. Lu <hongjiu.lu@intel.com> 957*377e23a2Schristos 958*377e23a2Schristos * configure: Regenerated. 959*377e23a2Schristos 960*377e23a2Schristos2009-09-04 Tristan Gingold <gingold@adacore.com> 961*377e23a2Schristos 962*377e23a2Schristos * configure.in: Bump version to 2.20.51 963*377e23a2Schristos 964*377e23a2Schristos2009-09-04 Alan Modra <amodra@bigpond.net.au> 965*377e23a2Schristos 966*377e23a2Schristos * elf32-spu.c (spu_elf_relocate_section): Correct 2009-07-24 logic. 967*377e23a2Schristos 968*377e23a2Schristos2009-09-04 Jie Zhang <jie.zhang@analog.com> 969*377e23a2Schristos 970*377e23a2Schristos * elf32-bfin.c (elf32_bfinfdpic_create_dynamic_sections): Always 971*377e23a2Schristos create .rela.bss. 972*377e23a2Schristos (elf32_bfinfdpic_size_dynamic_sections): Set SEC_EXCLUDE flag 973*377e23a2Schristos for empty .rela.bss and .rel.plt sections. 974*377e23a2Schristos 975*377e23a2Schristos2009-09-03 Adam Nemet <anemet@caviumnetworks.com> 976*377e23a2Schristos 977*377e23a2Schristos * elfxx-mips.c (mips_elf_calculate_relocation): Don't relocate 978*377e23a2Schristos R_MIPS_JALR unless symbol resolves locally. 979*377e23a2Schristos 980*377e23a2Schristos2009-09-03 Adam Nemet <anemet@caviumnetworks.com> 981*377e23a2Schristos 982*377e23a2Schristos * elfxx-mips.c (_bfd_mips_elf_check_relocs): Don't set 983*377e23a2Schristos has_static_relocs for R_MIPS_JALR. 984*377e23a2Schristos 985*377e23a2Schristos2009-09-03 Maciej W. Rozycki <macro@codesourcery.com> 986*377e23a2Schristos 987*377e23a2Schristos * elf64-mips.c (mips_elf64_howto_table_rela): Add support for 988*377e23a2Schristos R_MIPS_TLS_DTPMOD64 and R_MIPS_TLS_TPREL64, replacing the 989*377e23a2Schristos respective stubs. 990*377e23a2Schristos 991*377e23a2Schristos2009-09-01 H.J. Lu <hongjiu.lu@intel.com> 992*377e23a2Schristos 993*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Declare 994*377e23a2Schristos plt earlier. 995*377e23a2Schristos 996*377e23a2Schristos2009-09-01 Tristan Gingold <gingold@adacore.com> 997*377e23a2Schristos 998*377e23a2Schristos * makefile.vms: Ported to Itanium VMS. Remove useless variable and 999*377e23a2Schristos dependencies. Reindent. 1000*377e23a2Schristos * configure.com: Ported to Itanium VMS. Now generates a build.com 1001*377e23a2Schristos to build without make. Add messages but make edit silent. 1002*377e23a2Schristos * hosts/alphavms.h: Add a prototype for stpcpy. 1003*377e23a2Schristos * vms.c: Add a missing include for Alpha VMS. 1004*377e23a2Schristos * elfxx-ia64.c (ELF_OSABI): Define for OpenVMS. 1005*377e23a2Schristos 1006*377e23a2Schristos2009-08-31 Jan Beulich <jbeulich@novell.com> 1007*377e23a2Schristos 1008*377e23a2Schristos * elf-bfd.h (bfd_elf_get_default_section_type): Declare. 1009*377e23a2Schristos * elf.c (bfd_elf_get_default_section_type): New. 1010*377e23a2Schristos (elf_fake_sections): Use bfd_elf_get_default_section_type. 1011*377e23a2Schristos 1012*377e23a2Schristos2009-08-30 H.J. Lu <hongjiu.lu@intel.com> 1013*377e23a2Schristos 1014*377e23a2Schristos * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert the 1015*377e23a2Schristos accidental checkin. 1016*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likwise. 1017*377e23a2Schristos 1018*377e23a2Schristos2009-08-30 Alan Modra <amodra@bigpond.net.au> 1019*377e23a2Schristos 1020*377e23a2Schristos PR ld/10569 1021*377e23a2Schristos * bfd.c (bfd_emul_get_maxpagesize): Don't abort. 1022*377e23a2Schristos (bfd_emul_get_commonpagesize): Likewise. 1023*377e23a2Schristos 1024*377e23a2Schristos2009-08-29 Martin Thuresson <martin@mtme.org> 1025*377e23a2Schristos 1026*377e23a2Schristos * elf32-arm.c (struct stub_def): Rename member template to 1027*377e23a2Schristos template_sequence. (arm_build_one_stub, 1028*377e23a2Schristos find_stub_size_and_template, arm_size_one_stub, arm_map_one_stub): 1029*377e23a2Schristos Rename variable template to template_sequence. 1030*377e23a2Schristos * elfxx-ia64.c (elfNN_ia64_relax_br, elfNN_ia64_relax_brl): 1031*377e23a2Schristos Rename variable template to template_val. 1032*377e23a2Schristos * aoutx.h (NAME (aout, make_empty_symbol)): Rename variable 1033*377e23a2Schristos new to new_symbol. 1034*377e23a2Schristos * coffgen.c (coff_make_empty_symbol) 1035*377e23a2Schristos (coff_bfd_make_debug_symbol): Rename variable new to new_symbol. 1036*377e23a2Schristos * cpu-ia64-opc.c (ext_reg, ins_imms_scaled): Rename variable 1037*377e23a2Schristos new to new_insn. 1038*377e23a2Schristos * ecoff.c (_bfd_ecoff_make_empty_symbol): Rename variable new 1039*377e23a2Schristos to new_symbol. 1040*377e23a2Schristos * elf32-m68k.c (elf_m68k_get_got_entry_type): Rename argument 1041*377e23a2Schristos new to new_reloc. 1042*377e23a2Schristos * hash.c (bfd_hash_lookup): Rename variable new to new_string. 1043*377e23a2Schristos * ieee.c (ieee_make_empty_symbol): Rename variable new to 1044*377e23a2Schristos new_symbol. 1045*377e23a2Schristos * linker.c (bfd_new_link_order): Rename variable new to 1046*377e23a2Schristos new_lo. 1047*377e23a2Schristos * mach-o.c (bfd_mach_o_sizeof_headers): Rename variable new to 1048*377e23a2Schristos symbol. 1049*377e23a2Schristos * oasys.c (oasys_make_empty_symbol): Rename variable new to 1050*377e23a2Schristos new_symbol_type. 1051*377e23a2Schristos * pdp11.c (NAME (aout, make_empty_symbol)): Rename variable 1052*377e23a2Schristos new to new_symbol_type. 1053*377e23a2Schristos * plugin.c (bfd_plugin_make_empty_symbol): Rename variable new 1054*377e23a2Schristos to new_symbol. 1055*377e23a2Schristos * rs6000-core.c (CoreHdr, VmInfo): Rename union member new to 1056*377e23a2Schristos new_dump. 1057*377e23a2Schristos (read_hdr, rs6000coff_core_p) 1058*377e23a2Schristos (rs6000coff_core_file_matches_executable_p) 1059*377e23a2Schristos (rs6000coff_core_file_failing_command) 1060*377e23a2Schristos (rs6000coff_core_file_failing_signal): Updated function to use new 1061*377e23a2Schristos union member name. 1062*377e23a2Schristos * som.c (som_make_empty_symbol): Rename variable new to 1063*377e23a2Schristos new_symbol_type. 1064*377e23a2Schristos * syms.c (_bfd_generic_make_empty_symbol): Rename variable new 1065*377e23a2Schristos to new_symbol. 1066*377e23a2Schristos * tekhex.c (first_phase, tekhex_make_empty_symbol): Rename 1067*377e23a2Schristos variable new to new_symbol. 1068*377e23a2Schristos 1069*377e23a2Schristos2009-08-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1070*377e23a2Schristos 1071*377e23a2Schristos * acinclude.m4 (AM_INSTALL_LIBBFD): Call AM_SUBST_NOTMAKE for 1072*377e23a2Schristos bfdlibdir and bfdincludedir. 1073*377e23a2Schristos * Makefile.am (bfdlibdir, bfdincludedir): Move definition ... 1074*377e23a2Schristos [INSTALL_LIBBFD]: ... here, ... 1075*377e23a2Schristos [INSTALL_LIBBFD]: ... and empty overrides here. 1076*377e23a2Schristos [!INSTALL_LIBBFD]: (rpath_bfdlibdir): New variable. 1077*377e23a2Schristos [!INSTALL_LIBBFD] (libbfd_la_LDFLAGS): Use it. 1078*377e23a2Schristos * Makefile.in: Regenerate. 1079*377e23a2Schristos * configure: Regenerate. 1080*377e23a2Schristos 1081*377e23a2Schristos2009-08-26 Maxim Kuvyrkov <maxim@codesourcery.com> 1082*377e23a2Schristos 1083*377e23a2Schristos * elf32-m68k.c: Rewrite initialization of GOT entries for TLS 1084*377e23a2Schristos relocations. Rewrite output of dynamic TLS relocations. 1085*377e23a2Schristos (DTP_OFFSET, TP_OFFSET): New constants. 1086*377e23a2Schristos (dtpoff_base): Update. 1087*377e23a2Schristos (tpoff): Rename to tpoff_base, update. 1088*377e23a2Schristos (elf_m68k_init_got_entry_static, elf_m68k_init_got_entry_local_shared): 1089*377e23a2Schristos New functions. Move code from elf_m68k_relocate_section here. 1090*377e23a2Schristos (elf_m68k_relocate_section): Update. 1091*377e23a2Schristos (elf_m68k_finish_dynamic_symbol): Fix handling of local TLS symbols. 1092*377e23a2Schristos 1093*377e23a2Schristos2009-08-26 Maxim Kuvyrkov <maxim@codesourcery.com> 1094*377e23a2Schristos 1095*377e23a2Schristos * elf32-m68k.c (elf_m68k_copy_indirect_symbol): Propagate 1096*377e23a2Schristos non_got_ref value. 1097*377e23a2Schristos (elf_m68k_check_relocs): Handle dynamic TLS relocations. 1098*377e23a2Schristos Handle non_got_ref field. 1099*377e23a2Schristos (elf_m68k_adjust_dynamic_symbol): Handle non_got_ref field. 1100*377e23a2Schristos 1101*377e23a2Schristos2009-08-26 Alan Modra <amodra@bigpond.net.au> 1102*377e23a2Schristos 1103*377e23a2Schristos PR ld/10518 1104*377e23a2Schristos * linker.c (bfd_find_version_for_sym): Revert warning. 1105*377e23a2Schristos 1106*377e23a2Schristos2009-08-26 Alan Modra <amodra@bigpond.net.au> 1107*377e23a2Schristos 1108*377e23a2Schristos PR ld/10518 1109*377e23a2Schristos * linker.c (bfd_find_version_for_sym): Override a "*" match by any 1110*377e23a2Schristos other wildcard match. Warn on multiple wildcard matches. 1111*377e23a2Schristos 1112*377e23a2Schristos2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1113*377e23a2Schristos 1114*377e23a2Schristos * Makefile.am (libbfd_la_LDFLAGS): Initialize early, to allow 1115*377e23a2Schristos appending. 1116*377e23a2Schristos [INSTALL_LIBBFD] (bfdlib_LTLIBRARIES, bfdinclude_HEADERS): Set 1117*377e23a2Schristos only in this condition. 1118*377e23a2Schristos [!INSTALL_LIBBFD] (noinst_LTLIBRARIES, libbfd_la_LDFLAGS): New, 1119*377e23a2Schristos to build but not install libbfd.la in this condition. 1120*377e23a2Schristos (install-bfdlibLTLIBRARIES, uninstall-bfdlibLTLIBRARIES) 1121*377e23a2Schristos (install_libbfd, install_libbfd): Remove. 1122*377e23a2Schristos * Makefile.in: Regenerate. 1123*377e23a2Schristos * doc/Makefile.am (AM_CPPFLAGS): Renamed from ... 1124*377e23a2Schristos (INCLUDES): ... this. 1125*377e23a2Schristos ($(MKDOC)): Adjust. 1126*377e23a2Schristos * doc/Makefile.in: Regenerate. 1127*377e23a2Schristos 1128*377e23a2Schristos * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, instead use 1129*377e23a2Schristos no-dist and foreign. 1130*377e23a2Schristos (EXTRA_libbfd_la_SOURCES): New, list $(CFILES) to allow 1131*377e23a2Schristos dependency tracking to work for them. 1132*377e23a2Schristos (targets.lo, archures.lo, dwarf.lo): Rewrite to 1133*377e23a2Schristos use automake dependency tracking mechanism. 1134*377e23a2Schristos (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove. 1135*377e23a2Schristos (mkdep section): Remove. 1136*377e23a2Schristos (BUILT_SOURCES): New, list $(BUILD_HFILES). 1137*377e23a2Schristos * Makefile.in: Regenerate. 1138*377e23a2Schristos * po/SRC-POTFILES.in, po/bfd.pot: Regenerate. 1139*377e23a2Schristos 1140*377e23a2Schristos * Makefile.am (datarootdir, docdir, htmldor, pdfdir) 1141*377e23a2Schristos (install-pdf, install-pdf-recursive, install-html) 1142*377e23a2Schristos (install-html-recursive): Remove. 1143*377e23a2Schristos * Makefile.in: Regenerate. 1144*377e23a2Schristos 1145*377e23a2Schristos * Makefile.in: Regenerate. 1146*377e23a2Schristos * aclocal.m4: Likewise. 1147*377e23a2Schristos * config.in: Likewise. 1148*377e23a2Schristos * configure: Likewise. 1149*377e23a2Schristos 1150*377e23a2Schristos2009-08-21 Daniel Gutson <dgutson@codesourcery.com> 1151*377e23a2Schristos 1152*377e23a2Schristos * elf32-arm.c (arch_has_thumb2_nop): New function. 1153*377e23a2Schristos (arch_has_arm_nop): New function. 1154*377e23a2Schristos (elf32_arm_final_link_relocate): NOP opcodes changed. 1155*377e23a2Schristos 1156*377e23a2Schristos2009-08-16 Doug Evans <dje@google.com> 1157*377e23a2Schristos 1158*377e23a2Schristos * opncls.c (bfd_close): Until BFD_IN_MEMORY has an iovec, 1159*377e23a2Schristos at least don't leak memory. 1160*377e23a2Schristos 1161*377e23a2Schristos2009-08-13 DJ Delorie <dj@redhat.com> 1162*377e23a2Schristos 1163*377e23a2Schristos * elf32-m32c.c (m32c_elf_relax_delete_bytes): Adjust symbol sizes 1164*377e23a2Schristos if needed. 1165*377e23a2Schristos 1166*377e23a2Schristos2009-08-12 Nick Clifton <nickc@redhat.com> 1167*377e23a2Schristos 1168*377e23a2Schristos * po/fi.po: Updated Finnish translation. 1169*377e23a2Schristos 1170*377e23a2Schristos2009-08-11 Bernd Schmidt <bernd.schmidt@analog.com> 1171*377e23a2Schristos 1172*377e23a2Schristos Merge some FRV FDPIC changes into the Blackfin code. 1173*377e23a2Schristos * elf32-bfin.c (struct bfinfdpic_elf_link_hash_table): Add pointer to 1174*377e23a2Schristos summary reloc information. 1175*377e23a2Schristos (bfinfdpic_dynamic_got_plt_info): New. 1176*377e23a2Schristos (_bfin_create_got_section): Create the PLT section here. 1177*377e23a2Schristos (elf32_bfinfdpic_create_dynamic_sections): Not here. 1178*377e23a2Schristos (_bfinfdpic_count_nontls_entries): Move out of... 1179*377e23a2Schristos (_bfinfdpic_count_got_plt_entries): ... here. 1180*377e23a2Schristos (_bfinfdpic_count_relocs_fixups): Likewise. 1181*377e23a2Schristos (_bfinfdpic_reset_got_plt_entries): New. 1182*377e23a2Schristos (_bfinfdpic_size_got_plt): Move out of... 1183*377e23a2Schristos (elf32_bfinfdpic_size_dynamic_sections): ... here. 1184*377e23a2Schristos (bfinfdpic_relocate_section): Be careful not to call 1185*377e23a2Schristos _bfinfdpic_add_rofixup or _bfinfdpic_add_dyn_reloc for deleted relocs. 1186*377e23a2Schristos (bfinfdpic_check_discarded_relocs, bfinfdpic_elf_discard_info): 1187*377e23a2Schristos New functions. 1188*377e23a2Schristos (elf_backend_discard_info): Define for FD-PIC. 1189*377e23a2Schristos 1190*377e23a2Schristos2009-08-11 Alan Modra <amodra@bigpond.net.au> 1191*377e23a2Schristos 1192*377e23a2Schristos * elflink.c: Add FIXMEs for some places that require octets_per_byte 1193*377e23a2Schristos adjustments. 1194*377e23a2Schristos * elf-eh-frame.c: Likewise. 1195*377e23a2Schristos * merge.c: Likewise. 1196*377e23a2Schristos 1197*377e23a2Schristos2009-08-11 Alan Modra <amodra@bigpond.net.au> 1198*377e23a2Schristos 1199*377e23a2Schristos * configure.in: Remove elf-ifunc.lo from common ELF files. Add 1200*377e23a2Schristos to x86 and x86_64 configurations. 1201*377e23a2Schristos * configure: Regenerate. 1202*377e23a2Schristos 1203*377e23a2Schristos2009-08-10 Jan Kratochvil <jan.kratochvil@redhat.com> 1204*377e23a2Schristos 1205*377e23a2Schristos Stop using bfd_usrdata in libbfd. 1206*377e23a2Schristos * coff-stgo32.c (bfd_coff_go32stub): Remove. 1207*377e23a2Schristos (stub_bytes, comment): Replace STUBSIZE by GO32_STUBSIZE. 1208*377e23a2Schristos (adjust_filehdr_in_post): Declare the abfd parameter as unused. 1209*377e23a2Schristos Replace STUBSIZE by GO32_STUBSIZE. Save now the stub in 1210*377e23a2Schristos filehdr_dst->u.go32.stub. New comment with the reason. 1211*377e23a2Schristos (adjust_filehdr_out_pre): Replace STUBSIZE by GO32_STUBSIZE. 1212*377e23a2Schristos Substitute the removed macro bfd_coff_go32stub. 1213*377e23a2Schristos (adjust_filehdr_out_post, adjust_scnhdr_in_post, adjust_scnhdr_out_pre) 1214*377e23a2Schristos (adjust_scnhdr_out_post, adjust_aux_in_post, adjust_aux_out_pre) 1215*377e23a2Schristos (adjust_aux_out_post): Replace STUBSIZE by GO32_STUBSIZE. 1216*377e23a2Schristos (create_go32_stub, go32_stubbed_coff_bfd_copy_private_bfd_data): 1217*377e23a2Schristos Replace STUBSIZE by GO32_STUBSIZE. Substitute the removed macro 1218*377e23a2Schristos bfd_coff_go32stub. 1219*377e23a2Schristos * coffcode.h (coff_mkobject_hook): Initialize coff->go32stub. 1220*377e23a2Schristos * libcoff-in.h (coff_data_type): New field go32stub. 1221*377e23a2Schristos * libcoff.h: Regenerated. 1222*377e23a2Schristos 1223*377e23a2Schristos2009-08-10 Jan Kratochvil <jan.kratochvil@redhat.com> 1224*377e23a2Schristos 1225*377e23a2Schristos Fix go32 stub preservation by objcopy. 1226*377e23a2Schristos * coff-stgo32.c (adjust_filehdr_in_post): Use bfd_malloc. 1227*377e23a2Schristos (go32_stubbed_coff_bfd_copy_private_bfd_data): Optionally allocate OBFD 1228*377e23a2Schristos go32stub. 1229*377e23a2Schristos 1230*377e23a2Schristos2009-08-10 Nathan Sidwell <nathan@codesourcery.com> 1231*377e23a2Schristos 1232*377e23a2Schristos * elf32-arm.c (elf32_arm_size_stubs): Don't die on undefined local 1233*377e23a2Schristos symbols. 1234*377e23a2Schristos (elf32_arm_final_link_relocate): Treat local undefined symbols the 1235*377e23a2Schristos same as global undefined symbols. 1236*377e23a2Schristos (elf32_arm_relocate_section): Give an error for local undefined 1237*377e23a2Schristos non-weak symbols, unless the reloc will not use the symbol. 1238*377e23a2Schristos 1239*377e23a2Schristos2009-08-10 Nathan Sidwell <nathan@codesourcery.com> 1240*377e23a2Schristos 1241*377e23a2Schristos * elf32-ppc.c (shared_stub_entry, stub_entry): Use r12, not r11. 1242*377e23a2Schristos (ppc_elf_relax_section): Use symbol index to distinguish 1243*377e23a2Schristos relocatable stubs. 1244*377e23a2Schristos 1245*377e23a2Schristos2009-08-10 Alan Modra <amodra@bigpond.net.au> 1246*377e23a2Schristos 1247*377e23a2Schristos * elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections. 1248*377e23a2Schristos 1249*377e23a2Schristos2009-08-10 Alan Modra <amodra@bigpond.net.au> 1250*377e23a2Schristos 1251*377e23a2Schristos * elflink.c (_bfd_elf_adjust_dynamic_symbol): Don't clear plt 1252*377e23a2Schristos info for STT_GNU_IFUNC. 1253*377e23a2Schristos * elf32-ppc.c (ppc_elf_check_relocs): Count a needed plt entry 1254*377e23a2Schristos on got refs in case the symbol turns out to be ifunc. 1255*377e23a2Schristos (ppc_elf_gc_sweep_hook): Similarly. 1256*377e23a2Schristos (ppc_elf_adjust_dynamic_symbol): Adjust assertion. 1257*377e23a2Schristos (allocate_dynrelocs): Don't specially allocate got relocs for ifunc. 1258*377e23a2Schristos (ppc_elf_size_dynamic_sections): Likewise. 1259*377e23a2Schristos (ppc_elf_relocate_section): Likewise. 1260*377e23a2Schristos 1261*377e23a2Schristos2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com> 1262*377e23a2Schristos 1263*377e23a2Schristos From Mike Frysinger <michael.frysinger@analog.com> 1264*377e23a2Schristos * elf32-bfin.c (bfin_howto_table, bfin_reloc_map, bfin_check_relocs, 1265*377e23a2Schristos bfin_final_link_relocate, bfin_relocate_section, bfin_gc_sweep_hook, 1266*377e23a2Schristos _bfinfdpic_emit_got_relocs_plt_entries, bfinfdpic_relocate_section, 1267*377e23a2Schristos bfinfdpic_gc_sweep_hook, bfinfdpic_check_relocs, 1268*377e23a2Schristos bfin_finish_dynamic_symbol, bfd_bfin_elf32_create_embedded_relocs): 1269*377e23a2Schristos Adjust to match the renamed reloc definitions. 1270*377e23a2Schristos 1271*377e23a2Schristos2009-08-08 Alan Modra <amodra@bigpond.net.au> 1272*377e23a2Schristos 1273*377e23a2Schristos PR 10494 1274*377e23a2Schristos * elf.c (_bfd_elf_make_section_from_shdr): When setting up section 1275*377e23a2Schristos LMAs, use ELF_IS_SECTION_IN_SEGMENT to match sections with headers. 1276*377e23a2Schristos 1277*377e23a2Schristos2009-08-07 Tom Tromey <tromey@redhat.com> 1278*377e23a2Schristos 1279*377e23a2Schristos * elf32-microblaze.c (microblaze_elf_check_relocs): Avoid strict 1280*377e23a2Schristos aliasing error. 1281*377e23a2Schristos 1282*377e23a2Schristos2009-08-06 Michael Eager <eager@eagercon.com> 1283*377e23a2Schristos 1284*377e23a2Schristos * Makefile.am: Add cpu-microblaze.{lo,c}, elf32-microblaze.{lo,c}. 1285*377e23a2Schristos * Makefile.in: Regenerate. 1286*377e23a2Schristos * archures.c: Add bfd_arch_microblaze. 1287*377e23a2Schristos * bfd-in2.h: Regenerate. 1288*377e23a2Schristos * config.bfd: Add microblaze target. 1289*377e23a2Schristos * configure.in: Add bfd_elf32_microblaze_vec target. 1290*377e23a2Schristos * configure: Regenerate. 1291*377e23a2Schristos * cpu-microblaze.c: New. 1292*377e23a2Schristos * elf32-microblaze.c: New. 1293*377e23a2Schristos * libbfd-in.h: Add prototype _bfd_dwarf2_fixup_section_debug_loc(). 1294*377e23a2Schristos * libbfd.h: Regenerate. 1295*377e23a2Schristos * reloc.c: Add MICROBLAZE relocations. 1296*377e23a2Schristos * section.c: Add struct relax_table and relax_count to section. 1297*377e23a2Schristos * targets.c: Add bfd_elf32_microblaze_vec. 1298*377e23a2Schristos 1299*377e23a2Schristos2009-08-06 Jakub Jelinek <jakub@redhat.com> 1300*377e23a2Schristos Alan Modra <amodra@bigpond.net.au> 1301*377e23a2Schristos 1302*377e23a2Schristos PR binutils/10492 1303*377e23a2Schristos * elf.c (sym_is_global): Return true even for BSF_GNU_UNIQUE 1304*377e23a2Schristos symbols. 1305*377e23a2Schristos * elf32-mips.c (mips_elf_sym_is_global): Likewise. 1306*377e23a2Schristos * elfn32-mips.c (mips_elf_sym_is_global): Likewise. 1307*377e23a2Schristos 1308*377e23a2Schristos2009-08-06 Nathan Sidwell <nathan@codesourcery.com> 1309*377e23a2Schristos 1310*377e23a2Schristos * elf32-arm.c (elf32_arm_size_stubs): Call layout_sections_again 1311*377e23a2Schristos at least once when fixing cortex-a8. 1312*377e23a2Schristos 1313*377e23a2Schristos2009-08-05 Chao-ying Fu <fu@mips.com> 1314*377e23a2Schristos 1315*377e23a2Schristos * elf32-mips.c (mips_reloc_map): Add BFD_RELOC_MIPS_JALR. 1316*377e23a2Schristos * elfxx-mips.c (JAL_TO_BAL_P): New define to transform JAL to BAL 1317*377e23a2Schristos for CPUs. It is true for RM9000. 1318*377e23a2Schristos (JALR_TO_BAL_P): New define to transform JALR to BAL. It is true 1319*377e23a2Schristos for all CPUs. 1320*377e23a2Schristos (mips_elf_perform_relocation): Use JAL_TO_BAL_P and JALR_TO_BAL_P 1321*377e23a2Schristos to guard the transformation. 1322*377e23a2Schristos 1323*377e23a2Schristos2009-08-05 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> 1324*377e23a2Schristos 1325*377e23a2Schristos * elf32-spu.h (spu_elf_params): Add member emit_fixups. 1326*377e23a2Schristos (spu_elf_size_sections): Declare prototype. 1327*377e23a2Schristos * elf32-spu.c (spu_link_hash_table): Add member sfixup. 1328*377e23a2Schristos (FIXUP_RECORD_SIZE, FIXUP_GET, FIXUP_PUT): New macros. 1329*377e23a2Schristos (spu_elf_emit_fixup): New function. 1330*377e23a2Schristos (spu_elf_relocate_section): Emit fixup for each SPU_ADDR32. 1331*377e23a2Schristos (spu_elf_size_sections): New function. 1332*377e23a2Schristos 1333*377e23a2Schristos2009-08-05 Nathan Sidwell <nathan@codesourcery.com> 1334*377e23a2Schristos 1335*377e23a2Schristos * elf32-arm.c (elf32_arm_stub_type): Add arm_stub_a8_veneer_lwm. 1336*377e23a2Schristos (arm_build_one_stub): Build a8 veneers as a separate pass. 1337*377e23a2Schristos (cortex_a8_erratum_scan): Add prev_num_a8_fixes and stub_changed_p 1338*377e23a2Schristos parameters. Use them to check if we create a different a8 fixup 1339*377e23a2Schristos than the previous pass. 1340*377e23a2Schristos (elf32_arm_size_stubs): Move scope of stub_changed and 1341*377e23a2Schristos prev_num_a8_fixes into main loop. 1342*377e23a2Schristos (elf32_arm_build_stubs): Build a8 veneers in a second pass. 1343*377e23a2Schristos 1344*377e23a2Schristos2009-08-04 Alan Modra <amodra@bigpond.net.au> 1345*377e23a2Schristos 1346*377e23a2Schristos * elf32-ppc.c (ppc_elf_relax_section): Correct conditions under 1347*377e23a2Schristos which find_plt_ent is called. Delete redundant code. 1348*377e23a2Schristos 1349*377e23a2Schristos2009-08-03 H.J. Lu <hongjiu.lu@intel.com> 1350*377e23a2Schristos 1351*377e23a2Schristos PR binutils/10363 1352*377e23a2Schristos * elf.c (bfd_elf_string_from_elf_section): Return NULL on 1353*377e23a2Schristos invalid string offset. 1354*377e23a2Schristos 1355*377e23a2Schristos2009-08-03 H.J. Lu <hongjiu.lu@intel.com> 1356*377e23a2Schristos 1357*377e23a2Schristos PR ld/10433 1358*377e23a2Schristos * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Set got 1359*377e23a2Schristos to htab->init_got_offset and plt to htab->init_plt_offset 1360*377e23a2Schristos when discarding space for dynamic relocations. 1361*377e23a2Schristos 1362*377e23a2Schristos2009-08-03 Alan Modra <amodra@bigpond.net.au> 1363*377e23a2Schristos 1364*377e23a2Schristos * elf32-ppc.c (struct plt_entry): Revise comments. 1365*377e23a2Schristos (ppc_elf_check_relocs): Don't create needless plt_entry info 1366*377e23a2Schristos for non-pie executables. Don't test info->pie when info->shared 1367*377e23a2Schristos already covers that case. 1368*377e23a2Schristos (ppc_elf_gc_sweep_hook): Adjust for above change. 1369*377e23a2Schristos (add_stub_sym): Don't test info->pie when info->shared tested. 1370*377e23a2Schristos (allocate_dynrelocs, ppc_elf_size_dynamic_sections): Likewise. 1371*377e23a2Schristos (write_glink_stub, ppc_elf_finish_dynamic_symbol): Likewise. 1372*377e23a2Schristos (ppc_elf_relax_section): Adjust find_plt_ent arguments. 1373*377e23a2Schristos (ppc_elf_relocate_section): Likewise. 1374*377e23a2Schristos 1375*377e23a2Schristos2009-08-03 Alan Modra <amodra@bigpond.net.au> 1376*377e23a2Schristos 1377*377e23a2Schristos * elf32-ppc.c (ppc_elf_check_relocs): Always add a plt ref count 1378*377e23a2Schristos for local ifunc symbols in non-pie executables, regardless of 1379*377e23a2Schristos reloc type. Don't specially create ifunc dyn relocs. Tidy ifunc 1380*377e23a2Schristos code so that it's obvious that we only do anything special for 1381*377e23a2Schristos local ifunc syms. 1382*377e23a2Schristos (ppc_elf_gc_sweep_hook): Adjust to suit check_relocs changes. 1383*377e23a2Schristos (allocate_dynrelocs): Correct comment for syms defined in plt. 1384*377e23a2Schristos Don't specially allocate ifunc dyn relocs. 1385*377e23a2Schristos (ppc_elf_relax_section): Relax branches to ifunc plt entries too. 1386*377e23a2Schristos (ppc_elf_relocate_section): Set "relocation" value for ifunc 1387*377e23a2Schristos syms in non-pie executables. No specially allocated dyn relocs 1388*377e23a2Schristos for ifunc to write. Allow for local sym on R_PPC_RELAX32_PLT. 1389*377e23a2Schristos (ppc_elf_finish_dynamic_symbol): Set value of ifunc symbols in 1390*377e23a2Schristos a non-pie executable. 1391*377e23a2Schristos 1392*377e23a2Schristos2009-08-02 H.J. Lu <hongjiu.lu@intel.com> 1393*377e23a2Schristos Jakub Jelinek <jakub@redhat.com> 1394*377e23a2Schristos 1395*377e23a2Schristos PR ld/6443 1396*377e23a2Schristos * elf32-i386.c (elf_i386_tls_transition): Check executable 1397*377e23a2Schristos instead of shared for TLS when building PIE. 1398*377e23a2Schristos (elf_i386_check_relocs): Likewise. 1399*377e23a2Schristos (elf_i386_allocate_dynrelocs): Likewise. 1400*377e23a2Schristos (elf_i386_relocate_section): Likewise. 1401*377e23a2Schristos 1402*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_tls_transition): Check executable 1403*377e23a2Schristos instead of shared for TLS when building PIE. 1404*377e23a2Schristos (elf64_x86_64_check_relocs): Likewise. 1405*377e23a2Schristos (elf64_x86_64_allocate_dynrelocs): Likewise. 1406*377e23a2Schristos (elf64_x86_64_relocate_section): Likewise. 1407*377e23a2Schristos 1408*377e23a2Schristos2009-07-31 Anthony Green <green@moxielogic.com> 1409*377e23a2Schristos 1410*377e23a2Schristos * config.bfd (targ_cpu): Add moxie-uclinux support. 1411*377e23a2Schristos 1412*377e23a2Schristos2009-07-31 Hans-Peter Nilsson <hp@bitrange.com> 1413*377e23a2Schristos 1414*377e23a2Schristos * linker.c (fix_syms): Consider SEC_LOAD when choosing section. 1415*377e23a2Schristos 1416*377e23a2Schristos2009-07-30 Alan Modra <amodra@bigpond.net.au> 1417*377e23a2Schristos 1418*377e23a2Schristos * elf32-ppc.c (ppc_elf_check_relocs): Always set up sections 1419*377e23a2Schristos used by indirect function support. Count dynamic relocs for 1420*377e23a2Schristos ifunc syms. 1421*377e23a2Schristos (ppc_elf_adjust_dynamic_symbol): Tweak for ifunc. 1422*377e23a2Schristos (allocate_dynrelocs): Allocate all non-dynamic ifunc plt entries 1423*377e23a2Schristos in iplt and their relocs in reliplt. Don't make ifunc syms 1424*377e23a2Schristos dynamic. Allocate got entry relocs for non-dynamic ifunc in 1425*377e23a2Schristos reliplt. Handle other dynamic relocs for ifunc. 1426*377e23a2Schristos (ppc_elf_size_dynamic_sections): Alloc dyn relocs for static 1427*377e23a2Schristos ifunc in reliplt, likewise relocs for got against local ifunc. 1428*377e23a2Schristos Typo fix on reliplt size adjust. 1429*377e23a2Schristos (ppc_elf_relocate_section): Don't use plt scheme of allocating 1430*377e23a2Schristos relocs 1-1 with entries for iplt, instead just add using 1431*377e23a2Schristos reloc_count. Write got relocs and dyn relocs for ifunc to reliplt. 1432*377e23a2Schristos Error on invalid ifunc dyn relocs. 1433*377e23a2Schristos (ppc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc plt 1434*377e23a2Schristos in iplt/reliplt. 1435*377e23a2Schristos * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_JMP_IREL, 1436*377e23a2Schristos R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI, R_PPC64_REL16_HA. 1437*377e23a2Schristos (ppc64_elf_reloc_type_lookup): Handle new relocs. 1438*377e23a2Schristos (ppc64_elf_check_relocs): Likewise. Count dyn relocs for ifunc. 1439*377e23a2Schristos (allocate_dynrelocs): As for elf32-ppc.c above. 1440*377e23a2Schristos (ppc64_elf_size_dynamic_sections): Likewise. 1441*377e23a2Schristos (ppc_build_one_stub): Put non-dynamic ifunc plt call stubs in iplt, 1442*377e23a2Schristos and their relocs in reliplt. Use R_PPC64_JMP_IREL. 1443*377e23a2Schristos (ppc_size_one_stub): Similarly. 1444*377e23a2Schristos (ppc64_elf_relocate_section): As for elf32-ppc.c above. Handle new 1445*377e23a2Schristos relocs too. 1446*377e23a2Schristos (ppc64_elf_finish_dynamic_symbol): As for elf32-ppc.c above. 1447*377e23a2Schristos 1448*377e23a2Schristos2009-07-29 Hans-Peter Nilsson <hp@bitrange.com> 1449*377e23a2Schristos 1450*377e23a2Schristos * elf64-mmix.c (mmix_elf_relax_section): Revert 2009-05-27 1451*377e23a2Schristos change. Add note to head comment. 1452*377e23a2Schristos 1453*377e23a2Schristos2009-07-28 Jan Beulich <jbeulich@novell.com> 1454*377e23a2Schristos 1455*377e23a2Schristos * archive.c (get_extended_arelt_filename): Remove redundant 1456*377e23a2Schristos range check on index. 1457*377e23a2Schristos 1458*377e23a2Schristos2009-07-27 Doug Kwan <dougkwan@google.com> 1459*377e23a2Schristos 1460*377e23a2Schristos * elf32-arm.c (stub_hash_newfunc): Initialize field output_name. 1461*377e23a2Schristos 1462*377e23a2Schristos2009-07-27 H.J. Lu <hongjiu.lu@intel.com> 1463*377e23a2Schristos 1464*377e23a2Schristos * archures.c bfd_*_arch): Sorted. 1465*377e23a2Schristos (bfd_archures_list): Likewise. 1466*377e23a2Schristos 1467*377e23a2Schristos2009-07-27 M R Swami Reddy <MR.Swami.Reddy@nsc.com> 1468*377e23a2Schristos 1469*377e23a2Schristos * elf32-cr16.c (elf_cr16_final_link_relocate): Add code to handle 1470*377e23a2Schristos to R_cr16_NUM32 relocation. 1471*377e23a2Schristos 1472*377e23a2Schristos2009-07-26 Michael Eager <eager@eagercon.com> 1473*377e23a2Schristos 1474*377e23a2Schristos * archures.c: Add bfd_mach_ppc_405 1475*377e23a2Schristos * bfd-in2.h: Same. 1476*377e23a2Schristos 1477*377e23a2Schristos2009-07-25 H.J. Lu <hongjiu.lu@intel.com> 1478*377e23a2Schristos 1479*377e23a2Schristos * cpu-i386.c (bfd_x86_64_arch): Fix comment typos. 1480*377e23a2Schristos * cpu-l1om.c (bfd_l1om_arch): Likewise. 1481*377e23a2Schristos 1482*377e23a2Schristos2009-07-25 H.J. Lu <hongjiu.lu@intel.com> 1483*377e23a2Schristos 1484*377e23a2Schristos * archures.c (bfd_architecture): Add bfd_arch_l1om. 1485*377e23a2Schristos (bfd_l1om_arch): New. 1486*377e23a2Schristos (bfd_archures_list): Add &bfd_l1om_arch. 1487*377e23a2Schristos * bfd-in2.h: Regenerated. 1488*377e23a2Schristos 1489*377e23a2Schristos * config.bfd (targ64_selvecs): Add bfd_elf64_l1om_vec if 1490*377e23a2Schristos bfd_elf64_x86_64_vec is supported. Add bfd_elf64_l1om_freebsd_vec 1491*377e23a2Schristos if bfd_elf64_x86_64_freebsd_vec is supported. 1492*377e23a2Schristos (targ_selvecs): Likewise. 1493*377e23a2Schristos 1494*377e23a2Schristos * configure.in: Support bfd_elf64_l1om_vec and 1495*377e23a2Schristos bfd_elf64_l1om_freebsd_vec. 1496*377e23a2Schristos * configure: Regenerated. 1497*377e23a2Schristos 1498*377e23a2Schristos * cpu-l1om.c: New. 1499*377e23a2Schristos 1500*377e23a2Schristos * elf64-x86-64.c (elf64_l1om_elf_object_p): New. 1501*377e23a2Schristos (bfd_elf64_l1om_vec): Likewise. 1502*377e23a2Schristos (bfd_elf64_l1om_freebsd_vec): Likewise. 1503*377e23a2Schristos 1504*377e23a2Schristos * Makefile.am (ALL_MACHINES): Add cpu-l1om.lo. 1505*377e23a2Schristos (ALL_MACHINES_CFILES): Add cpu-l1om.c. 1506*377e23a2Schristos * Makefile.in: Regenerated. 1507*377e23a2Schristos 1508*377e23a2Schristos * targets.c (bfd_elf64_l1om_vec): New. 1509*377e23a2Schristos (bfd_elf64_l1om_freebsd_vec): Likewise. 1510*377e23a2Schristos (_bfd_target_vector): Add bfd_elf64_l1om_vec and 1511*377e23a2Schristos bfd_elf64_l1om_freebsd_vec. 1512*377e23a2Schristos 1513*377e23a2Schristos2009-07-24 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com> 1514*377e23a2Schristos Alan Modra <amodra@bigpond.net.au> 1515*377e23a2Schristos 1516*377e23a2Schristos * reloc.c (BFD_RELOC_SPU_ADD_PIC): Define. 1517*377e23a2Schristos * bfd-in2.h: Regenerate. 1518*377e23a2Schristos * libbfd.h: Regenerate. 1519*377e23a2Schristos * elf32-spu.c (elf_howto_table): Add entries SPU_ADD_PIC. 1520*377e23a2Schristos (spu_elf_bfd_to_reloc_type): Handle SPU_ADD_PIC. 1521*377e23a2Schristos (spu_elf_relocate_section): Patch instructions marked by SPU_ADD_PIC. 1522*377e23a2Schristos 1523*377e23a2Schristos2009-07-23 H.J. Lu <hongjiu.lu@intel.com> 1524*377e23a2Schristos 1525*377e23a2Schristos PR ld/10434 1526*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_relocs): Check executable 1527*377e23a2Schristos instead of shared for R_X86_64_TPOFF32. 1528*377e23a2Schristos (elf64_x86_64_relocate_section): Likewise. 1529*377e23a2Schristos 1530*377e23a2Schristos2009-07-23 Ulrich Drepper <drepper@redhat.com> 1531*377e23a2Schristos 1532*377e23a2Schristos * elf-bfd.h (struct elf_link_hash_entry): Add unique_global field. 1533*377e23a2Schristos * elf.c (swap_out_syms): Set binding to STB_GNU_UNIQUE for symbols 1534*377e23a2Schristos with the BSF_GNU_UNIQUE flag bit set. 1535*377e23a2Schristos * elfcode.h (elf_slurp_symbol_table): Set the BSF_GNU_UNIQUE flag 1536*377e23a2Schristos for symbols with STB_GNU_UNIQUE binding. 1537*377e23a2Schristos * elflink.c (_bfd_elf_merge_symbol): Set unique_global for symbols 1538*377e23a2Schristos with the STB_GNU_UNIQUE binding. 1539*377e23a2Schristos (elf_link_add_object_symbols): Set the BSF_GNU_UNIQUE flag for 1540*377e23a2Schristos symbols with STB_GNU_UNIQUE binding. Set STB_GNU_UNIQUE for 1541*377e23a2Schristos symbols with the unique_global field set. 1542*377e23a2Schristos (elf_link_output_extsym): Set unique_global field for symbols with 1543*377e23a2Schristos the STB_GNU_UNIQUE binding. 1544*377e23a2Schristos * syms.c (struct bfd_symbol): Define BSF_GNU_UNIQUE flag bit. 1545*377e23a2Schristos (bfd_print_symbol_vandf): Print a 'u' character for BSF_GNU_UNIQUE 1546*377e23a2Schristos symbols. 1547*377e23a2Schristos (bfd_decode_symclass): Return a 'u' character for BSF_GNU_UNIQUE 1548*377e23a2Schristos symbols. 1549*377e23a2Schristos * bfd-in2.h: Regenerate. 1550*377e23a2Schristos 1551*377e23a2Schristos2009-07-22 H.J. Lu <hongjiu.lu@intel.com> 1552*377e23a2Schristos 1553*377e23a2Schristos * elflink.c (elf_link_output_extsym): Revert the last change. 1554*377e23a2Schristos 1555*377e23a2Schristos2009-07-22 H.J. Lu <hongjiu.lu@intel.com> 1556*377e23a2Schristos 1557*377e23a2Schristos PR ld/10433 1558*377e23a2Schristos * elflink.c (elf_link_output_extsym): Special case ifunc syms 1559*377e23a2Schristos when ref_regular, not def_regular. 1560*377e23a2Schristos 1561*377e23a2Schristos2009-07-21 H.J. Lu <hongjiu.lu@intel.com> 1562*377e23a2Schristos 1563*377e23a2Schristos PR ld/10426 1564*377e23a2Schristos * elflink.c (elf_link_add_object_symbols): Turn an IFUNC symbol 1565*377e23a2Schristos from a DSO into a normal FUNC symbol. 1566*377e23a2Schristos (elf_link_output_extsym): Turn an undefined IFUNC symbol into 1567*377e23a2Schristos a normal FUNC symbol. 1568*377e23a2Schristos 1569*377e23a2Schristos2009-07-17 Chao-ying Fu <fu@mips.com> 1570*377e23a2Schristos 1571*377e23a2Schristos * elfxx-mips.c (LOAD_INTERLOCKS_P): New define. 1572*377e23a2Schristos (_bfd_mips_elf_size_dynamic_sections): For CPUs without load 1573*377e23a2Schristos interlocking, the last PLT entry needs a nop in the branch delay slot. 1574*377e23a2Schristos (_bfd_mips_elf_finish_dynamic_symbol): For CPUs with load itnerlocking, 1575*377e23a2Schristos output the last two PLT entries in reverse order. 1576*377e23a2Schristos 1577*377e23a2Schristos2009-07-16 H.J. Lu <hongjiu.lu@intel.com> 1578*377e23a2Schristos 1579*377e23a2Schristos * elf32-i386.c (elf_i386_relocate_section): Don't get local 1580*377e23a2Schristos STT_GNU_IFUNC symbol for relocatable link. 1581*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. 1582*377e23a2Schristos 1583*377e23a2Schristos2009-07-10 H.J. Lu <hongjiu.lu@intel.com> 1584*377e23a2Schristos 1585*377e23a2Schristos * bfdio.c (bfd_iovec): Add comments for bmmap. 1586*377e23a2Schristos * bfd-in2.h: Regenerated. 1587*377e23a2Schristos 1588*377e23a2Schristos2009-07-10 H.J. Lu <hongjiu.lu@intel.com> 1589*377e23a2Schristos 1590*377e23a2Schristos * Makefile.am: Run "make dep-am". 1591*377e23a2Schristos * Makefile.in: Regenerated. 1592*377e23a2Schristos 1593*377e23a2Schristos2009-07-10 Doug Kwan <dougkwan@google.com> 1594*377e23a2Schristos 1595*377e23a2Schristos * elf32-arm.c (stub_hash_newfunc): Initialize fields 1596*377e23a2Schristos target_addend and orig_insn. 1597*377e23a2Schristos 1598*377e23a2Schristos2009-07-10 Tom Tromey <tromey@redhat.com> 1599*377e23a2Schristos 1600*377e23a2Schristos * Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h. 1601*377e23a2Schristos (elf-eh-frame.lo): Likewise. 1602*377e23a2Schristos (elf32-bfin.lo): Likewise. 1603*377e23a2Schristos (elf32-frv.lo): Likewise. 1604*377e23a2Schristos (elf32-xc16x.lo): Likewise. 1605*377e23a2Schristos * Makefile.in: Rebuild. 1606*377e23a2Schristos * dwarf2.c: Included dwarf.h, not elf/dwarf2.h. 1607*377e23a2Schristos * elf-eh-frame.c: Likewise. 1608*377e23a2Schristos * elf32-bfin.c: Likewise. 1609*377e23a2Schristos * elf32-frv.c: Likewise. 1610*377e23a2Schristos * elf32-xc16x.c: Likewise. 1611*377e23a2Schristos 1612*377e23a2Schristos2009-07-10 Julian Brown <julian@codesourcery.com> 1613*377e23a2Schristos 1614*377e23a2Schristos * elf32-arm.c (arm_build_one_stub): Use the hash entry of the 1615*377e23a2Schristos symbol a stub entry is derived from, not the entry for the stub 1616*377e23a2Schristos itself, in call to elf32_arm_final_link_relocate. 1617*377e23a2Schristos 1618*377e23a2Schristos2009-07-10 H.J. Lu <hongjiu.lu@intel.com> 1619*377e23a2Schristos 1620*377e23a2Schristos * elf.c (_bfd_elf_get_synthetic_symtab): Remove leading zeros 1621*377e23a2Schristos when reporting addends. 1622*377e23a2Schristos 1623*377e23a2Schristos2009-07-10 Alan Modra <amodra@bigpond.net.au> 1624*377e23a2Schristos 1625*377e23a2Schristos * elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager 1626*377e23a2Schristos data even when no stubs. 1627*377e23a2Schristos (spu_elf_place_overlay_data, spu_elf_build_stubs): Adjust. 1628*377e23a2Schristos 1629*377e23a2Schristos2009-07-10 Alan Modra <amodra@bigpond.net.au> 1630*377e23a2Schristos 1631*377e23a2Schristos * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_IRELATIVE. 1632*377e23a2Schristos (ppc_elf_get_synthetic_symtab): Report addend. 1633*377e23a2Schristos (PLT_IFUNC): Define. 1634*377e23a2Schristos (struct ppc_elf_link_hash_table): Add iplt and reliplt. 1635*377e23a2Schristos (ppc_elf_create_glink): New function. 1636*377e23a2Schristos (ppc_elf_create_dynamic_sections): Use it. 1637*377e23a2Schristos (ppc_elf_add_symbol_hook): Set has_ifunc_symbols. 1638*377e23a2Schristos (update_local_sym_info): Allocate space for local_plt array. 1639*377e23a2Schristos Don't bump local_got_refcounts for PLT_IFUNC. Return local_plt 1640*377e23a2Schristos entry pointer. 1641*377e23a2Schristos (is_branch_reloc): New function. 1642*377e23a2Schristos (ppc_elf_check_relocs): Handle STT_GNU_IFUNC symbols. 1643*377e23a2Schristos (ppc_elf_gc_sweep_hook): Likewise. 1644*377e23a2Schristos (ppc_elf_adjust_dynamic_symbol): Likewise. 1645*377e23a2Schristos (allocate_dynrelocs): Likewise. 1646*377e23a2Schristos (ppc_elf_size_dynamic_sections): Likewise. 1647*377e23a2Schristos (ppc_elf_relocate_section): Likewise. 1648*377e23a2Schristos (branch_reloc_hash_match): Use is_branch_reloc. 1649*377e23a2Schristos (ppc_elf_tls_optimize): Adjust for local_plt. 1650*377e23a2Schristos (write_glink_stub): New function, extracted from.. 1651*377e23a2Schristos (ppc_elf_finish_dynamic_symbol): ..here. Handle STT_GNU_IFUNC. 1652*377e23a2Schristos (ppc_elf_finish_dynamic_sections): Only write plt resolver and 1653*377e23a2Schristos branch table when dynamic. 1654*377e23a2Schristos (elf_backend_post_process_headers): Define. 1655*377e23a2Schristos * elf64-ppc.c (elf_backend_post_process_headers): Define. 1656*377e23a2Schristos (ppc64_elf_howto_raw): Add R_PPC64_IRELATIVE. 1657*377e23a2Schristos (ppc64_elf_get_synthetic_symtab): Report addend. 1658*377e23a2Schristos (struct ppc_stub_hash_entry): Add plt_ent. 1659*377e23a2Schristos (PLT_IFUNC): Define. 1660*377e23a2Schristos (struct ppc_link_hash_table): Add iplt and reliplt. 1661*377e23a2Schristos (create_linkage_sections): Make .iplt and .rela.iplt sections. 1662*377e23a2Schristos (ppc64_elf_add_symbol_hook): Set has_ifunc_symbols. 1663*377e23a2Schristos (update_local_sym_info): Allocate space for local_plt array. 1664*377e23a2Schristos Don't bump local_got_ents for PLT_IFUNC. Return local_plt 1665*377e23a2Schristos entry pointer. 1666*377e23a2Schristos (update_plt_info): Pass pointer to plt_entry rather than sym hash, 1667*377e23a2Schristos and don't change hash flags here. 1668*377e23a2Schristos (is_branch_reloc): New function. 1669*377e23a2Schristos (ppc64_elf_check_relocs): Handle STT_GNU_IFUNC. 1670*377e23a2Schristos (ppc64_elf_gc_sweep_hook): Likewise. 1671*377e23a2Schristos (ppc64_elf_adjust_dynamic_symbol): Likewise. 1672*377e23a2Schristos (allocate_dynrelocs): Likewise. 1673*377e23a2Schristos (ppc64_elf_size_dynamic_sections): Likewise. 1674*377e23a2Schristos (ppc_build_one_stub, ppc_size_one_stub): Likewise. 1675*377e23a2Schristos (ppc64_elf_size_stubs): Likewise. 1676*377e23a2Schristos (ppc64_elf_relocate_section): Likewise. 1677*377e23a2Schristos (get_sym_h): Adjust for local_plt. 1678*377e23a2Schristos (branch_reloc_hash_match): Use is_branch_reloc. 1679*377e23a2Schristos (ppc_type_of_stub): Pass plt_entry pointer and handle ifunc. 1680*377e23a2Schristos (ppc64_elf_toc): Ignore SEC_EXCLUDE sections. 1681*377e23a2Schristos 1682*377e23a2Schristos2009-07-10 Alan Modra <amodra@bigpond.net.au> 1683*377e23a2Schristos 1684*377e23a2Schristos * elf.c (_bfd_elf_get_synthetic_symtab): Report addends. 1685*377e23a2Schristos 1686*377e23a2Schristos2009-07-10 Alan Modra <amodra@bigpond.net.au> 1687*377e23a2Schristos 1688*377e23a2Schristos * elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular 1689*377e23a2Schristos and ref_regular_nonweak comment. 1690*377e23a2Schristos * elflink.c (elf_link_output_extsym): Special case ifunc syms 1691*377e23a2Schristos when def_regular, not ref_regular. 1692*377e23a2Schristos (elf_link_add_object_symbols): Don't set needs_plt on ifunc syms,.. 1693*377e23a2Schristos * elf32-i386.c (elf_i386_check_relocs): ..set it here instead.. 1694*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_relocs): ..and here. 1695*377e23a2Schristos 1696*377e23a2Schristos2009-07-09 Alan Modra <amodra@bigpond.net.au> 1697*377e23a2Schristos 1698*377e23a2Schristos * elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field 1699*377e23a2Schristos of malloc'd struct call_info. 1700*377e23a2Schristos (pasted_function): Likewise, priority too. 1701*377e23a2Schristos 1702*377e23a2Schristos2009-07-07 Alan Modra <amodra@bigpond.net.au> 1703*377e23a2Schristos 1704*377e23a2Schristos * elf32-spu.c (spu_elf_auto_overlay): Take into account section 1705*377e23a2Schristos alignment when packing sections into overlays. 1706*377e23a2Schristos 1707*377e23a2Schristos2009-07-03 Cary Coutant <ccoutant@google.com> 1708*377e23a2Schristos 1709*377e23a2Schristos * dwarf2.c (decode_line_info): Ignore DW_LNE_set_discriminator. 1710*377e23a2Schristos 1711*377e23a2Schristos2009-07-03 Dave Korn <dave.korn.cygwin@gmail.com> 1712*377e23a2Schristos 1713*377e23a2Schristos * coffcode.h (sec_to_styp_flags): Partially revert (functional 1714*377e23a2Schristos changes only) earlier patch:- 1715*377e23a2Schristos 1716*377e23a2Schristos2009-06-25 Kai Tietz <kai.tietz@onevision.com> 1717*377e23a2Schristos 1718*377e23a2Schristos * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and 1719*377e23a2Schristos give .debug and .reloc data characteristics. 1720*377e23a2Schristos (DOT_RELOC): New define for .reloc section string. 1721*377e23a2Schristos (coff_write_object_contents): Use DOT_RELOC instead of string. 1722*377e23a2Schristos 1723*377e23a2Schristos2009-07-02 Tom Tromey <tromey@redhat.com> 1724*377e23a2Schristos 1725*377e23a2Schristos * aoutx.h (aout_get_external_symbols): Declare 'amt' locally. 1726*377e23a2Schristos * bfdwin.c (bfd_free_window): Cast to unsigned long. 1727*377e23a2Schristos 1728*377e23a2Schristos2009-07-01 Nick Clifton <nickc@redhat.com> 1729*377e23a2Schristos 1730*377e23a2Schristos * elf-m10300.c: Remove trailing white space. 1731*377e23a2Schristos * reloc.c: Likewise. 1732*377e23a2Schristos 1733*377e23a2Schristos2009-07-01 Douglas B Rupp <rupp@gnat.com> 1734*377e23a2Schristos 1735*377e23a2Schristos * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER, 1736*377e23a2Schristos BFD_HAVE_SYS_STAT_TYPE_MEMBER): New config functions. 1737*377e23a2Schristos * configure.in: Use them. 1738*377e23a2Schristos * configure: Regenerate. 1739*377e23a2Schristos * config.in: Regenerate. 1740*377e23a2Schristos * vmsutil.c: Include sysdep.h, remove ansidecl.h. 1741*377e23a2Schristos #define _BSD_SOURCE. Add comments. 1742*377e23a2Schristos (vms_file_stats_name): Calculate creation date based on available 1743*377e23a2Schristos runtime data. Return 1 for version instead of 0. 1744*377e23a2Schristos 1745*377e23a2Schristos2009-07-01 Nick Clifton <nickc@redhat.com> 1746*377e23a2Schristos 1747*377e23a2Schristos PR 10072 1748*377e23a2Schristos * elf32-arm.c (elf32_arm_final_link_relocate): Add code to handle 1749*377e23a2Schristos to R_ARM_THM_PC8 relocation. 1750*377e23a2Schristos 1751*377e23a2Schristos2009-06-29 Nick Clifton <nickc@redhat.com> 1752*377e23a2Schristos 1753*377e23a2Schristos * elf-m10300.c (mn10300_elf_relax_section): Allow for the 1754*377e23a2Schristos different uses of the relocations addend when a symbol is in a 1755*377e23a2Schristos merged section. 1756*377e23a2Schristos 1757*377e23a2Schristos2009-06-27 H.J. Lu <hongjiu.lu@intel.com> 1758*377e23a2Schristos 1759*377e23a2Schristos PR ld/10337 1760*377e23a2Schristos * elf.c (bfd_section_from_shdr): Don't change sh_link for 1761*377e23a2Schristos SHT_REL/SHT_RELA sections on executable nor shared library. 1762*377e23a2Schristos Treat SHT_REL/SHT_RELA sections with sh_link set to SHN_UNDEF 1763*377e23a2Schristos as a normal section. 1764*377e23a2Schristos 1765*377e23a2Schristos2009-06-25 Nick Clifton <nickc@redhat.com> 1766*377e23a2Schristos 1767*377e23a2Schristos * elf-m10300.c (mn10300_elf_relax_section): Handle non-section 1768*377e23a2Schristos symbols with SEC_MERGE flag. 1769*377e23a2Schristos 1770*377e23a2Schristos2009-06-25 Kai Tietz <kai.tietz@onevision.com> 1771*377e23a2Schristos 1772*377e23a2Schristos * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and 1773*377e23a2Schristos give .debug and .reloc data characteristics. 1774*377e23a2Schristos (DOT_RELOC): New define for .reloc section string. 1775*377e23a2Schristos (coff_write_object_contents): Use DOT_RELOC instead of string. 1776*377e23a2Schristos 1777*377e23a2Schristos2009-06-25 Tristan Gingold <gingold@adacore.com> 1778*377e23a2Schristos 1779*377e23a2Schristos * mach-o-target.c (bfd_mach_o_get_dynamic_symtab_upper_bound) 1780*377e23a2Schristos (bfd_mach_o_canonicalize_dynamic_symtab) 1781*377e23a2Schristos (bfd_mach_o_get_synthetic_symtab): Defines. 1782*377e23a2Schristos (TARGET_NAME_BACKEND): Add bfd_mach_o_print_thread entry. 1783*377e23a2Schristos (TARGET_NAME): Use Mach-O specific functions for dynamic. 1784*377e23a2Schristos 1785*377e23a2Schristos * mach-o-i386.c (bfd_mach_o_i386_swap_reloc_in): Fix howto indexes 1786*377e23a2Schristos for scattered relocations. 1787*377e23a2Schristos (bfd_mach_o_i386_print_thread): New function. 1788*377e23a2Schristos (bfd_mach_o_print_thread): Define. 1789*377e23a2Schristos 1790*377e23a2Schristos * mach-o.c (text_section_names_xlat): Add an entry for __const. 1791*377e23a2Schristos (bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs): 1792*377e23a2Schristos New functions extracted from ... 1793*377e23a2Schristos (bfd_mach_o_canonicalize_reloc): ... This. Simplified. 1794*377e23a2Schristos (bfd_mach_o_get_dynamic_reloc_upper_bound): New function. 1795*377e23a2Schristos (bfd_mach_o_canonicalize_dynamic_reloc): New function. 1796*377e23a2Schristos (bfd_mach_o_i386_flavour_string): Adjusted after enum renaming. 1797*377e23a2Schristos (bfd_mach_o_ppc_flavour_string): Reindentation. Add 64 bits cases. 1798*377e23a2Schristos (bfd_mach_o_scan_read_dylinker): Do not create a section anymore. 1799*377e23a2Schristos Set name_str field. 1800*377e23a2Schristos (bfd_mach_o_scan_read_dylib): Ditto. 1801*377e23a2Schristos (bfd_mach_o_scan_read_thread): Set mdata at declaration. Add comments, 1802*377e23a2Schristos reindent. 1803*377e23a2Schristos (bfd_mach_o_scan_read_dysymtab): Set mdata at declaration. Correctly 1804*377e23a2Schristos decode isym and flags on little endian targets. Set dysymtab field. 1805*377e23a2Schristos (bfd_mach_o_scan_start_address): Adjust for enum names. 1806*377e23a2Schristos (bfd_mach_o_lookup_section): Do not look for segments anymore. 1807*377e23a2Schristos (bfd_mach_o_print_section): Display bfd section name. 1808*377e23a2Schristos (bfd_mach_o_print_segment): Display none if no name. 1809*377e23a2Schristos (bfd_mach_o_print_dysymtab): Display next index for local, external 1810*377e23a2Schristos and undefined symbols. 1811*377e23a2Schristos (bfd_mach_o_bfd_print_private_bfd_data): Adjust code by using name_str. 1812*377e23a2Schristos Display dylinker name. Display thread and unixthread commands content. 1813*377e23a2Schristos (bfd_mach_o_print_thread): New macro. 1814*377e23a2Schristos 1815*377e23a2Schristos * mach-o.h (bfd_mach_o_mach_header_magic): Align numbers. 1816*377e23a2Schristos (bfd_mach_o_ppc_thread_flavour): Ditto. 1817*377e23a2Schristos (bfd_mach_o_i386_thread_flavour): Ditto. 1818*377e23a2Schristos (BFD_MACH_O_PPC_THREAD_STATE_NONE): New enum. 1819*377e23a2Schristos (BFD_MACH_O_x86_THREAD_STATE_NONE): Replaces 1820*377e23a2Schristos BFD_MACH_O_THREAD_STATE_NONE. 1821*377e23a2Schristos (bfd_mach_o_segment_command): Remove segment field. 1822*377e23a2Schristos (bfd_mach_o_thread_flavour): Field offset is now unsigned long. 1823*377e23a2Schristos (bfd_mach_o_dylinker_command): Remove section field, add name_str. 1824*377e23a2Schristos (bfd_mach_o_prebound_dylib_command): Ditto. 1825*377e23a2Schristos (bfd_mach_o_dylib_command): Ditto. 1826*377e23a2Schristos (bfd_mach_o_prebound_dylib_command): Remove section field. 1827*377e23a2Schristos (mach_o_data_struct): Add dysymtab field. 1828*377e23a2Schristos (bfd_mach_o_backend_data): Add _bfd_mach_o_print_thread field. 1829*377e23a2Schristos (bfd_mach_o_get_reloc_upper_bound, bfd_mach_o_canonicalize_reloc) 1830*377e23a2Schristos (bfd_mach_o_build_commands): Remove parameter names and attributes. 1831*377e23a2Schristos (bfd_mach_o_get_dynamic_reloc_upper_bound) 1832*377e23a2Schristos (bfd_mach_o_canonicalize_dynamic_reloc): New prototypes. 1833*377e23a2Schristos 1834*377e23a2Schristos2009-06-25 Rafael Avila de Espindola <espindola@google.com> 1835*377e23a2Schristos 1836*377e23a2Schristos * plugin.c (load_plugin): Use stat and S_ISREG instead of the d_type 1837*377e23a2Schristos field of struct dirent. 1838*377e23a2Schristos 1839*377e23a2Schristos2009-06-23 Tristan Gingold <gingold@adacore.com> 1840*377e23a2Schristos 1841*377e23a2Schristos * vms.c (vms_get_synthetic_symtab): Remove duplicate definition 1842*377e23a2Schristos of this macro. Fix indentation. 1843*377e23a2Schristos 1844*377e23a2Schristos2009-06-22 Christophe Lyon <christophe.lyon@st.com> 1845*377e23a2Schristos 1846*377e23a2Schristos * elf32-arm.c (elf32_arm_size_stubs): Use PLT address as 1847*377e23a2Schristos destination for defined dynamic symbols when deciding whether to 1848*377e23a2Schristos insert a stub or not. 1849*377e23a2Schristos (allocate_dynrelocs): Make sure functions are not marked as Thumb 1850*377e23a2Schristos when actually accessed through a PLT, even when generating a 1851*377e23a2Schristos shared lib. 1852*377e23a2Schristos 1853*377e23a2Schristos2009-06-22 Tristan Gingold <gingold@adacore.com> 1854*377e23a2Schristos 1855*377e23a2Schristos * mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to 1856*377e23a2Schristos the relocs array. 1857*377e23a2Schristos 1858*377e23a2Schristos2009-06-22 Alan Modra <amodra@bigpond.net.au> 1859*377e23a2Schristos 1860*377e23a2Schristos * elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch. 1861*377e23a2Schristos * elf32-v850.c (v850_elf_relocate_section): Warning fix. 1862*377e23a2Schristos 1863*377e23a2Schristos2009-06-22 Alan Modra <amodra@bigpond.net.au> 1864*377e23a2Schristos 1865*377e23a2Schristos * elf64-ppc.c (ppc64_elf_edit_opd): Avoid gcc warning. 1866*377e23a2Schristos 1867*377e23a2Schristos2009-06-19 H.J. Lu <hongjiu.lu@intel.com> 1868*377e23a2Schristos 1869*377e23a2Schristos * elflink.c (elf_link_add_object_symbols): Avoid warning 1870*377e23a2Schristos from -Wjump-misses-init in gcc 4.5.0. 1871*377e23a2Schristos 1872*377e23a2Schristos2009-06-19 H.J. Lu <hongjiu.lu@intel.com> 1873*377e23a2Schristos 1874*377e23a2Schristos * elf32-i386.c (elf_i386_check_relocs): Properly check local 1875*377e23a2Schristos symbol on error. 1876*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. 1877*377e23a2Schristos 1878*377e23a2Schristos2009-06-19 H.J. Lu <hongjiu.lu@intel.com> 1879*377e23a2Schristos 1880*377e23a2Schristos * elf32-i386.c (elf_i386_tls_transition): Add a parameter, 1881*377e23a2Schristos r_symndx. Report local symbol name on error. 1882*377e23a2Schristos (elf_i386_check_relocs): Updated. Report local symbol name on 1883*377e23a2Schristos error. 1884*377e23a2Schristos (elf_i386_gc_sweep_hook): Updated. 1885*377e23a2Schristos (elf_i386_relocate_section): Likewise. 1886*377e23a2Schristos 1887*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_tls_transition): Add a parameter, 1888*377e23a2Schristos r_symndx. Report local symbol name on error. 1889*377e23a2Schristos (elf64_x86_64_check_relocs): Updated. Report local symbol name 1890*377e23a2Schristos on error. 1891*377e23a2Schristos (elf64_x86_64_gc_sweep_hook): Updated. 1892*377e23a2Schristos (elf64_x86_64_relocate_section): Likewise. 1893*377e23a2Schristos 1894*377e23a2Schristos2009-06-19 Tristan Gingold <gingold@adacore.com> 1895*377e23a2Schristos 1896*377e23a2Schristos * mach-o.c (bfd_mach_o_print_private_header): Fix format character. 1897*377e23a2Schristos 1898*377e23a2Schristos2009-06-19 Tristan Gingold <gingold@adacore.com> 1899*377e23a2Schristos 1900*377e23a2Schristos * mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Add prototype. 1901*377e23a2Schristos (bfd_mach_o_version): Use bfd_mach_o_get_data instead of direct access. 1902*377e23a2Schristos (bfd_mach_o_valid): Ditto. 1903*377e23a2Schristos (bfd_mach_o_wide_p): Ditto. 1904*377e23a2Schristos (bfd_mach_o_canonicalize_reloc): Ditto. 1905*377e23a2Schristos (bfd_mach_o_build_commands): Ditto. 1906*377e23a2Schristos (bfd_mach_o_scan_read_thread): Ditto. 1907*377e23a2Schristos (bfd_mach_o_flatten_sections): Ditto. 1908*377e23a2Schristos (bfd_mach_o_scan_start_address): Ditto. 1909*377e23a2Schristos (bfd_mach_o_lookup_section): Ditto. 1910*377e23a2Schristos (bfd_mach_o_core_fetch_environment): Ditto. 1911*377e23a2Schristos (bfd_mach_o_write_contents): Ditto. Handle reexport_dylib. 1912*377e23a2Schristos (bfd_mach_o_scan_write_relocs): Adjust for bfd_mach_o_get_data. 1913*377e23a2Schristos (bfd_mach_o_scan_write_symtab): Ditto. 1914*377e23a2Schristos Use macros instead of hard-coded values. 1915*377e23a2Schristos (bfd_mach_o_scan_read_symtab_symbol): Make the function static. 1916*377e23a2Schristos Use bfd_mach_o_get_data instead of direct access. Use macros 1917*377e23a2Schristos instead of hard-coded values. 1918*377e23a2Schristos (bfd_mach_o_scan_read_symtab_strtab): Make the function static. 1919*377e23a2Schristos Remove sym argument and get section from mdata. 1920*377e23a2Schristos Move code into the else branch. 1921*377e23a2Schristos (bfd_mach_o_scan_read_symtab_symbols): Make the function static. 1922*377e23a2Schristos Remove sym argument and get section from mdata. Adjust code. 1923*377e23a2Schristos (bfd_mach_o_scan_read_dylib): Move assertion into the created 1924*377e23a2Schristos switch (which replaces consecutive if statements). 1925*377e23a2Schristos (bfd_mach_o_scan_read_dysymtab): Rename seg to cmd. Load 1926*377e23a2Schristos module table, table of content, indirect symbols and external 1927*377e23a2Schristos referenced symbols. 1928*377e23a2Schristos (bfd_mach_o_scan_read_symtab): Renames seg to symtab. Set symtab 1929*377e23a2Schristos field. 1930*377e23a2Schristos (bfd_mach_o_scan_read_linkedit): New function. 1931*377e23a2Schristos (bfd_mach_o_scan_read_str): Ditto. 1932*377e23a2Schristos (bfd_mach_o_count_symbols): Simplify the code by using the symtab 1933*377e23a2Schristos field of mdata. 1934*377e23a2Schristos (bfd_mach_o_get_symtab_upper_bound): Remove check as 1935*377e23a2Schristos bfd_mach_o_count_symbols never returns an error. 1936*377e23a2Schristos (bfd_mach_o_canonicalize_symtab): Simplify the code by using the 1937*377e23a2Schristos symtab field (there might be only one symtab). 1938*377e23a2Schristos (bfd_mach_o_scan_read_command): Handle reexported dylib. 1939*377e23a2Schristos Handle sub frameworks, sub umbrella, sub library and sub client. 1940*377e23a2Schristos Read code signature and segment split info commands. 1941*377e23a2Schristos (bfd_mach_o_scan): Reindent. 1942*377e23a2Schristos (bfd_mach_o_xlat_name): New type. 1943*377e23a2Schristos (bfd_mach_o_print_flags): New function. 1944*377e23a2Schristos (bfd_mach_o_get_name): Ditto. 1945*377e23a2Schristos (bfd_mach_o_cpu_name): New variable. 1946*377e23a2Schristos (bfd_mach_o_filetype_name, bfd_mach_o_header_flags_name) 1947*377e23a2Schristos (bfd_mach_o_section_type_name) 1948*377e23a2Schristos (bfd_mach_o_section_attribute_name) 1949*377e23a2Schristos (bfd_mach_o_load_command_name): New variables. 1950*377e23a2Schristos (bfd_mach_o_print_private_header): New function. 1951*377e23a2Schristos (bfd_mach_o_print_section_map): New function extracted from 1952*377e23a2Schristos bfd_mach_o_print_private_bfd_data. 1953*377e23a2Schristos (bfd_mach_o_print_section): Ditto. Print more infos. 1954*377e23a2Schristos (bfd_mach_o_print_segment): Ditto. 1955*377e23a2Schristos (bfd_mach_o_print_dysymtab): Ditto. 1956*377e23a2Schristos (bfd_mach_o_bfd_print_private_bfd_data): Reworked. Handle 1957*377e23a2Schristos load weak dylib, reexport dylib and id dylib. 1958*377e23a2Schristos Handle code signature and segment_split info. 1959*377e23a2Schristos Handle sub frameworks, sub umbrella, sub library and sub client. 1960*377e23a2Schristos (bfd_mach_o_section_get_nbr_indirect): New function. 1961*377e23a2Schristos 1962*377e23a2Schristos * mach-o.h (BFD_MACH_O_REFERENCE_MASK): New macro. Add comment. 1963*377e23a2Schristos (bfd_mach_o_header_flags): New enum to define header flags. 1964*377e23a2Schristos (bfd_mach_o_section_attribute): New enum to replace ... 1965*377e23a2Schristos (BFD_MACH_O_S_ATTR_LOC_RELOC, BFD_MACH_O_S_ATTR_EXT_RELOC, 1966*377e23a2Schristos BFD_MACH_O_S_ATTR_SOME_INSTRUCTIONS, BFD_MACH_O_S_ATTR_DEBUG, 1967*377e23a2Schristos BFD_MACH_O_S_SELF_MODIFYING_CODE, BFD_MACH_O_S_ATTR_LIVE_SUPPORT, 1968*377e23a2Schristos BFD_MACH_O_S_ATTR_NO_DEAD_STRIP, BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, 1969*377e23a2Schristos BFD_MACH_O_S_ATTR_NO_TOC, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS): ... 1970*377e23a2Schristos these removed macros. 1971*377e23a2Schristos (BFD_MACH_O_NLIST_SIZE, BFD_MACH_O_NLIST_64_SIZE): New macros. 1972*377e23a2Schristos (bfd_mach_o_dylib_module): New type. 1973*377e23a2Schristos (BFD_MACH_O_DYLIB_MODULE_SIZE, BFD_MACH_O_DYLIB_MODULE_64_SIZE): New 1974*377e23a2Schristos macros. 1975*377e23a2Schristos (bfd_mach_o_dylib_table_of_content): New type. 1976*377e23a2Schristos (BFD_MACH_O_TABLE_OF_CONTENT_SIZE): New macro. 1977*377e23a2Schristos (bfd_mach_o_dylib_reference): New type. 1978*377e23a2Schristos (BFD_MACH_O_REFERENCE_SIZE): New macro. 1979*377e23a2Schristos (bfd_mach_o_dysymtab_command): Add fields for loaded and decoded 1980*377e23a2Schristos modules, toc, references and indirect syms. 1981*377e23a2Schristos (BFD_MACH_O_INDIRECT_SYMBOL_SIZE): New macro. 1982*377e23a2Schristos (bfd_mach_o_dylinker_command): Remove cmd and cmdsize fields (were 1983*377e23a2Schristos unused). Add comment. 1984*377e23a2Schristos (bfd_mach_o_dylib_command): Ditto. 1985*377e23a2Schristos (bfd_mach_o_prebound_dylib_command): Ditto. 1986*377e23a2Schristos (bfd_mach_o_linkedit_command): New type. 1987*377e23a2Schristos (bfd_mach_o_str_command): New type. 1988*377e23a2Schristos (bfd_mach_o_load_command): Add linkedit and str fields. 1989*377e23a2Schristos (mach_o_data_struct): Add symtab field. 1990*377e23a2Schristos (bfd_get_mach_o_data): Renamed to ... 1991*377e23a2Schristos (bfd_mach_o_get_data): ... this new macro. 1992*377e23a2Schristos (bfd_mach_o_scan_read_symtab_symbol, 1993*377e23a2Schristos bfd_mach_o_scan_read_symtab_strtab, 1994*377e23a2Schristos bfd_mach_o_scan_read_symtab_symbols): Prototypes removed. 1995*377e23a2Schristos 1996*377e23a2Schristos * mach-o-i386.c (bfd_mach_o_i386_mkobject): Use bfd_mach_o_get_data 1997*377e23a2Schristos instead of direct access. 1998*377e23a2Schristos 1999*377e23a2Schristos2009-06-19 Alan Modra <amodra@bigpond.net.au> 2000*377e23a2Schristos 2001*377e23a2Schristos * elf32-ppc.c (ppc_elf_check_relocs): Allow local symbols for 2002*377e23a2Schristos R_PPC_PLTREL24 relocs. 2003*377e23a2Schristos (ppc_elf_relocate_section): Likewise. 2004*377e23a2Schristos 2005*377e23a2Schristos2009-06-19 Alan Modra <amodra@bigpond.net.au> 2006*377e23a2Schristos 2007*377e23a2Schristos * elf32-ppc.c (find_plt_ent): Pass pointer to plist rather than 2008*377e23a2Schristos pointer to sym hash. Update all uses. 2009*377e23a2Schristos (update_plt_info): Likewise. Don't check addend here. 2010*377e23a2Schristos 2011*377e23a2Schristos2009-06-18 H.J. Lu <hongjiu.lu@intel.com> 2012*377e23a2Schristos 2013*377e23a2Schristos * elf32-i386.c (elf_i386_check_relocs): Remove isymbuf and use 2014*377e23a2Schristos bfd_sym_from_r_symndx. 2015*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. 2016*377e23a2Schristos 2017*377e23a2Schristos2009-06-18 Alan Modra <amodra@bigpond.net.au> 2018*377e23a2Schristos 2019*377e23a2Schristos * elf-bfd.h (struct sym_sec_cache): Delete. 2020*377e23a2Schristos (struct sym_cache): New. 2021*377e23a2Schristos (bfd_section_from_r_symndx): Delete prototype. 2022*377e23a2Schristos (bfd_sym_from_r_symndx): Define prototype. 2023*377e23a2Schristos * elf.c (bfd_section_from_r_symndx): Delete, replace with.. 2024*377e23a2Schristos (bfd_sym_from_r_symndx): ..new function. 2025*377e23a2Schristos * elf32-arm.c: Update all uses of struct sym_sec_cache and 2026*377e23a2Schristos bfd_section_from_r_symndx to new struct and function. 2027*377e23a2Schristos * elf32-bfin.c: Likewise. 2028*377e23a2Schristos * elf32-hppa.c: Likewise. 2029*377e23a2Schristos * elf32-i386.c: Likewise. 2030*377e23a2Schristos * elf32-m32r.c: Likewise. 2031*377e23a2Schristos * elf32-m68hc1x.c: Likewise. 2032*377e23a2Schristos * elf32-m68hc1x.h: Likewise. 2033*377e23a2Schristos * elf32-m68k.c: Likewise. 2034*377e23a2Schristos * elf32-ppc.c: Likewise. 2035*377e23a2Schristos * elf32-s390.c: Likewise. 2036*377e23a2Schristos * elf32-sh.c: Likewise. 2037*377e23a2Schristos * elf64-ppc.c: Likewise. 2038*377e23a2Schristos * elf64-s390.c: Likewise. 2039*377e23a2Schristos * elf64-x86-64.c: Likewise. 2040*377e23a2Schristos * elfxx-sparc.c: Likewise. 2041*377e23a2Schristos * elfxx-sparc.h: Likewise. 2042*377e23a2Schristos 2043*377e23a2Schristos2009-06-18 H.J. Lu <hongjiu.lu@intel.com> 2044*377e23a2Schristos 2045*377e23a2Schristos * elf32-i386.c (elf_i386_check_relocs): Cache or free isymbuf. 2046*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. 2047*377e23a2Schristos 2048*377e23a2Schristos2009-06-18 Nick Clifton <nickc@redhat.com> 2049*377e23a2Schristos 2050*377e23a2Schristos * elflink.c (elf_link_sort_relocs): Return early if there are no 2051*377e23a2Schristos relocs to sort. 2052*377e23a2Schristos 2053*377e23a2Schristos2009-06-18 Dave Korn <dave.korn.cygwin@gmail.com> 2054*377e23a2Schristos 2055*377e23a2Schristos Merge cegcc and mingw32ce target name changes from 2056*377e23a2Schristos CeGCC project: 2057*377e23a2Schristos 2058*377e23a2Schristos 2007-12-25 Pedro Alves <pedro_alves@portugalmail.pt> 2059*377e23a2Schristos 2060*377e23a2Schristos * config.bfd: Add arm*-*-cegcc* target. 2061*377e23a2Schristos 2062*377e23a2Schristos 2007-12-17 Pedro Alves <pedro_alves@portugalmail.pt> 2063*377e23a2Schristos 2064*377e23a2Schristos * config.bfd: Add arm-*-mingw32ce* target. 2065*377e23a2Schristos 2066*377e23a2Schristos2009-06-17 H.J. Lu <hongjiu.lu@intel.com> 2067*377e23a2Schristos 2068*377e23a2Schristos * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): New. 2069*377e23a2Schristos * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Likewise. 2070*377e23a2Schristos * elf32-i386.c (elf_i386_allocate_dynrelocs): Use it. 2071*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. 2072*377e23a2Schristos 2073*377e23a2Schristos2009-06-17 H.J. Lu <hongjiu.lu@intel.com> 2074*377e23a2Schristos 2075*377e23a2Schristos * elf-bfd.h (_bfd_elf_create_ifunc_dyn_reloc): New. 2076*377e23a2Schristos * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Likewise. 2077*377e23a2Schristos * elf32-i386.c (elf_i386_check_relocs): Use it. 2078*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. 2079*377e23a2Schristos 2080*377e23a2Schristos2009-06-17 H.J. Lu <hongjiu.lu@intel.com> 2081*377e23a2Schristos 2082*377e23a2Schristos * elf-bfd.h (elf_dyn_relocs): New. 2083*377e23a2Schristos 2084*377e23a2Schristos * elf32-i386.c (elf_i386_dyn_relocs): Removed. 2085*377e23a2Schristos (elf_i386_link_hash_entry): Replace elf_i386_dyn_relocs with 2086*377e23a2Schristos elf_dyn_relocs. 2087*377e23a2Schristos (elf_i386_copy_indirect_symbol): Likewise. 2088*377e23a2Schristos (elf_i386_check_relocs): Likewise. 2089*377e23a2Schristos (elf_i386_gc_sweep_hook): Likewise. 2090*377e23a2Schristos (elf_i386_allocate_dynrelocs): Likewise. 2091*377e23a2Schristos (elf_i386_readonly_dynrelocs): Likewise. 2092*377e23a2Schristos (elf_i386_size_dynamic_sections): Likewise. 2093*377e23a2Schristos 2094*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_dyn_relocs): Removed. 2095*377e23a2Schristos (elf64_x86_64_link_hash_entry): Replace elf64_x86_64_dyn_relocs 2096*377e23a2Schristos with elf_dyn_relocs. 2097*377e23a2Schristos (elf64_x86_64_copy_indirect_symbol): Updated. 2098*377e23a2Schristos (elf64_x86_64_check_relocs): Likewise. 2099*377e23a2Schristos (elf64_x86_64_gc_sweep_hook): Likewise. 2100*377e23a2Schristos (elf64_x86_64_adjust_dynamic_symbol): Likewise. 2101*377e23a2Schristos (elf64_x86_64_allocate_dynrelocs): Likewise. 2102*377e23a2Schristos (elf64_x86_64_readonly_dynrelocs): Likewise. 2103*377e23a2Schristos (elf64_x86_64_size_dynamic_sections): Likewise. 2104*377e23a2Schristos 2105*377e23a2Schristos2009-06-17 H.J. Lu <hongjiu.lu@intel.com> 2106*377e23a2Schristos 2107*377e23a2Schristos * elf32-arm.c (create_got_section): Get existing .rela.got 2108*377e23a2Schristos section. 2109*377e23a2Schristos * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise. 2110*377e23a2Schristos * elf32-lm32.c (create_got_section): Likewise. 2111*377e23a2Schristos * elf32-m32r.c (create_got_section): Likewise. 2112*377e23a2Schristos * elf32-ppc.c (ppc_elf_create_got): Likewise. 2113*377e23a2Schristos * elf32-s390.c (create_got_section): Likewise. 2114*377e23a2Schristos * elf32-sh.c (create_got_section): Likewise. 2115*377e23a2Schristos * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise. 2116*377e23a2Schristos * elf64-s390.c (create_got_section): Likewise. 2117*377e23a2Schristos * elfxx-sparc.c (create_got_section): Likewise. 2118*377e23a2Schristos 2119*377e23a2Schristos * elflink.c (_bfd_elf_create_got_section): Properly initialize 2120*377e23a2Schristos the GOT size. 2121*377e23a2Schristos 2122*377e23a2Schristos2009-06-16 H.J. Lu <hongjiu.lu@intel.com> 2123*377e23a2Schristos 2124*377e23a2Schristos * elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): New. 2125*377e23a2Schristos 2126*377e23a2Schristos * elf32-i386.c (elf_i386_local_hash): Removed. 2127*377e23a2Schristos (elf_i386_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH. 2128*377e23a2Schristos (elf_i386_get_local_sym_hash): Likewise. 2129*377e23a2Schristos 2130*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_local_hash): Removed. 2131*377e23a2Schristos (elf64_x86_64_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH. 2132*377e23a2Schristos (elf64_x86_64_get_local_sym_hash): Likewise. 2133*377e23a2Schristos * elfxx-ia64.c (elfNN_ia64_local_htab_hash): Likewise. 2134*377e23a2Schristos (get_local_sym_hash): Likewise. 2135*377e23a2Schristos 2136*377e23a2Schristos2009-06-16 H.J. Lu <hongjiu.lu@intel.com> 2137*377e23a2Schristos 2138*377e23a2Schristos * elfxx-ia64.c (elfNN_ia64_link_hash_table): Remove got_sec, 2139*377e23a2Schristos rel_got_sec and plt_sec. 2140*377e23a2Schristos (elfNN_ia64_relax_section): Updated. 2141*377e23a2Schristos (elfNN_ia64_create_dynamic_sections): Likewise. 2142*377e23a2Schristos (get_got): Likewise. 2143*377e23a2Schristos (allocate_dynrel_entries): Likewise. 2144*377e23a2Schristos (elfNN_ia64_size_dynamic_sections): Likewise. 2145*377e23a2Schristos (set_got_entry): Likewise. 2146*377e23a2Schristos (elfNN_ia64_choose_gp): Likewise. 2147*377e23a2Schristos (elfNN_ia64_relocate_section): Likewise. 2148*377e23a2Schristos (elfNN_ia64_finish_dynamic_symbol): Likewise. 2149*377e23a2Schristos (elfNN_ia64_finish_dynamic_sections): Likewise. 2150*377e23a2Schristos 2151*377e23a2Schristos2009-06-16 Ulrich Weigand <uweigand@de.ibm.com> 2152*377e23a2Schristos 2153*377e23a2Schristos * elf32-spu.c (needs_ovl_stub): Respect .brinfo lrlive bits 2154*377e23a2Schristos also for calls. 2155*377e23a2Schristos 2156*377e23a2Schristos2009-06-16 H.J. Lu <hongjiu.lu@intel.com> 2157*377e23a2Schristos 2158*377e23a2Schristos * configure.in (elf): Add elf-ifunc.lo. 2159*377e23a2Schristos 2160*377e23a2Schristos * configure: Regenerated. 2161*377e23a2Schristos * Makefile.in: Likewise. 2162*377e23a2Schristos 2163*377e23a2Schristos * elf-bfd.h (elf_link_hash_table): Add sgot, sgotplt, 2164*377e23a2Schristos srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc. 2165*377e23a2Schristos 2166*377e23a2Schristos * elf32-i386.c (elf_i386_link_hash_table): Remove sgot, 2167*377e23a2Schristos sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and 2168*377e23a2Schristos irelifunc. 2169*377e23a2Schristos (elf_i386_link_hash_table_create): Likewise. 2170*377e23a2Schristos (elf_i386_create_dynamic_sections): Likewise. 2171*377e23a2Schristos (elf_i386_check_relocs): Likewise. 2172*377e23a2Schristos (elf_i386_allocate_dynrelocs): Likewise. 2173*377e23a2Schristos (elf_i386_size_dynamic_sections): Likewise. 2174*377e23a2Schristos (elf_i386_relocate_section): Likewise. 2175*377e23a2Schristos (elf_i386_finish_dynamic_symbol): Likewise. 2176*377e23a2Schristos (elf_i386_finish_dynamic_sections): Likewise. 2177*377e23a2Schristos (elf_i386_create_got_section): Removed. 2178*377e23a2Schristos 2179*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_link_hash_table): Remove sgot, 2180*377e23a2Schristos sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and 2181*377e23a2Schristos irelifunc. 2182*377e23a2Schristos (elf64_x86_64_compute_jump_table_size): Updated. 2183*377e23a2Schristos (elf64_x86_64_link_hash_table_create): Likewise. 2184*377e23a2Schristos (elf64_x86_64_create_dynamic_sections): Likewise. 2185*377e23a2Schristos (elf64_x86_64_check_relocs): Likewise. 2186*377e23a2Schristos (elf64_x86_64_allocate_dynrelocs): Likewise. 2187*377e23a2Schristos (elf64_x86_64_size_dynamic_sections): Likewise. 2188*377e23a2Schristos (elf64_x86_64_relocate_section): Likewise. 2189*377e23a2Schristos (elf64_x86_64_finish_dynamic_symbol): Likewise. 2190*377e23a2Schristos (elf64_x86_64_finish_dynamic_sections): Likewise. 2191*377e23a2Schristos (elf64_x86_64_create_got_section): Removed. 2192*377e23a2Schristos 2193*377e23a2Schristos * elflink.c (_bfd_elf_create_got_section): Use log_file_align 2194*377e23a2Schristos for pointer alignment. Set up section pointers. 2195*377e23a2Schristos (_bfd_elf_create_dynamic_sections): Likewise. 2196*377e23a2Schristos (_bfd_elf_create_ifunc_sections): Moved to ... 2197*377e23a2Schristos * elf-ifunc.c: Here. New. 2198*377e23a2Schristos 2199*377e23a2Schristos * Makefile.am (BFD32_BACKENDS): Add elf-ifunc.lo. 2200*377e23a2Schristos (BFD32_BACKENDS_CFILES): Add elf-ifunc.c. 2201*377e23a2Schristos Run "make dep-am". 2202*377e23a2Schristos 2203*377e23a2Schristos2009-06-16 Doug Kwan <dougkwan@google.com> 2204*377e23a2Schristos 2205*377e23a2Schristos * elf32-arm.c (cortex_a8_erratum_scan): Change type of offset 2206*377e23a2Schristos to bfd_signed_vma. Cast constant operands which are used in 2207*377e23a2Schristos offset related expressions to bfd_signed_vma type as appropriate. 2208*377e23a2Schristos 2209*377e23a2Schristos2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> 2210*377e23a2Schristos 2211*377e23a2Schristos * elf32-vax.c (elf_vax_plt_sym_val): New function. 2212*377e23a2Schristos (elf_backend_plt_sym_val): Define. 2213*377e23a2Schristos 2214*377e23a2Schristos2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> 2215*377e23a2Schristos 2216*377e23a2Schristos * elf32-vax.c (elf_vax_reloc_type_class): New function. 2217*377e23a2Schristos (elf_backend_reloc_type_class): Define. 2218*377e23a2Schristos 2219*377e23a2Schristos2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> 2220*377e23a2Schristos 2221*377e23a2Schristos * elf32-vax.c (elf_vax_relocate_section): For symbol references 2222*377e23a2Schristos from an executable to a shared library treat R_VAX_PC32 2223*377e23a2Schristos relocations as R_VAX_PLT32 ones. 2224*377e23a2Schristos 2225*377e23a2Schristos2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> 2226*377e23a2Schristos 2227*377e23a2Schristos * elf32-vax.c (elf_vax_instantiate_got_entries): Skip local 2228*377e23a2Schristos symbols in GOT space calculation. 2229*377e23a2Schristos (elf_vax_relocate_section): Adjust accordingly. 2230*377e23a2Schristos 2231*377e23a2Schristos2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> 2232*377e23a2Schristos 2233*377e23a2Schristos * elf32-vax.c (elf_vax_plt_entry): Set the entry mask to 2234*377e23a2Schristos include <R11:R2>. 2235*377e23a2Schristos 2236*377e23a2Schristos2009-06-16 Maciej W. Rozycki <macro@linux-mips.org> 2237*377e23a2Schristos 2238*377e23a2Schristos * elf32-vax.c (elf_vax_check_relocs): Handle the visibility 2239*377e23a2Schristos attribute. 2240*377e23a2Schristos (elf_vax_relocate_section): Likewise. 2241*377e23a2Schristos 2242*377e23a2Schristos2009-06-15 H.J. Lu <hongjiu.lu@intel.com> 2243*377e23a2Schristos 2244*377e23a2Schristos * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments. 2245*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. 2246*377e23a2Schristos 2247*377e23a2Schristos2009-06-15 H.J. Lu <hongjiu.lu@intel.com> 2248*377e23a2Schristos 2249*377e23a2Schristos * elf32-i386.c (elf_i386_check_relocs): Reformat. 2250*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. 2251*377e23a2Schristos 2252*377e23a2Schristos2009-06-15 H.J. Lu <hongjiu.lu@intel.com> 2253*377e23a2Schristos 2254*377e23a2Schristos * Makefile.am: Run "make dep-am". 2255*377e23a2Schristos * Makefile.in: Regenerated. 2256*377e23a2Schristos 2257*377e23a2Schristos2009-06-15 H.J. Lu <hongjiu.lu@intel.com> 2258*377e23a2Schristos 2259*377e23a2Schristos * elf32-i386.c (elf_i386_allocate_dynrelocs): Fix a typo. 2260*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. 2261*377e23a2Schristos 2262*377e23a2Schristos2009-06-15 Nick Clifton <nickc@redhat.com> 2263*377e23a2Schristos 2264*377e23a2Schristos * po/ru.po: New Russian translation. 2265*377e23a2Schristos * configure.in (ALL_LINGUAS): Add ru. 2266*377e23a2Schristos * configure: Regenerate. 2267*377e23a2Schristos 2268*377e23a2Schristos2009-06-14 H.J. Lu <hongjiu.lu@intel.com> 2269*377e23a2Schristos 2270*377e23a2Schristos * elf32-i386.c: Remove duplicated comments. 2271*377e23a2Schristos 2272*377e23a2Schristos2009-06-14 H.J. Lu <hongjiu.lu@intel.com> 2273*377e23a2Schristos 2274*377e23a2Schristos PR ld/10270 2275*377e23a2Schristos * elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow 2276*377e23a2Schristos dynamic IFUNC pointer in non-shared object. Use .got.plt 2277*377e23a2Schristos for IFUNC definition in PIE. 2278*377e23a2Schristos (elf_i386_allocate_dynrelocs): Resolve IFUNC definition in 2279*377e23a2Schristos PIE locally. 2280*377e23a2Schristos 2281*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow 2282*377e23a2Schristos dynamic IFUNC pointer in non-shared object. Use .got.plt 2283*377e23a2Schristos for IFUNC definition in PIE. 2284*377e23a2Schristos (elf64_x86_64_relocate_section): Resolve IFUNC definition in 2285*377e23a2Schristos PIE locally. 2286*377e23a2Schristos 2287*377e23a2Schristos2009-06-13 H.J. Lu <hongjiu.lu@intel.com> 2288*377e23a2Schristos 2289*377e23a2Schristos * elf32-i386.c (elf_i386_check_relocs): Properly report 2290*377e23a2Schristos local symbol for unhandled relocation against STT_GNU_IFUNC 2291*377e23a2Schristos symbol. 2292*377e23a2Schristos (elf_i386_relocate_section): Likewise. 2293*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. 2294*377e23a2Schristos (elf64_x86_64_relocate_section): Likewise. 2295*377e23a2Schristos 2296*377e23a2Schristos2009-06-13 H.J. Lu <hongjiu.lu@intel.com> 2297*377e23a2Schristos 2298*377e23a2Schristos PR ld/10269 2299*377e23a2Schristos * elf32-i386.c: Include "objalloc.h" and "hashtab.h". 2300*377e23a2Schristos (elf_i386_link_hash_table): Add loc_hash_table and 2301*377e23a2Schristos loc_hash_memory. 2302*377e23a2Schristos (elf_i386_local_hash): New. 2303*377e23a2Schristos (elf_i386_local_htab_hash): Likewise. 2304*377e23a2Schristos (elf_i386_local_htab_eq): Likewise. 2305*377e23a2Schristos (elf_i386_get_local_sym_hash): Likewise. 2306*377e23a2Schristos (elf_i386_link_hash_table_free): Likewise. 2307*377e23a2Schristos (elf_i386_allocate_local_dynrelocs): Likewise. 2308*377e23a2Schristos (elf_i386_finish_local_dynamic_symbol): Likewise. 2309*377e23a2Schristos (bfd_elf64_bfd_link_hash_table_free): Likewise. 2310*377e23a2Schristos (elf_i386_link_hash_table_create): Create loc_hash_table and 2311*377e23a2Schristos loc_hash_memory. 2312*377e23a2Schristos (elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols. 2313*377e23a2Schristos (elf_i386_size_dynamic_sections): Likewise. 2314*377e23a2Schristos (elf_i386_relocate_section): Likewise. 2315*377e23a2Schristos (elf_i386_finish_dynamic_sections): Likewise. 2316*377e23a2Schristos (elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym 2317*377e23a2Schristos isn't NULL. 2318*377e23a2Schristos 2319*377e23a2Schristos * elf64-x86-64.c: Include "objalloc.h" and "hashtab.h". 2320*377e23a2Schristos (elf64_x86_64_link_hash_table): Add loc_hash_table and 2321*377e23a2Schristos loc_hash_memory. 2322*377e23a2Schristos (elf64_x86_64_local_hash): New. 2323*377e23a2Schristos (elf64_x86_64_local_htab_hash): Likewise. 2324*377e23a2Schristos (elf64_x86_64_local_htab_eq): Likewise. 2325*377e23a2Schristos (elf64_x86_64_get_local_sym_hash): Likewise. 2326*377e23a2Schristos (elf64_x86_64_link_hash_table_free): Likewise. 2327*377e23a2Schristos (elf64_x86_64_allocate_local_dynrelocs): Likewise. 2328*377e23a2Schristos (elf64_x86_64_finish_local_dynamic_symbol): Likewise. 2329*377e23a2Schristos (bfd_elf64_bfd_link_hash_table_free): Likewise. 2330*377e23a2Schristos (elf64_x86_64_link_hash_table_create): Create loc_hash_table 2331*377e23a2Schristos and loc_hash_memory. 2332*377e23a2Schristos (elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC 2333*377e23a2Schristos symbols. 2334*377e23a2Schristos (elf64_x86_64_size_dynamic_sections): Likewise. 2335*377e23a2Schristos (elf64_x86_64_relocate_section): Likewise. 2336*377e23a2Schristos (elf64_x86_64_finish_dynamic_sections): Likewise. 2337*377e23a2Schristos (elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if 2338*377e23a2Schristos sym isn't NULL. 2339*377e23a2Schristos 2340*377e23a2Schristos2009-06-10 Philip Blundell <philb@gnu.org> 2341*377e23a2Schristos 2342*377e23a2Schristos * elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if 2343*377e23a2Schristos elf_sec->this_hdr == NULL. 2344*377e23a2Schristos 2345*377e23a2Schristos2009-06-12 Tristan Gingold <gingold@adacore.com> 2346*377e23a2Schristos 2347*377e23a2Schristos * reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR. 2348*377e23a2Schristos * bfd-in2.h: Regenerated. 2349*377e23a2Schristos * libbfd.h: Regenerated. 2350*377e23a2Schristos 2351*377e23a2Schristos * mach-o.c (FILE_ALIGN): New macro. 2352*377e23a2Schristos (bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol. 2353*377e23a2Schristos (bfd_mach_o_print_symbol): Ditto. 2354*377e23a2Schristos (bfd_mach_o_scan_write_thread): Adjust type of variable offset. 2355*377e23a2Schristos (bfd_mach_o_get_reloc_upper_bound): New function. 2356*377e23a2Schristos (bfd_mach_o_canonicalize_reloc): Ditto. 2357*377e23a2Schristos (bfd_mach_o_scan_write_relocs): Ditto. 2358*377e23a2Schristos (bfd_mach_o_scan_write_section_32): Remove offset argument. 2359*377e23a2Schristos (bfd_mach_o_scan_write_section_64): Ditto. 2360*377e23a2Schristos (bfd_mach_o_scan_write_segment_32): Write relocs. Fix size of data 2361*377e23a2Schristos written for load command. Do not compute section file offset. 2362*377e23a2Schristos (bfd_mach_o_scan_write_segment_64): Ditto. 2363*377e23a2Schristos (bfd_mach_o_scan_write_symtab): Compute file offset first. 2364*377e23a2Schristos Adjust for bfd_mach_o_asymbol. Move code to convert from BFD to 2365*377e23a2Schristos Mach-O to ... 2366*377e23a2Schristos (bfd_mach_o_mangle_symbols): ... this new function. 2367*377e23a2Schristos (bfd_mach_o_write_contents): Be sure to have load commands built. 2368*377e23a2Schristos Call bfd_mach_o_mangle_symbols. 2369*377e23a2Schristos (bfd_mach_o_build_commands): Adjust for filelen field. 2370*377e23a2Schristos Use FILE_ALIGN macro. Clear section file offset if section is empty. 2371*377e23a2Schristos Do not set symtab file offset anymore here. 2372*377e23a2Schristos (bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol. 2373*377e23a2Schristos (bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc. 2374*377e23a2Schristos Set reloc_count and rel_filepos section fields. 2375*377e23a2Schristos (bfd_mach_o_scan_read_section_32): Type of argument offset is now 2376*377e23a2Schristos unsigned int. 2377*377e23a2Schristos (bfd_mach_o_scan_read_section_64): Ditto. 2378*377e23a2Schristos (bfd_mach_o_scan_read_section): Ditto. 2379*377e23a2Schristos (bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now 2380*377e23a2Schristos bfd_mach_o_asymbol. Use unsigned int for file offset type. 2381*377e23a2Schristos (bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol. 2382*377e23a2Schristos Handle weak-ref symbols. 2383*377e23a2Schristos (bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol. 2384*377e23a2Schristos (bfd_mach_o_scan_read_dysymtab_symbol): Ditto. 2385*377e23a2Schristos (bfd_mach_o_scan): Remove assignment to removed field. 2386*377e23a2Schristos (bfd_mach_o_mkobject_init): Ditto. 2387*377e23a2Schristos (bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter. 2388*377e23a2Schristos (bfd_mach_o_bfd_reloc_type_lookup): New macro. 2389*377e23a2Schristos (bfd_mach_o_bfd_reloc_name_lookup): Ditto. 2390*377e23a2Schristos (bfd_mach_o_swap_reloc_in): Ditto. 2391*377e23a2Schristos (bfd_mach_o_swap_reloc_out): Ditto. 2392*377e23a2Schristos 2393*377e23a2Schristos * mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY) 2394*377e23a2Schristos (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY) 2395*377e23a2Schristos (BFD_MACH_O_REFERENCE_FLAG_DEFINED) 2396*377e23a2Schristos (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED) 2397*377e23a2Schristos (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY) 2398*377e23a2Schristos (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY) 2399*377e23a2Schristos (BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED) 2400*377e23a2Schristos (BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF) 2401*377e23a2Schristos (BFD_MACH_O_N_WEAK_DEF): New macros. 2402*377e23a2Schristos Add comments. 2403*377e23a2Schristos (bfd_mach_o_section_type): Add new enumeration values. 2404*377e23a2Schristos (BFD_MACH_O_S_SELF_MODIFYING_CODE) 2405*377e23a2Schristos (BFD_MACH_O_S_ATTR_LIVE_SUPPORT) 2406*377e23a2Schristos (BFD_MACH_O_S_ATTR_NO_DEAD_STRIP) 2407*377e23a2Schristos (BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New 2408*377e23a2Schristos macros. 2409*377e23a2Schristos (BFD_MACH_O_GENERIC_RELOC_VANILLA) 2410*377e23a2Schristos (BFD_MACH_O_GENERIC_RELOC_PAIR) 2411*377e23a2Schristos (BFD_MACH_O_GENERIC_RELOC_SECTDIFF) 2412*377e23a2Schristos (BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR) 2413*377e23a2Schristos (BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto. 2414*377e23a2Schristos (BFD_MACH_O_RELENT_SIZE): Ditto. 2415*377e23a2Schristos (BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH) 2416*377e23a2Schristos (BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE) 2417*377e23a2Schristos (BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH) 2418*377e23a2Schristos (BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto. 2419*377e23a2Schristos (BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL) 2420*377e23a2Schristos (BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE) 2421*377e23a2Schristos (BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH) 2422*377e23a2Schristos (BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto. 2423*377e23a2Schristos (bfd_mach_o_reloc_info): New struct. 2424*377e23a2Schristos (bfd_mach_o_asymbol): New struct. 2425*377e23a2Schristos (bfd_mach_o_symtab_command): The symbols field is now of type 2426*377e23a2Schristos bfd_mach_o_asymbol. 2427*377e23a2Schristos (bfd_mach_o_load_command): The offset and len fields are now of type 2428*377e23a2Schristos unsigned int. 2429*377e23a2Schristos (mach_o_data_struct): Remove symbols, nsymbols and ibfd fields. 2430*377e23a2Schristos Add a filelen field. Add comments. 2431*377e23a2Schristos (bfd_mach_o_backend_data): New struct. 2432*377e23a2Schristos (bfd_mach_o_get_backend_data): New macro. 2433*377e23a2Schristos (bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type 2434*377e23a2Schristos bfd_mach_o_asymbol. 2435*377e23a2Schristos (bfd_mach_o_scan_read_dysymtab_symbol): Ditto. 2436*377e23a2Schristos (bfd_mach_o_get_reloc_upper_bound): New prototype. 2437*377e23a2Schristos (bfd_mach_o_canonicalize_reloc): Ditto. 2438*377e23a2Schristos 2439*377e23a2Schristos * mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove 2440*377e23a2Schristos duplicated macro. Now defined to _bfd_generic_is_local_label. 2441*377e23a2Schristos (TARGET_NAME_BACKEND): New macro... 2442*377e23a2Schristos (TARGET_NAME_BACKEND): ... used to name a new variable. 2443*377e23a2Schristos (TARGET_NAME): Define relocs table using bfd_mach_o, reference 2444*377e23a2Schristos Mach-O backend data. 2445*377e23a2Schristos 2446*377e23a2Schristos * mach-o-i386.c (i386_howto_table): New variable. 2447*377e23a2Schristos (bfd_mach_o_i386_swap_reloc_in): New function. 2448*377e23a2Schristos (bfd_mach_o_i386_swap_reloc_out): Ditto. 2449*377e23a2Schristos (bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto. 2450*377e23a2Schristos (bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto. 2451*377e23a2Schristos (bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros. 2452*377e23a2Schristos (bfd_mach_o_bfd_reloc_type_lookup) 2453*377e23a2Schristos (bfd_mach_o_bfd_reloc_name_lookup): Ditto. 2454*377e23a2Schristos 2455*377e23a2Schristos2009-06-11 Eric Paris <eparis@redhat.com> 2456*377e23a2Schristos Nick Clifton <nickc@redhat.com> 2457*377e23a2Schristos 2458*377e23a2Schristos * opncls.c (_maybe_make_executable): New function. Gives execute 2459*377e23a2Schristos permission to an executable bfd that was opened for writing 2460*377e23a2Schristos provided that it is a regular file. Replaces common code found in... 2461*377e23a2Schristos (bfd_close): here and ... 2462*377e23a2Schristos (bfd_close_all_done): here. 2463*377e23a2Schristos 2464*377e23a2Schristos2009-06-11 Anthony Green <green@moxielogic.com> 2465*377e23a2Schristos 2466*377e23a2Schristos * reloc.c: Add BFD_RELOC_MOXIE_10_PCREL. 2467*377e23a2Schristos * bfd-in2.h: Rebuilt. 2468*377e23a2Schristos * libbfd.h: Rebuilt. 2469*377e23a2Schristos * elf32-moxie.c (moxie_elf_howto_table): Add R_MOXIE_PCREL10 2470*377e23a2Schristos relocation support. 2471*377e23a2Schristos (moxie_reloc_map): Ditto. 2472*377e23a2Schristos Clean up copyright notice. 2473*377e23a2Schristos 2474*377e23a2Schristos2009-06-10 Paul Pluzhnikov <ppluzhnikov@google.com> 2475*377e23a2Schristos 2476*377e23a2Schristos * bfd-in2.h: bfd_mmap prototype. 2477*377e23a2Schristos * bfdio.c (bfd_mmap): New function. 2478*377e23a2Schristos * libbfd.h (bfd_iovec): Add bmmap. 2479*377e23a2Schristos * cache.c (cache_bmmap): New function. 2480*377e23a2Schristos (cache_iovec): Initialize bmmap member. 2481*377e23a2Schristos * opencls.c (opncls_bmmap): New function. 2482*377e23a2Schristos (opncls_iovec): Initialize bmmap member. 2483*377e23a2Schristos 2484*377e23a2Schristos2009-06-09 Tristan Gingold <gingold@adacore.com> 2485*377e23a2Schristos 2486*377e23a2Schristos * mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment 2487*377e23a2Schristos and stabstr_segment fields. 2488*377e23a2Schristos (mach_o_be_vec, mach_o_le_vec): Removed 2489*377e23a2Schristos (bfd_mach_o_version): New prototype. 2490*377e23a2Schristos 2491*377e23a2Schristos * mach-o.c (bfd_mach_o_version): Make this function public. 2492*377e23a2Schristos (mach_o_wide_p): New function. 2493*377e23a2Schristos (bfd_mach_o_wide_p): Ditto. 2494*377e23a2Schristos (bfd_mach_o_convert_section_name_to_bfd): Add prefix only for 2495*377e23a2Schristos weird names. 2496*377e23a2Schristos (bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment. 2497*377e23a2Schristos Search in the list only if the name starts with a dot. 2498*377e23a2Schristos (bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded 2499*377e23a2Schristos test. Check bfd_seek status. 2500*377e23a2Schristos (bfd_mach_o_scan_write_thread): Check bfd_seek status. 2501*377e23a2Schristos (bfd_mach_o_scan_write_section_32): Ditto. 2502*377e23a2Schristos (bfd_mach_o_scan_write_section_64): Ditto. 2503*377e23a2Schristos (bfd_mach_o_scan_write_section): Removed. 2504*377e23a2Schristos (bfd_mach_o_scan_write_segment): Split into ... 2505*377e23a2Schristos (bfd_mach_o_scan_write_segment_32): ... this and ... 2506*377e23a2Schristos (bfd_mach_o_scan_write_segment_64): ... this. Check bfd_seek status. 2507*377e23a2Schristos (bfd_mach_o_scan_write_symtab_symbols): Moved into ... 2508*377e23a2Schristos (bfd_mach_o_scan_write_symtab): ... this. Write symtab from BFD 2509*377e23a2Schristos symbol table. Now returns a boolean. 2510*377e23a2Schristos (bfd_mach_o_write_contents): Set filetype. Check bfd_seek status. 2511*377e23a2Schristos Adjust for status type. 2512*377e23a2Schristos (bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded 2513*377e23a2Schristos test. Write symbol table. Numbers the sections. 2514*377e23a2Schristos (bfd_mach_o_read_header): Check bfd_seek status. 2515*377e23a2Schristos Use mach_o_wide_p instead of hard-coded test. 2516*377e23a2Schristos (bfd_mach_o_scan_read_section_32): Check bfd_seek status. 2517*377e23a2Schristos (bfd_mach_o_scan_read_section_64): Ditto. 2518*377e23a2Schristos (bfd_mach_o_scan_read_symtab_symbol): Ditto. Check bfd_seek status. 2519*377e23a2Schristos Use BFD_MACH_O_N_TYPE instead of hard-coded value. Correctly 2520*377e23a2Schristos handled common symbols. 2521*377e23a2Schristos (bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status. 2522*377e23a2Schristos (bfd_mach_o_scan_read_dysymtab_symbol): Ditto. 2523*377e23a2Schristos (bfd_mach_o_scan_read_dylinker): Ditto. 2524*377e23a2Schristos (bfd_mach_o_scan_read_dylib): Ditto. 2525*377e23a2Schristos (bfd_mach_o_scan_read_thread): Ditto. 2526*377e23a2Schristos (bfd_mach_o_scan_read_symtab): Ditto. 2527*377e23a2Schristos Do not create a section for the stabs. 2528*377e23a2Schristos (bfd_mach_o_scan_read_uuid): Check bfd_seek status. 2529*377e23a2Schristos (bfd_mach_o_scan_read_segment): Ditto. 2530*377e23a2Schristos (bfd_mach_o_scan_read_command): Ditto. 2531*377e23a2Schristos (bfd_mach_o_scan_start_address): Ditto. 2532*377e23a2Schristos (bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test. 2533*377e23a2Schristos (bfd_mach_o_archive_p): Check bfd_seek status. 2534*377e23a2Schristos (bfd_mach_o_core_fetch_environment): Ditto. 2535*377e23a2Schristos 2536*377e23a2Schristos * mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype. 2537*377e23a2Schristos 2538*377e23a2Schristos2009-06-06 H.J. Lu <hongjiu.lu@intel.com> 2539*377e23a2Schristos 2540*377e23a2Schristos * elf32-i386.c (elf_i386_link_hash_table): Add irelifunc. 2541*377e23a2Schristos (elf_i386_link_hash_table_create): Initialize irelifunc. 2542*377e23a2Schristos (elf_i386_check_relocs): Updated. Set up irelifunc for 2543*377e23a2Schristos shared objects. 2544*377e23a2Schristos (elf_i386_allocate_dynrelocs): Use irelifunc for dynamic 2545*377e23a2Schristos relocation for non-GOT reference of STT_GNU_IFUNC symbol in 2546*377e23a2Schristos shared objects. 2547*377e23a2Schristos (elf_i386_relocate_section): Likewise. 2548*377e23a2Schristos 2549*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc. 2550*377e23a2Schristos (elf64_x86_64_link_hash_table_create): Initialize irelifunc. 2551*377e23a2Schristos (elf64_x86_64_check_relocs): Updated. Set up irelifunc for 2552*377e23a2Schristos shared objects. 2553*377e23a2Schristos (elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic 2554*377e23a2Schristos relocation for non-GOT reference of STT_GNU_IFUNC symbol in 2555*377e23a2Schristos shared objects. 2556*377e23a2Schristos (elf64_x86_64_relocate_section): Likewise. 2557*377e23a2Schristos 2558*377e23a2Schristos * elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to 2559*377e23a2Schristos ... 2560*377e23a2Schristos (_bfd_elf_create_ifunc_sections): This. 2561*377e23a2Schristos 2562*377e23a2Schristos * elflink.c (_bfd_elf_create_static_ifunc_sections): Renamed to 2563*377e23a2Schristos ... 2564*377e23a2Schristos (_bfd_elf_create_ifunc_sections): This. Create .rel[a].ifunc 2565*377e23a2Schristos for shared objects. 2566*377e23a2Schristos 2567*377e23a2Schristos2009-06-06 H.J. Lu <hongjiu.lu@intel.com> 2568*377e23a2Schristos 2569*377e23a2Schristos * elf32-i386.c (elf_i386_check_relocs): Make room for dynamic 2570*377e23a2Schristos relocation for R_386_32 against STT_GNU_IFUNC symbol when 2571*377e23a2Schristos building shared object. Check info->executable instead of 2572*377e23a2Schristos !info->shared when setting non_got_ref. 2573*377e23a2Schristos (elf_i386_allocate_dynrelocs): Allocate dynamic relocation 2574*377e23a2Schristos for non-GOT reference of STT_GNU_IFUNC symbol in shared 2575*377e23a2Schristos object. Allocate GOT relocation agsinst STT_GNU_IFUNC 2576*377e23a2Schristos symbol if needed. 2577*377e23a2Schristos (elf_i386_relocate_section): Output dynamic relocation for 2578*377e23a2Schristos R_386_32 against STT_GNU_IFUNC symbol to get the real 2579*377e23a2Schristos function address when building shared object. 2580*377e23a2Schristos (elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT 2581*377e23a2Schristos relocation for STT_GNU_IFUNC symbol in shared object. 2582*377e23a2Schristos 2583*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for 2584*377e23a2Schristos dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC 2585*377e23a2Schristos symbol when building shared object. Check info->executable 2586*377e23a2Schristos instead of !info->shared when setting non_got_ref. 2587*377e23a2Schristos (elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation 2588*377e23a2Schristos for non-GOT reference of STT_GNU_IFUNC symbol in shared 2589*377e23a2Schristos library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol 2590*377e23a2Schristos if needed. 2591*377e23a2Schristos (elf64_x86_64_relocate_section): Output dynamic relocation 2592*377e23a2Schristos for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real 2593*377e23a2Schristos function address when building shared object. 2594*377e23a2Schristos (elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT 2595*377e23a2Schristos relocation for STT_GNU_IFUNC symbol in shared object. 2596*377e23a2Schristos 2597*377e23a2Schristos2009-06-06 Jan Kratochvil <jan.kratochvil@redhat.com> 2598*377e23a2Schristos 2599*377e23a2Schristos * Makefile.am: Run "make dep-am". 2600*377e23a2Schristos (BFD32_BACKENDS): Add mach-o-i386.lo. 2601*377e23a2Schristos (BFD32_BACKENDS_CFILES): Add mach-o-i386.c. 2602*377e23a2Schristos * Makefile.in: Regenerate. 2603*377e23a2Schristos 2604*377e23a2Schristos2009-06-06 Alan Modra <amodra@bigpond.net.au> 2605*377e23a2Schristos 2606*377e23a2Schristos * elf32-spu.c (spu_elf_relocate_section): Match overlay number 2607*377e23a2Schristos when looking for soft-icache stubs. 2608*377e23a2Schristos 2609*377e23a2Schristos2009-06-05 Tristan Gingold <gingold@adacore.com> 2610*377e23a2Schristos 2611*377e23a2Schristos * mach-o.h: Update copyright year. 2612*377e23a2Schristos (bfd_mach_o_mach_header_magic): New enum. 2613*377e23a2Schristos (bfd_mach_o_cpu_subtype): Now an enum. 2614*377e23a2Schristos (BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros. 2615*377e23a2Schristos (BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto. 2616*377e23a2Schristos (BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto. 2617*377e23a2Schristos (bfd_mach_o_load_command): Field type_required is now a boolean. 2618*377e23a2Schristos Reindent prototypes. 2619*377e23a2Schristos (bfd_mach_o_object_p, bfd_mach_o_core_p): Remove. 2620*377e23a2Schristos (bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype. 2621*377e23a2Schristos (bfd_mach_o_bfd_copy_private_section_data): Ditto. 2622*377e23a2Schristos (bfd_mach_o_bfd_copy_private_bfd_data): Ditto. 2623*377e23a2Schristos (bfd_mach_o_get_symtab_upper_bound): Ditto. 2624*377e23a2Schristos (bfd_mach_o_canonicalize_symtab): Ditto. 2625*377e23a2Schristos (bfd_mach_o_get_symbol_info): Ditto. 2626*377e23a2Schristos (bfd_mach_o_print_symbol): Ditto. 2627*377e23a2Schristos (bfd_mach_o_bfd_print_private_bfd_data): Ditto. 2628*377e23a2Schristos (bfd_mach_o_make_empty_symbol): Ditto. 2629*377e23a2Schristos (bfd_mach_o_write_contents): Ditto. 2630*377e23a2Schristos 2631*377e23a2Schristos * mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p, 2632*377e23a2Schristos bfd_mach_o_mkobject): Defines. 2633*377e23a2Schristos (bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1. 2634*377e23a2Schristos Do not check with target vector but with flavour. 2635*377e23a2Schristos (struct mach_o_section_name_xlat): New declaration. 2636*377e23a2Schristos (dwarf_section_names_xlat): Ditto. 2637*377e23a2Schristos (text_section_names_xlat): Ditto. 2638*377e23a2Schristos (data_section_names_xlat): Ditto. 2639*377e23a2Schristos (struct mach_o_segment_name_xlat): Ditto. 2640*377e23a2Schristos (segsec_names_xlat): Ditto. 2641*377e23a2Schristos (bfd_mach_o_convert_section_name_to_bfd): New function. 2642*377e23a2Schristos (bfd_mach_o_convert_section_name_to_mach_o): Ditto. 2643*377e23a2Schristos (bfd_mach_o_bfd_copy_private_symbol_data): Make it public. 2644*377e23a2Schristos (bfd_mach_o_bfd_copy_private_section_data): Ditto. 2645*377e23a2Schristos (bfd_mach_o_bfd_copy_private_bfd_data): Ditto. 2646*377e23a2Schristos Accept any input and output flavour. Do not share private data 2647*377e23a2Schristos anymore. 2648*377e23a2Schristos (bfd_mach_o_count_symbols): Add a comment. 2649*377e23a2Schristos (bfd_mach_o_get_symtab_upper_bound): Make it public. 2650*377e23a2Schristos (bfd_mach_o_canonicalize_symtab): Ditto. 2651*377e23a2Schristos (bfd_mach_o_get_symbol_info): Ditto. 2652*377e23a2Schristos (bfd_mach_o_print_symbol): Ditto. 2653*377e23a2Schristos (bfd_mach_o_write_header): Now returns a boolean instead of an int. 2654*377e23a2Schristos Use constants instead of hard-coded values. 2655*377e23a2Schristos (bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded 2656*377e23a2Schristos values. 2657*377e23a2Schristos (bfd_mach_o_scan_write_section_64): Ditto. 2658*377e23a2Schristos (bfd_mach_o_scan_write_segment): Ditto. 2659*377e23a2Schristos Do not copy sections anymore. 2660*377e23a2Schristos (bfd_mach_o_write_contents): Make it public. 2661*377e23a2Schristos Remove dead code. Rewrite typeflag assignment. 2662*377e23a2Schristos (bfd_mach_o_build_commands): New function. 2663*377e23a2Schristos (bfd_mach_o_set_section_contents): Ditto. 2664*377e23a2Schristos (bfd_mach_o_make_empty_symbol): Make it public. 2665*377e23a2Schristos (bfd_mach_o_read_header): Make it static. 2666*377e23a2Schristos Convert to bfd_boolean. 2667*377e23a2Schristos Use constants instead of hard-coded values. 2668*377e23a2Schristos (bfd_mach_o_make_bfd_section): Call 2669*377e23a2Schristos bfd_mach_o_convert_section_name_to_bfd to create name. 2670*377e23a2Schristos (bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded 2671*377e23a2Schristos values. 2672*377e23a2Schristos (bfd_mach_o_scan_read_section_64): Ditto. 2673*377e23a2Schristos (bfd_mach_o_scan_read_segment): Do not create a bfd section for 2674*377e23a2Schristos a segment anymore. Use constants instead of hard-coded values. 2675*377e23a2Schristos (bfd_mach_o_scan_read_command): Fix style. 2676*377e23a2Schristos (bfd_mach_o_scan): Use constants instead of hard-coded values. 2677*377e23a2Schristos Get rid of BFD_IO_FUNCS. 2678*377e23a2Schristos (bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject. 2679*377e23a2Schristos (bfd_mach_o_header_p): Created from bfd_mach_o_object_p. 2680*377e23a2Schristos (bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p. 2681*377e23a2Schristos (bfd_mach_o_object_p): Removed. 2682*377e23a2Schristos (bfd_mach_o_gen_core_p): New function, replaces ... 2683*377e23a2Schristos (bfd_mach_o_core_p): ... deleted. 2684*377e23a2Schristos (bfd_mach_o_bfd_print_private_bfd_data): Make it public. 2685*377e23a2Schristos 2686*377e23a2Schristos * mach-o-i386.c: New file. 2687*377e23a2Schristos * config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin. 2688*377e23a2Schristos * configure.in (TDEFINES): Add mach_o_i386_vec. 2689*377e23a2Schristos * configure: Regenerated. 2690*377e23a2Schristos * targets.c: Add mach_o_i386_vec. 2691*377e23a2Schristos 2692*377e23a2Schristos * mach-o.c: Update copyright years. 2693*377e23a2Schristos (BFD_IO_FUNCS): Remove (was not used). 2694*377e23a2Schristos (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap 2695*377e23a2Schristos bfd_mach_o_slurp_extended_name_table, 2696*377e23a2Schristos bfd_mach_o_construct_extended_name_table, 2697*377e23a2Schristos bfd_mach_o_truncate_arname, bfd_mach_o_write_armap, 2698*377e23a2Schristos bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt, 2699*377e23a2Schristos bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup, 2700*377e23a2Schristos bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook, 2701*377e23a2Schristos bfd_mach_o_get_section_contents_in_window, 2702*377e23a2Schristos bfd_mach_o_bfd_is_local_label_name, 2703*377e23a2Schristos bfd_mach_o_bfd_is_target_special_symbol, 2704*377e23a2Schristos bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno, 2705*377e23a2Schristos bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info, 2706*377e23a2Schristos bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols, 2707*377e23a2Schristos bfd_mach_o_minisymbol_to_symbol, 2708*377e23a2Schristos bfd_mach_o_bfd_get_relocated_section_contents, 2709*377e23a2Schristos bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create, 2710*377e23a2Schristos bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols, 2711*377e23a2Schristos bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link, 2712*377e23a2Schristos bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach, 2713*377e23a2Schristos bfd_mach_o_bfd_merge_private_bfd_data, 2714*377e23a2Schristos bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents, 2715*377e23a2Schristos bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections, 2716*377e23a2Schristos bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group, 2717*377e23a2Schristos bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol, 2718*377e23a2Schristos bfd_mach_o_bfd_copy_private_header_data, 2719*377e23a2Schristos bfd_mach_o_core_file_matches_executable_p): Move these defines ... 2720*377e23a2Schristos * mach-o-target.c: ... here. 2721*377e23a2Schristos Update copyright years. 2722*377e23a2Schristos 2723*377e23a2Schristos2009-06-04 Alan Modra <amodra@bigpond.net.au> 2724*377e23a2Schristos 2725*377e23a2Schristos * dep-in.sed: Don't use \n in replacement part of s command. 2726*377e23a2Schristos * Makefile.am (DEP1): LC_ALL for uniq. 2727*377e23a2Schristos Run "make dep-am". 2728*377e23a2Schristos * Makefile.in: Regenerate. 2729*377e23a2Schristos 2730*377e23a2Schristos2009-06-03 H.J. Lu <hongjiu.lu@intel.com> 2731*377e23a2Schristos 2732*377e23a2Schristos * elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of 2733*377e23a2Schristos h->plt.refcount > 0 on STT_GNU_IFUNC symbol. 2734*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. 2735*377e23a2Schristos 2736*377e23a2Schristos2009-06-03 H.J. Lu <hongjiu.lu@intel.com> 2737*377e23a2Schristos 2738*377e23a2Schristos * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate 2739*377e23a2Schristos GOT entry for STT_GNU_IFUNC symbol with pointer equality. 2740*377e23a2Schristos (elf_i386_relocate_section): Adjust R_386_GOT32 relocation 2741*377e23a2Schristos against STT_GNU_IFUNC symbols for static executables. 2742*377e23a2Schristos (elf_i386_finish_dynamic_symbol): Load GOT entry with 2743*377e23a2Schristos PLT entry for STT_GNU_IFUNC symbol with pointer equality. 2744*377e23a2Schristos 2745*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate 2746*377e23a2Schristos GOT entry for STT_GNU_IFUNC symbol with pointer equality. 2747*377e23a2Schristos (elf64_x86_64_finish_dynamic_symbol): Load GOT entry with 2748*377e23a2Schristos PLT entry for STT_GNU_IFUNC symbol with pointer equality. 2749*377e23a2Schristos 2750*377e23a2Schristos2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com> 2751*377e23a2Schristos 2752*377e23a2Schristos * coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined 2753*377e23a2Schristos symbols to be left unimported when linking statically. 2754*377e23a2Schristos * xcofflink.c (xcoff_link_add_symbols): Ignore global linkage 2755*377e23a2Schristos code when linking statically. 2756*377e23a2Schristos 2757*377e23a2Schristos2009-06-02 H.J. Lu <hongjiu.lu@intel.com> 2758*377e23a2Schristos 2759*377e23a2Schristos * elf32-i386.c (elf_i386_check_relocs): Increment 2760*377e23a2Schristos got.refcount for R_386_GOT32/R_386_GOTOFF relocations 2761*377e23a2Schristos against STT_GNU_IFUNC symbol. 2762*377e23a2Schristos (elf_i386_allocate_dynrelocs): Set got.refcount to 0 if 2763*377e23a2Schristos local STT_GNU_IFUNC definition is used. 2764*377e23a2Schristos (elf_i386_relocate_section): Handle got.offset != -1 for 2765*377e23a2Schristos R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC 2766*377e23a2Schristos symbol. 2767*377e23a2Schristos 2768*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_relocs): Increment 2769*377e23a2Schristos got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 2770*377e23a2Schristos relocations against STT_GNU_IFUNC symbol. 2771*377e23a2Schristos (elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if 2772*377e23a2Schristos local STT_GNU_IFUNC definition is used. 2773*377e23a2Schristos (elf64_x86_64_relocate_section): Handle got.offset != -1 2774*377e23a2Schristos for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against 2775*377e23a2Schristos STT_GNU_IFUNC symbol. 2776*377e23a2Schristos 2777*377e23a2Schristos2009-06-01 H.J. Lu <hongjiu.lu@intel.com> 2778*377e23a2Schristos 2779*377e23a2Schristos PR ld/10205 2780*377e23a2Schristos * elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE. 2781*377e23a2Schristos (elf_i386_reloc_type_lookup): Likewise. 2782*377e23a2Schristos (R_386_tls): Removed. 2783*377e23a2Schristos (R_386_irelative): New. 2784*377e23a2Schristos (R_386_vt_offset): Updated. 2785*377e23a2Schristos (elf_i386_rtype_to_howto): Likewise. 2786*377e23a2Schristos (elf_i386_link_hash_table): Add igotplt, iplt and irelplt. 2787*377e23a2Schristos (elf_i386_link_hash_table_create): Initialize igotplt, 2788*377e23a2Schristos iplt and irelplt. 2789*377e23a2Schristos (elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first. 2790*377e23a2Schristos (elf_i386_adjust_dynamic_symbol): Likewise. 2791*377e23a2Schristos (elf_i386_allocate_dynrelocs): Likewise. 2792*377e23a2Schristos (elf_i386_relocate_section): Likewise. 2793*377e23a2Schristos (elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt 2794*377e23a2Schristos sections. 2795*377e23a2Schristos (elf_i386_finish_dynamic_symbol): When building a static 2796*377e23a2Schristos executable, use .iplt, .igot.plt and .rel.iplt sections for 2797*377e23a2Schristos STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for 2798*377e23a2Schristos locally defined STT_GNU_IFUNC symbol. 2799*377e23a2Schristos 2800*377e23a2Schristos * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE. 2801*377e23a2Schristos (x86_64_reloc_map): Likewise. 2802*377e23a2Schristos (R_X86_64_standard): Updated. 2803*377e23a2Schristos (elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt. 2804*377e23a2Schristos (elf64_x86_64_link_hash_table_create): Initialize igotplt, 2805*377e23a2Schristos iplt and irelplt. 2806*377e23a2Schristos (elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first. 2807*377e23a2Schristos (elf64_x86_64_adjust_dynamic_symbol): Likewise. 2808*377e23a2Schristos (elf64_x86_64_allocate_dynrelocs): Likewise. 2809*377e23a2Schristos (elf64_x86_64_relocate_section): Likewise. 2810*377e23a2Schristos (elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt 2811*377e23a2Schristos sections. 2812*377e23a2Schristos (elf64_x86_64_finish_dynamic_symbol): When building a static 2813*377e23a2Schristos executable, use .iplt, .igot.plt and .rela.iplt sections for 2814*377e23a2Schristos STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation 2815*377e23a2Schristos for locally defined STT_GNU_IFUNC symbol. 2816*377e23a2Schristos 2817*377e23a2Schristos * reloc.c (BFD_RELOC_386_IRELATIVE): New. 2818*377e23a2Schristos (BFD_RELOC_X86_64_IRELATIVE): Likewise. 2819*377e23a2Schristos 2820*377e23a2Schristos * bfd-in2.h: Regenerated. 2821*377e23a2Schristos * libbfd.h: Likewise. 2822*377e23a2Schristos 2823*377e23a2Schristos2009-06-01 H.J. Lu <hongjiu.lu@intel.com> 2824*377e23a2Schristos 2825*377e23a2Schristos * elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs. 2826*377e23a2Schristos (_bfd_elf_make_ifunc_reloc_section): Removed. 2827*377e23a2Schristos (_bfd_elf_is_ifunc_symbol): Likewise. 2828*377e23a2Schristos (_bfd_elf_create_static_ifunc_sections): New. 2829*377e23a2Schristos 2830*377e23a2Schristos * elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC 2831*377e23a2Schristos symbol check to ... 2832*377e23a2Schristos (elf_link_add_object_symbols): Here. 2833*377e23a2Schristos (_bfd_elf_link_hash_hide_symbol): Don't clean plt on 2834*377e23a2Schristos STT_GNU_IFUNC symbol. 2835*377e23a2Schristos (elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol 2836*377e23a2Schristos if a STT_GNU_IFUNC symbol is referenced in a non-shared object. 2837*377e23a2Schristos (IFUNC_INFIX): Removed. 2838*377e23a2Schristos (get_ifunc_reloc_section_name): Likewise. 2839*377e23a2Schristos (_bfd_elf_make_ifunc_reloc_section): Likewise. 2840*377e23a2Schristos (_bfd_elf_is_ifunc_symbol): Likewise. 2841*377e23a2Schristos (_bfd_elf_create_static_ifunc_sections): New. 2842*377e23a2Schristos 2843*377e23a2Schristos2009-05-29 H.J. Lu <hongjiu.lu@intel.com> 2844*377e23a2Schristos 2845*377e23a2Schristos * elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix. 2846*377e23a2Schristos (create_got_section): Likewise. 2847*377e23a2Schristos (allocate_dynrelocs): Likewise. 2848*377e23a2Schristos (readonly_dynrelocs): Likewise. 2849*377e23a2Schristos (set_tls_module_base): Likewise. 2850*377e23a2Schristos (dtpoff_base): Likewise. 2851*377e23a2Schristos (tpoff): Likewise. 2852*377e23a2Schristos (elf_i386_link_hash_table_create): Updated. 2853*377e23a2Schristos (elf_i386_create_dynamic_sections): Likewise. 2854*377e23a2Schristos (elf_i386_check_relocs): Likewise. 2855*377e23a2Schristos (elf_i386_size_dynamic_sections): Likewise. 2856*377e23a2Schristos (elf_i386_relocate_section): Likewise. 2857*377e23a2Schristos 2858*377e23a2Schristos * elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix. 2859*377e23a2Schristos (create_got_section): Likewise. 2860*377e23a2Schristos (allocate_dynrelocs): Likewise. 2861*377e23a2Schristos (readonly_dynrelocs): Likewise. 2862*377e23a2Schristos (set_tls_module_base): Likewise. 2863*377e23a2Schristos (dtpoff_base): Likewise. 2864*377e23a2Schristos (tpoff): Likewise. 2865*377e23a2Schristos (elf64_x86_64_link_hash_table_create): Updated. 2866*377e23a2Schristos (elf64_x86_64_create_dynamic_sections): Likewise. 2867*377e23a2Schristos (elf64_x86_64_check_relocs): Likewise. 2868*377e23a2Schristos (elf64_x86_64_size_dynamic_sections): Likewise. 2869*377e23a2Schristos (elf64_x86_64_relocate_section): Likewise. 2870*377e23a2Schristos 2871*377e23a2Schristos2009-05-28 Nick Clifton <nickc@redhat.com> 2872*377e23a2Schristos 2873*377e23a2Schristos * targets.c (_bfd_target_vector): Only include plugin target in 2874*377e23a2Schristos all-targets build if BFD_SUPPORTS_PLUGINS is non-zero. 2875*377e23a2Schristos 2876*377e23a2Schristos2009-05-28 Ulrich Weigand <uweigand@de.ibm.com> 2877*377e23a2Schristos 2878*377e23a2Schristos * elf32-spu.c (struct call_info): New member broken_cycle. 2879*377e23a2Schristos (remove_cycle): Instead of physically removing call_info structures 2880*377e23a2Schristos to break call graph cycles, mark them using the broken_cycle flag. 2881*377e23a2Schristos (mark_overlay_section): Respect broken_cycle flag. 2882*377e23a2Schristos (unmark_overlay_section): Likewise. 2883*377e23a2Schristos (collect_lib_sections): Likewise. 2884*377e23a2Schristos (collect_overlays): Likewise. 2885*377e23a2Schristos (sum_stack): Likewise. 2886*377e23a2Schristos 2887*377e23a2Schristos2009-05-28 Ulrich Weigand <uweigand@de.ibm.com> 2888*377e23a2Schristos 2889*377e23a2Schristos * elf32-spu.c (insert_callee): Accumulate incoming callee->count. 2890*377e23a2Schristos (mark_functions_via_relocs): Initialize callee->count to 1. 2891*377e23a2Schristos (pasted_function): Likewise. 2892*377e23a2Schristos (spu_elf_auto_overlay): Honor call counts when determining number 2893*377e23a2Schristos of stubs required in software i-cache mode. 2894*377e23a2Schristos 2895*377e23a2Schristos2009-05-27 Rafael Avila de Espindola <espindola@google.com> 2896*377e23a2Schristos 2897*377e23a2Schristos * plugin.c (program_name): Remove. 2898*377e23a2Schristos (plugin_program_name): New. 2899*377e23a2Schristos (bfd_plugin_set_program_name): New. 2900*377e23a2Schristos (try_load_plugin): Use plugin_program_name. 2901*377e23a2Schristos * plugin.h (bfd_plugin_set_program_name): New. 2902*377e23a2Schristos 2903*377e23a2Schristos2009-05-27 Rafael Avila de Espindola <espindola@google.com> 2904*377e23a2Schristos 2905*377e23a2Schristos * aclocal.m4: Include ../config/plugins.m4. 2906*377e23a2Schristos * configure.in: Use AC_PLUGINS. 2907*377e23a2Schristos * configure: Regenerate. 2908*377e23a2Schristos * Makefile.in: Regenerate. 2909*377e23a2Schristos * doc/Makefile.in: Regenerate. 2910*377e23a2Schristos 2911*377e23a2Schristos2009-05-27 Nathan Sidwell <nathan@codesourcery.com> 2912*377e23a2Schristos 2913*377e23a2Schristos * elf32-ppc.c (ppc_elf_relax_section): Work with a partial 2914*377e23a2Schristos link. 2915*377e23a2Schristos * bout.c (b_out_bfd_relax_section): Reject relocatable links. 2916*377e23a2Schristos * elf32-m10300.c (mn10300_elf_relax_section): Likewise. 2917*377e23a2Schristos * elf32-avr.c (elf32_avr_relax_section): Likewise. 2918*377e23a2Schristos * elf32-frv.c (elf32_avr_relax_section): Likewise. 2919*377e23a2Schristos * elf32-xtensa.c (elf_xtensa_relax_section): Likewise. 2920*377e23a2Schristos * elf64-mmix.c (mmix_elf_relax_section): Likewise. 2921*377e23a2Schristos * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. 2922*377e23a2Schristos * elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise. 2923*377e23a2Schristos * reloc.c (bfd_generic_relax_section): Likewise. 2924*377e23a2Schristos * reloc16.c (bfd_coff_reloc16_relax_section): Likewise. 2925*377e23a2Schristos * vms.c (vms_bfd_relax_section): Likewise. 2926*377e23a2Schristos 2927*377e23a2Schristos2009-05-26 H.J. Lu <hongjiu.lu@intel.com> 2928*377e23a2Schristos 2929*377e23a2Schristos * elf-bfd.h (_bfd_elf_is_ifunc_symbol): New. 2930*377e23a2Schristos 2931*377e23a2Schristos * elf32-i386.c (is_indirect_symbol): Renamed to ... 2932*377e23a2Schristos * elflink.c (_bfd_elf_is_ifunc_symbol): This. 2933*377e23a2Schristos 2934*377e23a2Schristos * elf32-i386.c (allocate_dynrelocs): Updated. 2935*377e23a2Schristos (elf_i386_relocate_section): Likewise. 2936*377e23a2Schristos * elf64-x86-64.c (allocate_dynrelocs): Likewise. 2937*377e23a2Schristos (elf64_x86_64_relocate_section): Likewise. 2938*377e23a2Schristos 2939*377e23a2Schristos * elf64-x86-64.c (is_indirect_symbol): Removed. 2940*377e23a2Schristos 2941*377e23a2Schristos2009-05-26 Nick Clifton <nickc@redhat.com> 2942*377e23a2Schristos 2943*377e23a2Schristos * po/id.po: Updated Indonesian translation. 2944*377e23a2Schristos 2945*377e23a2Schristos2009-05-26 Rafael Avila de Espindola <espindola@google.com> 2946*377e23a2Schristos 2947*377e23a2Schristos * Makefile.am: Run "make dep-am". 2948*377e23a2Schristos (AM_CPPFLAGS): New. 2949*377e23a2Schristos (LIBDL): New. 2950*377e23a2Schristos (ALL_MACHINES): Add cpu-plugin.lo. 2951*377e23a2Schristos (ALL_MACHINES_CFILES): Add cpu-plugin.c. 2952*377e23a2Schristos (BFD32_BACKENDS): Add plugin.lo. 2953*377e23a2Schristos (BFD32_BACKENDS_CFILES): Add plugin.c. 2954*377e23a2Schristos (libbfd_la_LIBADD): Add LIBDL 2955*377e23a2Schristos * archures.c (bfd_architecture): Add bfd_arch_plugin. 2956*377e23a2Schristos (bfd_plugin_arch): Declare. 2957*377e23a2Schristos * bfd-in.h (BFD_SUPPORTS_PLUGINS): New. 2958*377e23a2Schristos * bfd.c (bfd): Add plugin_data. 2959*377e23a2Schristos * config.bfd: Handle the plugin target. 2960*377e23a2Schristos * configure.in: Check for --enable-plugins. 2961*377e23a2Schristos (LT_INIT): Use the dlopen option. 2962*377e23a2Schristos * cpu-plugin.c: New. 2963*377e23a2Schristos * plugin.c: New. 2964*377e23a2Schristos * plugin.h: New. 2965*377e23a2Schristos * targets.c (plugin_vec): Declare. 2966*377e23a2Schristos (_bfd_target_vector): Add plugin_vec. 2967*377e23a2Schristos * Makefile.in: Regenerate. 2968*377e23a2Schristos * bfd-in2.h: Regenerate. 2969*377e23a2Schristos * configure: Regenerate. 2970*377e23a2Schristos 2971*377e23a2Schristos2009-05-26 Alan Modra <amodra@bigpond.net.au> 2972*377e23a2Schristos 2973*377e23a2Schristos * dep-in.sed: Don't modify .o to .lo here. Output one filename 2974*377e23a2Schristos per line with all lines having continuation backslash. Prefix 2975*377e23a2Schristos first line with "A", following lines with "B". 2976*377e23a2Schristos * Makefile.am (DEP): Don't use dep.sed here. 2977*377e23a2Schristos (DEP1): Run $MKDEP on single files, modify .o to .lo here. Use 2978*377e23a2Schristos dep.sed here on dependencies, sort and uniq. 2979*377e23a2Schristos * Makefile.in: Regenerate. 2980*377e23a2Schristos 2981*377e23a2Schristos2009-05-25 Tristan Gingold <gingold@adacore.com> 2982*377e23a2Schristos 2983*377e23a2Schristos * makefile.vms: Add verilog.obj to object list OBJS. 2984*377e23a2Schristos 2985*377e23a2Schristos2009-05-24 Alan Modra <amodra@bigpond.net.au> 2986*377e23a2Schristos 2987*377e23a2Schristos * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory 2988*377e23a2Schristos for BFD_IN_MEMORY is cleared. 2989*377e23a2Schristos (bfd_bwrite): Zero excess memory allocated. 2990*377e23a2Schristos 2991*377e23a2Schristos2009-05-22 Julian Brown <julian@codesourcery.com> 2992*377e23a2Schristos 2993*377e23a2Schristos * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New 2994*377e23a2Schristos macros. 2995*377e23a2Schristos (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b) 2996*377e23a2Schristos (elf32_arm_stub_a8_veneer_blx): New stub sequences. 2997*377e23a2Schristos (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond, 2998*377e23a2Schristos arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx. 2999*377e23a2Schristos (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields. 3000*377e23a2Schristos (a8_erratum_fix, a8_erratum_reloc): New structs. 3001*377e23a2Schristos (elf32_arm_link_hash_table): Add a8_erratum_fixes, 3002*377e23a2Schristos num_a8_erratum_fixes, fix_cortex_a8 fields. 3003*377e23a2Schristos (elf32_arm_link_hash_table_create): Zero fix_cortex_a8. 3004*377e23a2Schristos (elf32_arm_add_stub): Split into two parts, creating... 3005*377e23a2Schristos (elf32_arm_create_or_find_stub_sec): New function. 3006*377e23a2Schristos (elf32_arm_final_link_relocate): Add forward declaration. 3007*377e23a2Schristos (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2 3008*377e23a2Schristos relocations, multiple relocations per stub. 3009*377e23a2Schristos (find_stub_size_and_template): New (using parts of arm_size_one_stub). 3010*377e23a2Schristos (arm_size_one_stub): Use find_stub_size_and_template. 3011*377e23a2Schristos (a8_reloc_compare): New. 3012*377e23a2Schristos (find_thumb_glue): Add forward declaration. 3013*377e23a2Schristos (cortex_a8_erratum_scan): New. 3014*377e23a2Schristos (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support. 3015*377e23a2Schristos (bfd_elf32_arm_set_cortex_a8_fix): New. 3016*377e23a2Schristos (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument. 3017*377e23a2Schristos (arm_map_one_stub): Add THUMB32_TYPE support. 3018*377e23a2Schristos (a8_branch_to_stub_data): New. 3019*377e23a2Schristos (make_branch_to_a8_stub): New. 3020*377e23a2Schristos (elf32_arm_write_section): Add Cortex-A8 erratum workaround support. 3021*377e23a2Schristos * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New. 3022*377e23a2Schristos (bfd_elf32_arm_set_target_relocs): Add argument for controlling 3023*377e23a2Schristos Cortex-A8 erratum workaround. 3024*377e23a2Schristos * bfd-in2.h: Regenerate. 3025*377e23a2Schristos 3026*377e23a2Schristos2009-05-22 Alan Modra <amodra@bigpond.net.au> 3027*377e23a2Schristos 3028*377e23a2Schristos * Makefile.am: Run "make dep-am". 3029*377e23a2Schristos * Makefile.in: Regenerate. 3030*377e23a2Schristos * po/SRC-POTFILES.in: Regenerate. 3031*377e23a2Schristos 3032*377e23a2Schristos2009-05-21 Alan Modra <amodra@bigpond.net.au> 3033*377e23a2Schristos 3034*377e23a2Schristos * elflink.c (elf_link_input_bfd): Correct *pindex change in last 3035*377e23a2Schristos commit. 3036*377e23a2Schristos 3037*377e23a2Schristos2009-05-21 Alan Modra <amodra@bigpond.net.au> 3038*377e23a2Schristos 3039*377e23a2Schristos * elf-bfd.h (struct elf_backend_data 3040*377e23a2Schristos <elf_backend_link_output_symbol_hook>): Return an int. 3041*377e23a2Schristos * elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop 3042*377e23a2Schristos symbols on deleted .opd entries. 3043*377e23a2Schristos * elflink.c (elf_link_output_sym): Return without outputting sym 3044*377e23a2Schristos if output_symbol_hook returns 2. 3045*377e23a2Schristos (elf_link_output_extsym): Don't assign h->indx when symbol discarded. 3046*377e23a2Schristos Abort if we must not discard sym. 3047*377e23a2Schristos (elf_link_input_bfd): Similarly, don't set finfo->indices for 3048*377e23a2Schristos local syms. 3049*377e23a2Schristos (bfd_elf_final_link): Adjust elf_link_output_sym calls. 3050*377e23a2Schristos * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for 3051*377e23a2Schristos elf_backend_link_output_symbol_hook return type change. 3052*377e23a2Schristos * elf32-arm.c (output_arch_syminfo): Likewise. 3053*377e23a2Schristos (elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise. 3054*377e23a2Schristos (elf32_arm_output_arch_local_syms): Likewise. 3055*377e23a2Schristos * elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise. 3056*377e23a2Schristos * elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise. 3057*377e23a2Schristos (bfd_score_elf_link_output_symbol_hook): Likewise. 3058*377e23a2Schristos * elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise. 3059*377e23a2Schristos * elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise. 3060*377e23a2Schristos * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise. 3061*377e23a2Schristos * elf32-spu.c (spu_elf_output_symbol_hook): Likewise. 3062*377e23a2Schristos * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise. 3063*377e23a2Schristos * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise. 3064*377e23a2Schristos * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise. 3065*377e23a2Schristos * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise. 3066*377e23a2Schristos * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise. 3067*377e23a2Schristos * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise. 3068*377e23a2Schristos * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise. 3069*377e23a2Schristos 3070*377e23a2Schristos2009-05-21 Alan Modra <amodra@bigpond.net.au> 3071*377e23a2Schristos 3072*377e23a2Schristos * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on 3073*377e23a2Schristos out of range .opd symbols. 3074*377e23a2Schristos 3075*377e23a2Schristos2009-05-21 Dave Korn <dave.korn.cygwin@gmail.com> 3076*377e23a2Schristos 3077*377e23a2Schristos * coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not 3078*377e23a2Schristos fprintf_vma directly. 3079*377e23a2Schristos * peXXigen.c (pe_print_edata): Likewise. 3080*377e23a2Schristos (pe_print_pdata): Likewise. 3081*377e23a2Schristos (_bfd_XX_print_ce_compressed_pdata): Likewise. 3082*377e23a2Schristos (_bfd_XX_print_private_bfd_data_common): Likewise. 3083*377e23a2Schristos 3084*377e23a2Schristos2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com> 3085*377e23a2Schristos 3086*377e23a2Schristos * cofflink.c (process_embedded_commands): Ignore "-aligncomm". 3087*377e23a2Schristos 3088*377e23a2Schristos2009-05-15 Andrew Stubbs <ams@codesourcery.com> 3089*377e23a2Schristos Paul Brook <paul@codesourcery.com> 3090*377e23a2Schristos 3091*377e23a2Schristos * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to 3092*377e23a2Schristos fix discarded sections. 3093*377e23a2Schristos 3094*377e23a2Schristos2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> 3095*377e23a2Schristos 3096*377e23a2Schristos * elf32-spu.c (mark_overlay_section): Move .init and .fini 3097*377e23a2Schristos sections into the software icache. 3098*377e23a2Schristos 3099*377e23a2Schristos2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> 3100*377e23a2Schristos 3101*377e23a2Schristos * elf32-spu.c (build_stub): Always build "compact" sofware 3102*377e23a2Schristos i-cache stubs. 3103*377e23a2Schristos 3104*377e23a2Schristos2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> 3105*377e23a2Schristos 3106*377e23a2Schristos * elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2. 3107*377e23a2Schristos (spu_elf_setup): Initialize it. 3108*377e23a2Schristos (spu_elf_size_stubs): Move .ovtab into .bss for software i-cache. 3109*377e23a2Schristos Update to new-sytle cache manager data structures. 3110*377e23a2Schristos (spu_elf_build_stubs): Generate new-style cache manager data 3111*377e23a2Schristos structures and symbols. 3112*377e23a2Schristos (spu_elf_auto_overlay): Update size computation. 3113*377e23a2Schristos 3114*377e23a2Schristos2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> 3115*377e23a2Schristos 3116*377e23a2Schristos * elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY 3117*377e23a2Schristos segments first amongst the program headers. 3118*377e23a2Schristos 3119*377e23a2Schristos2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> 3120*377e23a2Schristos 3121*377e23a2Schristos * elf32-spu.c (spu_elf_relocate_section): Only encode overlay index 3122*377e23a2Schristos into addresses for relocation types that look at high bits. Remove 3123*377e23a2Schristos special handling of relocation overflow warnings. 3124*377e23a2Schristos 3125*377e23a2Schristos2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> 3126*377e23a2Schristos 3127*377e23a2Schristos * elf32-spu.c (mark_functions_via_relocs): Handle cycles in the 3128*377e23a2Schristos control flow graph between fragments of a function. 3129*377e23a2Schristos 3130*377e23a2Schristos2009-05-14 Ulrich Weigand <uweigand@de.ibm.com> 3131*377e23a2Schristos 3132*377e23a2Schristos * elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode, 3133*377e23a2Schristos generate only a 16-byte .toe section. 3134*377e23a2Schristos (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise. 3135*377e23a2Schristos 3136*377e23a2Schristos2009-05-14 Alan Modra <amodra@bigpond.net.au> 3137*377e23a2Schristos 3138*377e23a2Schristos * elf32-spu.c (spu_elf_size_stubs): Split out section placement to.. 3139*377e23a2Schristos (spu_elf_place_overlay_data): ..here. New function. 3140*377e23a2Schristos * elf32-spu.h (spu_elf_place_overlay_data): Declare. 3141*377e23a2Schristos 3142*377e23a2Schristos2009-05-13 Andrew Jenner <andrew@codesourcery.com> 3143*377e23a2Schristos 3144*377e23a2Schristos * elf32-arm.c: Move sysdep.h to start of file. 3145*377e23a2Schristos 3146*377e23a2Schristos2009-05-11 Ulrich Weigand <uweigand@de.ibm.com> 3147*377e23a2Schristos 3148*377e23a2Schristos * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as 3149*377e23a2Schristos start of overlays. 3150*377e23a2Schristos (spu_elf_build_stubs): Don't define __icache_tagbase. Define 3151*377e23a2Schristos __icache_tag_array and __icache_tag_array_size. 3152*377e23a2Schristos 3153*377e23a2Schristos2009-05-11 Masaki Muranaka <monaka@monami-software.com> 3154*377e23a2Schristos 3155*377e23a2Schristos * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary 3156*377e23a2Schristos ATTRIBUTE_UNUSED. 3157*377e23a2Schristos (bfinfdpic_link_omit_section_dynsym): Likewise. 3158*377e23a2Schristos (elf32_bfinfdpic_finish_dynamic_sections): Likewise. 3159*377e23a2Schristos 3160*377e23a2Schristos2009-05-05 Paul Brook <paul@codesourcery.com> 3161*377e23a2Schristos 3162*377e23a2Schristos * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype. 3163*377e23a2Schristos * bfd-in2.h: Regenerate. 3164*377e23a2Schristos * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define. 3165*377e23a2Schristos (_arm_elf_section_data): Add text and exidx fields. 3166*377e23a2Schristos (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size, 3167*377e23a2Schristos insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31, 3168*377e23a2Schristos copy_exidx_entry): New functions. 3169*377e23a2Schristos (elf32_arm_write_section): Fixup .ARM.exidx contents. 3170*377e23a2Schristos 3171*377e23a2Schristos2009-05-05 Christophe lyon <christophe.lyon@st.com> 3172*377e23a2Schristos 3173*377e23a2Schristos * elf32-arm.c (DEF_STUBS): New helper define. 3174*377e23a2Schristos (DEF_STUB): Likewise. 3175*377e23a2Schristos (stub_def): New type. 3176*377e23a2Schristos (stub_definitions): New array, containing stub template pointers 3177*377e23a2Schristos and sizes. 3178*377e23a2Schristos (arm_size_one_stub): Make use of stub_definitions. 3179*377e23a2Schristos 3180*377e23a2Schristos2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com> 3181*377e23a2Schristos 3182*377e23a2Schristos * elflink.c (find_version_for_sym): Remove from here, ... 3183*377e23a2Schristos * linker.c (bfd_find_version_for_sym): ... rename, replace 3184*377e23a2Schristos here, make public and update all callers. 3185*377e23a2Schristos * bfd-in2.h: Regenerate. 3186*377e23a2Schristos 3187*377e23a2Schristos2009-04-30 Nick Clifton <nickc@redhat.com> 3188*377e23a2Schristos 3189*377e23a2Schristos * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs 3190*377e23a2Schristos section pointer. 3191*377e23a2Schristos (struct elf_obj_data): Add has_ifunc_symbols boolean. 3192*377e23a2Schristos * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags 3193*377e23a2Schristos into a STT_GNU_IFUNC symbol type. 3194*377e23a2Schristos (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function 3195*377e23a2Schristos type. 3196*377e23a2Schristos (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if 3197*377e23a2Schristos the binary contains ifunc symbols. 3198*377e23a2Schristos * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC 3199*377e23a2Schristos symbol type into a BSF_GNU_INDIRECT_FUNCTION flag. 3200*377e23a2Schristos * elf32-i386.c (is_indirect_function): New function. 3201*377e23a2Schristos (elf_i386_check_relocs): Create an ifunc output section. 3202*377e23a2Schristos (allocate_dynrelocs): Create dynamic relocs in the ifunc output 3203*377e23a2Schristos section if necessary. 3204*377e23a2Schristos (elf_i386_relocate_section): Emit a reloc against an ifunc symbol 3205*377e23a2Schristos if necessary. 3206*377e23a2Schristos (elf_i386_add_symbol_hook): New function. Set the 3207*377e23a2Schristos has_ifunc_symbols field of the elf_obj_data structure if an ifunc 3208*377e23a2Schristos symbol is encountered. 3209*377e23a2Schristos (elf_backend_post_process_headers): Define. 3210*377e23a2Schristos (elf_backend_add_symbol_hook): Define. 3211*377e23a2Schristos (elf_i386_post_process_headers): Rename to 3212*377e23a2Schristos elf_i388_fbsd_post_process_headers. 3213*377e23a2Schristos * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro. 3214*377e23a2Schristos (is_indirect_function): New function. 3215*377e23a2Schristos (elf64_x86_64_check_relocs): Create an ifunc output section. 3216*377e23a2Schristos (allocate_dynrelocs): Create dynamic relocs in the ifunc output 3217*377e23a2Schristos section if necessary. 3218*377e23a2Schristos (elf64_x86_64_relocate_section): Emit a reloc against an ifunc 3219*377e23a2Schristos symbol if necessary. 3220*377e23a2Schristos (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the 3221*377e23a2Schristos elf_obj_data structure if an ifunc symbol is encountered. 3222*377e23a2Schristos (elf_backend_post_process_headers): Define. 3223*377e23a2Schristos * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT 3224*377e23a2Schristos if we have ifunc symbols to handle. 3225*377e23a2Schristos (get_ifunc_reloc_section_name): New function. Computes the name 3226*377e23a2Schristos for an ifunc section. 3227*377e23a2Schristos (_bfd_elf_make_ifunc_reloc_section): New function. Creates a 3228*377e23a2Schristos section to hold ifunc relocs. 3229*377e23a2Schristos * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define. 3230*377e23a2Schristos (bfd_print_symbol_vandf): Handle ifunc symbols. 3231*377e23a2Schristos (bfd_decode_symclass): Likewise. 3232*377e23a2Schristos * bfd-in2.h: Regenerate. 3233*377e23a2Schristos 3234*377e23a2Schristos2009-04-30 Joseph Myers <joseph@codesourcery.com> 3235*377e23a2Schristos 3236*377e23a2Schristos * elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute 3237*377e23a2Schristos MOVW and MOVT relocations in a shared library link. 3238*377e23a2Schristos 3239*377e23a2Schristos2009-04-27 Anthony Green <green@moxielogic.com> 3240*377e23a2Schristos 3241*377e23a2Schristos * verilog.c: New file. 3242*377e23a2Schristos * Makefile.am (BFD32_LIBS): Add verilog.c. 3243*377e23a2Schristos (BFD32_LIBS_CFILES): Add verilog.c. 3244*377e23a2Schristos (verilog.lo): New build rule. 3245*377e23a2Schristos * Makefile.in: Rebuilt. 3246*377e23a2Schristos * targets.c: Add verilog support. 3247*377e23a2Schristos * bfd.c (tdata union): Add Verilog private data field. 3248*377e23a2Schristos * bfd-in2.h: Regenerate. 3249*377e23a2Schristos 3250*377e23a2Schristos2009-04-27 H.J. Lu <hongjiu.lu@intel.com> 3251*377e23a2Schristos 3252*377e23a2Schristos * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't 3253*377e23a2Schristos copy pe_opthdr. 3254*377e23a2Schristos 3255*377e23a2Schristos2009-04-23 Matthias Klose <doko@ubuntu.com> 3256*377e23a2Schristos 3257*377e23a2Schristos * peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'. 3258*377e23a2Schristos 3259*377e23a2Schristos2009-04-22 Christophe Lyon <christophe.lyon@st.com> 3260*377e23a2Schristos 3261*377e23a2Schristos PR9743 3262*377e23a2Schristos * elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24, 3263*377e23a2Schristos R_ARM_JUMP24 and R_ARM_PLT32 relocations. 3264*377e23a2Schristos (elf32_arm_size_stubs): Likewise. 3265*377e23a2Schristos (record_thumb_to_arm_glue): Deleted unused function. 3266*377e23a2Schristos (bfd_elf32_arm_process_before_allocation): No longer handle 3267*377e23a2Schristos R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here. 3268*377e23a2Schristos (elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24, 3269*377e23a2Schristos R_ARM_JUMP24 and R_ARM_PLT32 relocations. 3270*377e23a2Schristos 3271*377e23a2Schristos2009-04-21 Daniel Jacobowitz <dan@codesourcery.com> 3272*377e23a2Schristos 3273*377e23a2Schristos * elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED. 3274*377e23a2Schristos (elf32_arm_write_section): Declare early. 3275*377e23a2Schristos (elf32_arm_size_stubs): Skip non-stub sections in the stub BFD. 3276*377e23a2Schristos (arm_allocate_glue_section_space): Exclude empty sections. 3277*377e23a2Schristos (ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED. 3278*377e23a2Schristos (bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub 3279*377e23a2Schristos BFD. 3280*377e23a2Schristos (elf32_arm_output_glue_section, elf32_arm_final_link): New. 3281*377e23a2Schristos (elf32_arm_merge_eabi_attributes): Skip the stub BFD. 3282*377e23a2Schristos (elf32_arm_size_dynamic_sections): Allocate interworking 3283*377e23a2Schristos sections here. 3284*377e23a2Schristos (bfd_elf32_bfd_final_link): Define. 3285*377e23a2Schristos 3286*377e23a2Schristos2009-04-21 H.J. Lu <hongjiu.lu@intel.com> 3287*377e23a2Schristos 3288*377e23a2Schristos * coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K. 3289*377e23a2Schristos 3290*377e23a2Schristos * coffcode.h (coff_compute_section_file_positions): Clear 3291*377e23a2Schristos D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE. 3292*377e23a2Schristos 3293*377e23a2Schristos * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and 3294*377e23a2Schristos force_minimum_alignment. 3295*377e23a2Schristos 3296*377e23a2Schristos * libcoff.h: Regenerated. 3297*377e23a2Schristos 3298*377e23a2Schristos * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed. 3299*377e23a2Schristos (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise. 3300*377e23a2Schristos 3301*377e23a2Schristos * peicode.h (pe_mkobject): Don't set force_minimum_alignment 3302*377e23a2Schristos nor target_subsystem. 3303*377e23a2Schristos 3304*377e23a2Schristos * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check 3305*377e23a2Schristos force_minimum_alignment nor target_subsystem. 3306*377e23a2Schristos 3307*377e23a2Schristos2009-04-21 Kai Tietz <kai.tietz@onevision.com> 3308*377e23a2Schristos 3309*377e23a2Schristos * coff-x86_64.c (PEI_HEADERS): Protect includes. 3310*377e23a2Schristos (bfd_pe_print_pdata): Remove #ifdef PE variation. 3311*377e23a2Schristos * pei-x86_64.c (PEI_HEADERS): Define to prevent double 3312*377e23a2Schristos include in coff-x86_64.c of headers. 3313*377e23a2Schristos (PDATA_ROW_SIZE): New define. 3314*377e23a2Schristos (pex_regs[]): New static array. 3315*377e23a2Schristos (pex64_get_runtime_function): New static function. 3316*377e23a2Schristos (pex64_get_unwind_info): Likewise. 3317*377e23a2Schristos (pex64_get_scope_entry): Likewise. 3318*377e23a2Schristos (pex64_xdata_print_uwd_codes): Likewise. 3319*377e23a2Schristos (pex64_get_section_by_rva): Likewise. 3320*377e23a2Schristos (pex64_dump_xdata): Likewise. 3321*377e23a2Schristos (pex64_bfd_print_pdata): Likewise. 3322*377e23a2Schristos (bfd_pe_print_pdata): Define as pex64_bfd_print_pdata. 3323*377e23a2Schristos * peXXigen.c (_bfd_pex64_print_pdata): Removed implementation. 3324*377e23a2Schristos * libpei.h (_bfd_pex64_print_pdata): Removed declaration. 3325*377e23a2Schristos 3326*377e23a2Schristos2009-04-19 Peter O'Gorman <binutils@mlists.thewrittenword.com> 3327*377e23a2Schristos Alan Modra <amodra@bigpond.net.au> 3328*377e23a2Schristos Dave Korn <dave.korn.cygwin@gmail.com> 3329*377e23a2Schristos 3330*377e23a2Schristos * peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t 3331*377e23a2Schristos long names and non-NUL-terminated strings. 3332*377e23a2Schristos 3333*377e23a2Schristos2009-04-17 H.J. Lu <hongjiu.lu@intel.com> 3334*377e23a2Schristos 3335*377e23a2Schristos * bfd-in2.h: Regenerated. 3336*377e23a2Schristos 3337*377e23a2Schristos2009-04-17 H.J. Lu <hongjiu.lu@intel.com> 3338*377e23a2Schristos 3339*377e23a2Schristos * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace 3340*377e23a2Schristos IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER. 3341*377e23a2Schristos 3342*377e23a2Schristos2009-04-17 H.J. Lu <hongjiu.lu@intel.com> 3343*377e23a2Schristos 3344*377e23a2Schristos PR binutils/10074 3345*377e23a2Schristos * coffcode.h (bfd_pei_p): New. 3346*377e23a2Schristos 3347*377e23a2Schristos * config.bfd: Remove bfd_efi_bsdrv_ia32_vec, 3348*377e23a2Schristos bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec, 3349*377e23a2Schristos bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and 3350*377e23a2Schristos bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec, 3351*377e23a2Schristos bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with 3352*377e23a2Schristos i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively. 3353*377e23a2Schristos 3354*377e23a2Schristos * configure.in: Remove bfd_efi_bsdrv_ia32_vec, 3355*377e23a2Schristos bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec, 3356*377e23a2Schristos bfd_efi_rtdrv_x86_64_vec, 3357*377e23a2Schristos bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace 3358*377e23a2Schristos bfd_efi_ia64_vec with bfd_pei_ia64_vec. 3359*377e23a2Schristos * targets.c: Likewise. 3360*377e23a2Schristos 3361*377e23a2Schristos * configure: Regenerated. 3362*377e23a2Schristos * libcoff.h: Likewise. 3363*377e23a2Schristos * Makefile.in: Likewise. 3364*377e23a2Schristos 3365*377e23a2Schristos * efi-app-ia32.c: Removed. 3366*377e23a2Schristos * efi-app-x86_64.c: Likewise. 3367*377e23a2Schristos * efi-bsdrv-ia32.c: Likewise. 3368*377e23a2Schristos * efi-bsdrv-ia64.c: Likewise. 3369*377e23a2Schristos * efi-bsdrv-x86_64.c: Likewise. 3370*377e23a2Schristos * efi-rtdrv-ia32.c: Likewise. 3371*377e23a2Schristos * efi-rtdrv-ia64.c: Likewise. 3372*377e23a2Schristos * efi-rtdrv-x86_64.c: Likewise. 3373*377e23a2Schristos * efi-rtdrv-ia32.c: Likewise. 3374*377e23a2Schristos 3375*377e23a2Schristos * efi-app-ia64.c: Moved to ... 3376*377e23a2Schristos * pei-ia64.c: This. 3377*377e23a2Schristos (TARGET_SYM): Set to bfd_pei_ia64_vec. 3378*377e23a2Schristos (TARGET_NAME): Set to pei-ia64. 3379*377e23a2Schristos 3380*377e23a2Schristos * libpei.h (bfd_target_pei_p): Removed. 3381*377e23a2Schristos (bfd_target_pei_arch): Likewise. 3382*377e23a2Schristos (bfd_target_efi_app_p): Likewise. 3383*377e23a2Schristos (bfd_target_efi_app_arch): Likewise. 3384*377e23a2Schristos (bfd_target_efi_bsdrv_p): Likewise. 3385*377e23a2Schristos (bfd_target_efi_bsdrv_arch): Likewise. 3386*377e23a2Schristos (bfd_target_efi_rtdrv_p): Likewise. 3387*377e23a2Schristos (bfd_target_efi_rtdrv_arch): Likewise. 3388*377e23a2Schristos (bfd_pe_executable_p): Likewise. 3389*377e23a2Schristos 3390*377e23a2Schristos * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo, 3391*377e23a2Schristos efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo. 3392*377e23a2Schristos (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c 3393*377e23a2Schristos and efi-rtdrv-ia32.c. 3394*377e23a2Schristos (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo, 3395*377e23a2Schristos efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and 3396*377e23a2Schristos efi-rtdrv-x86_64.lo. Add pei-ia64.lo. 3397*377e23a2Schristos (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c, 3398*377e23a2Schristos efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and 3399*377e23a2Schristos efi-rtdrv-x86_64.c. Add pei-ia64.c. 3400*377e23a2Schristos (efi-app-ia64.lo): Removed. 3401*377e23a2Schristos (efi-bsdrv-ia32.lo): Likewise. 3402*377e23a2Schristos (efi-rtdrv-ia32.lo): Likewise. 3403*377e23a2Schristos (efi-app-ia64.lo): Likewise. 3404*377e23a2Schristos (efi-bsdrv-ia64.lo): Likewise. 3405*377e23a2Schristos (efi-rtdrv-ia64.lo): Likewise. 3406*377e23a2Schristos (efi-app-x86_64.lo): Likewise. 3407*377e23a2Schristos (efi-bsdrv-x86_64.lo): Likewise. 3408*377e23a2Schristos (efi-rtdrv-x86_64.lo): Likewise. 3409*377e23a2Schristos (pei-ia64.lo): New. 3410*377e23a2Schristos 3411*377e23a2Schristos * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p 3412*377e23a2Schristos with bfd_pei_p. 3413*377e23a2Schristos (arch_type): Removed. 3414*377e23a2Schristos (pe_arch): Likewise. 3415*377e23a2Schristos (pe_bfd_object_p): Just return coff_object_p. 3416*377e23a2Schristos 3417*377e23a2Schristos * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace 3418*377e23a2Schristos bfd_pe_executable_p with bfd_pei_p. 3419*377e23a2Schristos 3420*377e23a2Schristos2009-04-17 Christophe Lyon <christophe.lyon@st.com> 3421*377e23a2Schristos 3422*377e23a2Schristos * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through 3423*377e23a2Schristos PLT entries to an undefined symbol when generating a shared 3424*377e23a2Schristos library. 3425*377e23a2Schristos 3426*377e23a2Schristos2009-04-17 Nick Clifton <nickc@redhat.com> 3427*377e23a2Schristos 3428*377e23a2Schristos PR 9909 3429*377e23a2Schristos * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols. 3430*377e23a2Schristos 3431*377e23a2Schristos2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com> 3432*377e23a2Schristos 3433*377e23a2Schristos * aout-adobe.c (aout_32_bfd_define_common_symbol): Define. 3434*377e23a2Schristos * aout-target.h (MY_bfd_define_common_symbol): Likewise. 3435*377e23a2Schristos * aout-tic30.c (MY_bfd_define_common_symbol): Likewise. 3436*377e23a2Schristos * binary.c (binary_bfd_define_common_symbol): Likewise. 3437*377e23a2Schristos * bout.c (b_out_bfd_define_common_symbol): Likewise. 3438*377e23a2Schristos * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise. 3439*377e23a2Schristos * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise. 3440*377e23a2Schristos * coffcode.h (coff_bfd_define_common_symbol): Likewise. 3441*377e23a2Schristos * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise. 3442*377e23a2Schristos * i386msdos.c (msdos_bfd_define_common_symbol): Likewise. 3443*377e23a2Schristos * i386os9k.c (os9k_bfd_define_common_symbol): Likewise. 3444*377e23a2Schristos * ieee.c (ieee_bfd_define_common_symbol): Likewise. 3445*377e23a2Schristos * ihex.c (ihex_bfd_define_common_symbol): Likewise. 3446*377e23a2Schristos * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise. 3447*377e23a2Schristos * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise. 3448*377e23a2Schristos * mmo.c (mmo_bfd_define_common_symbol): Likewise. 3449*377e23a2Schristos * nlm-target.h (nlm_bfd_define_common_symbol): Likewise. 3450*377e23a2Schristos * oasys.c (oasys_bfd_define_common_symbol): Likewise. 3451*377e23a2Schristos * pef.c (bfd_pef_bfd_define_common_symbol): Likewise. 3452*377e23a2Schristos * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise. 3453*377e23a2Schristos * som.c (som_bfd_define_common_symbol): Likewise. 3454*377e23a2Schristos * srec.c (srec_bfd_define_common_symbol): Likewise. 3455*377e23a2Schristos * tekhex.c (tekhex_bfd_define_common_symbol): Likewise. 3456*377e23a2Schristos * versados.c (versados_bfd_define_common_symbol): Likewise. 3457*377e23a2Schristos * vms.c (vms_bfd_define_common_symbol): Likewise. 3458*377e23a2Schristos * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise. 3459*377e23a2Schristos * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise. 3460*377e23a2Schristos * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol. 3461*377e23a2Schristos (pmac_xcoff_vec): Likewise. 3462*377e23a2Schristos * coff64-rs6000.c (rs6000coff64_vec): Likewise. 3463*377e23a2Schristos (aix5coff64_vec): Likewise. 3464*377e23a2Schristos * linker.c (bfd_generic_define_common_symbol): New function. 3465*377e23a2Schristos * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol. 3466*377e23a2Schristos (_bfd_define_common_symbol): New field. 3467*377e23a2Schristos * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare. 3468*377e23a2Schristos * xcofflink.c (_bfd_xcoff_define_common_symbol): New function. 3469*377e23a2Schristos (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common 3470*377e23a2Schristos symbols here. 3471*377e23a2Schristos * bfd-in2.h: Regenerate. 3472*377e23a2Schristos * libbfd.h: Likewise. 3473*377e23a2Schristos * libcoff.h: Likewise. 3474*377e23a2Schristos 3475*377e23a2Schristos2009-04-15 Anthony Green <green@moxielogic.com> 3476*377e23a2Schristos 3477*377e23a2Schristos * targets.c: Add moxie support. 3478*377e23a2Schristos * Makefile.am: Ditto. 3479*377e23a2Schristos * Makefile.in: Rebuilt. 3480*377e23a2Schristos * cpu-moxie.c, elf32-moxie.c: New files. 3481*377e23a2Schristos * archures.c: Add moxie support. 3482*377e23a2Schristos * configure.in: Add moxie support. 3483*377e23a2Schristos * configure: Rebuilt. 3484*377e23a2Schristos * config.bfd, archures.c: Add moxie support. 3485*377e23a2Schristos * bfd-in2.h: Rebuilt. 3486*377e23a2Schristos 3487*377e23a2Schristos2009-04-15 Christophe Lyon <christophe.lyon@st.com> 3488*377e23a2Schristos 3489*377e23a2Schristos * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM 3490*377e23a2Schristos branch to an undef weak symbol into a jump to next instruction if 3491*377e23a2Schristos a PLT entry will be created. 3492*377e23a2Schristos 3493*377e23a2Schristos2009-04-14 Dave Korn <dave.korn.cygwin@gmail.com> 3494*377e23a2Schristos 3495*377e23a2Schristos * coffgen.c (make_a_section_from_file): Set the backend long 3496*377e23a2Schristos section names enable if long section names found on input. 3497*377e23a2Schristos * coffcode.h: Extend long section names documentation to match. 3498*377e23a2Schristos 3499*377e23a2Schristos2009-04-08 H.J. Lu <hongjiu.lu@intel.com> 3500*377e23a2Schristos 3501*377e23a2Schristos * elflink.c (elf_link_add_object_symbols): Warn alternate ELF 3502*377e23a2Schristos machine code. 3503*377e23a2Schristos 3504*377e23a2Schristos2009-04-07 DJ Delorie <dj@redhat.com> 3505*377e23a2Schristos 3506*377e23a2Schristos * archures.c: Add bfd_mach_mep_c5. 3507*377e23a2Schristos * bfd-in2.h: Likewise. 3508*377e23a2Schristos * cpu-mep.c: Add bfd_c5_arch. 3509*377e23a2Schristos * elf32-mep.c: Support it. 3510*377e23a2Schristos 3511*377e23a2Schristos2009-04-07 H.J. Lu <hongjiu.lu@intel.com> 3512*377e23a2Schristos 3513*377e23a2Schristos * elflink.c (_bfd_elf_section_already_linked): Add `\n' for 3514*377e23a2Schristos info->callbacks->einfo. 3515*377e23a2Schristos * linker.c (_bfd_generic_section_already_linked): Likewise. 3516*377e23a2Schristos 3517*377e23a2Schristos2009-04-06 DJ Delorie <dj@redhat.com> 3518*377e23a2Schristos 3519*377e23a2Schristos * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes. 3520*377e23a2Schristos 3521*377e23a2Schristos2009-04-06 H.J. Lu <hongjiu.lu@intel.com> 3522*377e23a2Schristos 3523*377e23a2Schristos * coff-x86_64.c (bfd_pe_print_pdata): Defined to 3524*377e23a2Schristos _bfd_pex64_print_pdata only if PE is defined. 3525*377e23a2Schristos 3526*377e23a2Schristos * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ... 3527*377e23a2Schristos (_bfd_pex64_print_pdata): This. 3528*377e23a2Schristos 3529*377e23a2Schristos * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ... 3530*377e23a2Schristos (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64 3531*377e23a2Schristos is defined. 3532*377e23a2Schristos 3533*377e23a2Schristos2009-04-05 Kai Tietz <kai.tietz@onevision.com> 3534*377e23a2Schristos 3535*377e23a2Schristos * coff-x86_64.c (bfd_pe_print_pdata): Define as 3536*377e23a2Schristos _bfd_pep_print_x64_pdata. 3537*377e23a2Schristos * libpei.h (_bfd_pep_print_x64_pdata): Add prototype. 3538*377e23a2Schristos * peXXigen.c (_bfd_pep_print_x64_pdata): New. 3539*377e23a2Schristos 3540*377e23a2Schristos2009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com> 3541*377e23a2Schristos 3542*377e23a2Schristos * elf32-xtensa.c (relax_property_section): Always set r_offset 3543*377e23a2Schristos to zero. 3544*377e23a2Schristos 3545*377e23a2Schristos2009-04-02 Christophe Lyon <christophe.lyon@st.com> 3546*377e23a2Schristos 3547*377e23a2Schristos * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb, 3548*377e23a2Schristos elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long 3549*377e23a2Schristos branch stubs. 3550*377e23a2Schristos (elf32_arm_stub_type): New enum values for the two new stubs. 3551*377e23a2Schristos (arm_type_of_stub): Make use of the two new stubs. 3552*377e23a2Schristos (arm_size_one_stub): Handle the two new stubs. 3553*377e23a2Schristos 3554*377e23a2Schristos2009-04-01 Matt Thomas <matt@netbsd.org> 3555*377e23a2Schristos 3556*377e23a2Schristos * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against 3557*377e23a2Schristos hidden symbols into the GOT or PLT.GOT. 3558*377e23a2Schristos (elf_vax_relocate_section): Do not emit a PCREL reloc 3559*377e23a2Schristos into a shared object if it is against a hidden symbol. 3560*377e23a2Schristos 3561*377e23a2Schristos2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> 3562*377e23a2Schristos 3563*377e23a2Schristos * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p 3564*377e23a2Schristos and know_contains_shared_object_p. 3565*377e23a2Schristos (xcoff_archive_contains_shared_object_p): Add an "info" parameter. 3566*377e23a2Schristos Cache the result in the archive_info table. 3567*377e23a2Schristos (xcoff_auto_export_p): Add an "info" parameter and update the 3568*377e23a2Schristos call to xcoff_archive_contains_shared_object_p. 3569*377e23a2Schristos (xcoff_mark_auto_exports): Update accordingly. 3570*377e23a2Schristos (xcoff_post_gc_symbol): Likewise. 3571*377e23a2Schristos 3572*377e23a2Schristos2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> 3573*377e23a2Schristos 3574*377e23a2Schristos * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT 3575*377e23a2Schristos rather than C_EXT. 3576*377e23a2Schristos 3577*377e23a2Schristos2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> 3578*377e23a2Schristos 3579*377e23a2Schristos * coff-rs6000.c (member_layout): New structure. 3580*377e23a2Schristos (archive_iterator): Likewise. 3581*377e23a2Schristos (member_layout_init): New function. 3582*377e23a2Schristos (archive_iterator_begin): Likewise. 3583*377e23a2Schristos (archive_iterator_next): Likewise. 3584*377e23a2Schristos (xcoff_write_armap_old): Use the new iterator functions. 3585*377e23a2Schristos (do_shared_object_padding): Delete. 3586*377e23a2Schristos (xcoff_write_armap_big): Use the new iterator functions. Simplify 3587*377e23a2Schristos handling of arch_info. 3588*377e23a2Schristos (xcoff_write_archive_contents_old): Allocate arelt_data in the 3589*377e23a2Schristos first loop rather than the second. Allocate a member header if 3590*377e23a2Schristos there isn't one, then work out the stat information and length 3591*377e23a2Schristos in the first loop too. Use the new iterators for the second loop. 3592*377e23a2Schristos (xcoff_write_archive_contents_big): Likewise. 3593*377e23a2Schristos 3594*377e23a2Schristos2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> 3595*377e23a2Schristos 3596*377e23a2Schristos * bfd-in.h (bfd_xcoff_split_import_path): Declare. 3597*377e23a2Schristos (bfd_xcoff_set_archive_import_path): Likewise. 3598*377e23a2Schristos * bfd-in2.h: Regenerate. 3599*377e23a2Schristos * xcofflink.c: Include libiberty.h. 3600*377e23a2Schristos (xcoff_archive_info): New structure. 3601*377e23a2Schristos (xcoff_archive_info_hash): New function. 3602*377e23a2Schristos (xcoff_archive_info_eq): Likewise. 3603*377e23a2Schristos (xcoff_get_archive_info): Likewise. 3604*377e23a2Schristos (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info. 3605*377e23a2Schristos (bfd_xcoff_split_import_path): New function. 3606*377e23a2Schristos (bfd_xcoff_set_archive_import_path): Likewise. 3607*377e23a2Schristos (xcoff_set_import_path): Move earlier in file. 3608*377e23a2Schristos (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive 3609*377e23a2Schristos object to the the directory part of the bfd's filename. Get the 3610*377e23a2Schristos import path and filename of an archive object from the archive's 3611*377e23a2Schristos xcoff_tdata, initializing it if necessary. Update use of 3612*377e23a2Schristos import_file_id. 3613*377e23a2Schristos (bfd_link_input_bfd): Update use of import_file_id. 3614*377e23a2Schristos (xcoff_write_global_symbol): Likewise. 3615*377e23a2Schristos 3616*377e23a2Schristos2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> 3617*377e23a2Schristos 3618*377e23a2Schristos * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h. 3619*377e23a2Schristos 3620*377e23a2Schristos2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com> 3621*377e23a2Schristos 3622*377e23a2Schristos * xcofflink.c (xcoff_link_create_extra_sections): Don't create 3623*377e23a2Schristos a .loader section for relocatable links. 3624*377e23a2Schristos (xcoff_need_ldrel_p): New function. 3625*377e23a2Schristos (xcoff_mark): Use it. 3626*377e23a2Schristos (bfd_xcoff_link_count_reloc): Only count loader relocs if there's 3627*377e23a2Schristos a loader section. 3628*377e23a2Schristos (xcoff_build_ldsym): New function, split out from... 3629*377e23a2Schristos (xcoff_build_ldsyms): ...here. Rename to... 3630*377e23a2Schristos (xcoff_post_gc_symbol): ...this. Only export symbols, and only 3631*377e23a2Schristos call xcoff_build_ldsym, if there's a loader section. 3632*377e23a2Schristos (xcoff_build_loader_section): New function, extracted verbatim from... 3633*377e23a2Schristos (bfd_xcoff_size_dynamic_sections): ...here. Only call it if 3634*377e23a2Schristos there's a loader section. Only add an __rtinit loader symbol 3635*377e23a2Schristos if there's a loader section. Update after above name change. 3636*377e23a2Schristos (xcoff_symbol_section, xcoff_create_ldrel): New functions. 3637*377e23a2Schristos (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section 3638*377e23a2Schristos and xcoff_create_ldrel. 3639*377e23a2Schristos (xcoff_write_global_symbol): Use xcoff_create_ldrel. 3640*377e23a2Schristos (xcoff_reloc_link_order): Likewise, but only call it if there's 3641*377e23a2Schristos a loader section. Use xcoff_symbol_section. 3642*377e23a2Schristos (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym 3643*377e23a2Schristos if there's a loader section. 3644*377e23a2Schristos 3645*377e23a2Schristos2009-04-01 Richard Sandiford <rdsandiford@googlemail.com> 3646*377e23a2Schristos 3647*377e23a2Schristos * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun. 3648*377e23a2Schristos 3649*377e23a2Schristos2009-04-01 Christophe Lyon <christophe.lyon@st.com> 3650*377e23a2Schristos 3651*377e23a2Schristos * elf32-arm.c (group_sections): Rewrite loops for better 3652*377e23a2Schristos readability. 3653*377e23a2Schristos 3654*377e23a2Schristos2009-03-30 DJ Delorie <dj@redhat.com> 3655*377e23a2Schristos 3656*377e23a2Schristos * elflink.c (elf_link_input_bfd): Don't try to resolve complex 3657*377e23a2Schristos relocs when doing a relocatable link. 3658*377e23a2Schristos 3659*377e23a2Schristos2009-03-28 Mark Mitchell <mark@codesourcery.com> 3660*377e23a2Schristos 3661*377e23a2Schristos * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not 3662*377e23a2Schristos "ERROR:", in error messages. 3663*377e23a2Schristos * cpu-arm.c (bfd_arm_merge_machines): Likewise. 3664*377e23a2Schristos * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise. 3665*377e23a2Schristos * elf32-arm.c (tag_cpu_arch_combine): Likewise. 3666*377e23a2Schristos (elf32_arm_merge_eabi_attributes): Likewise. 3667*377e23a2Schristos (elf32_arm_merge_private_bfd_data): Likewise. 3668*377e23a2Schristos 3669*377e23a2Schristos2009-03-27 Nick Clifton <nickc@redhat.com> 3670*377e23a2Schristos 3671*377e23a2Schristos * section.c (bfd_get_section_contents): Detect and handle the case 3672*377e23a2Schristos where a section has the SEC_IN_MEMORY flag set but no actual 3673*377e23a2Schristos contents allocated. 3674*377e23a2Schristos 3675*377e23a2Schristos2009-03-26 Alan Modra <amodra@bigpond.net.au> 3676*377e23a2Schristos 3677*377e23a2Schristos PR 6494 3678*377e23a2Schristos * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO 3679*377e23a2Schristos p_filesz and p_memsz are equal. Use p_memsz as the segment size. 3680*377e23a2Schristos (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO 3681*377e23a2Schristos if we don't find matching PT_LOAD when copying. 3682*377e23a2Schristos 3683*377e23a2Schristos2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com> 3684*377e23a2Schristos 3685*377e23a2Schristos * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of 3686*377e23a2Schristos the reloc descriptions. 3687*377e23a2Schristos 3688*377e23a2Schristos2009-03-25 Hans-Peter Nilsson <hp@axis.com> 3689*377e23a2Schristos 3690*377e23a2Schristos * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> 3691*377e23a2Schristos <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols. 3692*377e23a2Schristos <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto. 3693*377e23a2Schristos 3694*377e23a2Schristos2009-03-24 H.J. Lu <hongjiu.lu@intel.com> 3695*377e23a2Schristos 3696*377e23a2Schristos * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static. 3697*377e23a2Schristos (bfd_i386_arch_intel_syntax): Likewise. 3698*377e23a2Schristos (i8086_arch): Likewise. 3699*377e23a2Schristos (bfd_x86_64_arch): Likewise. 3700*377e23a2Schristos 3701*377e23a2Schristos2009-03-24 Hans-Peter Nilsson <hp@axis.com> 3702*377e23a2Schristos 3703*377e23a2Schristos * elf32-cris.c (cris_elf_relocate_section): <case 3704*377e23a2Schristos R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local 3705*377e23a2Schristos symbols for non-allocated sections. Don't check whether to 3706*377e23a2Schristos generate R_CRIS_DTPMOD for non-allocated sections. 3707*377e23a2Schristos (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't 3708*377e23a2Schristos handle relocation GC:ing if applied to non-allocated section. 3709*377e23a2Schristos (cris_elf_check_relocs): Similar. 3710*377e23a2Schristos 3711*377e23a2Schristos * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> 3712*377e23a2Schristos <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size 3713*377e23a2Schristos when emitting a known TP offset in the GOT. 3714*377e23a2Schristos 3715*377e23a2Schristos2009-03-23 Alan Modra <amodra@bigpond.net.au> 3716*377e23a2Schristos 3717*377e23a2Schristos * elf64-ppc.c (synthetic_opd): Delete. 3718*377e23a2Schristos (compare_symbols): Look for .opd name rather than section match. 3719*377e23a2Schristos (ppc64_elf_get_synthetic_symtab): Likewise. 3720*377e23a2Schristos 3721*377e23a2Schristos2009-03-21 Alan Modra <amodra@bigpond.net.au> 3722*377e23a2Schristos 3723*377e23a2Schristos * elf32-ppc.c (is_pic_glink_stub): Delete. 3724*377e23a2Schristos (is_nonpic_glink_stub): New function. 3725*377e23a2Schristos (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather 3726*377e23a2Schristos than first pic one. 3727*377e23a2Schristos (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix. 3728*377e23a2Schristos 3729*377e23a2Schristos2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com> 3730*377e23a2Schristos Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 3731*377e23a2Schristos 3732*377e23a2Schristos * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_* 3733*377e23a2Schristos macros for visibilty and locality checks. 3734*377e23a2Schristos (elf_s390_adjust_dynamic_symbol): Likewise. 3735*377e23a2Schristos (allocate_dynrelocs): Likewise. 3736*377e23a2Schristos (elf_s390_relocate_section): Likewise. 3737*377e23a2Schristos (elf_s390_finish_dynamic_symbol): Likewise. 3738*377e23a2Schristos * elf64-s390.c (elf_s390_check_relocs): Likewise. 3739*377e23a2Schristos (elf_s390_adjust_dynamic_symbol): Likewise. 3740*377e23a2Schristos (allocate_dynrelocs): Likewise. 3741*377e23a2Schristos (elf_s390_relocate_section): Likewise. 3742*377e23a2Schristos (elf_s390_finish_dynamic_symbol): Likewise. 3743*377e23a2Schristos 3744*377e23a2Schristos2009-03-19 Kai Tietz <kai.tietz@onevision.com> 3745*377e23a2Schristos 3746*377e23a2Schristos * bfd-in2.h: Regenerated. 3747*377e23a2Schristos * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY 3748*377e23a2Schristos for debugging sections and map memory read/write dependent on 3749*377e23a2Schristos SEC_COFF_NOREAD. 3750*377e23a2Schristos (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections 3751*377e23a2Schristos without memory read flags set. 3752*377e23a2Schristos * section.c: Add SEC_COFF_NOREAD to section flags. 3753*377e23a2Schristos 3754*377e23a2Schristos2009-03-19 Andreas Schwab <schwab@linux-m68k.org> 3755*377e23a2Schristos 3756*377e23a2Schristos * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long 3757*377e23a2Schristos for format string. 3758*377e23a2Schristos 3759*377e23a2Schristos2009-03-19 Alan Modra <amodra@bigpond.net.au> 3760*377e23a2Schristos 3761*377e23a2Schristos * elf32-spu.c (spu_elf_find_overlays): Separate error return from 3762*377e23a2Schristos "no overlays" return. If there are overlays, create overlay 3763*377e23a2Schristos manager entry symbols here, so that.. 3764*377e23a2Schristos (spu_elf_build_stubs): ..we don't need to set them up here. 3765*377e23a2Schristos Simplify entry symbol tests. 3766*377e23a2Schristos * elf32-spu.h (spu_elf_find_overlays): Update prototype. 3767*377e23a2Schristos 3768*377e23a2Schristos2009-03-18 Mark Kettenis <kettenis@gnu.org> 3769*377e23a2Schristos 3770*377e23a2Schristos * elf.c (elfcore_grok_openbsd_procinfo) 3771*377e23a2Schristos (elfcore_grok_openbsd_note): New functions. 3772*377e23a2Schristos (elf_parse_notes): Handle notes from OpenBSD ELF core files. 3773*377e23a2Schristos 3774*377e23a2Schristos2009-03-18 Alan Modra <amodra@bigpond.net.au> 3775*377e23a2Schristos 3776*377e23a2Schristos * vms-hdr.c: Don't include alloca.h. 3777*377e23a2Schristos * elf32-m68hc1x.c: Include alloca-conf.h. 3778*377e23a2Schristos * xsym.c: Likewise. 3779*377e23a2Schristos * elf64-hppa.c: Likewise. Remove existing #if's handling alloca. 3780*377e23a2Schristos * som.c: Likewise. 3781*377e23a2Schristos * Makefile.am: Run "make dep-am". 3782*377e23a2Schristos * Makefile.in: Regenerate. 3783*377e23a2Schristos 3784*377e23a2Schristos2009-03-17 Daniel Jacobowitz <dan@codesourcery.com> 3785*377e23a2Schristos 3786*377e23a2Schristos * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test. 3787*377e23a2Schristos 3788*377e23a2Schristos2009-03-17 Alan Modra <amodra@bigpond.net.au> 3789*377e23a2Schristos 3790*377e23a2Schristos * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit. 3791*377e23a2Schristos Add compact_stub. 3792*377e23a2Schristos (emum _ovly_flavour): Delete ovly_compact, ovly_none. 3793*377e23a2Schristos * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and 3794*377e23a2Schristos ovly_return fields with ovly_entry[2]. Adjust all users. 3795*377e23a2Schristos (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler 3796*377e23a2Schristos when soft-icache. 3797*377e23a2Schristos (spu_elf_build_stubs): Likewise. 3798*377e23a2Schristos (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for 3799*377e23a2Schristos ovly_flavour changes. Update all callers. 3800*377e23a2Schristos (ovl_stub_size_log2): New function. 3801*377e23a2Schristos (build_stub): Handle compact icache stubs. Use different manager 3802*377e23a2Schristos entry point for stubs in non-icache area. 3803*377e23a2Schristos (spu_elf_size_stubs): Don't allocate space for indirect branch 3804*377e23a2Schristos descriptors. 3805*377e23a2Schristos (spu_elf_build_stubs): And don't built them. 3806*377e23a2Schristos 3807*377e23a2Schristos2009-03-16 Andrew Stubbs <ams@codesourcery.com> 3808*377e23a2Schristos 3809*377e23a2Schristos * dwarf2.c (read_section): Always use rawsize, if available. 3810*377e23a2Schristos 3811*377e23a2Schristos2009-03-16 Alan Modra <amodra@bigpond.net.au> 3812*377e23a2Schristos 3813*377e23a2Schristos * simple.c (bfd_simple_get_relocated_section_contents): Use larger 3814*377e23a2Schristos of rawsize and size for buffer. 3815*377e23a2Schristos 3816*377e23a2Schristos2009-03-15 Ulrich Weigand <uweigand@de.ibm.com> 3817*377e23a2Schristos 3818*377e23a2Schristos * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay 3819*377e23a2Schristos parameter just because fixed sections fit into local store. 3820*377e23a2Schristos (spu_elf_auto_overlay): Do not declare as "noreturn". Skip 3821*377e23a2Schristos generating overlays if fixed sections plus reserved stack 3822*377e23a2Schristos and heap space fit into local store. 3823*377e23a2Schristos 3824*377e23a2Schristos2009-03-15 Alan Modra <amodra@bigpond.net.au> 3825*377e23a2Schristos 3826*377e23a2Schristos * elf32-spu.c (build_stub): Correct icache set_id. 3827*377e23a2Schristos (spu_elf_relocate_section): Likewise. 3828*377e23a2Schristos 3829*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3830*377e23a2Schristos 3831*377e23a2Schristos * xcofflink.c (xcoff_link_check_archive_element): Only free the 3832*377e23a2Schristos symbol table if it was created by the current call. 3833*377e23a2Schristos 3834*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3835*377e23a2Schristos 3836*377e23a2Schristos * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors 3837*377e23a2Schristos class XMC_DS rather than XMC_UA. 3838*377e23a2Schristos 3839*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3840*377e23a2Schristos 3841*377e23a2Schristos * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the 3842*377e23a2Schristos bfd_boolean export_defineds parameter with an unsigned int 3843*377e23a2Schristos auto_export_flags parameter. 3844*377e23a2Schristos * bfd-in2.h: Regenerate. 3845*377e23a2Schristos * xcofflink.c (xcoff_archive_contains_shared_object_p): New function, 3846*377e23a2Schristos split out from xcoff_build_ldsyms. 3847*377e23a2Schristos (xcoff_covered_by_expall_p): New function. 3848*377e23a2Schristos (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms 3849*377e23a2Schristos but with extra code to handle -bexpfull and -bexpall. 3850*377e23a2Schristos (xcoff_mark_auto_exports): New function. 3851*377e23a2Schristos (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether 3852*377e23a2Schristos a function should be automatically exported. 3853*377e23a2Schristos (bfd_xcoff_size_dynamic_sections): Replace the export_defineds 3854*377e23a2Schristos parameter with an auto_export_flags parameter. Update ldinfo 3855*377e23a2Schristos accordingly. Use xcoff_mark_auto_exports to mark all automatically- 3856*377e23a2Schristos exported symbols. 3857*377e23a2Schristos 3858*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3859*377e23a2Schristos 3860*377e23a2Schristos * xcofflink.c (xcoff_mark_symbol_by_name): New function. 3861*377e23a2Schristos (bfd_xcoff_size_dynamic_sections): Use it to mark the entry, 3862*377e23a2Schristos init and fini functions. Do garbage collection for objects 3863*377e23a2Schristos without an entry point too. 3864*377e23a2Schristos 3865*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3866*377e23a2Schristos 3867*377e23a2Schristos * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to 3868*377e23a2Schristos check whether a symbol has csect information. 3869*377e23a2Schristos (coff_print_aux): Likewise. 3870*377e23a2Schristos * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect 3871*377e23a2Schristos information for C_AIX_WEAKEXT too. 3872*377e23a2Schristos (_bfd_xcoff_swap_aux_out): Likewise. 3873*377e23a2Schristos (xcoff_reloc_type_br): Handle defweak symbols too. 3874*377e23a2Schristos * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect 3875*377e23a2Schristos information for C_AIX_WEAKEXT too. 3876*377e23a2Schristos (_bfd_xcoff64_swap_aux_out): Likewise. 3877*377e23a2Schristos (xcoff64_reloc_type_br): Handle defweak symbols too. 3878*377e23a2Schristos * coffgen.c (coff_print_symbol): Handle auxillary function 3879*377e23a2Schristos information for C_AIX_WEAKEXT too. 3880*377e23a2Schristos * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK 3881*377e23a2Schristos instead of BSF_GLOBAL if the L_WEAK flag is set. 3882*377e23a2Schristos (xcoff_dynamic_definition_p): New function. 3883*377e23a2Schristos (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym 3884*377e23a2Schristos defines h. Don't change h if ldsym isn't the definition. Otherwise, 3885*377e23a2Schristos always take the symbol class from the ldsym. Use weak bfd symbol 3886*377e23a2Schristos types for weak ldsyms. 3887*377e23a2Schristos (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P. 3888*377e23a2Schristos Fix the check for whether a definition is from a shared object. 3889*377e23a2Schristos Allow redefinitions of weak symbols. 3890*377e23a2Schristos (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P. 3891*377e23a2Schristos (xcoff_keep_symbol_p): Likewise. 3892*377e23a2Schristos (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P. 3893*377e23a2Schristos (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P. 3894*377e23a2Schristos Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols, 3895*377e23a2Schristos but mark them as L_WEAK. 3896*377e23a2Schristos (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT 3897*377e23a2Schristos instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT. 3898*377e23a2Schristos 3899*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3900*377e23a2Schristos 3901*377e23a2Schristos * xcofflink.c (xcoff_mark): When walking the relocations, 3902*377e23a2Schristos only mark the target symbol or the target section, not both. 3903*377e23a2Schristos (xcoff_final_definition_p): New function. 3904*377e23a2Schristos (xcoff_keep_symbol_p): Use it to check whether an external XCOFF 3905*377e23a2Schristos symbol is a valid definition of the associated output symbol. 3906*377e23a2Schristos Use XCOFF_ALLOCATED to stop the same hash table entry having 3907*377e23a2Schristos two output symbols. 3908*377e23a2Schristos (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when 3909*377e23a2Schristos keeping a symbol. 3910*377e23a2Schristos (xcoff_link_input_bfd): Use xcoff_final_definition_p. 3911*377e23a2Schristos 3912*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3913*377e23a2Schristos 3914*377e23a2Schristos * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute 3915*377e23a2Schristos symbols as XMC_XO. 3916*377e23a2Schristos 3917*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3918*377e23a2Schristos 3919*377e23a2Schristos * libcoff-in.h (xcoff_tdata): Add a lineno_counts field. 3920*377e23a2Schristos * libcoff.h: Regenerate. 3921*377e23a2Schristos * xcofflink.c (xcoff_link_add_symbols): Record per-symbol 3922*377e23a2Schristos line-number counts in the bfd's lineno_counts field. 3923*377e23a2Schristos Don't keep per-csect line-number counts. 3924*377e23a2Schristos (xcoff_sweep): Don't update per-csect line-number counts. 3925*377e23a2Schristos (bfd_xcoff_size_dynamic_sections): Count the number of line-number 3926*377e23a2Schristos entries in each output section. 3927*377e23a2Schristos (xcoff_link_input_bfd): Get the number of line numbers from 3928*377e23a2Schristos the bfd's lineno_counts field, rather than recalculating it 3929*377e23a2Schristos from scratch. Fix the range check when updating C_BINCL and 3930*377e23a2Schristos C_EINCL symbols. 3931*377e23a2Schristos (_bfd_xcoff_bfd_final_link): Don't count the output line numbers 3932*377e23a2Schristos here. Don't expect csects to have line-number counts. 3933*377e23a2Schristos 3934*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3935*377e23a2Schristos 3936*377e23a2Schristos * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long. 3937*377e23a2Schristos * libcoff.h: Regenerate. 3938*377e23a2Schristos * xcofflink.c (xcoff_keep_symbol_p): New function, using the 3939*377e23a2Schristos "skip" logic from xcoff_link_input_bfd. 3940*377e23a2Schristos (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic 3941*377e23a2Schristos objects in a dynamic link, rather than checking whether csectpp 3942*377e23a2Schristos is null. Always allocate debug_index for other objects, 3943*377e23a2Schristos and always go through the loop. Update the type of debug_index 3944*377e23a2Schristos after the change above. Read the auxillary csect information 3945*377e23a2Schristos and use xcoff_keep_symbol_p to decide whether a symbol should 3946*377e23a2Schristos be kept. Set its debug_index to -2 if not. 3947*377e23a2Schristos (xcoff_link_input_bfd): Update the type of debug_index after 3948*377e23a2Schristos the change above and always expect it to be nonnull. Use it to 3949*377e23a2Schristos test whether a symbol should be stripped, rather than making the 3950*377e23a2Schristos decision here. Postpone all symbol creation to the second pass. 3951*377e23a2Schristos 3952*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3953*377e23a2Schristos 3954*377e23a2Schristos * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when 3955*377e23a2Schristos creating a descriptor. 3956*377e23a2Schristos (xcoff_sweep): Don't mark toc_section unless it's needed. 3957*377e23a2Schristos (bfd_xcoff_size_dynamic_sections): Skip the toc_section 3958*377e23a2Schristos when marking every bfd. 3959*377e23a2Schristos (xcoff_link_input_bfd): Skip all TOC anchors. 3960*377e23a2Schristos (xcoff_toc_section_p, xcoff_find_tc0): New functions. 3961*377e23a2Schristos (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor 3962*377e23a2Schristos to -1; call xcoff_find_tc0 instead. 3963*377e23a2Schristos 3964*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3965*377e23a2Schristos 3966*377e23a2Schristos * libcoff-in.h (xcoff_section_tdata): Update commentary. 3967*377e23a2Schristos * libcoff.h: Regenerate. 3968*377e23a2Schristos * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER 3969*377e23a2Schristos symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than 3970*377e23a2Schristos the previous symbol's csect. Treat last_symndx as an inclusive value 3971*377e23a2Schristos and simplify its handling. 3972*377e23a2Schristos (xcoff_mark): Treat last_symndx as an inclusive value. Only mark 3973*377e23a2Schristos symbols with the right csect. Don't mark rsec when processing 3974*377e23a2Schristos relocations against undefined or absolute sections. 3975*377e23a2Schristos (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag 3976*377e23a2Schristos of bfd_und_section_ptr. 3977*377e23a2Schristos (xcoff_link_input_bfd): Likewise. 3978*377e23a2Schristos 3979*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 3980*377e23a2Schristos 3981*377e23a2Schristos * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations 3982*377e23a2Schristos against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED 3983*377e23a2Schristos flag is set. Assert that all undefined symbols are either 3984*377e23a2Schristos imported or defined by a dynamic object. 3985*377e23a2Schristos * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise. 3986*377e23a2Schristos * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol 3987*377e23a2Schristos handling to all relocations. Only set XCOFF_CALLED for function 3988*377e23a2Schristos symbols. 3989*377e23a2Schristos (xcoff_find_function): New function, split out from... 3990*377e23a2Schristos (bfd_xcoff_export_symbol) ...here. 3991*377e23a2Schristos (xcoff_set_import_path): New function, split out from... 3992*377e23a2Schristos (bfd_xcoff_import_symbol): ...here. Remove assertion for old 3993*377e23a2Schristos meaning of XCOFF_CALLED. 3994*377e23a2Schristos (xcoff_mark_symbol): If we mark an undefined and unimported 3995*377e23a2Schristos symbol, find some way of defining it. If the symbol is a function 3996*377e23a2Schristos descriptor, fill in its definition automatically. If the symbol 3997*377e23a2Schristos is a function, mark its descriptor and allocate room for global 3998*377e23a2Schristos linkage code. Otherwise mark the symbol as implicitly imported. 3999*377e23a2Schristos Move the code for creating function descriptors from... 4000*377e23a2Schristos (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to 4001*377e23a2Schristos check for symbols that were implicitly defined. 4002*377e23a2Schristos (xcoff_mark): Don't count any dynamic relocations against 4003*377e23a2Schristos function symbols. 4004*377e23a2Schristos (bfd_xcoff_size_dynamic_sections): Save the rtld parameter 4005*377e23a2Schristos in the xcoff link info. 4006*377e23a2Schristos (xcoff_link_input_bfd): Remove handling of undefined and 4007*377e23a2Schristos unexported symbols. 4008*377e23a2Schristos 4009*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 4010*377e23a2Schristos 4011*377e23a2Schristos * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute 4012*377e23a2Schristos if the target is absolute. Fix comment typo. 4013*377e23a2Schristos (xcoff_ppc_relocate_section): Remove FIXME. 4014*377e23a2Schristos * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute 4015*377e23a2Schristos if the target is absolute. 4016*377e23a2Schristos 4017*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 4018*377e23a2Schristos 4019*377e23a2Schristos * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy 4020*377e23a2Schristos R_POS and R_NEG relocations against absolute symbols to the 4021*377e23a2Schristos .loader section. 4022*377e23a2Schristos 4023*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 4024*377e23a2Schristos 4025*377e23a2Schristos * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype 4026*377e23a2Schristos to 2 for bfd_mach_ppc_620. 4027*377e23a2Schristos 4028*377e23a2Schristos2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com> 4029*377e23a2Schristos 4030*377e23a2Schristos * config.bfd: Treat AIX 6+ in the same way as AIX 5. 4031*377e23a2Schristos * configure.in: Likewise. 4032*377e23a2Schristos * configure: Regenerate. 4033*377e23a2Schristos 4034*377e23a2Schristos2009-03-13 H.J. Lu <hongjiu.lu@intel.com> 4035*377e23a2Schristos 4036*377e23a2Schristos PR binutils/9945 4037*377e23a2Schristos * elf.c (assign_section_numbers): Generate symbol table if there 4038*377e23a2Schristos is any relocation in output. 4039*377e23a2Schristos (_bfd_elf_compute_section_file_positions): Likewise. 4040*377e23a2Schristos 4041*377e23a2Schristos2009-03-13 Nick Clifton <nickc@redhat.com> 4042*377e23a2Schristos 4043*377e23a2Schristos PR 9934 4044*377e23a2Schristos * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section. 4045*377e23a2Schristos * elflink.c (elf_link_read_relocs_from_section): Use 4046*377e23a2Schristos NUM_SHDR_ENTRIES. Gracefully handle the case where there are 4047*377e23a2Schristos relocs but no symbol table. 4048*377e23a2Schristos * elf32-arm.c (elf32_arm_check_relocs): Likewise. 4049*377e23a2Schristos 4050*377e23a2Schristos2009-03-12 H.J. Lu <hongjiu.lu@intel.com> 4051*377e23a2Schristos 4052*377e23a2Schristos PR ld/9938 4053*377e23a2Schristos * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp 4054*377e23a2Schristos to check ___tls_get_addr. 4055*377e23a2Schristos 4056*377e23a2Schristos * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use 4057*377e23a2Schristos strncmp to check __tls_get_addr. 4058*377e23a2Schristos 4059*377e23a2Schristos2009-03-12 Andrew Stubbs <ams@codesourcery.com> 4060*377e23a2Schristos 4061*377e23a2Schristos * dwarf2.c (read_section): Always check the offset, even when the 4062*377e23a2Schristos section has been read before. 4063*377e23a2Schristos 4064*377e23a2Schristos2009-03-11 H.J. Lu <hongjiu.lu@intel.com> 4065*377e23a2Schristos 4066*377e23a2Schristos * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in 4067*377e23a2Schristos comments. 4068*377e23a2Schristos 4069*377e23a2Schristos2009-03-11 Chris Demetriou <cgd@google.com> 4070*377e23a2Schristos 4071*377e23a2Schristos * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag. 4072*377e23a2Schristos * bfd-in2.h: Regenerate. 4073*377e23a2Schristos * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT 4074*377e23a2Schristos flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file 4075*377e23a2Schristos mode. 4076*377e23a2Schristos (bsd_write_armap): Likewise. 4077*377e23a2Schristos (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT 4078*377e23a2Schristos flag is set, do nothing. 4079*377e23a2Schristos (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0 4080*377e23a2Schristos for timestamp. 4081*377e23a2Schristos 4082*377e23a2Schristos2009-03-11 Ulrich Weigand <uweigand@de.ibm.com> 4083*377e23a2Schristos 4084*377e23a2Schristos * elf32-spu.c (find_function_stack_adjust): Handle sf instruction 4085*377e23a2Schristos used to update stack pointer. 4086*377e23a2Schristos 4087*377e23a2Schristos2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4088*377e23a2Schristos 4089*377e23a2Schristos PR binutils/9921 4090*377e23a2Schristos * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE 4091*377e23a2Schristos for unknown symbols in absolute section. 4092*377e23a2Schristos 4093*377e23a2Schristos2009-03-06 Nick Clifton <nickc@redhat.com> 4094*377e23a2Schristos 4095*377e23a2Schristos * po/es.po: Updated Spanish translation. 4096*377e23a2Schristos 4097*377e23a2Schristos2009-03-05 Christophe Lyon <christophe.lyon@st.com> 4098*377e23a2Schristos 4099*377e23a2Schristos * elf32-arm.c (group_sections): Take next section size into 4100*377e23a2Schristos account before accepting to group it. 4101*377e23a2Schristos 4102*377e23a2Schristos2009-03-05 Christophe Lyon <christophe.lyon@st.com> 4103*377e23a2Schristos 4104*377e23a2Schristos * elf32-arm.c (arm_type_of_stub): Handle long branches targetting 4105*377e23a2Schristos PLT entries. 4106*377e23a2Schristos (elf32_arm_final_link_relocate): Likewise. 4107*377e23a2Schristos 4108*377e23a2Schristos2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de> 4109*377e23a2Schristos 4110*377e23a2Schristos PR 9923 4111*377e23a2Schristos * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type. 4112*377e23a2Schristos 4113*377e23a2Schristos2009-03-04 Alan Modra <amodra@bigpond.net.au> 4114*377e23a2Schristos 4115*377e23a2Schristos * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New. 4116*377e23a2Schristos * section.c (struct bfd_section): Add has_tls_get_addr_call. 4117*377e23a2Schristos (BFD_FAKE_SECTION): Init new flag. 4118*377e23a2Schristos * ecoff.c (bfd_debug_section): Likewise. 4119*377e23a2Schristos * bfd-in2.h: Regenerate. 4120*377e23a2Schristos * libbfd.h: Regenerate. 4121*377e23a2Schristos * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD. 4122*377e23a2Schristos (ppc_elf_reloc_type_lookup): Handle new relocs. 4123*377e23a2Schristos (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such 4124*377e23a2Schristos without marker relocs. 4125*377e23a2Schristos (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs 4126*377e23a2Schristos if section has no old-style calls. 4127*377e23a2Schristos (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too. 4128*377e23a2Schristos Don't try to optimize new-style __tls_get_addr call when handling 4129*377e23a2Schristos arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD 4130*377e23a2Schristos relocs. 4131*377e23a2Schristos * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD. 4132*377e23a2Schristos (ppc64_elf_reloc_type_lookup): Handle new relocs. 4133*377e23a2Schristos (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such 4134*377e23a2Schristos without marker relocs. 4135*377e23a2Schristos (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs 4136*377e23a2Schristos if section has no old-style calls. Set toc_ref for new relocs as 4137*377e23a2Schristos appropriate. 4138*377e23a2Schristos (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too. 4139*377e23a2Schristos Don't try to optimize new-style __tls_get_addr call when handling 4140*377e23a2Schristos arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD 4141*377e23a2Schristos relocs. 4142*377e23a2Schristos 4143*377e23a2Schristos2009-03-04 Alan Modra <amodra@bigpond.net.au> 4144*377e23a2Schristos 4145*377e23a2Schristos PR 6768 4146*377e23a2Schristos * configure.in: Test for ld --as-needed support. Link shared 4147*377e23a2Schristos libbfd against libm. 4148*377e23a2Schristos * configure: Regenerate. 4149*377e23a2Schristos 4150*377e23a2Schristos2009-03-03 Alan Modra <amodra@bigpond.net.au> 4151*377e23a2Schristos 4152*377e23a2Schristos * Makefile.am: Run "make dep-am". 4153*377e23a2Schristos * Makefile.in: Regenerate. 4154*377e23a2Schristos 4155*377e23a2Schristos2009-03-02 Qinwei <qinwei@sunnorth.com.cn> 4156*377e23a2Schristos 4157*377e23a2Schristos * elf32-score7.c: New file. 4158*377e23a2Schristos * elf32-score.h: New file. 4159*377e23a2Schristos * elf32-score.c: Add code to support score 7. Set score7 as the 4160*377e23a2Schristos default. 4161*377e23a2Schristos * cpu-score.c: Add score7 architecure. 4162*377e23a2Schristos (compatibile): New function. 4163*377e23a2Schristos * Makefile.am: Add rules for building elf32-score7 object. 4164*377e23a2Schristos * Makefile.in: Regenerate. 4165*377e23a2Schristos * configure.in: Add elf32-score7 object to score vectors. 4166*377e23a2Schristos * configure: Regenerate. 4167*377e23a2Schristos * reloc.c: Add score7 relocs. 4168*377e23a2Schristos * archures.c: Add score3 and score7 machine numbers. 4169*377e23a2Schristos * bfd-in2.h: Regenerate. 4170*377e23a2Schristos * libbfd.h: Regenerate. 4171*377e23a2Schristos 4172*377e23a2Schristos2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 4173*377e23a2Schristos 4174*377e23a2Schristos * configure: Regenerate. 4175*377e23a2Schristos 4176*377e23a2Schristos2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4177*377e23a2Schristos 4178*377e23a2Schristos * elf32-hppa.c (hppa32_elf_local_refcounts): New function. 4179*377e23a2Schristos (elf32_hppa_check_relocs): Use it. 4180*377e23a2Schristos 4181*377e23a2Schristos * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to 4182*377e23a2Schristos elf64-hppa.c. 4183*377e23a2Schristos (elf_hppa_unmark_useless_dynamic_symbols): Likewise. 4184*377e23a2Schristos (elf_hppa_remark_useless_dynamic_symbols): Likewise. 4185*377e23a2Schristos (elf_hppa_is_dynamic_loader_symbol): Likewise. 4186*377e23a2Schristos (elf_hppa_record_segment_addrs): Likewise. 4187*377e23a2Schristos (elf_hppa_final_link): Likewise. 4188*377e23a2Schristos (elf_hppa_relocate_insn): Likewise. 4189*377e23a2Schristos (elf_hppa_final_link_relocate): Likewise. 4190*377e23a2Schristos (elf64_hppa_relocate_section): Likewise. 4191*377e23a2Schristos * elf64-hppa.c: Insert above. 4192*377e23a2Schristos 4193*377e23a2Schristos2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4194*377e23a2Schristos 4195*377e23a2Schristos * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link. 4196*377e23a2Schristos (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table. 4197*377e23a2Schristos (elf_hppa_relocate_section): Likewise. 4198*377e23a2Schristos * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive 4199*377e23a2Schristos from struct elf_link_hash_entry. Add count field. 4200*377e23a2Schristos (struct elf64_hppa_dyn_hash_table): Delete. 4201*377e23a2Schristos (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field. 4202*377e23a2Schristos (elf64_hppa_hash_table): Rename to hppa_link_hash_table. 4203*377e23a2Schristos (hppa_elf_hash_entry, eh_name): Define. 4204*377e23a2Schristos (elf64_hppa_new_dyn_hash_entry): Delete. 4205*377e23a2Schristos (elf64_hppa_dyn_hash_lookup): Delete. 4206*377e23a2Schristos (elf64_hppa_dyn_hash_traverse): Delete. 4207*377e23a2Schristos (get_dyn_name): Delete. 4208*377e23a2Schristos (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead 4209*377e23a2Schristos of struct elf64_hppa_dyn_hash_entry *. 4210*377e23a2Schristos (elf64_hppa_finalize_dlt, llocate_global_data_dlt, 4211*377e23a2Schristos allocate_global_data_plt, allocate_global_data_stub, 4212*377e23a2Schristos allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries): 4213*377e23a2Schristos Likewise. 4214*377e23a2Schristos (hppa64_link_hash_newfunc): New. 4215*377e23a2Schristos (elf64_hppa_hash_table_create): Rework. 4216*377e23a2Schristos (count_dyn_reloc): Likewise. 4217*377e23a2Schristos (hppa64_elf_local_refcounts): New. 4218*377e23a2Schristos (elf64_hppa_check_relocs): Rework using standard technique for recording 4219*377e23a2Schristos local DLT, PLT and OPD reference counts. 4220*377e23a2Schristos (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct 4221*377e23a2Schristos elf_link_hash_entry *. 4222*377e23a2Schristos (elf64_hppa_mark_exported_functions, allocate_global_data_dlt, 4223*377e23a2Schristos allocate_global_data_plt, allocate_global_data_stub, 4224*377e23a2Schristos allocate_global_data_opd, allocate_dynrel_entries, 4225*377e23a2Schristos elf64_hppa_adjust_dynamic_symbol, 4226*377e23a2Schristos elf64_hppa_mark_milli_and_exported_functions): Likewise. 4227*377e23a2Schristos (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections): 4228*377e23a2Schristos Use hppa_link_hash_table. Rework. 4229*377e23a2Schristos (elf64_hppa_link_output_symbol_hook): Rework. 4230*377e23a2Schristos (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd, 4231*377e23a2Schristos elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc, 4232*377e23a2Schristos elf64_hppa_finish_dynamic_sections): Likewise. 4233*377e23a2Schristos 4234*377e23a2Schristos2009-02-26 Christophe Lyon <christophe.lyon@st.com> 4235*377e23a2Schristos 4236*377e23a2Schristos * elf32-arm.c (stub_reloc_type): Removed. 4237*377e23a2Schristos (insn_sequence): Renamed reloc_type field to r_type. 4238*377e23a2Schristos (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub. 4239*377e23a2Schristos (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise. 4240*377e23a2Schristos (elf32_arm_stub_long_branch_thumb_only_pic): Likewise. 4241*377e23a2Schristos (elf32_arm_stub_type): Add new enum entries for the new stubs. 4242*377e23a2Schristos (arm_stub_is_thumb): Catch new stubs. 4243*377e23a2Schristos (arm_type_of_stub): Handle new stubs. 4244*377e23a2Schristos (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs. 4245*377e23a2Schristos (bfd_elf32_arm_process_before_allocation): Remove useless 4246*377e23a2Schristos condition. 4247*377e23a2Schristos 4248*377e23a2Schristos2009-02-25 H.J. Lu <hongjiu.lu@intel.com> 4249*377e23a2Schristos 4250*377e23a2Schristos * elf.c (elf_find_function): Use is_function_type to check 4251*377e23a2Schristos function symbol. 4252*377e23a2Schristos 4253*377e23a2Schristos2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com> 4254*377e23a2Schristos 4255*377e23a2Schristos * xtensa-modules.c: Revert to previous version 1.11 due 4256*377e23a2Schristos to inadvertant commit. 4257*377e23a2Schristos 4258*377e23a2Schristos2009-02-24 Sterling Augustine <sterling@tensilica.com> 4259*377e23a2Schristos 4260*377e23a2Schristos * elf32-xtensa.c (text_action_add): Separate test for action 4261*377e23a2Schristos type. Break if saved action is ta_widen_insn at same offset. 4262*377e23a2Schristos 4263*377e23a2Schristos2009-02-24 Daniel Jacobowitz <dan@codesourcery.com> 4264*377e23a2Schristos 4265*377e23a2Schristos * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename 4266*377e23a2Schristos to elf32_arm_stub_long_branch_any_arm_pic. 4267*377e23a2Schristos (elf32_arm_stub_long_branch_any_thumb_pic): New. 4268*377e23a2Schristos (enum elf32_arm_stub_type, arm_type_of_stub) 4269*377e23a2Schristos (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC 4270*377e23a2Schristos separately. 4271*377e23a2Schristos 4272*377e23a2Schristos2009-02-24 Joseph Myers <joseph@codesourcery.com> 4273*377e23a2Schristos 4274*377e23a2Schristos * elf32-arm.c (PREV_SEC): Update comment. 4275*377e23a2Schristos (group_sections): Rename argument to stubs_always_after_branch. 4276*377e23a2Schristos Reverse the list and place stubs at the end of input sections. 4277*377e23a2Schristos Undefine NEXT_SEC. 4278*377e23a2Schristos (elf32_arm_size_stubs): Update to use stubs_always_after_branch. 4279*377e23a2Schristos 4280*377e23a2Schristos2009-02-23 Daniel Jacobowitz <dan@codesourcery.com> 4281*377e23a2Schristos 4282*377e23a2Schristos * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset. 4283*377e23a2Schristos Fix formatting. 4284*377e23a2Schristos (arm_size_one_stub): Remove unnecessary break. 4285*377e23a2Schristos (arm_map_one_stub): Fix formatting. Return after BFD_FAIL. 4286*377e23a2Schristos 4287*377e23a2Schristos2009-02-23 Christophe Lyon <christophe.lyon@st.com> 4288*377e23a2Schristos 4289*377e23a2Schristos * elf32-arm.c (stub_insn_type): New type. 4290*377e23a2Schristos (stub_reloc_type): Likewise. 4291*377e23a2Schristos (insn_sequence): Likewise. 4292*377e23a2Schristos (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence. 4293*377e23a2Schristos (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise. 4294*377e23a2Schristos (elf32_arm_stub_long_branch_thumb_only): Likewise. 4295*377e23a2Schristos (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. 4296*377e23a2Schristos (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise. 4297*377e23a2Schristos (elf32_arm_stub_long_branch_any_any_pic): Likewise. 4298*377e23a2Schristos (elf32_arm_stub_hash_entry): Add new helper fields. 4299*377e23a2Schristos (stub_hash_newfunc): Initialize these new fields. 4300*377e23a2Schristos (arm_build_one_stub): Encode Arm and Thumb instructions separately 4301*377e23a2Schristos to take endianness into account. 4302*377e23a2Schristos (arm_size_one_stub): Compute size of stubs using insn_sequence. 4303*377e23a2Schristos (arm_map_one_stub): Code is now more generic, thanks to 4304*377e23a2Schristos insn_sequence. 4305*377e23a2Schristos 4306*377e23a2Schristos2009-02-23 Christophe Lyon <christophe.lyon@st.com> 4307*377e23a2Schristos 4308*377e23a2Schristos * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub 4309*377e23a2Schristos code. 4310*377e23a2Schristos (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. 4311*377e23a2Schristos (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when 4312*377e23a2Schristos BLX is not available. Fix typo in warning message. Add comments 4313*377e23a2Schristos and improve formatting. 4314*377e23a2Schristos (arm_build_one_stub): Adjust to new 4315*377e23a2Schristos elf32_arm_stub_long_branch_v4t_thumb_arm stub. 4316*377e23a2Schristos (arm_map_one_stub): Likewise. 4317*377e23a2Schristos 4318*377e23a2Schristos2009-02-23 Tristan Gingold <gingold@adacore.com> 4319*377e23a2Schristos Eric Botcazou <ebotcazou@adacore.com> 4320*377e23a2Schristos Douglas B Rupp <rupp@gnat.com> 4321*377e23a2Schristos 4322*377e23a2Schristos * vms.h: Update copyright year, fix comments, reorder declarations. 4323*377e23a2Schristos (_bfd_save_vms_section): Remove the prototype. 4324*377e23a2Schristos (EGPS_S_V_NO_SHIFT): New constant. 4325*377e23a2Schristos (bfd_vms_set_section_flags): New prototype. 4326*377e23a2Schristos (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New 4327*377e23a2Schristos constants. 4328*377e23a2Schristos (EGSY_S_W_FLAGS): Ditto. 4329*377e23a2Schristos (EGSY_S_V_QUAD_VAL): Ditto. 4330*377e23a2Schristos (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto. 4331*377e23a2Schristos (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX, 4332*377e23a2Schristos EGST_S_B_NAMLNG): Ditto. 4333*377e23a2Schristos (ESRF_S_B_NAMLNG): Ditto. 4334*377e23a2Schristos (ETIR_S_C_HEADER_SIZE): Ditto. 4335*377e23a2Schristos (EGPS_S_V_ALLOC_64BIT): Ditto. 4336*377e23a2Schristos (DST_S_C_EPILOG): Ditto. 4337*377e23a2Schristos (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto. 4338*377e23a2Schristos (DST_S_C_SRC_INCRLNUM_B): Ditto. 4339*377e23a2Schristos (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto. 4340*377e23a2Schristos (DST_S_L_PCLINE_UNSLONG): Ditto. 4341*377e23a2Schristos (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto 4342*377e23a2Schristos (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto 4343*377e23a2Schristos (DST_S_C_SOURCE_HEADER_SIZE): Ditto. 4344*377e23a2Schristos (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto. 4345*377e23a2Schristos (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto. 4346*377e23a2Schristos (DST_S_B_SRC_UNSBYTE): Ditto. 4347*377e23a2Schristos (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto. 4348*377e23a2Schristos Add prototypes. 4349*377e23a2Schristos (vms_section, vms_reloc): Remove types. 4350*377e23a2Schristos (hdr_struc): Replaced by ... 4351*377e23a2Schristos (hdr_struct): ... new type. 4352*377e23a2Schristos (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants. 4353*377e23a2Schristos (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto. 4354*377e23a2Schristos (EMH_DATE_LENGTH): Ditto. 4355*377e23a2Schristos (eom_struc): Replaced by ... 4356*377e23a2Schristos (eom_struct): ... new type. 4357*377e23a2Schristos (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants. 4358*377e23a2Schristos (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto. 4359*377e23a2Schristos (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto. 4360*377e23a2Schristos (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto. 4361*377e23a2Schristos (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto. 4362*377e23a2Schristos (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto. 4363*377e23a2Schristos (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto. 4364*377e23a2Schristos (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto. 4365*377e23a2Schristos (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto. 4366*377e23a2Schristos (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto. 4367*377e23a2Schristos (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto. 4368*377e23a2Schristos (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto. 4369*377e23a2Schristos (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto. 4370*377e23a2Schristos (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto. 4371*377e23a2Schristos (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto. 4372*377e23a2Schristos (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto. 4373*377e23a2Schristos (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto. 4374*377e23a2Schristos (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH) 4375*377e23a2Schristos (DBG_S_C_DMT_PSECT_SIZE): Ditto. 4376*377e23a2Schristos (enum file_type_enum): New type. 4377*377e23a2Schristos (struct location_struct): Removed. 4378*377e23a2Schristos (struct fileinfo, struct srecinfo, struct lineinfo): New types. 4379*377e23a2Schristos (struct funcinfo, struct module): Ditto. 4380*377e23a2Schristos (struct vms_private_data_struct): Update fields. 4381*377e23a2Schristos (struct vms_section_data_struct): New type. 4382*377e23a2Schristos 4383*377e23a2Schristos * vms.c: Update copyright year, fix comments, 4384*377e23a2Schristos Fix includes for DECC, add prototypes. 4385*377e23a2Schristos (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove 4386*377e23a2Schristos some initializers. 4387*377e23a2Schristos Use flavour to set is_vax, location_stack is removed. 4388*377e23a2Schristos (struct pair): Declare. 4389*377e23a2Schristos (fill_section_ptr): Initialize variables at declaration. 4390*377e23a2Schristos Add guard to set SECTION_SYM flag, handlde und section. 4391*377e23a2Schristos (vms_fixup_sections): Use struct pair for fill_section_ptr argument. 4392*377e23a2Schristos (_bfd_vms_slurp_object_records): New function, replaces previous 4393*377e23a2Schristos vms_object_p. 4394*377e23a2Schristos (vms_slurp_module): New function. 4395*377e23a2Schristos (vms_slurp_image): Ditto. 4396*377e23a2Schristos (vms_object_p): Complete rewrite. 4397*377e23a2Schristos (vms_mkobject): Use is_vax field to slect architecture. 4398*377e23a2Schristos (free_reloc_stream): New function. 4399*377e23a2Schristos (vms_convert_to_var): Ditto. 4400*377e23a2Schristos (vms_convert_to_var_1): Ditto. 4401*377e23a2Schristos (vms_convert_to_var_unix_filename): Ditto. 4402*377e23a2Schristos (vms_close_and_cleanup): Call free_reloc_stream, convert file to 4403*377e23a2Schristos VAR format on VMS. 4404*377e23a2Schristos (vms_new_section_hook): Set alignment to 0, allocate private data. 4405*377e23a2Schristos (vms_get_section_contents): Load content. 4406*377e23a2Schristos (vms_get_symbol_info): Handle undefined section. 4407*377e23a2Schristos (vms_find_nearest_line): Handle. 4408*377e23a2Schristos (alloc_reloc_stream): New function. 4409*377e23a2Schristos (vms_slurp_reloc_table): Ditto. 4410*377e23a2Schristos (vms_get_reloc_upper_bound): Make it real. 4411*377e23a2Schristos (vms_canonicalize_reloc): Do the real work. 4412*377e23a2Schristos (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA, 4413*377e23a2Schristos ALPHA_R_BOH. 4414*377e23a2Schristos (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH. 4415*377e23a2Schristos (vms_set_arch_mach): Check arch. 4416*377e23a2Schristos (vms_set_section_contents): Copy the content after allocation. 4417*377e23a2Schristos (vms_alpha_vec): Update object flags. 4418*377e23a2Schristos 4419*377e23a2Schristos * vms-tir.c: Update copyright year, fix comments, 4420*377e23a2Schristos add prototypes for new functions. 4421*377e23a2Schristos (dst_define_location): New function. 4422*377e23a2Schristos (dst_restore_location): New function. 4423*377e23a2Schristos (dst_retrieve_location): New function. 4424*377e23a2Schristos (dst_check_allocation): New function. 4425*377e23a2Schristos (image_dump): Call dst_check_allocation. 4426*377e23a2Schristos (image_write_b): Ditto. 4427*377e23a2Schristos (image_write_w): Ditto. 4428*377e23a2Schristos (image_write_l): Ditto. 4429*377e23a2Schristos (image_write_q): Ditto. 4430*377e23a2Schristos (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW, 4431*377e23a2Schristos STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC, 4432*377e23a2Schristos CTL_STKDL. 4433*377e23a2Schristos Call error handler instead of abort if name is not known. 4434*377e23a2Schristos (etir_sta): Add quarter_relocs argument and set it. 4435*377e23a2Schristos Fix cast. 4436*377e23a2Schristos (etir_sto): Ditto. 4437*377e23a2Schristos (etir_opr): Ditto, return FALSE in case of error. 4438*377e23a2Schristos (etir_ctl): Add quarter_relocs argument and set it, fix cast. 4439*377e23a2Schristos Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL. 4440*377e23a2Schristos (etir_stc): Add quarter_relocs argument and set it, fix cast. 4441*377e23a2Schristos Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA. 4442*377e23a2Schristos Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL. 4443*377e23a2Schristos Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS. 4444*377e23a2Schristos Return FALSE in case of error. 4445*377e23a2Schristos (tir_sta): Change sign of psect. 4446*377e23a2Schristos (tir_ctl): Ditto. 4447*377e23a2Schristos (tir_cmd): Fix cast. Makes tir_table static const. 4448*377e23a2Schristos (etir_cmd): Add quarter_relocs argument, makes etir_table const, 4449*377e23a2Schristos add argument to explain. 4450*377e23a2Schristos (analyze_etir): Initialize maxptr, add quarter_relocs 4451*377e23a2Schristos declaration, move some declarations into inner scopes. 4452*377e23a2Schristos Handle quarter_relocs and STO_IMM. 4453*377e23a2Schristos (_bfd_vms_slurp_tir): Use constant instead of hard-coded values. 4454*377e23a2Schristos (_bfd_vms_slurp_relocs): New function. 4455*377e23a2Schristos (_bfd_vms_decode_relocs): New function. 4456*377e23a2Schristos (sto_imm): Rewritten. 4457*377e23a2Schristos (start_first_etbt_record): New function. 4458*377e23a2Schristos (start_another_etbt_record): Ditto. 4459*377e23a2Schristos (etir_output_check): Ditto. 4460*377e23a2Schristos (defer_reloc_p): Ditto. 4461*377e23a2Schristos (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to 4462*377e23a2Schristos a for-loop. Correctly deals with contents, deals with .vmsdebug, 4463*377e23a2Schristos rewritte relocations handling. 4464*377e23a2Schristos (_bfd_vms_write_tbt): Removed. 4465*377e23a2Schristos (_bfd_vms_write_dbg): Ditto. 4466*377e23a2Schristos 4467*377e23a2Schristos * vms-misc.c: Update copyright year, Fix comments. 4468*377e23a2Schristos (_bfd_vms_get_header_values): Use 'size' instead of 'length'. 4469*377e23a2Schristos (maybe_adjust_record_pointer_for_object): New function. 4470*377e23a2Schristos (_bfd_vms_get_first_record): New function, replaces ... 4471*377e23a2Schristos (_bfd_vms_get_record): .. removed. 4472*377e23a2Schristos (_bfd_vms_get_object_record): New function. 4473*377e23a2Schristos (_bfd_vms_get_object_record): New function. 4474*377e23a2Schristos (vms_get_remaining_object_record): New function, replaces ... 4475*377e23a2Schristos (_bfd_vms_get_next_record): ... removed. 4476*377e23a2Schristos (add_new_contents): Removed. 4477*377e23a2Schristos (_bfd_save_vms_section): Removed. 4478*377e23a2Schristos (_bfd_get_vms_section): Removed. 4479*377e23a2Schristos (_bfd_vms_output_flush): Write in VAR format. 4480*377e23a2Schristos (new_symbol): Don't make UND section. 4481*377e23a2Schristos 4482*377e23a2Schristos * vms-hdr.c: Update copyright year, update list of record handled. 4483*377e23a2Schristos (_bfd_vms_slurp_hdr): rec_length renamed to rec_size. 4484*377e23a2Schristos (_bfd_vms_write_hdr): Strip vms and unix patches, 4485*377e23a2Schristos add comments, truncate module name at 31 characters, 4486*377e23a2Schristos use constants instead of hard-coded value, 4487*377e23a2Schristos write BFD version instead of a fixed string. 4488*377e23a2Schristos (_bfd_vms_slurp_ihd): New function. 4489*377e23a2Schristos (_bfd_vms_slurp_isd): Ditto. 4490*377e23a2Schristos (_bfd_vms_slurp_ihs): Ditto. 4491*377e23a2Schristos (new_module): Ditto. 4492*377e23a2Schristos (parse_module): Ditto 4493*377e23a2Schristos (build_module_list): Ditto. 4494*377e23a2Schristos (module_find_nearest_line): Ditto. 4495*377e23a2Schristos (_bfd_vms_find_nearest_dst_line): Ditto. 4496*377e23a2Schristos (vms_slurp_debug): Ditto. 4497*377e23a2Schristos (_bfd_vms_slurp_dbg): Ditto. 4498*377e23a2Schristos (_bfd_vms_slurp_tbt): Ditto. 4499*377e23a2Schristos (_bfd_vms_write_dbg): Ditto. 4500*377e23a2Schristos (_bfd_vms_write_tbt): Ditto. 4501*377e23a2Schristos 4502*377e23a2Schristos * vms-gsd.c: Update copyright year, update list of records handled. 4503*377e23a2Schristos (EVAX_LITERALS_NAME): New macro. 4504*377e23a2Schristos (evax_section_flags): Add an entry for EVAX_LITERALS_NAME. 4505*377e23a2Schristos (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd. 4506*377e23a2Schristos (register_universal_symbol): New function and prototype. 4507*377e23a2Schristos (_bfd_vms_slurp_gsd): Fix indentations and casts, 4508*377e23a2Schristos improve debug messages, 4509*377e23a2Schristos use constants instead of hard-coded value, 4510*377e23a2Schristos fix missing endianness conversion, 4511*377e23a2Schristos handle global symbol (SYMG). 4512*377e23a2Schristos (bfd_vms_set_section_flags): New function. 4513*377e23a2Schristos (_bfd_vms_write_gsd): Don't write .vmsdebug section, 4514*377e23a2Schristos handle section literals, 4515*377e23a2Schristos fix indentation, 4516*377e23a2Schristos handle section bfd and vms flags, 4517*377e23a2Schristos don't output LIB$INITIALIZE symbol, 4518*377e23a2Schristos fix handling of weak symbols, 4519*377e23a2Schristos fix evax vs vax procedure descriptor, 4520*377e23a2Schristos handle absolute symbols. 4521*377e23a2Schristos 4522*377e23a2Schristos * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR, 4523*377e23a2Schristos BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations. 4524*377e23a2Schristos 4525*377e23a2Schristos * makefile.vms (DEFS): Fix flags for VMS. 4526*377e23a2Schristos 4527*377e23a2Schristos * bfdio.c (real_fopen): Handle multiple VMS fopen attributes. 4528*377e23a2Schristos 4529*377e23a2Schristos * bfd-in2.h: Regenerated. 4530*377e23a2Schristos * libbfd.h: Regenerated. 4531*377e23a2Schristos 4532*377e23a2Schristos2009-02-20 Cary Coutant <ccoutant@google.com> 4533*377e23a2Schristos 4534*377e23a2Schristos * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime 4535*377e23a2Schristos in struct stat. 4536*377e23a2Schristos 4537*377e23a2Schristos2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com> 4538*377e23a2Schristos 4539*377e23a2Schristos PR gas/7059 4540*377e23a2Schristos * coffcode.h (coff_write_object_contents): Don't let the string 4541*377e23a2Schristos table offset overflow the s_name field when using long section names. 4542*377e23a2Schristos 4543*377e23a2Schristos2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com> 4544*377e23a2Schristos 4545*377e23a2Schristos * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which 4546*377e23a2Schristos control long section name handling with ECOFF_NO_LONG_SECTION_NAMES. 4547*377e23a2Schristos * coff-mips.c (mips_ecoff_backend_data): Likewise. 4548*377e23a2Schristos * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which 4549*377e23a2Schristos control long section name handling with XCOFF_NO_LONG_SECTION_NAMES. 4550*377e23a2Schristos (bfd_pmac_xcoff_backend_data): Likewise. 4551*377e23a2Schristos * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise. 4552*377e23a2Schristos (bfd_xcoff_aix5_backend_data): Likewise. 4553*377e23a2Schristos (xcoff64_write_object_contents): Delete unused long_section_names 4554*377e23a2Schristos local variable. 4555*377e23a2Schristos * coff-sh.c (bfd_coff_small_swap_table): Initialise long section 4556*377e23a2Schristos name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire 4557*377e23a2Schristos struct non-const. 4558*377e23a2Schristos * coffcode.h (documentation): Update to describe long section names. 4559*377e23a2Schristos (COFFLONGSECTIONCATHELPER): New helper macro. 4560*377e23a2Schristos (BLANKOR1TOODD): Likewise. 4561*377e23a2Schristos (COFF_ENABLE_LONG_SECTION_NAMES): Likewise. 4562*377e23a2Schristos (COFF_LONG_SECTION_NAMES_SETTER): Likewise. 4563*377e23a2Schristos (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise. 4564*377e23a2Schristos (bfd_coff_set_long_section_names_allowed): New function. 4565*377e23a2Schristos (bfd_coff_set_long_section_names_disallowed): Likewise. 4566*377e23a2Schristos (struct bfd_coff_backend_data): Add new backend hook function 4567*377e23a2Schristos pointer _bfd_coff_set_long_section_names. 4568*377e23a2Schristos (bfd_coff_set_long_section_names): New backend hook. 4569*377e23a2Schristos (coff_write_object_contents): Only generate long section names if 4570*377e23a2Schristos bfd_coff_long_section_names() indicates they are currently enabled. 4571*377e23a2Schristos (bfd_coff_std_swap_table): Make non-const, and initialise long 4572*377e23a2Schristos section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. 4573*377e23a2Schristos (ticoff0_swap_table): Likewise to both. 4574*377e23a2Schristos (ticoff1_swap_table): Again, likewise to both. 4575*377e23a2Schristos * coffgen.c (make_a_section_from_file): Allow long section names 4576*377e23a2Schristos as inputs even if not currently allowed for outputs. 4577*377e23a2Schristos * ecoff.c (_bfd_ecoff_no_long_sections): New function. 4578*377e23a2Schristos * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank. 4579*377e23a2Schristos * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. 4580*377e23a2Schristos * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. 4581*377e23a2Schristos * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. 4582*377e23a2Schristos * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. 4583*377e23a2Schristos * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. 4584*377e23a2Schristos * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. 4585*377e23a2Schristos * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. 4586*377e23a2Schristos * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. 4587*377e23a2Schristos * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise. 4588*377e23a2Schristos * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise. 4589*377e23a2Schristos * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise. 4590*377e23a2Schristos * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise. 4591*377e23a2Schristos * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise. 4592*377e23a2Schristos * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise. 4593*377e23a2Schristos * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. 4594*377e23a2Schristos * libcoff-in.h: Update copyright year to cause updated copyright 4595*377e23a2Schristos year in generated libcoff.h, and fix typo. 4596*377e23a2Schristos * libcoff.h: Regenerated. 4597*377e23a2Schristos * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro. 4598*377e23a2Schristos (_bfd_ecoff_no_long_sections): Add prototype. 4599*377e23a2Schristos * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro. 4600*377e23a2Schristos * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already 4601*377e23a2Schristos defined by an including .c file. 4602*377e23a2Schristos * ticoff.h (ticoff0_swap_table): Make non-const, and initialise 4603*377e23a2Schristos long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. 4604*377e23a2Schristos (ticoff1_swap_table): Likewise to both. 4605*377e23a2Schristos 4606*377e23a2Schristos2009-02-18 Christophe Lyon <christophe.lyon@st.com> 4607*377e23a2Schristos 4608*377e23a2Schristos * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic 4609*377e23a2Schristos stub. Catch default case error. 4610*377e23a2Schristos (arm_map_one_stub): Add missing Thumb mapping symbol. 4611*377e23a2Schristos 4612*377e23a2Schristos2009-02-18 Bjoern Haase <bjoern.m.haase@web.de> 4613*377e23a2Schristos 4614*377e23a2Schristos PR 9841 4615*377e23a2Schristos * elf32-avr.c: Handle case where no local symbos exist correctly. 4616*377e23a2Schristos 4617*377e23a2Schristos2009-02-16 Christophe Lyon <christophe.lyon@st.com> 4618*377e23a2Schristos 4619*377e23a2Schristos bfd/ 4620*377e23a2Schristos * elf32-arm.c (arm_long_branch_stub, 4621*377e23a2Schristos arm_thumb_v4t_long_branch_stub, 4622*377e23a2Schristos arm_thumb_thumb_long_branch_stub, 4623*377e23a2Schristos arm_thumb_arm_v4t_long_branch_stub, 4624*377e23a2Schristos arm_thumb_arm_v4t_short_branch_stub, 4625*377e23a2Schristos arm_pic_long_branch_stub): 4626*377e23a2Schristos Renamed to elf32_arm_stub_long_branch_any_any, 4627*377e23a2Schristos elf32_arm_stub_long_branch_v4t_arm_thumb, 4628*377e23a2Schristos elf32_arm_stub_long_branch_thumb_only, 4629*377e23a2Schristos elf32_arm_stub_long_branch_v4t_thumb_arm, 4630*377e23a2Schristos elf32_arm_stub_short_branch_v4t_thumb_arm, 4631*377e23a2Schristos elf32_arm_stub_long_branch_any_any_pic. 4632*377e23a2Schristos (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch, 4633*377e23a2Schristos arm_thumb_thumb_stub_long_branch, 4634*377e23a2Schristos arm_thumb_arm_v4t_stub_long_branch, 4635*377e23a2Schristos arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch): 4636*377e23a2Schristos Renamed to arm_stub_long_branch_any_any, 4637*377e23a2Schristos arm_stub_long_branch_v4t_arm_thumb, 4638*377e23a2Schristos arm_stub_long_branch_thumb_only, 4639*377e23a2Schristos arm_stub_long_branch_v4t_thumb_arm, 4640*377e23a2Schristos arm_stub_short_branch_v4t_thumb_arm, 4641*377e23a2Schristos arm_stub_long_branch_any_any_pic. 4642*377e23a2Schristos 4643*377e23a2Schristos2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4644*377e23a2Schristos 4645*377e23a2Schristos * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used 4646*377e23a2Schristos in branch offset check. 4647*377e23a2Schristos 4648*377e23a2Schristos2009-02-15 Alan Modra <amodra@bigpond.net.au> 4649*377e23a2Schristos 4650*377e23a2Schristos * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx, 4651*377e23a2Schristos add toc.symndx and toc.add. 4652*377e23a2Schristos (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here. 4653*377e23a2Schristos Set up toc.add. 4654*377e23a2Schristos (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all 4655*377e23a2Schristos callers. 4656*377e23a2Schristos (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd. 4657*377e23a2Schristos (branch_reloc_hash_match): New function, extracted from.. 4658*377e23a2Schristos (ppc64_elf_tls_optimize): ..here. 4659*377e23a2Schristos (ppc64_elf_relocate_section): Properly set addends when optimizing 4660*377e23a2Schristos tls sequences. Avoid unnecessary reading and writing of insns. 4661*377e23a2Schristos Only redo reloc when symbol changed. Bypass symbol checks when 4662*377e23a2Schristos using tlsld_got. 4663*377e23a2Schristos * elf32-ppc.c (ppc_elf_tls_setup): Correct comment. 4664*377e23a2Schristos (branch_reloc_hash_match): New function, extracted from.. 4665*377e23a2Schristos (ppc_elf_tls_optimize): ..here. 4666*377e23a2Schristos (ppc_elf_relocate_section): Avoid unnecessary reading of insns. 4667*377e23a2Schristos Don't clear addend on zapped __tls_get_addr reloc. 4668*377e23a2Schristos 4669*377e23a2Schristos2009-02-12 Nick Clifton <nickc@redhat.com> 4670*377e23a2Schristos 4671*377e23a2Schristos PR 9827 4672*377e23a2Schristos * elflink.c (bfd_elf_final_link): When counting the relocations, 4673*377e23a2Schristos if the header size has not been set yet then assume that it will 4674*377e23a2Schristos match the output section's reloc type. 4675*377e23a2Schristos 4676*377e23a2Schristos2009-02-12 Nathan Sidwell <nathan@codesourcery.com> 4677*377e23a2Schristos 4678*377e23a2Schristos * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for 4679*377e23a2Schristos relocatable link. 4680*377e23a2Schristos 4681*377e23a2Schristos2009-02-09 Alan Modra <amodra@bigpond.net.au> 4682*377e23a2Schristos 4683*377e23a2Schristos * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors. 4684*377e23a2Schristos (find_function): Likewise. 4685*377e23a2Schristos (pasted_function): Don't error if no prior function found. 4686*377e23a2Schristos (discover_functions): Revert 2008-12-10 change. Extend first 4687*377e23a2Schristos function range to start of section. 4688*377e23a2Schristos 4689*377e23a2Schristos2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4690*377e23a2Schristos 4691*377e23a2Schristos * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert 4692*377e23a2Schristos functions to C90. 4693*377e23a2Schristos * elf64-hppa.h: Likewise. 4694*377e23a2Schristos 4695*377e23a2Schristos2009-02-06 Joseph Myers <joseph@codesourcery.com> 4696*377e23a2Schristos 4697*377e23a2Schristos * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special 4698*377e23a2Schristos .sbss handling. 4699*377e23a2Schristos 4700*377e23a2Schristos2009-02-04 Alan Modra <amodra@bigpond.net.au> 4701*377e23a2Schristos 4702*377e23a2Schristos * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize. 4703*377e23a2Schristos Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*. 4704*377e23a2Schristos 4705*377e23a2Schristos2009-02-03 Sandip Matte <sandip@rmicorp.com> 4706*377e23a2Schristos 4707*377e23a2Schristos * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr. 4708*377e23a2Schristos * archures.c (bfd_mach_mips_xlr): Define. 4709*377e23a2Schristos * bfd-in2.h: Regenerate. 4710*377e23a2Schristos * cpu-mips.c (I_xlr): Define. 4711*377e23a2Schristos (arch_info_struct): Add XLR entry. 4712*377e23a2Schristos * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR. 4713*377e23a2Schristos (mips_set_isa_flags): Handle bfd_mach_mips_xlr 4714*377e23a2Schristos (mips_mach_extensions): Add XLR entry. 4715*377e23a2Schristos 4716*377e23a2Schristos2009-02-03 Eric B. Weddington <eric.weddington@atmel.com> 4717*377e23a2Schristos 4718*377e23a2Schristos * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound. 4719*377e23a2Schristos 4720*377e23a2Schristos2009-02-03 Carlos O'Donell <carlos@codesourcery.com> 4721*377e23a2Schristos 4722*377e23a2Schristos * configure.in: AC_SUBST pdfdir. 4723*377e23a2Schristos * Makefile.am: Add install-pdf, install-pdf-am 4724*377e23a2Schristos and install-pdf-recursive targets. Define pdfdir. 4725*377e23a2Schristos * doc/Makefile.am: Define pdf__strip_dir. Add 4726*377e23a2Schristos install-pdf and install-pdf-am targets. 4727*377e23a2Schristos * po/Make-in: Add install-pdf target. 4728*377e23a2Schristos * configure: Regenerate. 4729*377e23a2Schristos * Makefile.in: Regenerate 4730*377e23a2Schristos * doc/Makefile.in: Regenerate. 4731*377e23a2Schristos 4732*377e23a2Schristos2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com> 4733*377e23a2Schristos 4734*377e23a2Schristos * bfd-in2.h: Regenerate. 4735*377e23a2Schristos * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and 4736*377e23a2Schristos fields from n_entries to n_slots where appropriate, update comments. 4737*377e23a2Schristos (HOWTO): Add TLS relocations. 4738*377e23a2Schristos (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*. 4739*377e23a2Schristos (enum elf_m68k_got_offset_size): New enum. 4740*377e23a2Schristos (struct elf_m68k_got_entry.type): Move field to ... 4741*377e23a2Schristos (struct elf_m68k_got_entry_key): ... here. Update all uses. 4742*377e23a2Schristos (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static 4743*377e23a2Schristos functions. 4744*377e23a2Schristos (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static 4745*377e23a2Schristos functions. 4746*377e23a2Schristos (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries 4747*377e23a2Schristos fields into n_entries array. Update comments. 4748*377e23a2Schristos (elf_m68k_init_got): Simplify, update all uses. 4749*377e23a2Schristos (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update. 4750*377e23a2Schristos (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot 4751*377e23a2Schristos GOT entries; update name, update all uses. 4752*377e23a2Schristos (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto. 4753*377e23a2Schristos (elf_m68k_get_got_entry): Update. 4754*377e23a2Schristos (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries, 4755*377e23a2Schristos simplify. 4756*377e23a2Schristos (elf_m68k_remove_got_entry_type): Simplify. 4757*377e23a2Schristos (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update. 4758*377e23a2Schristos (elf_m68k_can_merge_gots): Update. 4759*377e23a2Schristos (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update. 4760*377e23a2Schristos (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot 4761*377e23a2Schristos GOT entries, simplify. 4762*377e23a2Schristos (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same. 4763*377e23a2Schristos (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff 4764*377e23a2Schristos field, remove obsoleted local_n_entries field. 4765*377e23a2Schristos (elf_m68k_partition_multi_got_2): New static function. 4766*377e23a2Schristos (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it; 4767*377e23a2Schristos update. 4768*377e23a2Schristos (elf_m68k_remove_got_entry_type): Update. 4769*377e23a2Schristos (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. 4770*377e23a2Schristos (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary 4771*377e23a2Schristos update of sgot->size and srelgot->size. 4772*377e23a2Schristos (elf_m68k_gc_sweep_hook): Update. 4773*377e23a2Schristos (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. 4774*377e23a2Schristos (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle 4775*377e23a2Schristos TLS relocations. 4776*377e23a2Schristos * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations. 4777*377e23a2Schristos * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*. 4778*377e23a2Schristos 4779*377e23a2Schristos2009-02-02 DJ Delorie <dj@redhat.com> 4780*377e23a2Schristos 4781*377e23a2Schristos * elf32-mep.c (config_names): Regenerate configuration. 4782*377e23a2Schristos 4783*377e23a2Schristos2009-02-02 Alan Modra <amodra@bigpond.net.au> 4784*377e23a2Schristos 4785*377e23a2Schristos * elf-bfd.h (bfd_elf_get_str_section): Don't declare. 4786*377e23a2Schristos (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise. 4787*377e23a2Schristos * elf.c (bfd_elf_get_str_section): Make static. 4788*377e23a2Schristos (bfd_elf_find_section): Delete. 4789*377e23a2Schristos * libbfd.h: Regenerate. 4790*377e23a2Schristos 4791*377e23a2Schristos2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> 4792*377e23a2Schristos 4793*377e23a2Schristos * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove. 4794*377e23a2Schristos (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs. 4795*377e23a2Schristos 4796*377e23a2Schristos2009-01-31 Alan Modra <amodra@bigpond.net.au> 4797*377e23a2Schristos 4798*377e23a2Schristos * elflink.c (on_needed_list): New function. 4799*377e23a2Schristos (elf_link_add_object_symbols): Link in --as-needed libs if they 4800*377e23a2Schristos satisfy undefined symbols in other libs. 4801*377e23a2Schristos 4802*377e23a2Schristos2009-01-30 Julian Brown <julian@codesourcery.com> 4803*377e23a2Schristos 4804*377e23a2Schristos * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with 4805*377e23a2Schristos EXEC_P or DYNAMIC flags, and skip sections which are being linked 4806*377e23a2Schristos with --just-symbols (-R). 4807*377e23a2Schristos 4808*377e23a2Schristos2009-01-29 Adam Nemet <anemet@caviumnetworks.com> 4809*377e23a2Schristos 4810*377e23a2Schristos * dwarf2.c (read_rangelist): Use read_address to read low_pc and 4811*377e23a2Schristos high_pc in order to properly sign-extend VMAs. 4812*377e23a2Schristos 4813*377e23a2Schristos2009-01-29 Daniel Jacobowitz <dan@codesourcery.com> 4814*377e23a2Schristos Mark Shinwell <shinwell@codesourcery.com> 4815*377e23a2Schristos Catherine Moore <clm@codesourcery.com> 4816*377e23a2Schristos 4817*377e23a2Schristos * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments. 4818*377e23a2Schristos 4819*377e23a2Schristos2009-01-28 Catherine Moore <clm@codesourcery.com> 4820*377e23a2Schristos 4821*377e23a2Schristos * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and 4822*377e23a2Schristos SEC_LOAD for dynamic relocation sections. 4823*377e23a2Schristos 4824*377e23a2Schristos2009-01-27 Hans-Peter Nilsson <hp@axis.com> 4825*377e23a2Schristos 4826*377e23a2Schristos * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table 4827*377e23a2Schristos (info)->tls_size, not elf_hash_table (info)->tls_sec->size for 4828*377e23a2Schristos the size of local TLS data. 4829*377e23a2Schristos 4830*377e23a2Schristos2009-01-27 Andreas Schwab <schwab@suse.de> 4831*377e23a2Schristos 4832*377e23a2Schristos * mach-o.c (bfd_mach_o_archive_p): Restrict the number of 4833*377e23a2Schristos architectures in the archive. 4834*377e23a2Schristos 4835*377e23a2Schristos2009-01-27 Hans-Peter Nilsson <hp@axis.com> 4836*377e23a2Schristos 4837*377e23a2Schristos * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL> 4838*377e23a2Schristos <R_CRIS_32_DTPREL>: Correct relocation value. 4839*377e23a2Schristos 4840*377e23a2Schristos * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8> 4841*377e23a2Schristos <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined 4842*377e23a2Schristos symbols with non-default visibility. 4843*377e23a2Schristos 4844*377e23a2Schristos2009-01-26 Nathan Sidwell <nathan@codesourcery.com> 4845*377e23a2Schristos 4846*377e23a2Schristos * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs 4847*377e23a2Schristos describing the trampolines. 4848*377e23a2Schristos (ppc_elf_relocate_section): Update relocs to describe the 4849*377e23a2Schristos trampolines. 4850*377e23a2Schristos 4851*377e23a2Schristos2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4852*377e23a2Schristos 4853*377e23a2Schristos * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that 4854*377e23a2Schristos branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F 4855*377e23a2Schristos and R_PARISC_PCREL12F relocations. 4856*377e23a2Schristos 4857*377e23a2Schristos2009-01-24 Alan Modra <amodra@bigpond.net.au> 4858*377e23a2Schristos 4859*377e23a2Schristos PR 6022 4860*377e23a2Schristos * elflink.c (find_version_for_sym): New function split out from, 4861*377e23a2Schristos but without export_dynamic test, .. 4862*377e23a2Schristos (_bfd_elf_link_assign_sym_version): ..here. 4863*377e23a2Schristos (_bfd_elf_export_symbol): Use it. 4864*377e23a2Schristos 4865*377e23a2Schristos2009-01-23 Alan Modra <amodra@bigpond.net.au> 4866*377e23a2Schristos 4867*377e23a2Schristos * elf-bfd.h (struct elf_assign_sym_version_info): Delete. 4868*377e23a2Schristos (struct elf_info_failed, struct elf_find_verdep_info): Move to.. 4869*377e23a2Schristos * elflink.c: ..here, somewhat modified. 4870*377e23a2Schristos * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol, 4871*377e23a2Schristos _bfd_elf_link_find_version_dependencies, 4872*377e23a2Schristos _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section, 4873*377e23a2Schristos _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol, 4874*377e23a2Schristos _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't 4875*377e23a2Schristos declare.. 4876*377e23a2Schristos * elflink.c: ..and make static here. 4877*377e23a2Schristos (_bfd_elf_link_find_version_dependencies): Adjust for removal 4878*377e23a2Schristos of output_bfd from struct elf_find_verdep_info. 4879*377e23a2Schristos (_bfd_elf_link_assign_sym_version): Similarly adjust to use 4880*377e23a2Schristos struct elf_info_failed. 4881*377e23a2Schristos (bfd_elf_size_dynamic_sections): Adjust. 4882*377e23a2Schristos 4883*377e23a2Schristos2009-01-22 Alan Modra <amodra@bigpond.net.au> 4884*377e23a2Schristos 4885*377e23a2Schristos PR 6832 4886*377e23a2Schristos * dwarf2.c (find_line): Don't update stash->sec_info_ptr until 4887*377e23a2Schristos after comp_unit_find_line call. 4888*377e23a2Schristos 4889*377e23a2Schristos2009-01-21 Nick Clifton <nickc@redhat.com> 4890*377e23a2Schristos 4891*377e23a2Schristos PR 9769 4892*377e23a2Schristos * vmsutil.c (vms_file_stats_name): Remove use of unsupported 4893*377e23a2Schristos tm_gmtoff field in struct tm. 4894*377e23a2Schristos 4895*377e23a2Schristos2009-01-21 Alan Modra <amodra@bigpond.net.au> 4896*377e23a2Schristos 4897*377e23a2Schristos * elf32-spu.h (struct spu_elf_params): Add non_ia_text. 4898*377e23a2Schristos * elf32-spu.c (mark_overlay_section): Only include .text.ia.* 4899*377e23a2Schristos sections in soft-icache lines unless non_ia_text. Don't add 4900*377e23a2Schristos rodata if doing so would exceed line size. 4901*377e23a2Schristos 4902*377e23a2Schristos2009-01-19 Hans-Peter Nilsson <hp@axis.com> 4903*377e23a2Schristos 4904*377e23a2Schristos * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol 4905*377e23a2Schristos types than bfd_link_hash_indirect, before early return, call 4906*377e23a2Schristos _bfd_elf_link_hash_copy_indirect. 4907*377e23a2Schristos 4908*377e23a2Schristos2009-01-19 Andrew Stubbs <ams@codesourcery.com> 4909*377e23a2Schristos 4910*377e23a2Schristos * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering. 4911*377e23a2Schristos * elf-bfd.h (elf_backend_data): Add obj_attrs_order. 4912*377e23a2Schristos * elf32-arm.c (elf32_arm_obj_attrs_order): New function. 4913*377e23a2Schristos (elf_backend_obj_attrs_order): New define. 4914*377e23a2Schristos * elfxx-target.h (elf_backend_obj_attrs_order): New define. 4915*377e23a2Schristos (elfNN_bed): Add elf_backend_obj_attrs_order. 4916*377e23a2Schristos 4917*377e23a2Schristos2009-01-19 Andrew Stubbs <ams@codesourcery.com> 4918*377e23a2Schristos 4919*377e23a2Schristos * elf-attrs.c (is_default_attr): Substitute magic numbers with macros. 4920*377e23a2Schristos (obj_attr_size): Likewise. 4921*377e23a2Schristos (write_obj_attribute): Likewise. 4922*377e23a2Schristos (_bfd_elf_copy_obj_attributes): Likewise. 4923*377e23a2Schristos (_bfd_elf_parse_attributes): Likewise. 4924*377e23a2Schristos * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define. 4925*377e23a2Schristos (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines. 4926*377e23a2Schristos (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines. 4927*377e23a2Schristos (ATTR_TYPE_HAS_NO_DEFAULT): New define. 4928*377e23a2Schristos * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers 4929*377e23a2Schristos with macros. 4930*377e23a2Schristos 4931*377e23a2Schristos2009-01-19 Andrew Stubbs <ams@codesourcery.com> 4932*377e23a2Schristos 4933*377e23a2Schristos * elf-attrs.c (is_default_attr): Support defaultless attributes. 4934*377e23a2Schristos (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type. 4935*377e23a2Schristos (bfd_elf_add_obj_attr_string): Likewise. 4936*377e23a2Schristos (bfd_elf_add_obj_attr_int_string): Likewise. 4937*377e23a2Schristos (_bfd_elf_parse_attributes): Allow for unknown flag bits in type. 4938*377e23a2Schristos * elf-bfd.h (struct obj_attribute): Document new flag bit. 4939*377e23a2Schristos * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that 4940*377e23a2Schristos Tag_nodefaults has no default value. 4941*377e23a2Schristos (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults 4942*377e23a2Schristos comment to reflect the new state. 4943*377e23a2Schristos 4944*377e23a2Schristos2009-01-19 Alan Modra <amodra@bigpond.net.au> 4945*377e23a2Schristos 4946*377e23a2Schristos PR 9695 4947*377e23a2Schristos * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC. 4948*377e23a2Schristos (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC. 4949*377e23a2Schristos (adjust_z_magix): Delete dead code handling QMAGIC. 4950*377e23a2Schristos 4951*377e23a2Schristos2009-01-16 Kai Tietz <kai.tietz@onevision.com> 4952*377e23a2Schristos 4953*377e23a2Schristos * coffcode.h (styp_to_sec_flags): Correct interpretation of 4954*377e23a2Schristos IMAGE_SCN_MEM_DISCARDABLE. 4955*377e23a2Schristos 4956*377e23a2Schristos2009-01-16 Alan Modra <amodra@bigpond.net.au> 4957*377e23a2Schristos 4958*377e23a2Schristos * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute 4959*377e23a2Schristos SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS. 4960*377e23a2Schristos * configure.in (commonbfdlib): Delete. 4961*377e23a2Schristos (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/ 4962*377e23a2Schristos (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such 4963*377e23a2Schristos is available, not just for linux. 4964*377e23a2Schristos * po/SRC-POTFILES.in: Regenerate. 4965*377e23a2Schristos * Makefile.in: Regenerate. 4966*377e23a2Schristos * configure: Regenerate. 4967*377e23a2Schristos 4968*377e23a2Schristos2009-01-15 Andrew Stubbs <ams@codesourcery.com> 4969*377e23a2Schristos Julian Brown <julian@codesourcery.com> 4970*377e23a2Schristos 4971*377e23a2Schristos * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known 4972*377e23a2Schristos ARM attributes in ABI 2.07. 4973*377e23a2Schristos * elf32-arm.c (get_secondary_compatible_arch): New function. 4974*377e23a2Schristos (set_secondary_compatible_arch): New function. 4975*377e23a2Schristos (tag_cpu_arch_combine): New function. 4976*377e23a2Schristos (elf32_arm_copy_one_eabi_other_attribute): Delete function. 4977*377e23a2Schristos (elf32_arm_copy_eabi_other_attribute_list): Delete function. 4978*377e23a2Schristos (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to 4979*377e23a2Schristos make it fit with order_01243. 4980*377e23a2Schristos Add support for Tag_also_compatible_with, 4981*377e23a2Schristos Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use, 4982*377e23a2Schristos Tag_MPextension_use, Tag_nodefaults and Tag_conformance. 4983*377e23a2Schristos Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name, 4984*377e23a2Schristos Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension, 4985*377e23a2Schristos Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed, 4986*377e23a2Schristos Tag_VFP_arch and Tag_ABI_FP_16bit_format. 4987*377e23a2Schristos Rework the way unknown attributes are handled. 4988*377e23a2Schristos Defer errors until all attributes have been processed. 4989*377e23a2Schristos 4990*377e23a2Schristos2009-01-15 Andrew Stubbs <ams@codesourcery.com> 4991*377e23a2Schristos 4992*377e23a2Schristos * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to 4993*377e23a2Schristos bfd_elf_add_obj_attr_int_string. 4994*377e23a2Schristos Read Tag_compatibility from its new location in the attribute array, 4995*377e23a2Schristos rather than the attribute list. 4996*377e23a2Schristos (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat -> 4997*377e23a2Schristos bfd_elf_add_obj_attr_int_string. 4998*377e23a2Schristos (_bfd_elf_parse_attributes): Likewise. 4999*377e23a2Schristos (_bfd_elf_merge_object_attributes): There's now only one 5000*377e23a2Schristos Tag_compatibility, and it's in the array, not the list. 5001*377e23a2Schristos * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include 5002*377e23a2Schristos Tag_compatibility. 5003*377e23a2Schristos (bfd_elf_add_obj_attr_compat): Rename to 5004*377e23a2Schristos bfd_elf_add_obj_attr_int_string. 5005*377e23a2Schristos (bfd_elf_add_proc_attr_compat): Rename to 5006*377e23a2Schristos bfd_elf_add_proc_attr_int_string. 5007*377e23a2Schristos * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle 5008*377e23a2Schristos Tag_compatibility. 5009*377e23a2Schristos 5010*377e23a2Schristos2009-01-15 Douglas B Rupp <rupp@gnat.com> 5011*377e23a2Schristos 5012*377e23a2Schristos * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo 5013*377e23a2Schristos (BFD32_BACKENDS_CFILES): Add new file vmsutil.c 5014*377e23a2Schristos (vmsutil.lo): Add dependency rule. 5015*377e23a2Schristos * Makefile.in: Regenerate. 5016*377e23a2Schristos * config.bfd (ia64*-*-*vms*): Add case. 5017*377e23a2Schristos * configure.in (bfd_elf64_ia64_vms_vec): Add case. 5018*377e23a2Schristos * configure: Regenerate. 5019*377e23a2Schristos * vmsutil.c: New file. 5020*377e23a2Schristos * vmsutil.h: New file. 5021*377e23a2Schristos * elf-bfd.h (struct bfd_elf_special_section): Change type of 5022*377e23a2Schristos attr to bfd_vma. 5023*377e23a2Schristos * elfxx-ia64.c (elfNN_vms_post_process_headers, 5024*377e23a2Schristos elfNN_vms_section_processing, elfNN_vms_final_write_processing, 5025*377e23a2Schristos elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr, 5026*377e23a2Schristos elfNN_vms_object_p): New functions 5027*377e23a2Schristos * targets.c (bfd_elf64_ia64_vms_vec): New target. 5028*377e23a2Schristos 5029*377e23a2Schristos2009-01-14 H.J. Lu <hongjiu.lu@intel.com> 5030*377e23a2Schristos 5031*377e23a2Schristos PR ld/9727 5032*377e23a2Schristos * elflink.c (elf_gc_sweep): Exclude the group section if the 5033*377e23a2Schristos first member of the section group is excluded. 5034*377e23a2Schristos 5035*377e23a2Schristos2009-01-14 Alan Modra <amodra@bigpond.net.au> 5036*377e23a2Schristos 5037*377e23a2Schristos PR 9735 5038*377e23a2Schristos * syms.c (_bfd_stab_section_find_nearest_line): Don't free 5039*377e23a2Schristos saved filename, use bfd_alloc rather than bfd_malloc for it. 5040*377e23a2Schristos 5041*377e23a2Schristos2009-01-13 Alan Modra <amodra@bigpond.net.au> 5042*377e23a2Schristos 5043*377e23a2Schristos * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. 5044*377e23a2Schristos 5045*377e23a2Schristos2009-01-13 Alan Modra <amodra@bigpond.net.au> 5046*377e23a2Schristos 5047*377e23a2Schristos * elf32-spu.c (remove_cycles): Always set call->max_depth. 5048*377e23a2Schristos 5049*377e23a2Schristos2009-01-12 Alan Modra <amodra@bigpond.net.au> 5050*377e23a2Schristos 5051*377e23a2Schristos * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. 5052*377e23a2Schristos 5053*377e23a2Schristos2009-01-12 Alan Modra <amodra@bigpond.net.au> 5054*377e23a2Schristos 5055*377e23a2Schristos * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2, 5056*377e23a2Schristos num_lines_log2. 5057*377e23a2Schristos (struct got_entry): Add br_addr. 5058*377e23a2Schristos (struct call_info): Add priority. 5059*377e23a2Schristos (struct function_info): Add lr_store and sp_adjust. 5060*377e23a2Schristos (spu_elf_setup): Init line_size_log2 and num_lines_log2. 5061*377e23a2Schristos (spu_elf_find_overlays): For soft-icache, mark any section within cache 5062*377e23a2Schristos area as an overlay, and check that no other overlays exist. Look up 5063*377e23a2Schristos icache overlay manager entry sym. 5064*377e23a2Schristos (BRA_STUBS, BRA, BRASL): Define. 5065*377e23a2Schristos (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub. 5066*377e23a2Schristos (needs_ovl_stub): Adjust for soft-icache. Return priority encoded 5067*377e23a2Schristos in branch insn. 5068*377e23a2Schristos (count_stub, build_stub): Support soft-icache. 5069*377e23a2Schristos (build_spuear_stubs, process_stubs): Adjust build_stub call. 5070*377e23a2Schristos (spu_elf_size_stubs): Size soft-icache stubs. 5071*377e23a2Schristos (overlay_index): New function. 5072*377e23a2Schristos (spu_elf_build_stubs): Make static. Support soft-icache. 5073*377e23a2Schristos (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache. 5074*377e23a2Schristos (find_function_stack_adjust): Save lr store and stack adjust insn 5075*377e23a2Schristos offsets. 5076*377e23a2Schristos (maybe_insert_function): Adjust find_function_stack_adjust call. 5077*377e23a2Schristos (mark_functions_via_relocs): Retrieve priority. 5078*377e23a2Schristos (remove_cycles): Only warn about pruned arcs when stack_analysis. 5079*377e23a2Schristos (sort_calls): Sort by priority first. 5080*377e23a2Schristos (mark_overlay_section): Ignore .ovl.init. 5081*377e23a2Schristos (sum_stack): Only print when stack_analysis. 5082*377e23a2Schristos (print_one_overlay_section): New function, extracted from.. 5083*377e23a2Schristos (spu_elf_auto_overlay): ..here. Support soft-icache overlays. 5084*377e23a2Schristos (spu_elf_stack_analysis): Only print when htab->stack_analysis. 5085*377e23a2Schristos (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive 5086*377e23a2Schristos analysis. Call spu_elf_build_stubs. 5087*377e23a2Schristos (spu_elf_relocate_section): For soft-icache encode overlay index 5088*377e23a2Schristos into addresses. 5089*377e23a2Schristos (spu_elf_output_symbol_hook): Support soft-icache. 5090*377e23a2Schristos (spu_elf_modify_program_headers: Likewise. 5091*377e23a2Schristos 5092*377e23a2Schristos * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename 5093*377e23a2Schristos num_regions to num_lines. Add line_size and max_branch. 5094*377e23a2Schristos (enum _ovly_flavour): Add ovly_soft_icache. 5095*377e23a2Schristos (spu_elf_build_stubs): Delete. 5096*377e23a2Schristos 5097*377e23a2Schristos2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> 5098*377e23a2Schristos 5099*377e23a2Schristos * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4 5100*377e23a2Schristos relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'. 5101*377e23a2Schristos 5102*377e23a2Schristos2009-01-07 Hans-Peter Nilsson <hp@axis.com> 5103*377e23a2Schristos 5104*377e23a2Schristos * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> 5105*377e23a2Schristos <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in 5106*377e23a2Schristos the program, the known offset starts at the negative size of the 5107*377e23a2Schristos TLS section. 5108*377e23a2Schristos <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: 5109*377e23a2Schristos Similar. 5110*377e23a2Schristos 5111*377e23a2Schristos2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com> 5112*377e23a2Schristos 5113*377e23a2Schristos * config.bfd: Add lm32-*-rtems*. 5114*377e23a2Schristos 5115*377e23a2Schristos2009-01-03 H.J. Lu <hongjiu.lu@intel.com> 5116*377e23a2Schristos 5117*377e23a2Schristos * coff-ppc.c: Add 2009 to Copyright. 5118*377e23a2Schristos * elf32-cris.c: Likewise. 5119*377e23a2Schristos * elflink.c: Likewise. 5120*377e23a2Schristos 5121*377e23a2Schristos2009-01-03 Hans-Peter Nilsson <hp@axis.com> 5122*377e23a2Schristos 5123*377e23a2Schristos * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename 5124*377e23a2Schristos gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry. 5125*377e23a2Schristos 5126*377e23a2Schristos2009-01-02 H.J. Lu <hongjiu.lu@intel.com> 5127*377e23a2Schristos 5128*377e23a2Schristos PR ld/9679 5129*377e23a2Schristos * elflink.c (elf_merge_st_other): New. 5130*377e23a2Schristos (_bfd_elf_merge_symbol): Use it on skipped weak definitions and 5131*377e23a2Schristos hide them if needed. 5132*377e23a2Schristos (elf_link_add_object_symbols): Updated. 5133*377e23a2Schristos 5134*377e23a2Schristos2009-01-02 H.J. Lu <hongjiu.lu@intel.com> 5135*377e23a2Schristos 5136*377e23a2Schristos PR ld/9676 5137*377e23a2Schristos * elflink.c (elf_link_add_object_symbols): Update def_dynamic, 5138*377e23a2Schristos ref_dynamic and dynamic_def fields when setting def_regular 5139*377e23a2Schristos to 1. 5140*377e23a2Schristos 5141*377e23a2Schristos2009-01-02 Curtis Mackie <curtmackevo@gmail.com> 5142*377e23a2Schristos 5143*377e23a2Schristos PR 9682 5144*377e23a2Schristos * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string 5145*377e23a2Schristos literal. 5146*377e23a2Schristos 5147*377e23a2SchristosFor older changes see ChangeLog-2008 5148*377e23a2Schristos 5149*377e23a2SchristosLocal Variables: 5150*377e23a2Schristosmode: change-log 5151*377e23a2Schristosleft-margin: 8 5152*377e23a2Schristosfill-column: 74 5153*377e23a2Schristosversion-control: never 5154*377e23a2SchristosEnd: 5155