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