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