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