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