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