| 1 | 2007-02-12 Alan Modra <amodra@bigpond.net.au> |
| 2 | |
| 3 | * elflink.c (bfd_elf_discard_info): Tidy setting of "eh". |
| 4 | |
| 5 | 2007-02-05 Dave Brolley <brolley@redhat.com> |
| 6 | Stan Cox <scox@redhat.com> |
| 7 | |
| 8 | PR ld/3972 |
| 9 | * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms. |
| 10 | |
| 11 | 2007-02-05 Dave Brolley <brolley@redhat.com> |
| 12 | Richard Sandiford <rsandifo@redhat.com> |
| 13 | Stan Cox <scox@redhat.com> |
| 14 | Nick Clifton <nickc@redhat.com> |
| 15 | DJ Delorie <dj@redhat.com> |
| 16 | Frank Ch. Eigler <fche@redhat.com> |
| 17 | Ben Elliston <bje@redhat.com> |
| 18 | Richard Henderson <rth@redhat.com> |
| 19 | |
| 20 | * Makefile.am (ALL_MACHINES): Add cpu-mep.lo. |
| 21 | (ALL_MACHINES_CFILES): Add CPU_MEP.c. |
| 22 | (BFD32_BACKENDS): Add elf32-mep.lo. |
| 23 | (BFD32_BACKENDS_CFILES): Add elf32-mep.c. |
| 24 | (cpu-mep.lo,elf32-mep.lo): New targets. |
| 25 | * archures.c (bfd_arch_mep): New enumerator. |
| 26 | (bfd_mach_mep, bfd_mach_mep_h1): New macros. |
| 27 | (bfd_mep_arch): New external variable. |
| 28 | (bfd_archures_list): Add bfd_mep_arch. |
| 29 | * config.bfd: Support mep-*-elf. |
| 30 | * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec. |
| 31 | * reloc.c (BFD_RELOC_MEP_*): New relocation numbers. |
| 32 | * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern |
| 33 | declarations. |
| 34 | (_bfd_target_vector): Add bfd_elf32_mep_vec and |
| 35 | bfd_elf32_mep_little_vec. |
| 36 | * mep-relocs.pl: New file. |
| 37 | * cpu-mep.c: New file. |
| 38 | * elf32-mep.c: New file. |
| 39 | * bfd-in2.h: Regenerate. |
| 40 | * po/POTFILES.in: Regenerate. |
| 41 | * libbfd.h: Regenerate. |
| 42 | * Makefile.in: Regenerate. |
| 43 | * configure: Regenerate. |
| 44 | |
| 45 | 2007-02-05 Dave Brolley <brolley@redhat.com> |
| 46 | |
| 47 | * elflink.c (evaluate_complex_relocation_symbols): Check for |
| 48 | STT_SRELC for global symbols. |
| 49 | (perform_complex_relocations): Renamed to |
| 50 | perform_complex_relocation and now examines only one relocation. |
| 51 | (elf_link_input_bfd): Don't call perform_complex_relocations. |
| 52 | * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype. |
| 53 | * elf32-mep.c (mep_elf_howto_table): Add R_RELC. |
| 54 | (OD,OS,OU): #undefs corrected to N, S and U repectively. |
| 55 | (mep_reloc_type_lookup): Handle BFD_RELOC_RELC. |
| 56 | (complex_reloc_installation_howto): Removed. |
| 57 | (mep_info_to_howto_rela): Remove special case for r_type==0xff. |
| 58 | (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation. |
| 59 | |
| 60 | 2007-02-05 Dave Brolley <brolley@redhat.com> |
| 61 | Richard Sandiford <rsandifo@redhat.com> |
| 62 | DJ Delorie <dj@redhat.com> |
| 63 | Graydon Hoare <graydon@redhat.com> |
| 64 | Nick Clifton <nickc@cambridge.redhat.com> |
| 65 | Jeff Holcomb <jeffh@redhat.com> |
| 66 | Frank Ch. Eigler <fche@redhat.com> |
| 67 | |
| 68 | * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype. |
| 69 | * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC. |
| 70 | * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC. |
| 71 | * elflink.c (set_symbolValue): New static function. |
| 72 | (resolve_symbol): Likewise. |
| 73 | (resolve_section): Likewise. |
| 74 | (undefined_reference): Likewise. |
| 75 | (eval_symbol): Likewise. |
| 76 | (evaluate_complex_relocation_symbols): Likewise. |
| 77 | (put_value): Likewise. |
| 78 | (get_value): Likewise. |
| 79 | (decode_complex_addend): |
| 80 | (bfd_elf_perform_complex_relocation): New function. |
| 81 | (elf_link_input_bfd): Call evaluate_complex_relocation_symbols. |
| 82 | * reloc.c (BFD_RELOC_RELC): New relocation number. |
| 83 | * syms.c (BSF_RELC,BSF_SRELC): New macros. |
| 84 | |
| 85 | 2007-02-05 Bob Wilson <bob.wilson@acm.org> |
| 86 | |
| 87 | * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete. |
| 88 | (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete. |
| 89 | (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size) |
| 90 | (elf_xtensa_allocate_got_size): Replace these with... |
| 91 | (elf_xtensa_allocate_dynrelocs): ...this new function. |
| 92 | (elf_xtensa_size_dynamic_sections): Use it. |
| 93 | |
| 94 | 2007-02-05 Bob Wilson <bob.wilson@acm.org> |
| 95 | |
| 96 | * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT> |
| 97 | <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>: |
| 98 | Set src_mask to zero. |
| 99 | <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask. |
| 100 | <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE. |
| 101 | |
| 102 | 2007-02-02 Bob Wilson <bob.wilson@acm.org> |
| 103 | |
| 104 | * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to... |
| 105 | (elf_xtensa_dynamic_symbol_p): ...this. |
| 106 | |
| 107 | 2007-02-02 Bob Wilson <bob.wilson@acm.org> |
| 108 | |
| 109 | * elf32-xtensa.c (plt_reloc_count): Move into link hash table. |
| 110 | (struct elf_xtensa_link_hash_table): New. |
| 111 | (elf_xtensa_hash_table): New. |
| 112 | (elf_xtensa_link_hash_table_create): New. |
| 113 | (elf_xtensa_check_relocs): Update plt_reloc_count references. |
| 114 | Update arguments to add_extra_plt_sections. |
| 115 | (elf_xtensa_create_dynamic_sections): Record new sections in the hash |
| 116 | table. Update for plt_reloc_count and add_extra_plt_sections. |
| 117 | (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj |
| 118 | argument with link info. Update calls to elf_xtensa_get_plt_section |
| 119 | and elf_xtensa_get_gotplt_section. |
| 120 | (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections) |
| 121 | (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections) |
| 122 | (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections) |
| 123 | (relax_property_section): Get sections from the hash table and update |
| 124 | function calls. |
| 125 | (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace |
| 126 | dynobj argument with link info. Get sections for first plt chunk from |
| 127 | the hash table. |
| 128 | (bfd_elf32_bfd_link_hash_table_create): Define. |
| 129 | |
| 130 | 2007-02-02 Jakub Jelinek <jakub@redhat.com> |
| 131 | |
| 132 | * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *. |
| 133 | * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types. |
| 134 | (struct elf_symbol): Change first member into union. |
| 135 | (elf_sort_elf_symbol): Compare pointers to internal syms rather than |
| 136 | internal syms. Only compare st_shndx fields. |
| 137 | (elf_create_symbuf): New function. |
| 138 | (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available |
| 139 | for bfds, use a binary search, otherwise don't qsort symbols |
| 140 | unnecessarily only to select which symbols are for the particular |
| 141 | shndx. |
| 142 | |
| 143 | 2007-02-01 Nick Clifton <nickc@redhat.com> |
| 144 | |
| 145 | PR ld/3852 |
| 146 | * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields |
| 147 | in the elf_link_hash_table structure. |
| 148 | |
| 149 | 2007-02-01 Alan Modra <amodra@bigpond.net.au> |
| 150 | |
| 151 | * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note. |
| 152 | * elfxx-target.h (elf_backend_write_core_note): Define and use. |
| 153 | * elf.c (elfcore_write_prpsinfo): Call the above. Add support for |
| 154 | 32-bit core note on 64-bit target. |
| 155 | (elfcore_write_prstatus): Likewise. |
| 156 | (elfcore_write_lwpstatus): Make note_name const. |
| 157 | (elfcore_write_prfpreg): Likewise. |
| 158 | (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit |
| 159 | target. |
| 160 | * elf32-ppc.c (ppc_elf_write_core_note): New function. |
| 161 | (elf_backend_write_core_note): Define. |
| 162 | * elf64-ppc.c (ppc64_elf_write_core_note): New function. |
| 163 | (elf_backend_write_core_note): Define. |
| 164 | |
| 165 | 2007-01-31 H.J. Lu <hongjiu.lu@intel.com> |
| 166 | |
| 167 | * elf32-cris.c (INCLUDED_TARGET_FILE): Removed. |
| 168 | (elf32_bed): Defined for elf32-us-cris. |
| 169 | |
| 170 | * elf64-sh64.c (elf64_bed): Defined for Linux. |
| 171 | (INCLUDED_TARGET_FILE): Removed. |
| 172 | |
| 173 | * elfxx-target.h (elfNN_bed): Always define. Don't check |
| 174 | INCLUDED_TARGET_FILE. |
| 175 | |
| 176 | 2007-01-31 DJ Delorie <dj@redhat.com> |
| 177 | |
| 178 | * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning |
| 179 | message for dangerous relocs, special case the common user error. |
| 180 | |
| 181 | 2007-01-30 H.J. Lu <hongjiu.lu@intel.com> |
| 182 | |
| 183 | * elf.c (copy_elf_program_header): Start from the first section |
| 184 | in a segment and stop when all sections in a segment are |
| 185 | accounted for. |
| 186 | |
| 187 | 2007-01-29 Julian Brown <julian@codesourcery.com> |
| 188 | |
| 189 | * bfd-in2.h: Regenerate. |
| 190 | * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11 |
| 191 | instruction scanning should be done. |
| 192 | (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan) |
| 193 | (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes. |
| 194 | (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to |
| 195 | prototype. |
| 196 | * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info |
| 197 | argument. |
| 198 | * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME) |
| 199 | (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros. |
| 200 | (elf32_vfp11_erratum_type): New enum. |
| 201 | (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to |
| 202 | veneers. |
| 203 | (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist. |
| 204 | (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size, |
| 205 | vfp11_fix and num_vfp11_fixes fields. |
| 206 | (elf32_arm_link_hash_table_create): Initialise vfp11_fix, |
| 207 | vfp11_erratum_glue_size, num_vfp11_fixes fields. |
| 208 | (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer. |
| 209 | (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum |
| 210 | glue section. |
| 211 | (elf32_arm_section_map_add): Add an code/data mapping symbol entry |
| 212 | to a section's map. |
| 213 | (record_vfp11_erratum_veneer): Create a single veneer, and its |
| 214 | associated symbols. |
| 215 | (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue. |
| 216 | (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input |
| 217 | BFDs. |
| 218 | (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround |
| 219 | required. |
| 220 | (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes. |
| 221 | (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn. |
| 222 | (bfd_arm_vfp11_write_mask): Update write mask according to coded |
| 223 | register number. |
| 224 | (bfd_arm_vfp11_antidependency): New function. |
| 225 | (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn. |
| 226 | (elf32_arm_compare_mapping): Declare. |
| 227 | (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input |
| 228 | BFD for potential erratum-triggering insns. Record results. |
| 229 | (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers |
| 230 | and branches to veneers have been placed in virtual memory after |
| 231 | layout. |
| 232 | (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global |
| 233 | hash table. |
| 234 | (elf32_arm_output_symbol_hook): Remove. |
| 235 | (elf32_arm_write_section): Output veneers, and branches to veneers. |
| 236 | Use maps from input sections, not output sections, for code |
| 237 | byte-swapping. |
| 238 | * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument. |
| 239 | * elf32-score.c (_bfd_score_elf_write_section): Likewise. |
| 240 | * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise. |
| 241 | * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise. |
| 242 | |
| 243 | 2007-01-27 H.J. Lu <hongjiu.lu@intel.com> |
| 244 | |
| 245 | * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux. |
| 246 | (INCLUDED_TARGET_FILE): Removed. |
| 247 | |
| 248 | 2007-01-27 Mike Frysinger <vapier@gentoo.org> |
| 249 | |
| 250 | * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd. |
| 251 | (INCLUDED_TARGET_FILE): Remove. |
| 252 | |
| 253 | 2007-01-25 DJ Delorie <dj@redhat.com> |
| 254 | |
| 255 | * elf32-m32c.c (m32c_elf_howto_table): Don't complain about |
| 256 | R_M32C_16 or R_M32C_24 relocs. |
| 257 | |
| 258 | 2007-01-25 Nick Clifton <nickc@redhat.com> |
| 259 | |
| 260 | PR binutils/3874 |
| 261 | * elf32-avr.c (avr_link_hash_table): Check to make sure that the |
| 262 | hash table was created by elf32_avr_link_hash_table_create before |
| 263 | using it. |
| 264 | (elf32_avr_link_hash_newfunc): New function. Just pass the call |
| 265 | through to _bfd_elf_link_hash_newfunc. |
| 266 | (elf32_avr_link_hash_table_create): Use |
| 267 | elf32_avr_link_hash_newfunc instead of |
| 268 | _bfd_elf_link_hash_newfunc. |
| 269 | (elf32_avr_relocate_section): Check for the hash table pointer |
| 270 | being NULL. |
| 271 | (elf32_avr_relax_section, avr_build_one_stub, |
| 272 | elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs, |
| 273 | elf32_avr_build_stubs): Likewise. |
| 274 | |
| 275 | 2007-01-16 H.J. Lu <hongjiu.lu@intel.com> |
| 276 | |
| 277 | PR ld/3831 |
| 278 | * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an |
| 279 | argument, Elf_Internal_Sym *. |
| 280 | |
| 281 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data |
| 282 | symbol dynamic if info->dynamic_data is TRUE. |
| 283 | (bfd_elf_record_link_assignment): Updated call to |
| 284 | bfd_elf_record_link_assignment. |
| 285 | (_bfd_elf_merge_symbol): Likewise. Always call |
| 286 | bfd_elf_link_mark_dynamic_symbol. |
| 287 | |
| 288 | 2007-01-12 H.J. Lu <hongjiu.lu@intel.com> |
| 289 | |
| 290 | * Makefile.am (BFD_LIBS): Removed. |
| 291 | * Makefile.in: Regenerated. |
| 292 | |
| 293 | 2007-01-11 H.J. Lu <hongjiu.lu@intel.com> |
| 294 | |
| 295 | PR binutils/3631 |
| 296 | * Makefile.am (OFILES): Add @bfd64_libs@. |
| 297 | (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES). |
| 298 | * Makefile.in: Regenerated. |
| 299 | |
| 300 | * configure.in (bfd_libs): Replaced by ... |
| 301 | (bfd64_libs): This. |
| 302 | * configure: Regenerated. |
| 303 | |
| 304 | 2007-01-11 Nathan Sidwell <nathan@codesourcery.com> |
| 305 | |
| 306 | * elf.c (assign_file_positions_for_load_sections): We can |
| 307 | require fewer phdrs than expected. |
| 308 | |
| 309 | 2007-01-08 Kazu Hirata <kazu@codesourcery.com> |
| 310 | |
| 311 | * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido. |
| 312 | * bfd-in2.h: Regenerate. |
| 313 | * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of |
| 314 | bfd_mach_cpu32_fido. |
| 315 | (m68k_arch_features): Use fido_a instead of cpu32. |
| 316 | (bfd_m68k_compatible): Reject the combination of Fido and |
| 317 | ColdFire. Accept the combination of CPU32 and Fido with a |
| 318 | warning. |
| 319 | * elf32-m68k.c (elf32_m68k_object_p, |
| 320 | elf32_m68k_merge_private_bfd_data, |
| 321 | elf32_m68k_print_private_bfd_data): Treat Fido as an |
| 322 | architecture by itself. |
| 323 | |
| 324 | 2007-01-08 Kai Tietz <kai.tietz@onevision.com> |
| 325 | |
| 326 | * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*. |
| 327 | |
| 328 | 2007-01-05 Jakub Jelinek <jakub@redhat.com> |
| 329 | |
| 330 | * texhex.c (first_phase): Don't fall through into the default |
| 331 | case. |
| 332 | (pass_over): Replace abort () calls with return FALSE. Fix |
| 333 | buffer overflow. |
| 334 | |
| 335 | 2007-01-04 Jie Zhang <jie.zhang@analog.com> |
| 336 | |
| 337 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set |
| 338 | SEC_EXCLUDE on zero size .eh_frame. |
| 339 | |
| 340 | For older changes see ChangeLog-2006 |
| 341 | \f |
| 342 | Local Variables: |
| 343 | mode: change-log |
| 344 | left-margin: 8 |
| 345 | fill-column: 74 |
| 346 | version-control: never |
| 347 | End: |