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