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