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