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