| 1 | 2006-03-16 Alan Modra <amodra@bigpond.net.au> |
| 2 | |
| 3 | PR 2434 |
| 4 | * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete. |
| 5 | (elf_link_add_object_symbols): Delete unnecessary locals. Rename |
| 6 | hash_table -> htab. Formatting. Save entire symbol table |
| 7 | before loading as-needed syms, and restore afterwards if lib not |
| 8 | needed. Use bfd_hash_allocate rather than bfd_alloc for sym |
| 9 | name. Free some buffers earlier. |
| 10 | * bfd-in.h (struct bfd_hash_table): Add entsize. |
| 11 | (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype. |
| 12 | * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise |
| 13 | * hash.c (bfd_hash_table_init_n): Add entsize param, save to |
| 14 | hash table. |
| 15 | (bfd_hash_table_init): Add param, adjust calls. |
| 16 | * aoutx.h: Adjust all hash_table_init functions and calls. |
| 17 | * bfd.c: Likewise. |
| 18 | * coff-arm.c: Likewise. |
| 19 | * coff-h8300.c: Likewise. |
| 20 | * coff-ppc.c: Likewise. |
| 21 | * cofflink.c: Likewise. |
| 22 | * ecoff.c: Likewise. |
| 23 | * ecofflink.c: Likewise. |
| 24 | * elf-m10300.c: Likewise. |
| 25 | * elf-strtab.c: Likewise. |
| 26 | * elf.c: Likewise. |
| 27 | * elf32-arm.c: Likewise. |
| 28 | * elf32-bfin.c: Likewise. |
| 29 | * elf32-cris.c: Likewise. |
| 30 | * elf32-frv.c: Likewise. |
| 31 | * elf32-hppa.c: Likewise. |
| 32 | * elf32-i386.c: Likewise. |
| 33 | * elf32-m32r.c: Likewise. |
| 34 | * elf32-m68hc1x.c: Likewise. |
| 35 | * elf32-m68k.c: Likewise. |
| 36 | * elf32-ppc.c: Likewise. |
| 37 | * elf32-s390.c: Likewise. |
| 38 | * elf32-sh.c: Likewise. |
| 39 | * elf32-vax.c: Likewise. |
| 40 | * elf64-alpha.c: Likewise. |
| 41 | * elf64-hppa.c: Likewise. |
| 42 | * elf64-ppc.c: Likewise. |
| 43 | * elf64-s390.c: Likewise. |
| 44 | * elf64-sh64.c: Likewise. |
| 45 | * elf64-x86-64.c: Likewise. |
| 46 | * elfxx-ia64.c: Likewise. |
| 47 | * elfxx-mips.c: Likewise. |
| 48 | * elfxx-sparc.c: Likewise. |
| 49 | * i386linux.c: Likewise. |
| 50 | * libaout.h: Likewise. |
| 51 | * libbfd-in.h: Likewise. |
| 52 | * libcoff-in.h: Likewise. |
| 53 | * linker.c: Likewise. |
| 54 | * m68klinux.c: Likewise. |
| 55 | * merge.c: Likewise. |
| 56 | * opncls.c: Likewise. |
| 57 | * pdp11.c: Likewise. |
| 58 | * sparclinux.c: Likewise. |
| 59 | * stabs.c: Likewise. |
| 60 | * sunos.c: Likewise. |
| 61 | * vms.c: Likewise. |
| 62 | * xcofflink.c: Likewise. |
| 63 | * section.c (struct section_hash_entry): Move to.. |
| 64 | * libbfd-in.h: ..here. |
| 65 | * Makefile.am: Run "make dep-am" |
| 66 | * Makefile.in: Regenerate. |
| 67 | * bfd-in2.h: Regenerate. |
| 68 | * libbfd.h: Regenerate. |
| 69 | * libcoff.h: Regenerate. |
| 70 | |
| 71 | 2006-03-16 Alan Modra <amodra@bigpond.net.au> |
| 72 | |
| 73 | * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs |
| 74 | against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak |
| 75 | last change to REL32 relocs so that they are counted as |
| 76 | possibly dynamic as per REL24 and REL14. |
| 77 | |
| 78 | 2006-03-16 Alan Modra <amodra@bigpond.net.au> |
| 79 | |
| 80 | * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24 |
| 81 | checks from REL32. |
| 82 | |
| 83 | 2006-03-15 Ben Elliston <bje@au.ibm.com> |
| 84 | |
| 85 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all |
| 86 | in_list elements, not just the first. |
| 87 | |
| 88 | 2006-03-14 Richard Sandiford <richard@codesourcery.com> |
| 89 | |
| 90 | * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split |
| 91 | out from... |
| 92 | (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend |
| 93 | for final links too. |
| 94 | |
| 95 | 2006-03-13 Richard Sandiford <richard@codesourcery.com> |
| 96 | |
| 97 | * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot. |
| 98 | |
| 99 | 2006-03-11 H.J. Lu <hongjiu.lu@intel.com> |
| 100 | |
| 101 | PR ld/2443 |
| 102 | * dwarf2.c (concat_filename): Don't issue an error if file is |
| 103 | 0. |
| 104 | |
| 105 | 2006-03-10 Paul Brook <paul@codesourcery.com> |
| 106 | |
| 107 | * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5. |
| 108 | (elf32_arm_print_private_bfd_data): Ditto. |
| 109 | |
| 110 | 2006-03-09 Paul Brook <paul@codesourcery.com> |
| 111 | |
| 112 | * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional |
| 113 | mapping symbols. |
| 114 | |
| 115 | 2006-03-09 Khem Raj <khem@mvista.com> |
| 116 | |
| 117 | * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned |
| 118 | char type. |
| 119 | |
| 120 | 2006-03-08 H.J. Lu <hongjiu.lu@intel.com> |
| 121 | |
| 122 | * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp. |
| 123 | |
| 124 | 2006-03-07 Richard Sandiford <richard@codesourcery.com> |
| 125 | Daniel Jacobowitz <dan@codesourcery.com> |
| 126 | Zack Weinberg <zack@codesourcery.com> |
| 127 | Nathan Sidwell <nathan@codesourcery.com> |
| 128 | Paul Brook <paul@codesourcery.com> |
| 129 | Ricardo Anguiano <anguiano@codesourcery.com> |
| 130 | Phil Edwards <phil@codesourcery.com> |
| 131 | |
| 132 | * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo. |
| 133 | (bfd_elf32_bigarm_symbian_vec): Likewise. |
| 134 | (bfd_elf32_bigarm_vxworks_vec): Likewise. |
| 135 | (bfd_elf32_littlearm_vec): Likewise. |
| 136 | (bfd_elf32_littlearm_symbian_vec): Likewise. |
| 137 | (bfd_elf32_littlearm_vxworks_vec): Likewise. |
| 138 | * configure: Regenerate. |
| 139 | * elf32-arm.c: Include libiberty.h and elf-vxworks.h. |
| 140 | (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros. |
| 141 | (elf32_arm_vxworks_bed): Add forward declaration. |
| 142 | (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12. |
| 143 | (elf32_arm_vxworks_exec_plt0_entry): New table. |
| 144 | (elf32_arm_vxworks_exec_plt_entry): Likewise. |
| 145 | (elf32_arm_vxworks_shared_plt_entry): Likewise. |
| 146 | (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields. |
| 147 | (reloc_section_p): New function. |
| 148 | (create_got_section): Use RELOC_SECTION. |
| 149 | (elf32_arm_create_dynamic_sections): Likewise. Call |
| 150 | elf_vxworks_create_dynamic_sections for VxWorks targets. |
| 151 | Choose between the two possible values of plt_header_size |
| 152 | and plt_entry_size. |
| 153 | (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2. |
| 154 | (elf32_arm_abs12_reloc): New function. |
| 155 | (elf32_arm_final_link_relocate): Call it. Allow the creation of |
| 156 | dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p, |
| 157 | RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the |
| 158 | r_addend fields of relocs. On rela targets, skip any code that |
| 159 | adjusts in-place addends. When using _bfd_link_final_relocate |
| 160 | to perform a final relocation, pass rel->r_addend as the addend |
| 161 | argument. |
| 162 | (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks |
| 163 | object, ignore flags that are not standard on VxWorks. |
| 164 | (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12 |
| 165 | relocs on VxWorks. Use reloc_section_p. |
| 166 | (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE. |
| 167 | (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of |
| 168 | .rela.plt.unloaded relocs on VxWorks targets. |
| 169 | (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for |
| 170 | .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags |
| 171 | instead of DT_REL* tags on RELA targets. |
| 172 | (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE |
| 173 | and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks |
| 174 | PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks. |
| 175 | (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE |
| 176 | and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ |
| 177 | like DT_RELSZ. Handle the VxWorks form of initial PLT entry. |
| 178 | Correct the .rela.plt.unreloaded symbol indexes. |
| 179 | (elf32_arm_output_symbol_hook): Call the VxWorks version of this |
| 180 | hook on VxWorks targets. |
| 181 | (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true. |
| 182 | Minor formatting tweak. |
| 183 | (elf32_arm_vxworks_final_write_processing): New function. |
| 184 | (elf_backend_add_symbol_hook): Override for VxWorks and reset |
| 185 | for Symbian. |
| 186 | (elf_backend_final_write_processing): Likewise. |
| 187 | (elf_backend_emit_relocs): Likewise. |
| 188 | (elf_backend_want_plt_sym): Likewise. |
| 189 | (ELF_MAXPAGESIZE): Likewise. |
| 190 | (elf_backend_may_use_rel_p): Minor formatting tweak. |
| 191 | (elf_backend_may_use_rela_p): Likewise. |
| 192 | (elf_backend_default_use_rela_p): Likewise. |
| 193 | (elf_backend_rela_normal): Likewise. |
| 194 | * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h. |
| 195 | |
| 196 | 2006-03-06 Nathan Sidwell <nathan@codesourcery.com> |
| 197 | |
| 198 | * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp): |
| 199 | New. Adjust other variants. |
| 200 | (bfd_default_scan): Update. |
| 201 | * bfd-in2.h: Rebuilt. |
| 202 | * cpu-m68k.c: Adjust. |
| 203 | (bfd_m68k_compatible): New. Use it for architectures. |
| 204 | * elf32-m68k.c (elf32_m68k_object_p): Adjust. |
| 205 | (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b |
| 206 | mismatch. |
| 207 | (elf32_m68k_print_private_bfd_data): Adjust. |
| 208 | * ieee.c (ieee_write_processor): Adjust. |
| 209 | |
| 210 | 2006-03-06 Alan Modra <amodra@bigpond.net.au> |
| 211 | |
| 212 | * dwarf2.c: Formatting. |
| 213 | (add_line_info): Remove outer loop. |
| 214 | |
| 215 | 2006-03-05 H.J. Lu <hongjiu.lu@intel.com> |
| 216 | Alan Modra <amodra@bigpond.net.au> |
| 217 | |
| 218 | PR binutils/2338 |
| 219 | * dwarf2.c (loadable_section): New struct. |
| 220 | (dwarf2_debug): Add loadable_section_count and |
| 221 | loadable_sections. |
| 222 | (new_line_sorts_after): New. |
| 223 | (add_line_info): Use new_line_sorts_after to compare line |
| 224 | addresses. |
| 225 | (check_function_name): Removed. |
| 226 | (unset_sections): New. |
| 227 | (place_sections): New. |
| 228 | (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections |
| 229 | and unset_sections on relocatable files. |
| 230 | (_bfd_dwarf2_find_line): Likewise. |
| 231 | |
| 232 | 2006-03-03 Nick Clifton <nickc@redhat.com> |
| 233 | |
| 234 | * cpu-avr.c: Update to ISO-C90 formatting. |
| 235 | * elf32-avr.c: Likewise. |
| 236 | |
| 237 | 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de> |
| 238 | |
| 239 | * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI |
| 240 | and R_AVR_MS8_LDI |
| 241 | (bfd_elf_avr_final_write_processing): Set |
| 242 | EF_AVR_LINKRELAX_PREPARED in e_flags field. |
| 243 | (elf32_avr_relax_section): New function. |
| 244 | (elf32_avr_relax_delete_bytes): New function. |
| 245 | (elf32_avr_get_relocated_section_contents): New function. |
| 246 | (avr_pc_wrap_around): New function. |
| 247 | (avr_relative_distance_considering_wrap_around): New function. |
| 248 | (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI. |
| 249 | * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG |
| 250 | * libbfd.h: Regenerate. |
| 251 | * bfd-in2.h: Regenerate. |
| 252 | |
| 253 | 2006-03-02 DJ Delorie <dj@redhat.com> |
| 254 | |
| 255 | * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol |
| 256 | calculations. |
| 257 | |
| 258 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
| 259 | |
| 260 | * elf32-ppc.c (is_ppc_elf_target): Return true if the target is |
| 261 | bfd_elf32_powerpc_vxworks_vec. |
| 262 | |
| 263 | 2006-03-02 Nick Clifton <nickc@redhat.com> |
| 264 | |
| 265 | * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'. |
| 266 | |
| 267 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
| 268 | |
| 269 | * elf32-i386.c (elf_i386_create_dynamic_sections): Use |
| 270 | elf_vxworks_create_dynamic_sections. |
| 271 | (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT |
| 272 | symbol handling. |
| 273 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use |
| 274 | elf_vxworks_create_dynamic_sections. |
| 275 | (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT |
| 276 | symbol handling. |
| 277 | * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function. |
| 278 | * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare. |
| 279 | |
| 280 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
| 281 | |
| 282 | * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete. |
| 283 | (elf_backend_link_output_symbol_hook): Use |
| 284 | elf_vxworks_link_output_symbol_hook instead. |
| 285 | * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete. |
| 286 | (elf_backend_link_output_symbol_hook): Use |
| 287 | elf_vxworks_link_output_symbol_hook instead. |
| 288 | * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the |
| 289 | same interface as elf_backend_link_output_symbol_hook. |
| 290 | * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update |
| 291 | prototype accordingly. |
| 292 | |
| 293 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
| 294 | |
| 295 | * elf32-ppc.c (ppc_elf_plt_type): New enumeration. |
| 296 | (ppc_elf_link_hash_table): Replace old_got and new_got with |
| 297 | plt_type and can_use_new_plt. |
| 298 | (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS, |
| 299 | SEC_LOAD and SEC_READONLY to the VxWorks .plt flags. |
| 300 | (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt. |
| 301 | Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt. |
| 302 | (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to |
| 303 | either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that |
| 304 | this function should not be called for VxWorks targets. |
| 305 | (ppc_elf_tls_setup): Use plt_type instead of old_got. |
| 306 | (allocate_got): Likewise. Rearrange so that max_before_header |
| 307 | is only used for PLT_OLD and PLT_NEW. |
| 308 | (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks. |
| 309 | (ppc_elf_size_dynamic_sections): Likewise. |
| 310 | (ppc_elf_relax_section): Likewise. |
| 311 | (ppc_elf_relocate_section): Likewise. |
| 312 | (ppc_elf_finish_dynamic_symbol): Likewise. |
| 313 | (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type. |
| 314 | |
| 315 | 2006-02-28 Richard Sandiford <richard@codesourcery.com> |
| 316 | |
| 317 | * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index. |
| 318 | (elf_i386_link_hash_table_create): Initialize it. |
| 319 | (elf_i386_compute_jump_table_size): Use it instead of |
| 320 | srelplt->reloc_count. |
| 321 | (allocate_dynrelocs): Likewise. |
| 322 | (elf_i386_size_dynamic_sections): Likewise. |
| 323 | (elf_i386_relocate_section): Likewise. |
| 324 | |
| 325 | 2006-02-27 Jakub Jelinek <jakub@redhat.com> |
| 326 | |
| 327 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag. |
| 328 | (_bfd_elf_write_section_eh_frame): Likewise. |
| 329 | |
| 330 | 2006-02-27 Carlos O'Donell <carlos@codesourcery.com> |
| 331 | |
| 332 | * po/Make-in: Add html target. |
| 333 | |
| 334 | 2006-02-27 Richard Sandiford <richard@codesourcery.com> |
| 335 | |
| 336 | * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the |
| 337 | cached hgot entry to check for _GLOBAL_OFFSET_TABLE_. |
| 338 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise. |
| 339 | * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise. |
| 340 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. |
| 341 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. |
| 342 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. |
| 343 | * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise. |
| 344 | * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise. |
| 345 | * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise. |
| 346 | * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise. |
| 347 | * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise. |
| 348 | * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise. |
| 349 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise. |
| 350 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise. |
| 351 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use |
| 352 | the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_. |
| 353 | * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise. |
| 354 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. |
| 355 | * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise. |
| 356 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. |
| 357 | |
| 358 | 2006-02-25 Richard Sandiford <richard@codesourcery.com> |
| 359 | |
| 360 | * elf-bfd.h (elf_link_hash_table): Add hplt field. |
| 361 | * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it. |
| 362 | * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise. |
| 363 | * elf32-frv.c (_frv_create_got_section): Likewise. |
| 364 | * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise. |
| 365 | * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise. |
| 366 | * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise. |
| 367 | * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise. |
| 368 | * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt. |
| 369 | (elf_i386_link_hash_table_create): Don't initialize them. |
| 370 | (elf_i386_size_dynamic_sections): Use the generic ELF hplt and |
| 371 | hgot fields. |
| 372 | (elf_i386_finish_dynamic_symbol): Likewise. |
| 373 | * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt. |
| 374 | (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields. |
| 375 | (ppc_elf_finish_dynamic_symbol): Likewise. |
| 376 | |
| 377 | 2006-02-24 DJ Delorie <dj@redhat.com> |
| 378 | |
| 379 | * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs. |
| 380 | (m32c_elf_relocate_section): Don't relocate them. |
| 381 | (compare_reloc): New. |
| 382 | (relax_reloc): Remove. |
| 383 | (m32c_offset_for_reloc): New. |
| 384 | (m16c_addr_encodings): New. |
| 385 | (m16c_jmpaddr_encodings): New. |
| 386 | (m32c_addr_encodings): New. |
| 387 | (m32c_elf_relax_section): Relax jumps and address displacements. |
| 388 | (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up |
| 389 | short jumps. |
| 390 | |
| 391 | * reloc.c: Add m32c relax relocs. |
| 392 | * libbfd.h: Regenerate. |
| 393 | * bfd-in2.h: Regenerate. |
| 394 | |
| 395 | 2006-02-24 H.J. Lu <hongjiu.lu@intel.com> |
| 396 | |
| 397 | PR ld/2218 |
| 398 | * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol. |
| 399 | (_bfd_elf_link_hash_fixup_symbol): New. |
| 400 | |
| 401 | * elflink.c (_bfd_elf_link_hash_fixup_symbol): New. |
| 402 | (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if |
| 403 | it isn't NULL. |
| 404 | |
| 405 | * elfxx-ia64.c (elf_backend_fixup_symbol): Defined. |
| 406 | |
| 407 | * elfxx-target.h (elf_backend_fixup_symbol): New. |
| 408 | (elfNN_bed): Initialize elf_backend_fixup_symbol. |
| 409 | |
| 410 | 2006-02-23 H.J. Lu <hongjiu.lu@intel.com> |
| 411 | |
| 412 | * cpu-ia64-opc.c (ins_immu5b): New. |
| 413 | (ext_immu5b): Likewise. |
| 414 | (elf64_ia64_operands): Add IMMU5b. |
| 415 | |
| 416 | 2006-02-21 Alan Modra <amodra@bigpond.net.au> |
| 417 | |
| 418 | PR ld/2218 |
| 419 | * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie |
| 420 | is dynamic. |
| 421 | * elf32-hppa.c (allocate_dynrelocs): Likewise. |
| 422 | * elf32-i386.c (allocate_dynrelocs): Likewise. |
| 423 | * elf32-s390.c (allocate_dynrelocs): Likewise. |
| 424 | * elf32-sh.c (allocate_dynrelocs): Likewise. |
| 425 | * elf64-s390.c (allocate_dynrelocs): Likewise. |
| 426 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. |
| 427 | * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs |
| 428 | on undef weak with non-default visibility too. |
| 429 | * elfxx-sparc.c (allocate_dynrelocs): Ditto. |
| 430 | |
| 431 | 2006-02-21 Alan Modra <amodra@bigpond.net.au> |
| 432 | |
| 433 | * bfd.c: (_bfd_default_error_handler): Don't call abort on |
| 434 | error, instead call _exit. |
| 435 | (_bfd_abort): Call _exit not xexit. |
| 436 | |
| 437 | 2006-02-17 Kevin Buettner <kevinb@redhat.com> |
| 438 | |
| 439 | * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo): |
| 440 | New functions. |
| 441 | * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define. |
| 442 | |
| 443 | 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com> |
| 444 | Anil Paranjape <anilp1@kpitcummins.com> |
| 445 | Shilin Shakti <shilins@kpitcummins.com> |
| 446 | |
| 447 | * Makefile.am: Add xc16x related entry |
| 448 | * Makefile.in: Regenerate |
| 449 | * archures.c: Add bfd_xc16x_arch |
| 450 | * bfd-in2.h: Regenerate |
| 451 | * config.bfd: Add xc16x-*-elf |
| 452 | * configure.in: Add bfd_elf32_xc16x_vec |
| 453 | * configure: Regenerate. |
| 454 | * targets.c: Added xc16x related information |
| 455 | * cpu-xc16x.c: New file |
| 456 | * reloc.c: Add new relocations specific to xc16x: |
| 457 | BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG, |
| 458 | BFD_RELOC_XC16X_SOF |
| 459 | * elf32-xc16x.c: New file. |
| 460 | |
| 461 | 2006-02-17 Alan Modra <amodra@bigpond.net.au> |
| 462 | |
| 463 | * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling. |
| 464 | * elf64-ppc.c (allocate_dynrelocs): Likewise. |
| 465 | |
| 466 | 2006-02-17 Alan Modra <amodra@bigpond.net.au> |
| 467 | |
| 468 | PR ld/2218 |
| 469 | * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is |
| 470 | dynamic. |
| 471 | (ppc64_elf_relocate_section): Check output reloc section size. |
| 472 | * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test. |
| 473 | |
| 474 | 2006-02-16 H.J. Lu <hongjiu.lu@intel.com> |
| 475 | |
| 476 | PR ld/2322 |
| 477 | * elf.c (get_segment_type): New function. |
| 478 | (_bfd_elf_print_private_bfd_data): Use it. |
| 479 | (print_segment_map): New function. |
| 480 | (assign_file_positions_for_segments): Call print_segment_map |
| 481 | when there are not enough room for program headers. |
| 482 | |
| 483 | 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com> |
| 484 | |
| 485 | * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use |
| 486 | traditional MIPS ELF targets. |
| 487 | |
| 488 | 2006-02-15 H.J. Lu <hongjiu.lu@intel.com> |
| 489 | |
| 490 | PR binutils/2338 |
| 491 | * dwarf2.c (check_function_name): New function. |
| 492 | (_bfd_dwarf2_find_nearest_line): Use check_function_name to |
| 493 | check if function is correct. |
| 494 | |
| 495 | 2006-02-16 Alan Modra <amodra@bigpond.net.au> |
| 496 | |
| 497 | * elflink.c (_bfd_elf_default_action_discarded): Return 0 for |
| 498 | debug sections. |
| 499 | (elf_link_input_bfd): Adjust comments. |
| 500 | |
| 501 | 2006-02-10 H.J. Lu <hongjiu.lu@intel.com> |
| 502 | |
| 503 | * elf.c (copy_private_bfd_data): Minor update. |
| 504 | |
| 505 | 2006-02-10 H.J. Lu <hongjiu.lu@intel.com> |
| 506 | |
| 507 | PR binutils/2258 |
| 508 | * elf.c (copy_private_bfd_data): Renamed to ... |
| 509 | (rewrite_elf_program_header): This. |
| 510 | (copy_elf_program_header): New function. |
| 511 | (copy_private_bfd_data): Likewise. |
| 512 | |
| 513 | 2006-02-07 Nathan Sidwell <nathan@codesourcery.com> |
| 514 | |
| 515 | * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e, |
| 516 | bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x, |
| 517 | bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249, |
| 518 | bfd_mach_mcf547x, bfd_mach_mcf548x): Remove. |
| 519 | (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div, |
| 520 | bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac, |
| 521 | bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac, |
| 522 | bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp, |
| 523 | bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac, |
| 524 | bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac, |
| 525 | bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac, |
| 526 | bfd_mach_mcf_isa_b_usp_float_emac): New. |
| 527 | (bfd_default_scan): Update coldfire mapping. |
| 528 | * bfd-in.h (bfd_m68k_mach_to_features, |
| 529 | bfd_m68k_features_to_mach): Declare. |
| 530 | * bfd-in2.h: Rebuilt. |
| 531 | * cpu-m68k.c (arch_info_struct): Add new coldfire machines, |
| 532 | adjust legacy names. |
| 533 | (m68k_arch_features): New. |
| 534 | (bfd_m68k_mach_to_features, |
| 535 | bfd_m68k_features_to_mach): Define. |
| 536 | * elf32-m68k.c (elf32_m68k_object_p): New. |
| 537 | (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags. |
| 538 | (elf32_m68k_print_private_bfd_data): Print the CF EF flags. |
| 539 | (elf_backend_object_p): Define. |
| 540 | * ieee.c (ieee_write_processor): Update coldfire machines. |
| 541 | * libbfd.h: Rebuilt. |
| 542 | |
| 543 | 2006-02-06 Steve Ellcey <sje@cup.hp.com> |
| 544 | |
| 545 | * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS |
| 546 | if SHF_TLS is set. |
| 547 | |
| 548 | 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl> |
| 549 | |
| 550 | * coff-z80.c (r_imm24): New howto. |
| 551 | (rtype2howto): New case R_IMM24. |
| 552 | (coff_z80_reloc_type_lookup): New case BFD_RELOC_24. |
| 553 | (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24. |
| 554 | |
| 555 | 2006-02-04 Richard Sandiford <richard@codesourcery.com> |
| 556 | |
| 557 | * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol |
| 558 | has already been assigned a GOT index, copy that index to the |
| 559 | current hash table entry. |
| 560 | |
| 561 | 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr> |
| 562 | |
| 563 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass |
| 564 | for call-to-undefweak reloc overflow. |
| 565 | |
| 566 | 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr> |
| 567 | |
| 568 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass |
| 569 | for 32-bit relocs overflow. |
| 570 | |
| 571 | 2006-01-27 Paul Brook <paul@codesourcery.com> |
| 572 | |
| 573 | * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb |
| 574 | objects. |
| 575 | |
| 576 | 2006-01-18 Alexandre Oliva <aoliva@redhat.com> |
| 577 | |
| 578 | Introduce TLS descriptors for i386 and x86_64. |
| 579 | * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC, |
| 580 | BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC, |
| 581 | BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New. |
| 582 | * libbfd.h, bfd-in2.h: Rebuilt. |
| 583 | * elf32-i386.c (elf_howto_table): New relocations. |
| 584 | (R_386_tls): Adjust. |
| 585 | (elf_i386_reloc_type_lookup): Map new relocations. |
| 586 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. |
| 587 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. |
| 588 | (struct elf_i386_link_hash_entry): Add tlsdesc_got field. |
| 589 | (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field. |
| 590 | (elf_i386_local_tlsdesc_gotent): New macro. |
| 591 | (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size. |
| 592 | (elf_i386_compute_jump_table_size): New macro. |
| 593 | (link_hash_newfunc): Initialize tlsdesc_got. |
| 594 | (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size. |
| 595 | (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and |
| 596 | R_386_TLS_DESC_CALL. |
| 597 | (elf_i386_check_relocs): Likewise. Allocate space for |
| 598 | local_tlsdesc_gotent. |
| 599 | (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and |
| 600 | R_386_TLS_DESC_CALL. |
| 601 | (allocate_dynrelocs): Count function PLT relocations. Reserve |
| 602 | space for TLS descriptors and relocations. |
| 603 | (elf_i386_size_dynamic_sections): Reserve space for TLS |
| 604 | descriptors and relocations. Set up sgotplt_jump_table_size. |
| 605 | Don't zero reloc_count in srelplt. |
| 606 | (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_. |
| 607 | (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and |
| 608 | R_386_TLS_DESC_CALL. |
| 609 | (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. |
| 610 | (elf_backend_always_size_sections): Define. |
| 611 | * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC, |
| 612 | R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL. |
| 613 | (R_X86_64_standard): Adjust. |
| 614 | (x86_64_reloc_map): Map new relocs. |
| 615 | (elf64_x86_64_rtype_to_howto): New, split out of... |
| 616 | (elf64_x86_64_info_to_howto): ... this function, and... |
| 617 | (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val. |
| 618 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. |
| 619 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. |
| 620 | (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field. |
| 621 | (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field. |
| 622 | (elf64_x86_64_local_tlsdesc_gotent): New macro. |
| 623 | (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt, |
| 624 | tlsdesc_got and sgotplt_jump_table_size fields. |
| 625 | (elf64_x86_64_compute_jump_table_size): New macro. |
| 626 | (link_hash_newfunc): Initialize tlsdesc_got. |
| 627 | (elf64_x86_64_link_hash_table_create): Initialize new fields. |
| 628 | (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and |
| 629 | R_X86_64_TLSDESC_CALL. |
| 630 | (elf64_x86_64_check_relocs): Likewise. Allocate space for |
| 631 | local_tlsdesc_gotent. |
| 632 | (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and |
| 633 | R_X86_64_TLSDESC_CALL. |
| 634 | (allocate_dynrelocs): Count function PLT relocations. Reserve |
| 635 | space for TLS descriptors and relocations. |
| 636 | (elf64_x86_64_size_dynamic_sections): Reserve space for TLS |
| 637 | descriptors and relocations. Set up sgotplt_jump_table_size, |
| 638 | tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero |
| 639 | reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT |
| 640 | and DT_TLSDESC_GOT. |
| 641 | (elf64_x86_64_always_size_sections): New. Set up |
| 642 | _TLS_MODULE_BASE_. |
| 643 | (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and |
| 644 | R_386_TLS_DESC_CALL. |
| 645 | (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. |
| 646 | (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and |
| 647 | DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry. |
| 648 | (elf_backend_always_size_sections): Define. |
| 649 | |
| 650 | 2006-01-17 H.J. Lu <hongjiu.lu@intel.com> |
| 651 | |
| 652 | PR binutils/2096 |
| 653 | * dwarf2.c (comp_unit_contains_address): Update comment. |
| 654 | (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of |
| 655 | lma. Return TRUE only if both comp_unit_contains_address and |
| 656 | comp_unit_find_nearest_line return TRUE. |
| 657 | (_bfd_dwarf2_find_line): Use section's vma, instead of lma. |
| 658 | |
| 659 | 2006-01-18 Alan Modra <amodra@bigpond.net.au> |
| 660 | |
| 661 | * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref. |
| 662 | (bfd_elf_gc_mark_dynamic_ref_symbol): Declare. |
| 663 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from |
| 664 | elf_gc_mark_dynamic_ref_symbol. Make global. |
| 665 | (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref. |
| 666 | * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define. |
| 667 | (elfNN_bed): Init new field. |
| 668 | * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define. |
| 669 | (ppc64_elf_gc_mark_dynamic_ref): New function. |
| 670 | |
| 671 | 2006-01-17 Alan Modra <amodra@bigpond.net.au> |
| 672 | |
| 673 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop. |
| 674 | |
| 675 | 2006-01-17 Nick Clifton <nickc@redhat.com> |
| 676 | |
| 677 | PR binutils/2159 |
| 678 | * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused |
| 679 | parameters. |
| 680 | |
| 681 | 2006-01-11 Nick Clifton <nickc@redhat.com> |
| 682 | |
| 683 | * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry |
| 684 | into the newly (re)allocated map array. |
| 685 | |
| 686 | 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com> |
| 687 | |
| 688 | * peXXigen.c (tbl): Add comma after "HIGH3ADJ". |
| 689 | |
| 690 | 2006-01-01 Jakub Jelinek <jakub@redhat.com> |
| 691 | |
| 692 | * elf64-ppc.c (ppc64_elf_action_discarded): Return 0 |
| 693 | for .toc1 section. |
| 694 | |
| 695 | For older changes see ChangeLog-2005 |
| 696 | \f |
| 697 | Local Variables: |
| 698 | mode: change-log |
| 699 | left-margin: 8 |
| 700 | fill-column: 74 |
| 701 | version-control: never |
| 702 | End: |