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