| 1 | 2009-03-12 H.J. Lu <hongjiu.lu@intel.com> |
| 2 | |
| 3 | PR ld/9938 |
| 4 | * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp |
| 5 | to check ___tls_get_addr. |
| 6 | |
| 7 | * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use |
| 8 | strncmp to check __tls_get_addr. |
| 9 | |
| 10 | 2009-03-12 Andrew Stubbs <ams@codesourcery.com> |
| 11 | |
| 12 | * dwarf2.c (read_section): Always check the offset, even when the |
| 13 | section has been read before. |
| 14 | |
| 15 | 2009-03-11 H.J. Lu <hongjiu.lu@intel.com> |
| 16 | |
| 17 | * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in |
| 18 | comments. |
| 19 | |
| 20 | 2009-03-11 Chris Demetriou <cgd@google.com> |
| 21 | |
| 22 | * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag. |
| 23 | * bfd-in2.h: Regenerate. |
| 24 | * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT |
| 25 | flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file |
| 26 | mode. |
| 27 | (bsd_write_armap): Likewise. |
| 28 | (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT |
| 29 | flag is set, do nothing. |
| 30 | (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0 |
| 31 | for timestamp. |
| 32 | |
| 33 | 2009-03-11 Ulrich Weigand <uweigand@de.ibm.com> |
| 34 | |
| 35 | * elf32-spu.c (find_function_stack_adjust): Handle sf instruction |
| 36 | used to update stack pointer. |
| 37 | |
| 38 | 2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 39 | |
| 40 | PR binutils/9921 |
| 41 | * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE |
| 42 | for unknown symbols in absolute section. |
| 43 | |
| 44 | 2009-03-06 Nick Clifton <nickc@redhat.com> |
| 45 | |
| 46 | * po/es.po: Updated Spanish translation. |
| 47 | |
| 48 | 2009-03-05 Christophe Lyon <christophe.lyon@st.com> |
| 49 | |
| 50 | * elf32-arm.c (group_sections): Take next section size into |
| 51 | account before accepting to group it. |
| 52 | |
| 53 | 2009-03-05 Christophe Lyon <christophe.lyon@st.com> |
| 54 | |
| 55 | * elf32-arm.c (arm_type_of_stub): Handle long branches targetting |
| 56 | PLT entries. |
| 57 | (elf32_arm_final_link_relocate): Likewise. |
| 58 | |
| 59 | 2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de> |
| 60 | |
| 61 | PR 9923 |
| 62 | * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type. |
| 63 | |
| 64 | 2009-03-04 Alan Modra <amodra@bigpond.net.au> |
| 65 | |
| 66 | * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New. |
| 67 | * section.c (struct bfd_section): Add has_tls_get_addr_call. |
| 68 | (BFD_FAKE_SECTION): Init new flag. |
| 69 | * ecoff.c (bfd_debug_section): Likewise. |
| 70 | * bfd-in2.h: Regenerate. |
| 71 | * libbfd.h: Regenerate. |
| 72 | * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD. |
| 73 | (ppc_elf_reloc_type_lookup): Handle new relocs. |
| 74 | (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such |
| 75 | without marker relocs. |
| 76 | (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs |
| 77 | if section has no old-style calls. |
| 78 | (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too. |
| 79 | Don't try to optimize new-style __tls_get_addr call when handling |
| 80 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD |
| 81 | relocs. |
| 82 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD. |
| 83 | (ppc64_elf_reloc_type_lookup): Handle new relocs. |
| 84 | (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such |
| 85 | without marker relocs. |
| 86 | (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs |
| 87 | if section has no old-style calls. Set toc_ref for new relocs as |
| 88 | appropriate. |
| 89 | (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too. |
| 90 | Don't try to optimize new-style __tls_get_addr call when handling |
| 91 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD |
| 92 | relocs. |
| 93 | |
| 94 | 2009-03-04 Alan Modra <amodra@bigpond.net.au> |
| 95 | |
| 96 | PR 6768 |
| 97 | * configure.in: Test for ld --as-needed support. Link shared |
| 98 | libbfd against libm. |
| 99 | * configure: Regenerate. |
| 100 | |
| 101 | 2009-03-03 Alan Modra <amodra@bigpond.net.au> |
| 102 | |
| 103 | * Makefile.am: Run "make dep-am". |
| 104 | * Makefile.in: Regenerate. |
| 105 | |
| 106 | 2009-03-02 Qinwei <qinwei@sunnorth.com.cn> |
| 107 | |
| 108 | * elf32-score7.c: New file. |
| 109 | * elf32-score.h: New file. |
| 110 | * elf32-score.c: Add code to support score 7. Set score7 as the |
| 111 | default. |
| 112 | * cpu-score.c: Add score7 architecure. |
| 113 | (compatibile): New function. |
| 114 | * Makefile.am: Add rules for building elf32-score7 object. |
| 115 | * Makefile.in: Regenerate. |
| 116 | * configure.in: Add elf32-score7 object to score vectors. |
| 117 | * configure: Regenerate. |
| 118 | * reloc.c: Add score7 relocs. |
| 119 | * archures.c: Add score3 and score7 machine numbers. |
| 120 | * bfd-in2.h: Regenerate. |
| 121 | * libbfd.h: Regenerate. |
| 122 | |
| 123 | 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
| 124 | |
| 125 | * configure: Regenerate. |
| 126 | |
| 127 | 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 128 | |
| 129 | * elf32-hppa.c (hppa32_elf_local_refcounts): New function. |
| 130 | (elf32_hppa_check_relocs): Use it. |
| 131 | |
| 132 | * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to |
| 133 | elf64-hppa.c. |
| 134 | (elf_hppa_unmark_useless_dynamic_symbols): Likewise. |
| 135 | (elf_hppa_remark_useless_dynamic_symbols): Likewise. |
| 136 | (elf_hppa_is_dynamic_loader_symbol): Likewise. |
| 137 | (elf_hppa_record_segment_addrs): Likewise. |
| 138 | (elf_hppa_final_link): Likewise. |
| 139 | (elf_hppa_relocate_insn): Likewise. |
| 140 | (elf_hppa_final_link_relocate): Likewise. |
| 141 | (elf64_hppa_relocate_section): Likewise. |
| 142 | * elf64-hppa.c: Insert above. |
| 143 | |
| 144 | 2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 145 | |
| 146 | * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link. |
| 147 | (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table. |
| 148 | (elf_hppa_relocate_section): Likewise. |
| 149 | * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive |
| 150 | from struct elf_link_hash_entry. Add count field. |
| 151 | (struct elf64_hppa_dyn_hash_table): Delete. |
| 152 | (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field. |
| 153 | (elf64_hppa_hash_table): Rename to hppa_link_hash_table. |
| 154 | (hppa_elf_hash_entry, eh_name): Define. |
| 155 | (elf64_hppa_new_dyn_hash_entry): Delete. |
| 156 | (elf64_hppa_dyn_hash_lookup): Delete. |
| 157 | (elf64_hppa_dyn_hash_traverse): Delete. |
| 158 | (get_dyn_name): Delete. |
| 159 | (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead |
| 160 | of struct elf64_hppa_dyn_hash_entry *. |
| 161 | (elf64_hppa_finalize_dlt, llocate_global_data_dlt, |
| 162 | allocate_global_data_plt, allocate_global_data_stub, |
| 163 | allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries): |
| 164 | Likewise. |
| 165 | (hppa64_link_hash_newfunc): New. |
| 166 | (elf64_hppa_hash_table_create): Rework. |
| 167 | (count_dyn_reloc): Likewise. |
| 168 | (hppa64_elf_local_refcounts): New. |
| 169 | (elf64_hppa_check_relocs): Rework using standard technique for recording |
| 170 | local DLT, PLT and OPD reference counts. |
| 171 | (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct |
| 172 | elf_link_hash_entry *. |
| 173 | (elf64_hppa_mark_exported_functions, allocate_global_data_dlt, |
| 174 | allocate_global_data_plt, allocate_global_data_stub, |
| 175 | allocate_global_data_opd, allocate_dynrel_entries, |
| 176 | elf64_hppa_adjust_dynamic_symbol, |
| 177 | elf64_hppa_mark_milli_and_exported_functions): Likewise. |
| 178 | (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections): |
| 179 | Use hppa_link_hash_table. Rework. |
| 180 | (elf64_hppa_link_output_symbol_hook): Rework. |
| 181 | (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd, |
| 182 | elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc, |
| 183 | elf64_hppa_finish_dynamic_sections): Likewise. |
| 184 | |
| 185 | 2009-02-26 Christophe Lyon <christophe.lyon@st.com> |
| 186 | |
| 187 | * elf32-arm.c (stub_reloc_type): Removed. |
| 188 | (insn_sequence): Renamed reloc_type field to r_type. |
| 189 | (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub. |
| 190 | (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise. |
| 191 | (elf32_arm_stub_long_branch_thumb_only_pic): Likewise. |
| 192 | (elf32_arm_stub_type): Add new enum entries for the new stubs. |
| 193 | (arm_stub_is_thumb): Catch new stubs. |
| 194 | (arm_type_of_stub): Handle new stubs. |
| 195 | (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs. |
| 196 | (bfd_elf32_arm_process_before_allocation): Remove useless |
| 197 | condition. |
| 198 | |
| 199 | 2009-02-25 H.J. Lu <hongjiu.lu@intel.com> |
| 200 | |
| 201 | * elf.c (elf_find_function): Use is_function_type to check |
| 202 | function symbol. |
| 203 | |
| 204 | 2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com> |
| 205 | |
| 206 | * xtensa-modules.c: Revert to previous version 1.11 due |
| 207 | to inadvertant commit. |
| 208 | |
| 209 | 2009-02-24 Sterling Augustine <sterling@tensilica.com> |
| 210 | |
| 211 | * elf32-xtensa.c (text_action_add): Separate test for action |
| 212 | type. Break if saved action is ta_widen_insn at same offset. |
| 213 | |
| 214 | 2009-02-24 Daniel Jacobowitz <dan@codesourcery.com> |
| 215 | |
| 216 | * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename |
| 217 | to elf32_arm_stub_long_branch_any_arm_pic. |
| 218 | (elf32_arm_stub_long_branch_any_thumb_pic): New. |
| 219 | (enum elf32_arm_stub_type, arm_type_of_stub) |
| 220 | (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC |
| 221 | separately. |
| 222 | |
| 223 | 2009-02-24 Joseph Myers <joseph@codesourcery.com> |
| 224 | |
| 225 | * elf32-arm.c (PREV_SEC): Update comment. |
| 226 | (group_sections): Rename argument to stubs_always_after_branch. |
| 227 | Reverse the list and place stubs at the end of input sections. |
| 228 | Undefine NEXT_SEC. |
| 229 | (elf32_arm_size_stubs): Update to use stubs_always_after_branch. |
| 230 | |
| 231 | 2009-02-23 Daniel Jacobowitz <dan@codesourcery.com> |
| 232 | |
| 233 | * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset. |
| 234 | Fix formatting. |
| 235 | (arm_size_one_stub): Remove unnecessary break. |
| 236 | (arm_map_one_stub): Fix formatting. Return after BFD_FAIL. |
| 237 | |
| 238 | 2009-02-23 Christophe Lyon <christophe.lyon@st.com> |
| 239 | |
| 240 | * elf32-arm.c (stub_insn_type): New type. |
| 241 | (stub_reloc_type): Likewise. |
| 242 | (insn_sequence): Likewise. |
| 243 | (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence. |
| 244 | (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise. |
| 245 | (elf32_arm_stub_long_branch_thumb_only): Likewise. |
| 246 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. |
| 247 | (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise. |
| 248 | (elf32_arm_stub_long_branch_any_any_pic): Likewise. |
| 249 | (elf32_arm_stub_hash_entry): Add new helper fields. |
| 250 | (stub_hash_newfunc): Initialize these new fields. |
| 251 | (arm_build_one_stub): Encode Arm and Thumb instructions separately |
| 252 | to take endianness into account. |
| 253 | (arm_size_one_stub): Compute size of stubs using insn_sequence. |
| 254 | (arm_map_one_stub): Code is now more generic, thanks to |
| 255 | insn_sequence. |
| 256 | |
| 257 | 2009-02-23 Christophe Lyon <christophe.lyon@st.com> |
| 258 | |
| 259 | * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub |
| 260 | code. |
| 261 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. |
| 262 | (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when |
| 263 | BLX is not available. Fix typo in warning message. Add comments |
| 264 | and improve formatting. |
| 265 | (arm_build_one_stub): Adjust to new |
| 266 | elf32_arm_stub_long_branch_v4t_thumb_arm stub. |
| 267 | (arm_map_one_stub): Likewise. |
| 268 | |
| 269 | 2009-02-23 Tristan Gingold <gingold@adacore.com> |
| 270 | Eric Botcazou <ebotcazou@adacore.com> |
| 271 | Douglas B Rupp <rupp@gnat.com> |
| 272 | |
| 273 | * vms.h: Update copyright year, fix comments, reorder declarations. |
| 274 | (_bfd_save_vms_section): Remove the prototype. |
| 275 | (EGPS_S_V_NO_SHIFT): New constant. |
| 276 | (bfd_vms_set_section_flags): New prototype. |
| 277 | (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New |
| 278 | constants. |
| 279 | (EGSY_S_W_FLAGS): Ditto. |
| 280 | (EGSY_S_V_QUAD_VAL): Ditto. |
| 281 | (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto. |
| 282 | (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX, |
| 283 | EGST_S_B_NAMLNG): Ditto. |
| 284 | (ESRF_S_B_NAMLNG): Ditto. |
| 285 | (ETIR_S_C_HEADER_SIZE): Ditto. |
| 286 | (EGPS_S_V_ALLOC_64BIT): Ditto. |
| 287 | (DST_S_C_EPILOG): Ditto. |
| 288 | (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto. |
| 289 | (DST_S_C_SRC_INCRLNUM_B): Ditto. |
| 290 | (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto. |
| 291 | (DST_S_L_PCLINE_UNSLONG): Ditto. |
| 292 | (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto |
| 293 | (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto |
| 294 | (DST_S_C_SOURCE_HEADER_SIZE): Ditto. |
| 295 | (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto. |
| 296 | (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto. |
| 297 | (DST_S_B_SRC_UNSBYTE): Ditto. |
| 298 | (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto. |
| 299 | Add prototypes. |
| 300 | (vms_section, vms_reloc): Remove types. |
| 301 | (hdr_struc): Replaced by ... |
| 302 | (hdr_struct): ... new type. |
| 303 | (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants. |
| 304 | (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto. |
| 305 | (EMH_DATE_LENGTH): Ditto. |
| 306 | (eom_struc): Replaced by ... |
| 307 | (eom_struct): ... new type. |
| 308 | (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants. |
| 309 | (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto. |
| 310 | (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto. |
| 311 | (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto. |
| 312 | (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto. |
| 313 | (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto. |
| 314 | (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto. |
| 315 | (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto. |
| 316 | (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto. |
| 317 | (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto. |
| 318 | (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto. |
| 319 | (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto. |
| 320 | (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto. |
| 321 | (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto. |
| 322 | (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto. |
| 323 | (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto. |
| 324 | (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto. |
| 325 | (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH) |
| 326 | (DBG_S_C_DMT_PSECT_SIZE): Ditto. |
| 327 | (enum file_type_enum): New type. |
| 328 | (struct location_struct): Removed. |
| 329 | (struct fileinfo, struct srecinfo, struct lineinfo): New types. |
| 330 | (struct funcinfo, struct module): Ditto. |
| 331 | (struct vms_private_data_struct): Update fields. |
| 332 | (struct vms_section_data_struct): New type. |
| 333 | |
| 334 | * vms.c: Update copyright year, fix comments, |
| 335 | Fix includes for DECC, add prototypes. |
| 336 | (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove |
| 337 | some initializers. |
| 338 | Use flavour to set is_vax, location_stack is removed. |
| 339 | (struct pair): Declare. |
| 340 | (fill_section_ptr): Initialize variables at declaration. |
| 341 | Add guard to set SECTION_SYM flag, handlde und section. |
| 342 | (vms_fixup_sections): Use struct pair for fill_section_ptr argument. |
| 343 | (_bfd_vms_slurp_object_records): New function, replaces previous |
| 344 | vms_object_p. |
| 345 | (vms_slurp_module): New function. |
| 346 | (vms_slurp_image): Ditto. |
| 347 | (vms_object_p): Complete rewrite. |
| 348 | (vms_mkobject): Use is_vax field to slect architecture. |
| 349 | (free_reloc_stream): New function. |
| 350 | (vms_convert_to_var): Ditto. |
| 351 | (vms_convert_to_var_1): Ditto. |
| 352 | (vms_convert_to_var_unix_filename): Ditto. |
| 353 | (vms_close_and_cleanup): Call free_reloc_stream, convert file to |
| 354 | VAR format on VMS. |
| 355 | (vms_new_section_hook): Set alignment to 0, allocate private data. |
| 356 | (vms_get_section_contents): Load content. |
| 357 | (vms_get_symbol_info): Handle undefined section. |
| 358 | (vms_find_nearest_line): Handle. |
| 359 | (alloc_reloc_stream): New function. |
| 360 | (vms_slurp_reloc_table): Ditto. |
| 361 | (vms_get_reloc_upper_bound): Make it real. |
| 362 | (vms_canonicalize_reloc): Do the real work. |
| 363 | (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA, |
| 364 | ALPHA_R_BOH. |
| 365 | (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH. |
| 366 | (vms_set_arch_mach): Check arch. |
| 367 | (vms_set_section_contents): Copy the content after allocation. |
| 368 | (vms_alpha_vec): Update object flags. |
| 369 | |
| 370 | * vms-tir.c: Update copyright year, fix comments, |
| 371 | add prototypes for new functions. |
| 372 | (dst_define_location): New function. |
| 373 | (dst_restore_location): New function. |
| 374 | (dst_retrieve_location): New function. |
| 375 | (dst_check_allocation): New function. |
| 376 | (image_dump): Call dst_check_allocation. |
| 377 | (image_write_b): Ditto. |
| 378 | (image_write_w): Ditto. |
| 379 | (image_write_l): Ditto. |
| 380 | (image_write_q): Ditto. |
| 381 | (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW, |
| 382 | STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC, |
| 383 | CTL_STKDL. |
| 384 | Call error handler instead of abort if name is not known. |
| 385 | (etir_sta): Add quarter_relocs argument and set it. |
| 386 | Fix cast. |
| 387 | (etir_sto): Ditto. |
| 388 | (etir_opr): Ditto, return FALSE in case of error. |
| 389 | (etir_ctl): Add quarter_relocs argument and set it, fix cast. |
| 390 | Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL. |
| 391 | (etir_stc): Add quarter_relocs argument and set it, fix cast. |
| 392 | Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA. |
| 393 | Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL. |
| 394 | Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS. |
| 395 | Return FALSE in case of error. |
| 396 | (tir_sta): Change sign of psect. |
| 397 | (tir_ctl): Ditto. |
| 398 | (tir_cmd): Fix cast. Makes tir_table static const. |
| 399 | (etir_cmd): Add quarter_relocs argument, makes etir_table const, |
| 400 | add argument to explain. |
| 401 | (analyze_etir): Initialize maxptr, add quarter_relocs |
| 402 | declaration, move some declarations into inner scopes. |
| 403 | Handle quarter_relocs and STO_IMM. |
| 404 | (_bfd_vms_slurp_tir): Use constant instead of hard-coded values. |
| 405 | (_bfd_vms_slurp_relocs): New function. |
| 406 | (_bfd_vms_decode_relocs): New function. |
| 407 | (sto_imm): Rewritten. |
| 408 | (start_first_etbt_record): New function. |
| 409 | (start_another_etbt_record): Ditto. |
| 410 | (etir_output_check): Ditto. |
| 411 | (defer_reloc_p): Ditto. |
| 412 | (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to |
| 413 | a for-loop. Correctly deals with contents, deals with .vmsdebug, |
| 414 | rewritte relocations handling. |
| 415 | (_bfd_vms_write_tbt): Removed. |
| 416 | (_bfd_vms_write_dbg): Ditto. |
| 417 | |
| 418 | * vms-misc.c: Update copyright year, Fix comments. |
| 419 | (_bfd_vms_get_header_values): Use 'size' instead of 'length'. |
| 420 | (maybe_adjust_record_pointer_for_object): New function. |
| 421 | (_bfd_vms_get_first_record): New function, replaces ... |
| 422 | (_bfd_vms_get_record): .. removed. |
| 423 | (_bfd_vms_get_object_record): New function. |
| 424 | (_bfd_vms_get_object_record): New function. |
| 425 | (vms_get_remaining_object_record): New function, replaces ... |
| 426 | (_bfd_vms_get_next_record): ... removed. |
| 427 | (add_new_contents): Removed. |
| 428 | (_bfd_save_vms_section): Removed. |
| 429 | (_bfd_get_vms_section): Removed. |
| 430 | (_bfd_vms_output_flush): Write in VAR format. |
| 431 | (new_symbol): Don't make UND section. |
| 432 | |
| 433 | * vms-hdr.c: Update copyright year, update list of record handled. |
| 434 | (_bfd_vms_slurp_hdr): rec_length renamed to rec_size. |
| 435 | (_bfd_vms_write_hdr): Strip vms and unix patches, |
| 436 | add comments, truncate module name at 31 characters, |
| 437 | use constants instead of hard-coded value, |
| 438 | write BFD version instead of a fixed string. |
| 439 | (_bfd_vms_slurp_ihd): New function. |
| 440 | (_bfd_vms_slurp_isd): Ditto. |
| 441 | (_bfd_vms_slurp_ihs): Ditto. |
| 442 | (new_module): Ditto. |
| 443 | (parse_module): Ditto |
| 444 | (build_module_list): Ditto. |
| 445 | (module_find_nearest_line): Ditto. |
| 446 | (_bfd_vms_find_nearest_dst_line): Ditto. |
| 447 | (vms_slurp_debug): Ditto. |
| 448 | (_bfd_vms_slurp_dbg): Ditto. |
| 449 | (_bfd_vms_slurp_tbt): Ditto. |
| 450 | (_bfd_vms_write_dbg): Ditto. |
| 451 | (_bfd_vms_write_tbt): Ditto. |
| 452 | |
| 453 | * vms-gsd.c: Update copyright year, update list of records handled. |
| 454 | (EVAX_LITERALS_NAME): New macro. |
| 455 | (evax_section_flags): Add an entry for EVAX_LITERALS_NAME. |
| 456 | (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd. |
| 457 | (register_universal_symbol): New function and prototype. |
| 458 | (_bfd_vms_slurp_gsd): Fix indentations and casts, |
| 459 | improve debug messages, |
| 460 | use constants instead of hard-coded value, |
| 461 | fix missing endianness conversion, |
| 462 | handle global symbol (SYMG). |
| 463 | (bfd_vms_set_section_flags): New function. |
| 464 | (_bfd_vms_write_gsd): Don't write .vmsdebug section, |
| 465 | handle section literals, |
| 466 | fix indentation, |
| 467 | handle section bfd and vms flags, |
| 468 | don't output LIB$INITIALIZE symbol, |
| 469 | fix handling of weak symbols, |
| 470 | fix evax vs vax procedure descriptor, |
| 471 | handle absolute symbols. |
| 472 | |
| 473 | * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR, |
| 474 | BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations. |
| 475 | |
| 476 | * makefile.vms (DEFS): Fix flags for VMS. |
| 477 | |
| 478 | * bfdio.c (real_fopen): Handle multiple VMS fopen attributes. |
| 479 | |
| 480 | * bfd-in2.h: Regenerated. |
| 481 | * libbfd.h: Regenerated. |
| 482 | |
| 483 | 2009-02-20 Cary Coutant <ccoutant@google.com> |
| 484 | |
| 485 | * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime |
| 486 | in struct stat. |
| 487 | |
| 488 | 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com> |
| 489 | |
| 490 | PR gas/7059 |
| 491 | * coffcode.h (coff_write_object_contents): Don't let the string |
| 492 | table offset overflow the s_name field when using long section names. |
| 493 | |
| 494 | 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com> |
| 495 | |
| 496 | * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which |
| 497 | control long section name handling with ECOFF_NO_LONG_SECTION_NAMES. |
| 498 | * coff-mips.c (mips_ecoff_backend_data): Likewise. |
| 499 | * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which |
| 500 | control long section name handling with XCOFF_NO_LONG_SECTION_NAMES. |
| 501 | (bfd_pmac_xcoff_backend_data): Likewise. |
| 502 | * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise. |
| 503 | (bfd_xcoff_aix5_backend_data): Likewise. |
| 504 | (xcoff64_write_object_contents): Delete unused long_section_names |
| 505 | local variable. |
| 506 | * coff-sh.c (bfd_coff_small_swap_table): Initialise long section |
| 507 | name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire |
| 508 | struct non-const. |
| 509 | * coffcode.h (documentation): Update to describe long section names. |
| 510 | (COFFLONGSECTIONCATHELPER): New helper macro. |
| 511 | (BLANKOR1TOODD): Likewise. |
| 512 | (COFF_ENABLE_LONG_SECTION_NAMES): Likewise. |
| 513 | (COFF_LONG_SECTION_NAMES_SETTER): Likewise. |
| 514 | (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise. |
| 515 | (bfd_coff_set_long_section_names_allowed): New function. |
| 516 | (bfd_coff_set_long_section_names_disallowed): Likewise. |
| 517 | (struct bfd_coff_backend_data): Add new backend hook function |
| 518 | pointer _bfd_coff_set_long_section_names. |
| 519 | (bfd_coff_set_long_section_names): New backend hook. |
| 520 | (coff_write_object_contents): Only generate long section names if |
| 521 | bfd_coff_long_section_names() indicates they are currently enabled. |
| 522 | (bfd_coff_std_swap_table): Make non-const, and initialise long |
| 523 | section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. |
| 524 | (ticoff0_swap_table): Likewise to both. |
| 525 | (ticoff1_swap_table): Again, likewise to both. |
| 526 | * coffgen.c (make_a_section_from_file): Allow long section names |
| 527 | as inputs even if not currently allowed for outputs. |
| 528 | * ecoff.c (_bfd_ecoff_no_long_sections): New function. |
| 529 | * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank. |
| 530 | * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 531 | * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 532 | * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 533 | * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 534 | * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 535 | * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 536 | * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 537 | * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 538 | * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 539 | * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 540 | * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 541 | * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 542 | * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 543 | * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 544 | * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. |
| 545 | * libcoff-in.h: Update copyright year to cause updated copyright |
| 546 | year in generated libcoff.h, and fix typo. |
| 547 | * libcoff.h: Regenerated. |
| 548 | * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro. |
| 549 | (_bfd_ecoff_no_long_sections): Add prototype. |
| 550 | * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro. |
| 551 | * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already |
| 552 | defined by an including .c file. |
| 553 | * ticoff.h (ticoff0_swap_table): Make non-const, and initialise |
| 554 | long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. |
| 555 | (ticoff1_swap_table): Likewise to both. |
| 556 | |
| 557 | 2009-02-18 Christophe Lyon <christophe.lyon@st.com> |
| 558 | |
| 559 | * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic |
| 560 | stub. Catch default case error. |
| 561 | (arm_map_one_stub): Add missing Thumb mapping symbol. |
| 562 | |
| 563 | 2009-02-18 Bjoern Haase <bjoern.m.haase@web.de> |
| 564 | |
| 565 | PR 9841 |
| 566 | * elf32-avr.c: Handle case where no local symbos exist correctly. |
| 567 | |
| 568 | 2009-02-16 Christophe Lyon <christophe.lyon@st.com> |
| 569 | |
| 570 | bfd/ |
| 571 | * elf32-arm.c (arm_long_branch_stub, |
| 572 | arm_thumb_v4t_long_branch_stub, |
| 573 | arm_thumb_thumb_long_branch_stub, |
| 574 | arm_thumb_arm_v4t_long_branch_stub, |
| 575 | arm_thumb_arm_v4t_short_branch_stub, |
| 576 | arm_pic_long_branch_stub): |
| 577 | Renamed to elf32_arm_stub_long_branch_any_any, |
| 578 | elf32_arm_stub_long_branch_v4t_arm_thumb, |
| 579 | elf32_arm_stub_long_branch_thumb_only, |
| 580 | elf32_arm_stub_long_branch_v4t_thumb_arm, |
| 581 | elf32_arm_stub_short_branch_v4t_thumb_arm, |
| 582 | elf32_arm_stub_long_branch_any_any_pic. |
| 583 | (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch, |
| 584 | arm_thumb_thumb_stub_long_branch, |
| 585 | arm_thumb_arm_v4t_stub_long_branch, |
| 586 | arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch): |
| 587 | Renamed to arm_stub_long_branch_any_any, |
| 588 | arm_stub_long_branch_v4t_arm_thumb, |
| 589 | arm_stub_long_branch_thumb_only, |
| 590 | arm_stub_long_branch_v4t_thumb_arm, |
| 591 | arm_stub_short_branch_v4t_thumb_arm, |
| 592 | arm_stub_long_branch_any_any_pic. |
| 593 | |
| 594 | 2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 595 | |
| 596 | * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used |
| 597 | in branch offset check. |
| 598 | |
| 599 | 2009-02-15 Alan Modra <amodra@bigpond.net.au> |
| 600 | |
| 601 | * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx, |
| 602 | add toc.symndx and toc.add. |
| 603 | (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here. |
| 604 | Set up toc.add. |
| 605 | (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all |
| 606 | callers. |
| 607 | (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd. |
| 608 | (branch_reloc_hash_match): New function, extracted from.. |
| 609 | (ppc64_elf_tls_optimize): ..here. |
| 610 | (ppc64_elf_relocate_section): Properly set addends when optimizing |
| 611 | tls sequences. Avoid unnecessary reading and writing of insns. |
| 612 | Only redo reloc when symbol changed. Bypass symbol checks when |
| 613 | using tlsld_got. |
| 614 | * elf32-ppc.c (ppc_elf_tls_setup): Correct comment. |
| 615 | (branch_reloc_hash_match): New function, extracted from.. |
| 616 | (ppc_elf_tls_optimize): ..here. |
| 617 | (ppc_elf_relocate_section): Avoid unnecessary reading of insns. |
| 618 | Don't clear addend on zapped __tls_get_addr reloc. |
| 619 | |
| 620 | 2009-02-12 Nick Clifton <nickc@redhat.com> |
| 621 | |
| 622 | PR 9827 |
| 623 | * elflink.c (bfd_elf_final_link): When counting the relocations, |
| 624 | if the header size has not been set yet then assume that it will |
| 625 | match the output section's reloc type. |
| 626 | |
| 627 | 2009-02-12 Nathan Sidwell <nathan@codesourcery.com> |
| 628 | |
| 629 | * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for |
| 630 | relocatable link. |
| 631 | |
| 632 | 2009-02-09 Alan Modra <amodra@bigpond.net.au> |
| 633 | |
| 634 | * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors. |
| 635 | (find_function): Likewise. |
| 636 | (pasted_function): Don't error if no prior function found. |
| 637 | (discover_functions): Revert 2008-12-10 change. Extend first |
| 638 | function range to start of section. |
| 639 | |
| 640 | 2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 641 | |
| 642 | * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert |
| 643 | functions to C90. |
| 644 | * elf64-hppa.h: Likewise. |
| 645 | |
| 646 | 2009-02-06 Joseph Myers <joseph@codesourcery.com> |
| 647 | |
| 648 | * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special |
| 649 | .sbss handling. |
| 650 | |
| 651 | 2009-02-04 Alan Modra <amodra@bigpond.net.au> |
| 652 | |
| 653 | * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize. |
| 654 | Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*. |
| 655 | |
| 656 | 2009-02-03 Sandip Matte <sandip@rmicorp.com> |
| 657 | |
| 658 | * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr. |
| 659 | * archures.c (bfd_mach_mips_xlr): Define. |
| 660 | * bfd-in2.h: Regenerate. |
| 661 | * cpu-mips.c (I_xlr): Define. |
| 662 | (arch_info_struct): Add XLR entry. |
| 663 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR. |
| 664 | (mips_set_isa_flags): Handle bfd_mach_mips_xlr |
| 665 | (mips_mach_extensions): Add XLR entry. |
| 666 | |
| 667 | 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com> |
| 668 | |
| 669 | * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound. |
| 670 | |
| 671 | 2009-02-03 Carlos O'Donell <carlos@codesourcery.com> |
| 672 | |
| 673 | * configure.in: AC_SUBST pdfdir. |
| 674 | * Makefile.am: Add install-pdf, install-pdf-am |
| 675 | and install-pdf-recursive targets. Define pdfdir. |
| 676 | * doc/Makefile.am: Define pdf__strip_dir. Add |
| 677 | install-pdf and install-pdf-am targets. |
| 678 | * po/Make-in: Add install-pdf target. |
| 679 | * configure: Regenerate. |
| 680 | * Makefile.in: Regenerate |
| 681 | * doc/Makefile.in: Regenerate. |
| 682 | |
| 683 | 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com> |
| 684 | |
| 685 | * bfd-in2.h: Regenerate. |
| 686 | * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and |
| 687 | fields from n_entries to n_slots where appropriate, update comments. |
| 688 | (HOWTO): Add TLS relocations. |
| 689 | (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*. |
| 690 | (enum elf_m68k_got_offset_size): New enum. |
| 691 | (struct elf_m68k_got_entry.type): Move field to ... |
| 692 | (struct elf_m68k_got_entry_key): ... here. Update all uses. |
| 693 | (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static |
| 694 | functions. |
| 695 | (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static |
| 696 | functions. |
| 697 | (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries |
| 698 | fields into n_entries array. Update comments. |
| 699 | (elf_m68k_init_got): Simplify, update all uses. |
| 700 | (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update. |
| 701 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot |
| 702 | GOT entries; update name, update all uses. |
| 703 | (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto. |
| 704 | (elf_m68k_get_got_entry): Update. |
| 705 | (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries, |
| 706 | simplify. |
| 707 | (elf_m68k_remove_got_entry_type): Simplify. |
| 708 | (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update. |
| 709 | (elf_m68k_can_merge_gots): Update. |
| 710 | (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update. |
| 711 | (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot |
| 712 | GOT entries, simplify. |
| 713 | (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same. |
| 714 | (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff |
| 715 | field, remove obsoleted local_n_entries field. |
| 716 | (elf_m68k_partition_multi_got_2): New static function. |
| 717 | (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it; |
| 718 | update. |
| 719 | (elf_m68k_remove_got_entry_type): Update. |
| 720 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. |
| 721 | (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary |
| 722 | update of sgot->size and srelgot->size. |
| 723 | (elf_m68k_gc_sweep_hook): Update. |
| 724 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. |
| 725 | (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle |
| 726 | TLS relocations. |
| 727 | * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations. |
| 728 | * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*. |
| 729 | |
| 730 | 2009-02-02 DJ Delorie <dj@redhat.com> |
| 731 | |
| 732 | * elf32-mep.c (config_names): Regenerate configuration. |
| 733 | |
| 734 | 2009-02-02 Alan Modra <amodra@bigpond.net.au> |
| 735 | |
| 736 | * elf-bfd.h (bfd_elf_get_str_section): Don't declare. |
| 737 | (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise. |
| 738 | * elf.c (bfd_elf_get_str_section): Make static. |
| 739 | (bfd_elf_find_section): Delete. |
| 740 | * libbfd.h: Regenerate. |
| 741 | |
| 742 | 2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 743 | |
| 744 | * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove. |
| 745 | (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs. |
| 746 | |
| 747 | 2009-01-31 Alan Modra <amodra@bigpond.net.au> |
| 748 | |
| 749 | * elflink.c (on_needed_list): New function. |
| 750 | (elf_link_add_object_symbols): Link in --as-needed libs if they |
| 751 | satisfy undefined symbols in other libs. |
| 752 | |
| 753 | 2009-01-30 Julian Brown <julian@codesourcery.com> |
| 754 | |
| 755 | * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with |
| 756 | EXEC_P or DYNAMIC flags, and skip sections which are being linked |
| 757 | with --just-symbols (-R). |
| 758 | |
| 759 | 2009-01-29 Adam Nemet <anemet@caviumnetworks.com> |
| 760 | |
| 761 | * dwarf2.c (read_rangelist): Use read_address to read low_pc and |
| 762 | high_pc in order to properly sign-extend VMAs. |
| 763 | |
| 764 | 2009-01-29 Daniel Jacobowitz <dan@codesourcery.com> |
| 765 | Mark Shinwell <shinwell@codesourcery.com> |
| 766 | Catherine Moore <clm@codesourcery.com> |
| 767 | |
| 768 | * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments. |
| 769 | |
| 770 | 2009-01-28 Catherine Moore <clm@codesourcery.com> |
| 771 | |
| 772 | * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and |
| 773 | SEC_LOAD for dynamic relocation sections. |
| 774 | |
| 775 | 2009-01-27 Hans-Peter Nilsson <hp@axis.com> |
| 776 | |
| 777 | * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table |
| 778 | (info)->tls_size, not elf_hash_table (info)->tls_sec->size for |
| 779 | the size of local TLS data. |
| 780 | |
| 781 | 2009-01-27 Andreas Schwab <schwab@suse.de> |
| 782 | |
| 783 | * mach-o.c (bfd_mach_o_archive_p): Restrict the number of |
| 784 | architectures in the archive. |
| 785 | |
| 786 | 2009-01-27 Hans-Peter Nilsson <hp@axis.com> |
| 787 | |
| 788 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL> |
| 789 | <R_CRIS_32_DTPREL>: Correct relocation value. |
| 790 | |
| 791 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8> |
| 792 | <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined |
| 793 | symbols with non-default visibility. |
| 794 | |
| 795 | 2009-01-26 Nathan Sidwell <nathan@codesourcery.com> |
| 796 | |
| 797 | * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs |
| 798 | describing the trampolines. |
| 799 | (ppc_elf_relocate_section): Update relocs to describe the |
| 800 | trampolines. |
| 801 | |
| 802 | 2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
| 803 | |
| 804 | * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that |
| 805 | branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F |
| 806 | and R_PARISC_PCREL12F relocations. |
| 807 | |
| 808 | 2009-01-24 Alan Modra <amodra@bigpond.net.au> |
| 809 | |
| 810 | PR 6022 |
| 811 | * elflink.c (find_version_for_sym): New function split out from, |
| 812 | but without export_dynamic test, .. |
| 813 | (_bfd_elf_link_assign_sym_version): ..here. |
| 814 | (_bfd_elf_export_symbol): Use it. |
| 815 | |
| 816 | 2009-01-23 Alan Modra <amodra@bigpond.net.au> |
| 817 | |
| 818 | * elf-bfd.h (struct elf_assign_sym_version_info): Delete. |
| 819 | (struct elf_info_failed, struct elf_find_verdep_info): Move to.. |
| 820 | * elflink.c: ..here, somewhat modified. |
| 821 | * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol, |
| 822 | _bfd_elf_link_find_version_dependencies, |
| 823 | _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section, |
| 824 | _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol, |
| 825 | _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't |
| 826 | declare.. |
| 827 | * elflink.c: ..and make static here. |
| 828 | (_bfd_elf_link_find_version_dependencies): Adjust for removal |
| 829 | of output_bfd from struct elf_find_verdep_info. |
| 830 | (_bfd_elf_link_assign_sym_version): Similarly adjust to use |
| 831 | struct elf_info_failed. |
| 832 | (bfd_elf_size_dynamic_sections): Adjust. |
| 833 | |
| 834 | 2009-01-22 Alan Modra <amodra@bigpond.net.au> |
| 835 | |
| 836 | PR 6832 |
| 837 | * dwarf2.c (find_line): Don't update stash->sec_info_ptr until |
| 838 | after comp_unit_find_line call. |
| 839 | |
| 840 | 2009-01-21 Nick Clifton <nickc@redhat.com> |
| 841 | |
| 842 | PR 9769 |
| 843 | * vmsutil.c (vms_file_stats_name): Remove use of unsupported |
| 844 | tm_gmtoff field in struct tm. |
| 845 | |
| 846 | 2009-01-21 Alan Modra <amodra@bigpond.net.au> |
| 847 | |
| 848 | * elf32-spu.h (struct spu_elf_params): Add non_ia_text. |
| 849 | * elf32-spu.c (mark_overlay_section): Only include .text.ia.* |
| 850 | sections in soft-icache lines unless non_ia_text. Don't add |
| 851 | rodata if doing so would exceed line size. |
| 852 | |
| 853 | 2009-01-19 Hans-Peter Nilsson <hp@axis.com> |
| 854 | |
| 855 | * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol |
| 856 | types than bfd_link_hash_indirect, before early return, call |
| 857 | _bfd_elf_link_hash_copy_indirect. |
| 858 | |
| 859 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
| 860 | |
| 861 | * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering. |
| 862 | * elf-bfd.h (elf_backend_data): Add obj_attrs_order. |
| 863 | * elf32-arm.c (elf32_arm_obj_attrs_order): New function. |
| 864 | (elf_backend_obj_attrs_order): New define. |
| 865 | * elfxx-target.h (elf_backend_obj_attrs_order): New define. |
| 866 | (elfNN_bed): Add elf_backend_obj_attrs_order. |
| 867 | |
| 868 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
| 869 | |
| 870 | * elf-attrs.c (is_default_attr): Substitute magic numbers with macros. |
| 871 | (obj_attr_size): Likewise. |
| 872 | (write_obj_attribute): Likewise. |
| 873 | (_bfd_elf_copy_obj_attributes): Likewise. |
| 874 | (_bfd_elf_parse_attributes): Likewise. |
| 875 | * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define. |
| 876 | (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines. |
| 877 | (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines. |
| 878 | (ATTR_TYPE_HAS_NO_DEFAULT): New define. |
| 879 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers |
| 880 | with macros. |
| 881 | |
| 882 | 2009-01-19 Andrew Stubbs <ams@codesourcery.com> |
| 883 | |
| 884 | * elf-attrs.c (is_default_attr): Support defaultless attributes. |
| 885 | (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type. |
| 886 | (bfd_elf_add_obj_attr_string): Likewise. |
| 887 | (bfd_elf_add_obj_attr_int_string): Likewise. |
| 888 | (_bfd_elf_parse_attributes): Allow for unknown flag bits in type. |
| 889 | * elf-bfd.h (struct obj_attribute): Document new flag bit. |
| 890 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that |
| 891 | Tag_nodefaults has no default value. |
| 892 | (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults |
| 893 | comment to reflect the new state. |
| 894 | |
| 895 | 2009-01-19 Alan Modra <amodra@bigpond.net.au> |
| 896 | |
| 897 | PR 9695 |
| 898 | * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC. |
| 899 | (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC. |
| 900 | (adjust_z_magix): Delete dead code handling QMAGIC. |
| 901 | |
| 902 | 2009-01-16 Kai Tietz <kai.tietz@onevision.com> |
| 903 | |
| 904 | * coffcode.h (styp_to_sec_flags): Correct interpretation of |
| 905 | IMAGE_SCN_MEM_DISCARDABLE. |
| 906 | |
| 907 | 2009-01-16 Alan Modra <amodra@bigpond.net.au> |
| 908 | |
| 909 | * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute |
| 910 | SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS. |
| 911 | * configure.in (commonbfdlib): Delete. |
| 912 | (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/ |
| 913 | (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such |
| 914 | is available, not just for linux. |
| 915 | * po/SRC-POTFILES.in: Regenerate. |
| 916 | * Makefile.in: Regenerate. |
| 917 | * configure: Regenerate. |
| 918 | |
| 919 | 2009-01-15 Andrew Stubbs <ams@codesourcery.com> |
| 920 | Julian Brown <julian@codesourcery.com> |
| 921 | |
| 922 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known |
| 923 | ARM attributes in ABI 2.07. |
| 924 | * elf32-arm.c (get_secondary_compatible_arch): New function. |
| 925 | (set_secondary_compatible_arch): New function. |
| 926 | (tag_cpu_arch_combine): New function. |
| 927 | (elf32_arm_copy_one_eabi_other_attribute): Delete function. |
| 928 | (elf32_arm_copy_eabi_other_attribute_list): Delete function. |
| 929 | (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to |
| 930 | make it fit with order_01243. |
| 931 | Add support for Tag_also_compatible_with, |
| 932 | Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use, |
| 933 | Tag_MPextension_use, Tag_nodefaults and Tag_conformance. |
| 934 | Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name, |
| 935 | Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension, |
| 936 | Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed, |
| 937 | Tag_VFP_arch and Tag_ABI_FP_16bit_format. |
| 938 | Rework the way unknown attributes are handled. |
| 939 | Defer errors until all attributes have been processed. |
| 940 | |
| 941 | 2009-01-15 Andrew Stubbs <ams@codesourcery.com> |
| 942 | |
| 943 | * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to |
| 944 | bfd_elf_add_obj_attr_int_string. |
| 945 | Read Tag_compatibility from its new location in the attribute array, |
| 946 | rather than the attribute list. |
| 947 | (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat -> |
| 948 | bfd_elf_add_obj_attr_int_string. |
| 949 | (_bfd_elf_parse_attributes): Likewise. |
| 950 | (_bfd_elf_merge_object_attributes): There's now only one |
| 951 | Tag_compatibility, and it's in the array, not the list. |
| 952 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include |
| 953 | Tag_compatibility. |
| 954 | (bfd_elf_add_obj_attr_compat): Rename to |
| 955 | bfd_elf_add_obj_attr_int_string. |
| 956 | (bfd_elf_add_proc_attr_compat): Rename to |
| 957 | bfd_elf_add_proc_attr_int_string. |
| 958 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle |
| 959 | Tag_compatibility. |
| 960 | |
| 961 | 2009-01-15 Douglas B Rupp <rupp@gnat.com> |
| 962 | |
| 963 | * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo |
| 964 | (BFD32_BACKENDS_CFILES): Add new file vmsutil.c |
| 965 | (vmsutil.lo): Add dependency rule. |
| 966 | * Makefile.in: Regenerate. |
| 967 | * config.bfd (ia64*-*-*vms*): Add case. |
| 968 | * configure.in (bfd_elf64_ia64_vms_vec): Add case. |
| 969 | * configure: Regenerate. |
| 970 | * vmsutil.c: New file. |
| 971 | * vmsutil.h: New file. |
| 972 | * elf-bfd.h (struct bfd_elf_special_section): Change type of |
| 973 | attr to bfd_vma. |
| 974 | * elfxx-ia64.c (elfNN_vms_post_process_headers, |
| 975 | elfNN_vms_section_processing, elfNN_vms_final_write_processing, |
| 976 | elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr, |
| 977 | elfNN_vms_object_p): New functions |
| 978 | * targets.c (bfd_elf64_ia64_vms_vec): New target. |
| 979 | |
| 980 | 2009-01-14 H.J. Lu <hongjiu.lu@intel.com> |
| 981 | |
| 982 | PR ld/9727 |
| 983 | * elflink.c (elf_gc_sweep): Exclude the group section if the |
| 984 | first member of the section group is excluded. |
| 985 | |
| 986 | 2009-01-14 Alan Modra <amodra@bigpond.net.au> |
| 987 | |
| 988 | PR 9735 |
| 989 | * syms.c (_bfd_stab_section_find_nearest_line): Don't free |
| 990 | saved filename, use bfd_alloc rather than bfd_malloc for it. |
| 991 | |
| 992 | 2009-01-13 Alan Modra <amodra@bigpond.net.au> |
| 993 | |
| 994 | * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. |
| 995 | |
| 996 | 2009-01-13 Alan Modra <amodra@bigpond.net.au> |
| 997 | |
| 998 | * elf32-spu.c (remove_cycles): Always set call->max_depth. |
| 999 | |
| 1000 | 2009-01-12 Alan Modra <amodra@bigpond.net.au> |
| 1001 | |
| 1002 | * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. |
| 1003 | |
| 1004 | 2009-01-12 Alan Modra <amodra@bigpond.net.au> |
| 1005 | |
| 1006 | * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2, |
| 1007 | num_lines_log2. |
| 1008 | (struct got_entry): Add br_addr. |
| 1009 | (struct call_info): Add priority. |
| 1010 | (struct function_info): Add lr_store and sp_adjust. |
| 1011 | (spu_elf_setup): Init line_size_log2 and num_lines_log2. |
| 1012 | (spu_elf_find_overlays): For soft-icache, mark any section within cache |
| 1013 | area as an overlay, and check that no other overlays exist. Look up |
| 1014 | icache overlay manager entry sym. |
| 1015 | (BRA_STUBS, BRA, BRASL): Define. |
| 1016 | (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub. |
| 1017 | (needs_ovl_stub): Adjust for soft-icache. Return priority encoded |
| 1018 | in branch insn. |
| 1019 | (count_stub, build_stub): Support soft-icache. |
| 1020 | (build_spuear_stubs, process_stubs): Adjust build_stub call. |
| 1021 | (spu_elf_size_stubs): Size soft-icache stubs. |
| 1022 | (overlay_index): New function. |
| 1023 | (spu_elf_build_stubs): Make static. Support soft-icache. |
| 1024 | (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache. |
| 1025 | (find_function_stack_adjust): Save lr store and stack adjust insn |
| 1026 | offsets. |
| 1027 | (maybe_insert_function): Adjust find_function_stack_adjust call. |
| 1028 | (mark_functions_via_relocs): Retrieve priority. |
| 1029 | (remove_cycles): Only warn about pruned arcs when stack_analysis. |
| 1030 | (sort_calls): Sort by priority first. |
| 1031 | (mark_overlay_section): Ignore .ovl.init. |
| 1032 | (sum_stack): Only print when stack_analysis. |
| 1033 | (print_one_overlay_section): New function, extracted from.. |
| 1034 | (spu_elf_auto_overlay): ..here. Support soft-icache overlays. |
| 1035 | (spu_elf_stack_analysis): Only print when htab->stack_analysis. |
| 1036 | (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive |
| 1037 | analysis. Call spu_elf_build_stubs. |
| 1038 | (spu_elf_relocate_section): For soft-icache encode overlay index |
| 1039 | into addresses. |
| 1040 | (spu_elf_output_symbol_hook): Support soft-icache. |
| 1041 | (spu_elf_modify_program_headers: Likewise. |
| 1042 | |
| 1043 | * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename |
| 1044 | num_regions to num_lines. Add line_size and max_branch. |
| 1045 | (enum _ovly_flavour): Add ovly_soft_icache. |
| 1046 | (spu_elf_build_stubs): Delete. |
| 1047 | |
| 1048 | 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 1049 | |
| 1050 | * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4 |
| 1051 | relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'. |
| 1052 | |
| 1053 | 2009-01-07 Hans-Peter Nilsson <hp@axis.com> |
| 1054 | |
| 1055 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> |
| 1056 | <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in |
| 1057 | the program, the known offset starts at the negative size of the |
| 1058 | TLS section. |
| 1059 | <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: |
| 1060 | Similar. |
| 1061 | |
| 1062 | 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com> |
| 1063 | |
| 1064 | * config.bfd: Add lm32-*-rtems*. |
| 1065 | |
| 1066 | 2009-01-03 H.J. Lu <hongjiu.lu@intel.com> |
| 1067 | |
| 1068 | * coff-ppc.c: Add 2009 to Copyright. |
| 1069 | * elf32-cris.c: Likewise. |
| 1070 | * elflink.c: Likewise. |
| 1071 | |
| 1072 | 2009-01-03 Hans-Peter Nilsson <hp@axis.com> |
| 1073 | |
| 1074 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename |
| 1075 | gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry. |
| 1076 | |
| 1077 | 2009-01-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1078 | |
| 1079 | PR ld/9679 |
| 1080 | * elflink.c (elf_merge_st_other): New. |
| 1081 | (_bfd_elf_merge_symbol): Use it on skipped weak definitions and |
| 1082 | hide them if needed. |
| 1083 | (elf_link_add_object_symbols): Updated. |
| 1084 | |
| 1085 | 2009-01-02 H.J. Lu <hongjiu.lu@intel.com> |
| 1086 | |
| 1087 | PR ld/9676 |
| 1088 | * elflink.c (elf_link_add_object_symbols): Update def_dynamic, |
| 1089 | ref_dynamic and dynamic_def fields when setting def_regular |
| 1090 | to 1. |
| 1091 | |
| 1092 | 2009-01-02 Curtis Mackie <curtmackevo@gmail.com> |
| 1093 | |
| 1094 | PR 9682 |
| 1095 | * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string |
| 1096 | literal. |
| 1097 | |
| 1098 | For older changes see ChangeLog-2008 |
| 1099 | \f |
| 1100 | Local Variables: |
| 1101 | mode: change-log |
| 1102 | left-margin: 8 |
| 1103 | fill-column: 74 |
| 1104 | version-control: never |
| 1105 | End: |