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