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