]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
* dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
85cfcbfb
AM
12010-08-02 Alan Modra <amodra@gmail.com>
2
3 PR 11866
4 * elf.c (assign_file_positions_for_load_sections): Use p_vaddr to
5 calculate off_adjust rather than first section vma.
6
b20dd2ce
L
72010-07-30 H.J. Lu <hongjiu.lu@intel.com>
8
9 * elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.
10
e95c64cb
AG
112010-07-30 Anthony Green <green@moxielogic.com>
12
13 * config.bfd (targ_cpu): Add moxie-*-rtems support.
14
d62b3684
AM
152010-07-29 Alan Modra <amodra@gmail.com>
16
17 * elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in
18 .toc section, even when none are used in relocs.
19
9684f078
MR
202010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
21
22 * elfxx-mips.h: Include "elf/mips.h".
23 (gprel16_reloc_p): New static inline function.
24 * elfxx-mips.c (_bfd_mips_elf_check_relocs)
25 [R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]:
26 Use got16_reloc_p.
27 (_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use
28 gprel16_reloc_p.
29 * elf32-mips.c (mips_info_to_howto_rel): Likewise.
30 * elfn32-mips.c (mips_info_to_howto_rel): Likewise.
31
2b2c11bd
MR
322010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
33
34 * elf64-mips.c (mips_elf64_howto_table_rela)
35 [R_MIPS_TLS_DTPMOD64]: Clear partial_inplace.
36 [R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
37 [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
38 [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise.
39 [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
40 * elfn32-mips.c (elf_mips_howto_table_rela)
41 [R_MIPS_TLS_DTPMOD32]: Likewise.
42 [R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
43 [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
44 [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise.
45 [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
46
1cd986c5
NC
472010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
48 Ina Pandit <ina.pandit@kpitcummins.com>
49
50 * archures.c (DESCRIPTION): Define bfd_mach_v850e2 and
51 bfd_mach_v850e2v3.
52 * reloc.c (bfd_architecture): Define bfd_mach_v850e2 and
53 bfd_mach_v850e2v3.
54 (BFD_RELOC_V850_16_PCREL, BFD_RELOC_V850_17_PCREL,
55 BFD_RELOC_V850_22_PCREL, BFD_RELOC_V850_23,
56 BFD_RELOC_V850_32_PCREL, BFD_RELOC_V850_32_ABS,
57 BFD_RELOC_V850_16_SPLIT_OFFSET, BFD_RELOC_V850_16_S1,
58 BFD_RELOC_V850_LO16_SPLIT_OFFSET, BFD_RELOC_V850_SDA_15_16_OFFSET,
59 BFD_RELOC_V850_ZDA_16_16_OFFSET, BFD_RELOC_V850_CALLT_15_16_OFFSET,
60 BFD_RELOC_V850_32_GOTPCREL, BFD_RELOC_V850_16_GOT,
61 BFD_RELOC_V850_32_GOT, BFD_RELOC_V850_22_PLT_PCREL,
62 BFD_RELOC_V850_32_PLT_PCREL, BFD_RELOC_V850_COPY,
63 BFD_RELOC_V850_GLOB_DAT, BFD_RELOC_V850_JMP_SLOT,
64 BFD_RELOC_V850_RELATIVE, BFD_RELOC_V850_16_GOTOFF,
65 BFD_RELOC_V850_32_GOTOFF, BFD_RELOC_V850_CODE,
66 BFD_RELOC_V850_DATA): New relocations for V850 target.
67 * config.bfd: Match all v850 targets.
68 * cpu-v850.c (arch_info_struct): Define V850e2 and V850e2v3.
69 * elf32-v850.c (v850_elf_check_relocs): Check the newly added
70 relocations.
71 (v850_elf_perform_relocation ): Update the newly added
72 relocations.
73 (v850_elf_howto_t): Update the specifications of added
74 relocations.
75 (v850_elf_reloc_map): Update the relocation mappings.
76 (v850_elf_final_link_relocate): Maps added relocation into the
77 appropriate howto structure.
78 (v850_elf_object_p): Add support for V850E2 and V850E2V3.
79 (v850_elf_final_write_processing): Likewise.
80 (v850_elf_merge_private_bfd_data): Likewise.
81 (v850_elf_print_private_bfd_data): Likewise.
82 * libbfd.h: Regenerate.
83 * bfd-in2.h: Regenerate.
84
21fd2dbd
AM
852010-07-23 Alan Modra <amodra@gmail.com>
86
87 * archive.c (_bfd_archive_bsd44_construct_extended_name_table):
88 Correct format specifier.
89
c6a3cf87
AM
902010-07-22 Alan Modra <amodra@gmail.com>
91
92 * ecoff.c: Don't include aout/ranlib.h.
93 (_bfd_ecoff_slurp_armap): Use correct struct for ardata->symdefs.
94 (_bfd_ecoff_write_armap): Output ar_date and ar_size using
95 _bfd_ar_spacepad.
96
4c1534c7
AM
972010-07-22 Alan Modra <amodra@gmail.com>
98
99 * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
100 relocs.
101
f4638467
AM
1022010-07-20 Alan Modra <amodra@gmail.com>
103
104 * elf.c (assign_file_positions_for_load_sections): Check that
105 zero size sections are allocated in segments too.
106 (assign_file_positions_for_non_load_sections): Warn if zero
107 size alloc sections are found here.
108 (copy_elf_program_header): Don't drop zero size sections from
109 segment map.
110 (copy_private_bfd_data): Check for changes in zero size sections.
111
b5599592
AM
1122010-07-17 Alan Modra <amodra@gmail.com>
113
114 * elf.c (_bfd_elf_map_sections_to_segments): Force new segment
115 for sections with overlapping LMAs.
116 (assign_file_positions_for_load_sections): Catch overlap for
117 sections that wrap around the address space. Replace a
118 warning that duplicates ld's --check-sections error with a
119 warning that lma has been adjusted for overlapping sections.
120
8c2ccebd
CC
1212010-07-14 Cary Coutant <ccoutant@google.com>
122
123 PR ld/11817
124 * dwarf2.c (read_section): Revert patch for compressed debug sections.
125 (find_line): Likewise.
126 (read_and_uncompress_section): Remove.
127
a7b16ceb
L
1282010-07-13 H.J. Lu <hongjiu.lu@intel.com>
129
130 PR ld/11812
131 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't
132 allocate .got.plt section if there are no GOT nor PLT
133 entries.
134 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
135
bb1cb422
L
1362010-07-13 H.J. Lu <hongjiu.lu@intel.com>
137
138 PR ld/11791
139 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support
140 garbage collection against STT_GNU_IFUNC symbols.
141
142 * elf32-i386.c (elf_i386_get_local_sym_hash): Don't set
143 elf.plt.offset/elf.got.offset to -1.
144 (elf_i386_tls_transition): Skip TLS transition for functions.
145 (elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
146
147 * elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set
148 elf.plt.offset/elf.got.offset to -1.
149 (elf64_x86_64_tls_transition): Skip TLS transition for functions.
150 (elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
151
9fff0c39
L
1522010-07-12 H.J. Lu <hongjiu.lu@intel.com>
153
154 * elf32-i386.c (elf_i386_check_relocs): Re-indent.
155 (elf_i386_relocate_section): Likewise.
156
f5296ddc
L
1572010-07-06 H.J. Lu <hongjiu.lu@intel.com>
158
159 * dwarf2.c (add_line_info): Initialize prev_line.
160
50248c89
AM
1612010-07-06 Alan Modra <amodra@gmail.com>
162
163 * elf32-ppc.c (ppc_elf_relax_section): Insert branch around
164 trampolines only for .init and .fini sections.
165
5b914448
AM
1662010-07-05 Alan Modra <amodra@gmail.com>
167
168 * elf32-ppc.c: Formatting.
169 (ppc_elf_finish_dynamic_sections): Don't make plt_entry var static.
170
0acf065b
CC
1712010-07-03 Cary Coutant <ccoutant@google.com>
172
173 * compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED.
174 * dwarf2.c (read_and_uncompress_section): New function.
175 (read_section): Call it.
176 (find_line): Likewise.
177
726d3ab0
AM
1782010-07-01 Alan Modra <amodra@gmail.com>
179
180 * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
181 than SYMBOL_REFERENCES_LOCAL.
182 (ppc64_elf_relocate_section): Likewise.
183
bddc25c9
AM
1842010-07-01 Alan Modra <amodra@gmail.com>
185
186 * elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
187
360cfc9c
AM
1882010-06-29 Alan Modra <amodra@gmail.com>
189
190 * cpu-maxq.c: Delete file.
191 * coff-maxq.c: Delete file.
192 * Makefile.am: Remove references to maxq.
193 * archures.c: Likewise.
194 * coffcode.h: Likewise.
195 * configure.in: Likewise.
196 * targets.c: Likewise.
197 * config.bfd: Move maxq from obsolete to removed.
198 * Makefile.in: Regenerate.
199 * bfd-in2.h: Regenerate.
200 * configure: Regenerate.
201 * libbfd.h: Regenerate.
202 * po/SRC-POTFILES.in: Regenerate.
203
3f062f44
AM
2042010-06-28 Alan Modra <amodra@gmail.com>
205
206 * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
207 to silence gcc warning.
208
6bee8834
AM
2092010-06-27 Alan Modra <amodra@gmail.com>
210
211 * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
212 (group_sections): Likewise.
213
c7e2358a
AM
2142010-06-27 Alan Modra <amodra@gmail.com>
215
216 * bout.c (aligncode): Delete set but unused variables.
217 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
218 * coff-ppc.c (ppc_record_toc_entry): Likewise.
219 (coff_ppc_relocate_section): Likewise.
220 * coff-rs6000.c (xcoff_complain_overflow_bitfield_func): Likewise.
221 * elf-m10200.c (mn10200_elf_relax_delete_bytes): Likewise.
222 * elf-m10300.c (mn10300_elf_final_link_relocate): Likewise.
223 (mn10300_elf_relax_section): Likewise.
224 * elf32-arm.c (arm_build_one_stub, arm_size_one_stub): Likewise.
225 (record_vfp11_erratum_veneer): Likewise.
226 (bfd_elf32_arm_vfp11_erratum_scan): Likewise.
227 (elf32_arm_final_link_relocate): Likewise.
228 (elf32_arm_check_relocs, arm_map_one_stub): Likewise.
229 * elf32-avr.c (elf32_avr_relax_delete_bytes): Likewise.
230 (elf32_avr_relax_section): Likewise.
231 (avr_mark_stub_not_to_be_necessary): Likewise.
232 * elf32-bfin.c (_bfin_create_got_section): Likewise.
233 * elf32-cr16.c (cr16_elf_final_link_relocate): Likewise.
234 (elf32_cr16_relax_delete_bytes): Likewise.
235 * elf32-cr16c.c (cr16c_elf_final_link_relocate): Likewise.
236 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
237 * elf32-crx.c (elf32_crx_relax_delete_bytes): Likewise.
238 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
239 (elf32_h8_relax_delete_bytes): Likewise.
240 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
241 * elf32-i370.c (i370_elf_check_relocs): Likewise.
242 (elf_relocate_section): Likewise.
243 * elf32-ip2k.c (adjust_all_relocations): Likewise.
244 (ip2k_elf_relax_section): Likewise.
245 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
246 (lm32_elf_check_relocs): Likewise.
247 (lm32_elf_finish_dynamic_sections): Likewise.
248 (lm32_elf_finish_dynamic_symbol): Likewise.
249 * elf32-m32c.c (m32c_offset_for_reloc): Likewise.
250 (m32c_elf_relax_delete_bytes): Likewise.
251 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
252 (m32r_elf_finish_dynamic_sections): Likewise.
253 (m32r_elf_check_relocs, m32r_elf_fake_sections): Likewise.
254 * elf32-m68hc11.c (m68hc11_elf_relax_section): Likewise.
255 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
256 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
257 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
258 (microblaze_elf_check_relocs): Likewise.
259 (microblaze_elf_finish_dynamic_symbol): Likewise.
260 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
261 * elf32-ppc.c (ppc_elf_tls_optimize): Likewise.
262 * elf32-rx.c (rx_elf_relocate_section): Likewise.
263 (elf32_rx_relax_delete_bytes, rx_offset_for_reloc): Likewise.
264 (elf32_rx_relax_section): Likewise.
265 * elf32-score.c (score_elf_got_offset_from_index): Likewise.
266 (score_elf_final_link_relocate): Likewise.
267 (s3_bfd_score_elf_relocate_section): Likewise.
268 * elf32-score7.c (score_elf_got_offset_from_index): Likewise.
269 (s7_bfd_score_elf_relocate_section): Likewise.
270 * elf32-sh.c (sh_elf_check_relocs): Likewise.
271 * elf32-spu.c (spu_elf_relocate_section): Likewise.
272 * elf32-v850.c (v850_elf_check_relocs): Likewise.
273 (find_remembered_hi16s_reloc): Likewise.
274 * elf32-vax.c (elf32_vax_merge_private_bfd_data): Likewise.
275 (elf_vax_relocate_section): Likewise.
276 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
277 * elf32-xtensa.c (xlate_offset_with_removed_text): Likewise.
278 (move_literal): Likewise.
279 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
280 (elf64_hppa_check_relocs): Likewise.
281 (elf64_hppa_finish_dynamic_symbol): Likewise.
282 (elf64_hppa_relocate_section): Likewise.
283 * elf64-mmix.c (mmix_elf_reloc, mmix_elf_relax_section): Likewise.
284 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
285 (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Likewise.
286 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
287 (elfNN_vms_section_from_shdr): Likewise.
288 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
289 (_bfd_sparc_elf_relocate_section): Likewise.
290 * hp300hpux.c (slurp_symbol_table): Likewise.
291 * i386lynx.c (swap_std_reloc_out, swap_std_reloc_in): Likewise.
292 * mach-o.c (bfd_mach_o_write_thread): Likewise.
293 * mmo.c (mmo_scan, mmo_write_symbols_and_terminator): Likewise.
294 * nlm32-sparc.c (nlm_sparc_read_reloc): Likewise.
295 * pdp11.c (pdp11_aout_link_input_section): Likewise.
296 (aout_link_input_section, aout_link_input_bfd): Likewise.
297 * pe-mips.c (mips_swap_reloc_out): Likewise.
298 (coff_pe_mips_relocate_section): Likewise.
299 * som.c (som_bfd_ar_write_symbol_stuff): Likewise.
300 * vms-alpha.c (_bfd_vms_slurp_egsd): Likewise.
301 * xsym.c (bfd_sym_fetch_type_information_table_ent): Likewise.
302
303 * coff-i860.c (i860_reloc_processing): Avoid set but unused warning.
304 * coffcode.h (coff_compute_section_file_positions): Likewise.
305 (coff_slurp_reloc_table): Likewise.
306 * cpu-arm.c (arm_check_note): Likewise.
307 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Likewise.
308 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
309 * elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Likewise.
310 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
311 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
312 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
313 * elf32-sh64.c (_bfd_sh_align_load_span): Likewise.
314 * ieee.c (parse_expression): Likewise.
315 (ieee_slurp_external_symbols, drop_int): Likewise.
316 * peXXigen.c (pe_print_pdata): Likewise.
317 * versados.c (process_esd): Likewise.
318
4ba2ab9f
TG
3192010-06-25 Tristan Gingold <gingold@adacore.com>
320
321 * vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with
322 its flags. Create an absolute section if needed.
323
1b3d1dbf
TG
3242010-06-25 Tristan Gingold <gingold@adacore.com>
325
326 * vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of
327 sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create
328 dummy psect anymore. Adjust.
329 (_bfd_vms_write_eeom): Adjust (use target_index instead of index)
330 (_bfd_vms_write_etir): Ditto.
331 (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of
332 section name. Adjust.
333
9714ee48
TG
3342010-06-25 Tristan Gingold <gingold@adacore.com>
335
336 * vms-alpha.c (alpha_vms_write_exec): Set linktime field.
337
ba761f19
AM
3382010-06-25 Alan Modra <amodra@gmail.com>
339
340 * elf64-ppc.c (toc_skip_enum): Define.
341 (ppc64_elf_edit_toc): Use two low bits of skip array as markers.
342 Optimize largetoc sequences.
343 (adjust_toc_syms): Update for skip array change.
344 (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
345
854b41e7
AM
3462010-06-25 Alan Modra <amodra@gmail.com>
347
348 * elf64-ppc.c (is_static_defined): New function.
349 (get_tls_mask, ppc_type_of_stub): Use it here.
350 (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input.
351 (ppc64_elf_tls_setup): Typo fix.
352 (adjust_toc_syms): Correctly handle symbols defined past the end
353 of the toc. Move syms on removed entries to next entry rather
354 than to start of toc.
355 (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to
356 edit ppc64 input. Allocate one extra word in skip array.
357 Honour info->keep_memory when reading relocs if we can.
358 Adjust toc relocs after adjusting symbols.
359
61e8a5ea
NS
3602010-06-23 Nathan Sidwell <nathan@codesourcery.com>
361
362 * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
363 when scaning map.
364
24df9a51
TG
3652010-06-17 Tristan Gingold <gingold@adacore.com>
366
367 * Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
368 (BFD64_BACKENDS_CFILES): ... here.
369 (BFD32_BACKENDS): Move vms-alpha.lo to ...
370 (BFD64_BACKENDS): ... here.
371 * Makefile.in: Regenerate.
372
59e6276b
JM
3732010-06-15 Joseph Myers <joseph@codesourcery.com>
374
375 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
376 * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
377 elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
378 elf32_tic6x_merge_private_bfd_data): New.
379 (bfd_elf32_bfd_merge_private_bfd_data,
380 elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
381 elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
382 Define.
383 * elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.
384
3de4a297
JM
3852010-06-15 Joseph Myers <joseph@codesourcery.com>
386
387 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
388 (struct elf_backend_data): Update comment on obj_attrs_order.
389 * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
390 _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
391 instead of hardcoded 4.
392 * elf32-arm.c (elf32_arm_obj_attrs_order): Use
393 LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
394 instead of hardcoded 4 and 5.
395 (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
396 instead of hardcoded 4.
397
84477db9
KB
3982010-06-14 Kevin Buettner <kevinb@redhat.com>
399
400 * elf32-h8300.c (elf_symbol_leading_char): Define.
401
dddb0e80
JK
4022010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
403
404 * vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
405
f654f403
TG
4062010-06-11 Tristan Gingold <gingold@adacore.com>
407
408 * vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
409 sections to 0.
410
ff150b92
TG
4112010-06-11 Tristan Gingold <gingold@adacore.com>
412
413 * vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
414
81bb31c0
TG
4152010-06-11 Tristan Gingold <gingold@adacore.com>
416
417 * vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
418 Adjust cast.
419 (_bfd_vms_output_dump): Make DATA argument const, adjust cast.
420 * vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
421 * vms-alpha.c (evax_section_flags): Make it const.
422 (vms_secflag_by_name): Remove unused ABFD argument.
423 Make SECTION_FLAGS and NAME arguments const. Clarify comment.
424 (vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
425 (_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
426 (_bfd_vms_write_egsd): Remove useless cast.
427
cb3aabc7
TG
4282010-06-10 Tristan Gingold <gingold@adacore.com>
429
430 * config.bfd: Remove #if/#endif so that som can be compiled on any
431 host.
432 * targets.c (_bfd_target_vector): Remove #if/#endif so that som
433 can be used on any host.
434
e1f000f6
TG
4352010-06-10 Tristan Gingold <gingold@adacore.com>
436
437 * som.c: Can now be compiled on any host.
438 Include bfd headers instead of system one.
439 (som_compute_checksum): Parameter is now a pointer to a
440 som_external_header structure. Adjust.
441 (struct section_to_type): Field section is now const.
442 (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
443 definition.
444 (R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
445 (R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
446 (som_swap_clock_in, som_swap_clock_out): New functions.
447 (som_swap_header_in, som_swap_header_out): Likewise.
448 (som_swap_space_dictionary_in): Likewise.
449 (som_swap_space_dictionary_out): Likewise.
450 (som_swap_subspace_dictionary_in): Likewise.
451 (som_swap_subspace_dictionary_record_out): Likewise.
452 (som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
453 (som_swap_string_auxhdr_out): Likewise.
454 (som_swap_compilation_unit_out): Likewise.
455 (som_swap_exec_auxhdr_in): Likewise.
456 (som_swap_exec_auxhdr_out): Likewise.
457 (som_swap_lst_header_in): Likewise.
458 (som_object_setup): Adjust parameter type using bfd types.
459 (setup_sections): Likewise. Ditto for object file types.
460 Use intermediate variables for external representation and use the
461 swap functions to convert.
462 (som_object_p): Ditto. Remove #ifdef/#endif on always defined
463 macros.
464 (som_prep_headers): Likewise.
465 (som_write_symbol_strings): Likewise.
466 (som_begin_writing): Likewise.
467 (som_finish_writing): Likewise.
468 (som_build_and_write_symbol_table): Likewise.
469 (bfd_section_from_som_symbol): Likewise.
470 (som_slurp_symbol_table): Likewise.
471 (som_bfd_print_private_bfd_data): Likewise.
472 (bfd_som_attach_aux_hdr): Likewise. Clear the padding.
473 (bfd_som_attach_compilation_unit): Likewise.
474 (som_bfd_count_ar_symbols): Likewise.
475 (som_bfd_fill_in_ar_symbols): Likewise.
476 (som_slurp_armap): Likewise.
477 (som_bfd_ar_write_symbol_stuff): Likewise.
478 (som_write_armap): Likewise. Use _bfd_ar_spacepad instead of
479 sprintf to write header fields.
480 * som.h: Include bfd headers instead of system one.
481 (FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
482 (struct somdata): Use bfd structures instead of system ones.
483 (struct som_section_data_struct): Likewise.
484 (struct som_subspace_dictionary_record): Removed (now in
485 include/som/internal.h)
486
318cadba
TG
4872010-06-10 Tristan Gingold <gingold@adacore.com>
488
489 * targets.c (bfd_target_list): Remove hp/ux compiler work-around
490 as bfd requires an ANSI-C compiler.
491
f0b3dbfc
TG
4922010-06-09 Tristan Gingold <gingold@adacore.com>
493
494 * bfdio.c (bfd_bread): Fix the code to prevent reading past the
495 end of archive members.
496
7da73d69
TG
4972010-06-08 Tristan Gingold <gingold@adacore.com>
498
499 * som.c (som_bfd_free_cached_info): Do not free relocations as
500 they were allocated with bfd_zalloc.
501
cba3addf
TG
5022010-06-08 Tristan Gingold <gingold@adacore.com>
503
504 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
505 for the first block.
506
09266d1a
TG
5072010-06-08 Tristan Gingold <gingold@adacore.com>
508
509 * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
510 * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
511 * libbfd.h: Regenerate.
512 * elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
513 (bfd_elfNN_mkarchive): Ditto.
514
d0ef7741
TG
5152010-06-02 Tristan Gingold <gingold@adacore.com>
516
517 * vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
518
a009f2e7
RW
5192010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
520
521 * configure: Regenerate.
522
46d00b8a
TG
5232010-06-01 Tristan Gingold <gingold@adacore.com>
524
525 * vms-alpha.c (struct vms_private_data_struct): Add
526 transfer_address field. Remove unused dst_info field.
527 (alpha_vms_write_exec): Use transfer_address.
528 (_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
529 (alpha_vms_bfd_final_link): Set transfer_address.
530
7d5ee7d7
TG
5312010-05-31 Tristan Gingold <gingold@adacore.com>
532
533 * vms-lib.c (credat_lo, credat_hi): New fields.
534 (vms_read_block): Adjust comments.
535 (vms_write_block): New function.
536 (_bfd_vms_lib_archive_p): Decode majorid once. Replace some
537 hard-coded values with constants. Set credat_lo and credat_hi.
538 (_bfd_vms_lib_mkarchive): Add argument kind.
539 Set ver, mhd_size and type according to kind.
540 (_bfd_vms_lib_alpha_mkarchive): New function.
541 (struct lib_index): Renamed from struct vms_index
542 (lib_index_cmp): Renamed from vms_index_cmp. Adjusted.
543 (get_idxlen): Type of idx argument adjusted. Add is_elfidx
544 argument and handle it.
545 (vms_write_index): Adjust argument idx. Handle elf indexes.
546 (_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
547 (_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
548 use it. Handle elf indexes. Set credat.
549 * libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
550 (_bfd_vms_lib_alpha_mkarchive): ... this.
551 * libbfd.h: Regenerated.
552 * vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
553
7aa09196
SA
5542010-05-28 Sterling Augustine <sterling@tensilica.com>
555
7d5ee7d7 556 * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
7aa09196
SA
557 of code to change the bits in the instructions to match the changes
558 in the relocations. Declare dest_addr and sym_sec to help.
559
81c5c866
JK
5602010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
561
562 Workaround GCC PR middle-end/4210.
563 * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
564 and val[3].
565
953b49ed
TG
5662010-05-27 Tristan Gingold <gingold@adacore.com>
567
568 * vms-misc.c: Define __NEW_STARLET. Remove trailing spaces.
569 (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
570 (vms_time_to_time_t): Use them instead of local const.
571 (vms_time_t_to_vms_time): New function.
572 (vms_get_time): Likewise.
573 (vms_raw_get_time): Likewise.
574 * vms.h (vms_time_t_to_vms_time): New declaration.
575 (vms_get_time): Likewise.
576 (vms_raw_get_time): Likewise.
577
f9eeb9c9
TG
5782010-05-26 Tristan Gingold <gingold@adacore.com>
579
580 * vms-alpha.c: Update comments.
581 (alpha_vms_write_exec): Set lnkflags. Write the GST.
582 (alpha_vms_link_output_symbol): New function.
583 (alpha_vms_bfd_final_link): Generate the VMS symbol table.
584 Set dst_section private field.
585 (alpha_vms_bfd_final_link): Remove code that set dst_section.
586
65077aa8
TG
5872010-05-26 Tristan Gingold <gingold@adacore.com>
588
589 * bfdio.c: Declare and define _bfd_memory_iovec.
590 (bfd_bread): Move code for BFD_IN_MEMORY...
591 (bfd_bwrite): ... Ditto ...
592 (bfd_tell): ... Ditto ...
593 (bfd_flush): ... Ditto ...
594 (bfd_stat): ... Ditto ...
595 (bfd_seek): ... Ditto ...
596 (bfd_get_size): ... Ditto ...
597 (bfd_mmap): ... Ditto ...
598 (memory_bread): ... to these new functions.
599 (memory_bwrite): Ditto.
600 (memory_btell): Ditto.
601 (memory_bseek): Ditto.
602 (memory_bflush): Ditto.
603 (memory_bstat): Ditto.
604 (memory_bmmap): Ditto.
605 (memory_bclose): New function.
606 * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
607 * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
608 * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
609 (bfd_make_writable): Use _bfd_memory_iovec.
610 * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
611 * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
612 _bfd_memory_iovec.
613 (alpha_ecoff_openr_next_archived_file): Use proxy_origin
614 instead of origin.
615 * libbfd.h: Regenerate.
616
8e45593f
NC
6172010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
618 Joseph Myers <joseph@codesourcery.com>
619 Andrew Stubbs <ams@codesourcery.com>
620
621 * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
622 bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
623 * configure.in: Handle FDPIC vectors.
624 * elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
625 * elf32-sh.c (DEFAULT_STACK_SIZE): Define.
626 (SYMBOL_FUNCDESC_LOCAL): Define. Use it instead of
627 SYMBOL_REFERENCES_LOCAL for function descriptors.
628 (fdpic_object_p): New.
629 (sh_reloc_map): Add FDPIC and movi20 relocations.
630 (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
631 range.
632 (struct elf_sh_plt_info): Add got20 and short_plt. Update all
633 definitions.
634 (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
635 (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
636 (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
637 (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
638 (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
639 New.
640 (get_plt_info): Handle FDPIC.
641 (MAX_SHORT_PLT): Define.
642 (get_plt_index, get_plt_offset): Handle short_plt.
643 (union gotref): New.
644 (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
645 got_type and adjust all uses. Add GOT_FUNCDESC.
646 (struct sh_elf_obj_tdata): Add local_funcdesc. Rename
647 local_got_tls_type to local_got_type.
648 (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type. All
649 users changed.
650 (sh_elf_local_funcdesc): Define.
651 (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
652 and srofixup.
653 (sh_elf_link_hash_newfunc): Initialize new fields.
654 (sh_elf_link_hash_table_create): Set fdpic_p.
655 (sh_elf_omit_section_dynsym): New.
656 (create_got_section): Create .got.funcdesc, .rela.got.funcdesc
657 and .rofixup.
658 (allocate_dynrelocs): Allocate local function descriptors and space
659 for R_SH_FUNCDESC-related relocations, and for rofixups.
660 Handle GOT_FUNCDESC. Create fixups. Handle GOT entries which
661 require function descriptors.
662 (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
663 (sh_elf_modify_program_headers): New.
664 (sh_elf_size_dynamic_sections): Allocate function descriptors for
665 local symbols. Allocate .got.funcdesc contents. Allocate rofixups.
666 Handle local GOT entries of type GOT_FUNCDESC. Create fixups for
667 local GOT entries. Ensure that FDPIC libraries always have a PLTGOT
668 entry in the .dynamic section.
669 (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
670 (sh_elf_add_rofixup, sh_elf_osec_to_segment)
671 (sh_elf_osec_readonly_p, install_movi20_field): New functions.
672 (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
673 R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC. Use sh_elf_got_offset
674 and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_. Add rofixup
675 read-only section warnings. Handle undefined weak symbols. Generate
676 fixups for R_SH_DIR32 and GOT entries. Check for cross-segment
677 relocations and clear EF_SH_PIC. Handle 20-bit relocations.
678 Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
679 (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
680 R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
681 Handle 20-bit relocations.
682 (sh_elf_copy_indirect_symbol): Copy function descriptor reference
683 counts.
684 (sh_elf_check_relocs): Handle new relocations. Make symbols
685 dynamic for FDPIC relocs. Account for rofixups. Error for FDPIC
686 symbol mismatches. Allocate a GOT for R_SH_DIR32. Allocate fixups
687 for R_SH_DIR32.
688 (sh_elf_copy_private_data): Copy PT_GNU_STACK size.
689 (sh_elf_merge_private_data): Copy initial flags. Do not clobber
690 non-mach flags. Set EF_SH_PIC for FDPIC. Reject FDPIC mismatches.
691 (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
692 here. Rename sgot to sgotplt and srel to srelplt. Handle short_plt,
693 FDPIC descriptors, and got20. Create R_SH_FUNCDESC_VALUE for FDPIC.
694 Use install_movi20_field. Rename srel to srelgot. Always generate
695 R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
696 (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
697 Do not fill in reserved GOT entries for FDPIC. Correct DT_PLTGOT.
698 Rename sgot to sgotplt. Assert that the right number of rofixups
699 and dynamic relocations were allocated.
700 (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
701 (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
702 (elf_backend_can_make_relative_eh_frame)
703 (elf_backend_can_make_lsda_relative_eh_frame)
704 (elf_backend_encode_eh_address): Define.
705 (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
706 (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
707 Redefine for FDPIC vector.
708 * reloc.c: Add SH FDPIC and movi20 relocations.
709 * targets.c (_bfd_target_vector): Add FDPIC vectors.
710 * configure, bfd-in2.h, libbfd.h: Regenerated.
711
9fcd9da6
NC
7122010-05-25 Jay Krell <jay.krell@cornell.edu>
713
714 PR ld/11624
715 * archive.c (_bfd_calloc_wrapper): New function.
716 (_bfd_add_bfd_to_archive_cache): Use it.
717
718 * configure.in: Add alpha*-*-*vms* to list of natives.
719 * configure: Regenerate.
720
721 * vms-misc.c: Define globalref if necessary.
722 (vms_convert_to_var_unix_filename): Rename to
723 _bfd_vms_convert_to_var_unix_filename and export.
724 * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
725 * vms-alpha.c (vms_close_and_cleanup): Update invocation of
726 vms_convert_to_var_unix_filename.
727
c734eb83
TG
7282010-05-24 Tristan Gingold <gingold@adacore.com>
729
ce76e55c
TG
730 * vms-alpha.c (add_symbol_entry): New function extrated from ...
731 (add_symbol): ... adjusted.
c734eb83 732
5fe88cfb
TG
7332010-05-24 Tristan Gingold <gingold@adacore.com>
734
735 * vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
736 (alpha_vms_write_exec): Add a comment.
737 (_bfd_vms_write_egsd): Ditto.
738 (alpha_vms_convert_symbol): Remove a blank line.
739
6a286118
TG
7402010-05-21 Tristan Gingold <gingold@adacore.com>
741
742 * vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
743 for the GST.
744
c068d5be
TG
7452010-05-21 Tristan Gingold <gingold@adacore.com>
746
747 * vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
748 SEC_LOAD if isect has data.
749 (vms_get_symbol_info): Refine the condition for 'T' type.
750
bd7b51b4
TG
7512010-05-18 Tristan Gingold <gingold@adacore.com>
752
753 * vms-alpha.c (_bfd_vms_write_emh): New function.
754 (_bfd_vms_write_lmn): New function.
755 (_bfd_vms_write_eeom): Moved.
756 (hash_string): Likewise.
757 (_bfd_vms_length_hash_symbol): Likewise.
758 (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
759 and _bfd_vms_write_lmn, and call these functions.
760
0fca53b7
TG
7612010-05-18 Tristan Gingold <gingold@adacore.com>
762
763 * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
764 Add details in the messages.
765 (evax_bfd_print_image): Change message.
766
18ae9cc1
L
7672010-05-18 H.J. Lu <hongjiu.lu@intel.com>
768
769 PR gas/11600
770 * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
771 (elf_fake_sections): Likewise.
772
773 * elf32-i370.c (i370_elf_section_from_shdr): Don't handle
774 SHF_EXCLUDE here.
775 * elf32-ppc.c (ppc_elf_fake_sections): Likewise.
776
9a1b4480
TG
7772010-05-17 Tristan Gingold <gingold@adacore.com>
778
779 * vms-alpha.c: Include esgps.h and eidc.h.
780 (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
3a689531
TG
781 (evax_bfd_print_egsd_flags): New function, extracted from ...
782 (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles
9a1b4480
TG
783 EGSD__C_SPSC and EGSD__C_IDC.
784
af47dcbf
TG
7852010-05-14 Tristan Gingold <gingold@adacore.com>
786
787 * vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
788 (_bfd_vms_get_object_record): Handle align byte only in the
789 foreign case.
790
7256a114
TG
7912010-05-14 Tristan Gingold <gingold@adacore.com>
792
793 * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
794 * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
795 * libbfd.h: Regenerate.
796 * configure.in (havevecs): Define HAVE_all_vecs when
797 --enable-targets=all is set. Use AC_SUBST on it.
798 (tdefaults): Do not add havevecs.
799 (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
800 * configure: Regenerate.
801 * Makefile.am (HAVEVECS): New variable.
802 (INCLUDES): Add HAVEVECS.
803 * Makefile.in: Regenerate.
804 * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
805 target is selected. Add #ifdef/#endif around vms specific code.
806 (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
807 bfd_elfNN_archive_slurp_extended_name_table,
808 bfd_elfNN_archive_construct_extended_name_table,
809 bfd_elfNN_archive_truncate_arname,
810 bfd_elfNN_archive_write_armap,
811 bfd_elfNN_archive_read_ar_hdr,
812 bfd_elfNN_archive_write_ar_hdr,
813 bfd_elfNN_archive_openr_next_archived_file,
814 bfd_elfNN_archive_get_elt_at_index,
815 bfd_elfNN_archive_generic_stat_arch_elt,
816 bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
817
4547cb56
NC
8182010-05-11 Jie Zhang <jie@codesourcery.com>
819
820 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
821 Tag_ABI_HardFP_use correctly.
822
3390ce30
AM
8232010-05-11 Alan Modra <amodra@gmail.com>
824
825 * coffcode.h (coff_write_object_contents): Enclose all occurrences
826 of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
827
92750f34
DJ
8282010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
829
830 * elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
831 sym_name to improve packing.
832 (cortex_a8_erratum_scan): Check for PLT entries.
833 (elf32_arm_size_stubs): Save the target symbol for a8 relocs.
834
6540b386
TG
8352010-05-07 Tristan Gingold <gingold@adacore.com>
836
837 * Makefile.in: Regenerate with automake 1.11.1.
838 * aclocal.m4: Ditto.
839
3e01a7fd
NC
8402010-05-05 Nick Clifton <nickc@redhat.com>
841
842 * po/es.po: Updated Spanish translation.
843
fa23f0f4
TG
8442010-05-03 Tristan Gingold <gingold@adacore.com>
845
846 * vms-lib.c (vms_lib_bopen): Fix the size threshold to read
847 selective_search flag.
848 Add comments.
849 * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
850 before output_has_begun is set.
851
44273c5b
TG
8522010-05-03 Tristan Gingold <gingold@adacore.com>
853
854 * vms-alpha.c: Add comments.
855 (struct vms_private_data_struct): Remove image_autoextend field.
856 (dst_check_allocation): Removed.
857 (image_write): Remove call to dst_check_allocation.
858 (vms_slurp_debug): Do not set image_autoextend. Adjust section
859 size.
860 (_bfd_vms_slurp_object_records): Remove useless new_type variable.
861 (alpha_vms_write_exec): Use dst_section to get the dst section.
862 Write the dmt section.
863 (evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
864 (alpha_vms_read_sections_content): Do not set image_autoextend.
fa23f0f4 865 (alpha_vms_bfd_final_link): Generate the dst.
44273c5b 866
ab94b07c
TG
8672010-05-03 Tristan Gingold <gingold@adacore.com>
868
869 * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
870 next array.
871 (vms_lib_dcx): Adjust for the above change.
872
0672748a
L
8732010-04-30 H.J. Lu <hongjiu.lu@intel.com>
874
875 PR ld/11542
876 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
877
878 * elf32-i386.c (elf_i386_relocate_section): Use it.
879 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
880
13a985e1
TG
8812010-04-30 Tristan Gingold <gingold@adacore.com>
882
883 * vms-lib.c (vms_read_block): New function.
884 (vms_traverse_index): Use vms_read_block. Handle long key names.
885
8e57e1d1
TG
8862010-04-30 Tristan Gingold <gingold@adacore.com>
887
888 * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
889 and syms removed.
890 (struct carsym_mem): New structure.
891 (vms_add_index): New function.
892 (vms_add_indexes_from_list): New function.
893 (vms_traverse_index): Parameter carsym changed to carsym_mem.
894 Code adjusted to handle elfidx.
895 (vms_lib_read_index): Adjusted for vms_traverse_index changes.
896 Parameter NBREL is now a pointer.
897 (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
898 archives.
899 (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
900 (_bfd_vms_lib_find_symbol): Ditto.
901 (vms_lib_bopen): Fix two typos: return FALSE in case of error,
902 check MHD id.
903 (_bfd_vms_lib_get_module): New function.
904 (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
905 function.
906 (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
907 (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
908 (vms_write_index): Adjust for structure renamed.
909 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
910 changes of _bfd_vms_lib_find_symbol.
911
bb591cfe
KT
9122010-04-28 Kai Tietz <kai.tietz@onevision.com>
913
914 * config.bfd: Correct accidential reverted patch
915 about vax*-*-*vms*.
916
ef72a554
KT
9172010-04-27 Kai Tietz <kai.tietz@onevision.com>
918
919 * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
920 to USE_MINGW64_LEADING_UNDERSCORES.
854b41e7 921 * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
ef72a554
KT
922 * config.bfd: Change underscoring default for x64 mingw
923 to false.
924 * coffcode.h (coff_write_relocs): Add check that dereferenced
925 sym_ptr_ptr isn't NULL.
926 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
927 * configure: Regenerated.
928 * configure.in: Add option '--enable-leading-mingw64-underscores'
929 and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
930
4d9e2b27
NC
9312010-04-27 Nick Clifton <nickc@redhat.com>
932
933 PR binutils/11512
934 * coffgen.c (coff_find_nearest_line): Incldue the section address
935 of function name symbols in address comparisons.
936
4ba3f034
NC
9372010-04-27 Nick Clifton <nickc@redhat.com>
938
939 * po/fr.po: Updated French translation.
940
9a83a553
AM
9412010-04-23 Alan Modra <amodra@gmail.com>
942
943 * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
944 ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
945 throughout file.
946 (assign_file_positions_for_load_sections): Modify section in
947 segment warning to ignore overlay vmas.
948 * elf32-spu.c (spu_elf_object_p): Replace use of
949 ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
950
9c9c98a5
NC
9512010-04-22 Nick Clifton <nickc@redhat.com>
952
953 * po/bfd.pot: Updated by the Translation project.
954 * po/vi.po: Updated Vietnamese translation.
955
3ac9b6c9
AM
9562010-04-22 Alan Modra <amodra@gmail.com>
957
958 * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
959 change. Tidy. Don't error on sections not allocated in segment.
960
85fdf906
AH
9612010-04-15 Andrew Haley <aph@redhat.com>
962
963 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
964 merge_exidx_entries.
965 * bfd-in2.h: Likewise.
966 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
967 control merging of exidx entries.
9c9c98a5 968
41820509
JM
9692010-04-20 Joseph Myers <joseph@codesourcery.com>
970
971 * elf32-tic6x.h: New.
972 * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
973 * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
974 elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
975 elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
976 elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
977 bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
978 (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
979 elf32_tic6x_relocate_section): Handle REL relocations.
980 (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
981
643be349
JJ
9822010-04-20 Jakub Jelinek <jakub@redhat.com>
983
984 * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
985 DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
986
c9736ba0
NC
9872010-04-19 Nick Clifton <nickc@redhat.com>
988
989 * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
990 arhdrpos variable.
991 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
992 attribute to warned variable. Remove unused val, type and type2
993 variables.
994
11afaeda
TG
9952010-04-16 Andreas Schwab <schwab@redhat.com>
996
997 * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
998 strict-aliasing rules.
c9736ba0 999
ddfb684a
TG
10002010-04-16 Tristan Gingold <gingold@adacore.com>
1001
1002 * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
1003 (_bfd_vms_get_object_record): Always assume there is a pad byte
1004 for alignment.
11afaeda 1005
ddfb684a
TG
1006 * vms-lib.c: Add a few comments.
1007
75375b3e
MGD
10082010-04-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1009
1010 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
1011 attributes in v2.08 of the ABI.
1012
f526ccf3
AM
10132010-04-15 Alan Modra <amodra@gmail.com>
1014
1015 * config.bfd (vax*-*-*vms*): Delete.
1016
95e34ef7
TG
10172010-04-14 Tristan Gingold <gingold@adacore.com>
1018
1019 * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
1020 vms-tir.lo, vms.lo and add vms-alpha.lo
1021 (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
1022 vms-tir.c, vms.c and add vms-alpha.c
1023 * Makefile.in: Regenerate.
1024 * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
1025 Remove vms_vax_vec.
1026 * configure: Regenerate.
1027 * targets.c (vms_vax_vec): Remove the declaration.
1028 (_bfd_target_vector): Remove vms_vax_vec.
1029 * vms-alpha.c: New file.
1030 * vms-gsd.c: Removed, rewritten in vms-alpha.c
1031 * vms-hdr.c: Ditto.
1032 * vms-tir.c: Ditto.
1033 * vms.c: Ditto.
1034 * vms-misc.c: Fix indentation and comments. Replace most of
1035 #if VMS_DEBUG/vms_debug with vms_debug2.
1036 (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
1037 (hash_string): Ditto.
1038 (_bfd_vms_length_hash_symbol): Ditto.
1039 (maybe_adjust_record_pointer_for_object): Ditto.
1040 (_bfd_vms_get_object_record): Ditto.
1041 (vms_get_remaining_object_record): Ditto.
1042 (_bfd_vms_push): Ditto.
1043 (_bfd_vms_pop): Ditto.
1044 (_bfd_vms_get_header_values): Removed.
1045 (_bfd_vms_get_first_record): Removed.
1046 (vms_get_remaining_image_record): Removed.
1047 (new_symbol): Removed.
1048 (_bfd_vms_enter_symbol): Removed.
1049 (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
1050 (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
1051 parameter with struct vms_rec_wr.
1052 (_bfd_vms_output_push): Removed and replaced by ...
1053 (_bfd_vms_output_begin_subrec): ... new function.
1054 (_bfd_vms_output_alignment): Replace bfd parameter with
1055 struct vms_rec_wr, and adjust.
1056 (_bfd_vms_output_check): Ditto
1057 (_bfd_vms_output_byte): Ditto.
1058 (_bfd_vms_output_short): Ditto.
1059 (_bfd_vms_output_long): Ditto.
1060 (_bfd_vms_output_quad): Ditto.
1061 (_bfd_vms_output_counted): Ditto.
1062 (_bfd_vms_output_dump): Ditto.
1063 (_bfd_vms_output_fill): Ditto.
1064 (_bfd_vms_output_pop): Removed and replaced by ...
1065 (_bfd_vms_output_end_subrec): ... new function.
1066 (_bfd_vms_output_flush): Removed.
1067 (_bfd_vms_output_align): New function.
1068 (_bfd_vms_output_end): Add recwr parameter. Adjust for this new
1069 parameter.
1070 (vms_convert_to_var): New function imported from vms.c
1071 (vms_convert_to_var_1): Ditto.
1072 (vms_convert_to_var_unix_filename): Ditto.
1073 (vms_get_module_name): Ditto.
1074 (get_vms_time_string): Ditto.
1075 (vms_time_to_time_t): Ditto.
1076 (vms_rawtime_to_time_t): Ditto.
1077 * vms.h: All macros for the VMS file format are now in include/vms.
1078 Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
1079 have been removed.
1080 (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
1081 (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
1082 (struct funcinfo, struct vms_private_data_struct): Ditto.
1083 (struct vms_section_data_struct): Ditto.
1084 (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
1085 (vms_get_module_name, get_vms_time_string): New declarations.
1086 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
1087 (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
1088 (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
1089 (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
1090 (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
1091 (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
1092 (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
1093 (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
1094 (_bfd_vms_output_fill): Ditto.
1095 (bfd_vms_set_section_flags): Ditto.
1096
895fa45f
MGD
10972010-04-14 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1098
1099 * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
1100 exit due to merging the same weak symbol to test that the symbols are
1101 actually weak.
1102
727ac201
AM
11032010-04-13 Alan Modra <amodra@gmail.com>
1104
1105 * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
1106 when optimizing high got_tlsgd/ld insns.
1107
fe50f439
L
11082010-04-10 H.J. Lu <hongjiu.lu@intel.com>
1109
1110 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
1111 define.
1112 (HAVE_PRSTATUS32_T): Likewise.
1113
8bc7f138
L
11142010-04-10 H.J. Lu <hongjiu.lu@intel.com>
1115
1116 PR corefiles/11467
1117 * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
1118 for x86_64-*-linux*.
1119 * config.in: Regenerated.
1120 * configure: Likewise.
1121
1122 * elf.c: Include CORE_HEADER if it is defined.
1123
11242010-04-10 H.J. Lu <hongjiu.lu@intel.com>
1125 Jan Kratochvil <jan.kratochvil@redhat.com>
1126
1127 * hosts/x86-64linux.h: New.
1128
3d540e93
NC
11292010-04-09 Nick Clifton <nickc@redhat.com>
1130
1131 * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
1132 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
1133 variables htab and hdr_info and mark info parameter as unused.
1134 * elf.c (prep_headers): Remove unused variable i_phdrp.
1135 (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
1136 * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
1137 as unused.
1138 * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
1139 * verilog.c (verilog_write_section): Remove unused variable
1140 address.
1141
d1a98e0c
AM
11422010-04-07 Alan Modra <amodra@gmail.com>
1143
1144 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
1145 * configure: Regenerate.
1146
6f8bcf84
L
11472010-04-06 H.J. Lu <hongjiu.lu@intel.com>
1148
1149 PR ld/11434
1150 * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
1151
0e9b2e9a
TG
11522010-04-06 Tristan Gingold <gingold@adacore.com>
1153
1154 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
1155
a233b20c
JJ
11562010-04-05 Jakub Jelinek <jakub@redhat.com>
1157
604282a7
JJ
1158 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
1159 provided that it has the expected address size and zero segment
1160 length.
1161
a233b20c
JJ
1162 * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
1163 (struct line_info): Add op_index field, change end_sequence type to
1164 unsigned char.
1165 (new_line_sorts_after): For the same address compare op_index.
1166 (add_line_info): Add op_index argument, store it into the structure.
1167 (decode_line_info): Complain about unknown versions of .debug_line.
1168 Initialize maximum_ops_per_insn. Add op_index state register and
1169 track it.
1170
f2faa800
NS
11712010-04-01 Nathan Sidwell <nathan@codesourcery.com>
1172
1173 * elf32-ppc.c (apuinfo_set): New static var.
1174 (ppc_elf_begin_write_processing): Set it here, always create an
1175 APUinfo section if there were any in the inputs.
1176 (ppc_elf_write_section): Check apuinfo_set.
1177 (ppc_elf_final_write_processing): Likewise.
1178
4b544b64
TG
11792010-04-01 Tristan Gingold <gingold@adacore.com>
1180
1181 * vms.h: Include time.h. Add prototypes for vms_get_module_name,
1182 vms_time_to_time_t and vms_rawtime_to_time_t.
1183 * vms.c (vms_alpha_vec): Add archives support.
1184 * vms-misc.c: Include safe-ctype.h
1185 (vms_get_module_name): New function.
1186 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
1187 * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
1188 vms_get_module_name function. Use this function.
1189 * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
1190 * libbfd-in.h: Add prototype for _bfd_append_relative_path.
1191 Add prototypes for vms-lib.c
1192 * libbfd.h: Regenerate.
1193 * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
1194 vms-lib.lo to vms_alpha_vec.
1195 * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
1196 * configure: Regenerate.
1197 * bfd.c: Add selective_search field.
1198 * bfd-in2.h: Regenerate.
1199 * archive.c (append_relative_path): Rename to
1200 _bfd_append_relative_path and make it public.
1201 (_bfd_get_elt_at_filepos): Adjust for above renaming.
1202 * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
1203 (BFD32_BACKENDS_CFILES): Add vms-lib.c
1204 * Makefile.in: Regenerate.
1205
c07cbdd7
JJ
12062010-04-01 Jakub Jelinek <jakub@redhat.com>
1207
1208 * dwarf2.c (read_attribute_value): Handle CU version 4
1209 for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
1210 and DW_FORM_flag_present. For unknown form value return NULL.
1211 (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
1212 like DW_FORM_block.
1213 (parse_comp_unit): Allow CU version 4.
1214
e236b51d
HPN
12152010-04-01 Hans-Peter Nilsson <hp@axis.com>
1216
1217 * elf32-cris.c (cris_elf_relocate_section): Correct first argument
1218 to _bfd_elf_get_dynamic_reloc_section.
1219 (elf_cris_discard_excess_dso_dynamics): Ditto.
1220
b706dc83
KT
12212010-03-31 Kai Tietz <kai.tietz@onevision.com>
1222
1223 * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
1224 * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
1225
9d6ded02
AM
12262010-03-31 Alan Modra <amodra@gmail.com>
1227
1228 * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
1229 TPREL16_HI and TPREL16_HA insns.
1230
bfbff9eb
HPN
12312010-03-31 Hans-Peter Nilsson <hp@axis.com>
1232
1233 PR ld/11458
1234 * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
1235 assert of empty pcrel_relocs_copied on the direct symbol. Instead
1236 of moving the list from the indirect symbol to the direct symbol,
1237 merge into any existing list.
1238 (cris_elf_check_relocs): Store the original section in the
1239 pcrel_relocs_copied list, not the relocation section.
1240 (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
1241 the relocation section, for reducing its size. Change the
1242 BFD_ASSERT into a check for the section being read-only, and only
1243 emit warnings and TEXTREL marker when there's an entry for a
1244 read-only section.
1245
41ed1ee7
DJ
12462010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1247
1248 * elf32-arm.c (using_thumb_only): Handle v6-M.
1249
ddfd6795
AM
12502010-03-26 Alan Modra <amodra@gmail.com>
1251
1252 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
1253 * bfd-in.h (elf_discarded_section): Clarify comment.
1254 * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
1255 * bfd-in2.h: Regenerate.
1256
1352b58a
AM
12572010-03-26 Matt Rice <ratmice@gmail.com>
1258
1259 * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
1260 as unique in the armap.
1261
6abec6bc
AM
12622010-03-26 Alan Modra <amodra@gmail.com>
1263
1264 PR ld/11375
1265 * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
1266 possible stub on branches.
1267
40b36596
JM
12682010-03-25 Joseph Myers <joseph@codesourcery.com>
1269
1270 * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
1271 (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
1272 (BFD32_BACKENDS): Add elf32-tic6x.lo.
1273 (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
1274 * Makefile.in: Regenerate.
1275 * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
1276 (bfd_archures_list): Update.
1277 * config.bfd (tic6x-*-elf): New.
1278 * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
1279 New.
1280 * configure: Regenerate.
1281 * cpu-tic6x.c, elf32-tic6x.c: New.
1282 * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
1283 BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
1284 BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
1285 BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
1286 BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
1287 BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
1288 BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
1289 BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
1290 BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
1291 BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
1292 BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
1293 BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
1294 BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
1295 * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
1296 (_bfd_target_vector): Update.
1297 * bfd-in2.h, libbfd.h: Regenerate.
1298
4f608e79
L
12992010-03-24 H.J. Lu <hongjiu.lu@intel.com>
1300
1301 * aout-target.h: Update copyright year.
1302 * aout-tic30.c: Likewise.
1303 * coff-alpha.c: Likewise.
1304 * coff-rs6000.c: Likewise.
1305 * coff64-rs6000.c: Likewise.
1306 * elf64-mips.c: Likewise.
1307 * ieee.c: Likewise.
1308 * libecoff.h: Likewise.
1309 * mach-o-target.c: Likewise.
1310 * mach-o.c: Likewise.
1311 * oasys.c: Likewise.
1312 * targets.c: Likewise.
1313
337660d8
L
13142010-03-24 H.J. Lu <hongjiu.lu@intel.com>
1315
1316 * libbfd-in.h: Update copyright year.
1317
ca4a656b
L
13182010-03-21 H.J. Lu <hongjiu.lu@intel.com>
1319
1320 PR ld/11413
1321 * elflink.c (_bfd_elf_add_default_symbol): Check !executable
1322 instead of shared.
1323
47b2e99c
JZ
13242010-03-19 Jie Zhang <jie@codesourcery.com>
1325
1326 * elf32-arm.c (struct section_list): Remove.
1327 (section_list): Remove typedef.
1328 (record_section_with_arm_elf_section_data): Remove.
1329 (find_arm_elf_section_entry): Remove.
1330 (get_arm_elf_section_data): Use is_arm_elf.
1331 (unrecord_section_with_arm_elf_section_data): Remove.
1332 (elf32_arm_new_section_hook): Don't call
1333 record_section_with_arm_elf_section_data.
1334 (elf32_arm_write_section): Set mapcount to -1 when
1335 the map has been used. Don't call
1336 unrecord_section_with_arm_elf_section_data.
1337 (unrecord_section_via_map_over_sections): Remove.
1338 (elf32_arm_close_and_cleanup): Remove.
1339 (elf32_arm_bfd_free_cached_info): Remove.
1340 (bfd_elf32_close_and_cleanup): Don't define.
1341 (bfd_elf32_bfd_free_cached_info): Don't define.
1342
441f34fa
L
13432010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1344
1345 PR binutils/11396
1346 * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
1347 * libcoff.h: Regenerated.
1348
1349 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
1350 if dont_strip_reloc is set.
1351 (_bfd_XX_bfd_copy_private_bfd_data_common): Set
1352 dont_strip_reloc on output if there is no .reloc and
1353 IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
1354
b43420e6
NC
13552010-03-18 Wei Guozhi <carrot@google.com>
1356
1357 PR gas/11323
1358 * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
1359 R_ARM_GOT_PREL.
1360 * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
1361 * bfd-in2.h: Regenerate.
1362 * libbfd.h: Regenerate.
1363
a1b88b01
L
13642010-03-17 H.J. Lu <hongjiu.lu@intel.com>
1365
1366 * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
1367 (BFD_RELOC_SPU_STUB): Likewise.
1368
4b0f0711
L
13692010-03-17 Jie Zhang <jie@codesourcery.com>
1370
1371 * elf.c (assign_file_positions_for_load_sections): Avoid
1372 overflow.
1373
f4bacdc0
AM
13742010-03-17 Alan Modra <amodra@gmail.com>
1375
93620fdb 1376 PR binutils/11382
f4bacdc0
AM
1377 * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
1378 proper type.
1379
8f73510c
AM
13802010-03-17 Alan Modra <amodra@gmail.com>
1381
1382 * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
1383
67f0cbdb
AM
13842010-03-16 Alan Modra <amodra@gmail.com>
1385
1386 * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
1387 (ppc64_elf_edit_toc): Set it here.
1388 (ha_reloc_match): New function.
1389 (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
1390
1bbe0902
AM
13912010-03-15 Alan Modra <amodra@gmail.com>
1392
1393 * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
1394 * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
1395
70cc837d
AM
13962010-03-14 Alan Modra <amodra@gmail.com>
1397
1398 PR ld/11378
1399 * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
1400 * elf64-ppc.c (call_check_done): Define.
1401 (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
1402 (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
1403 (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
1404 (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
1405 Simplify return logic. Iterate over all .init and .fini fragments
1406 by recursion. Set makes_toc_func_call here..
1407 (ppc64_elf_next_input_section): ..rather than here.
1408 (check_pasted_section, ppc64_elf_check_init_fini): New functions.
1409
7b8f6675
AM
14102010-03-13 Alan Modra <amodra@gmail.com>
1411
1412 PR ld/11375
1413 * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
1414 function descriptor symbol if there is one, not just for plt stubs.
1415 (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
1416
a6cc6b3b
RO
14172010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1418
1419 * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
1420 version twice.
1421 Skip it when constructing def.vd_next.
1422
1423 * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
1424 bfd_elf32_i386_sol2_vec.
1425 (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
1426 (elf32_bed): Redefine to elf32_i386_sol2_bed.
1427 (elf_backend_want_plt_sym): Redefine to 1.
1428
1429 * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
1430 bfd_elf64_x86_64_sol2_vec.
1431 (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
1432 (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
1433 (elf_backend_want_plt_sym): Redefine to 1.
1434
1435 * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
1436 bfd_elf32_i386_sol2_vec.
1437 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
1438 targ64_selvecs.
1439 (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
1440 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
1441 targ_selvecs.
1442
1443 * configure.in: Handle bfd_elf32_i386_sol2_vec,
1444 bfd_elf64_x86_64_sol2_vec.
1445 * configure: Regenerate.
1446
1447 * targets.c (bfd_elf32_i386_sol2_vec): Declare.
1448 (bfd_elf64_x86_64_sol2_vec): Declare.
1449 (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
1450 bfd_elf64_x86_64_sol2_vec.
1451
f7dd8c79
DJ
14522010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1453
1454 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
1455 sections.
1456
8af6b354
AM
14572010-03-04 Alan Modra <amodra@gmail.com>
1458
1459 PR 11302
1460 * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
1461 (read_attribute_value, decode_line_info): Likewise.
1462 (add_line_info, read_rangelist): Return FALSE on alloc failures.
1463 (arange_add, sort_line_sequences): Likewise.
1464 (find_abstract_instance_name): Handle failures from called funcs.
1465 (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
1466 (find_line): Realloc to a temp, and handle alloc fail.
1467
501abfe0
DJ
14682010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1469
1470 * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
1471 a mapping symbol to an empty section.
1472
5488d830
MGD
14732010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1474
1475 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
1476 return value from the call to _bfd_elf_merge_object_attributes.
1477
fe33d2fa
CL
14782010-03-02 Christophe Lyon <christophe.lyon@st.com>
1479 Alan Modra <amodra@gmail.com>
1480
1481 * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
1482 destination mode of the a8 stub.
1483 (elf32_arm_link_hash_table): Add top_id field.
1484 (elf32_arm_link_hash_table_create): Initialize top_id.
1485 (arm_type_of_stub): Update prototype, st_type can now be updated
1486 by this function. Actual destination address in case of PLT is
1487 computed here, to help factorizing code.
1488 (elf32_arm_stub_name): Update prototype, use stub_type additional
1489 parameter to build stub name.
1490 (elf32_arm_get_stub_entry): Update prototype, use stub_type
1491 additional parameter to build stub entry.
1492 (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
1493 put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
1494 Call elf32_arm_final_link_relocate to process all in-stub
1495 relocations.
1496 (elf32_arm_setup_section_lists): Update top_id.
1497 (cortex_a8_erratum_scan): Record stub destination mode.
1498 (elf32_arm_size_stubs): Update call to arm_type_of_stub according
1499 to new prototype.
1500 (elf32_arm_final_link_relocate): Enable processing of in-stub
1501 REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
1502 needed, enabling code factorization.
1503 (elf32_arm_final_link): Process stub sections.
1504 (elf32_arm_output_map_sym): Add entry to code/data map.
1505
b48ca1d4
DM
15062010-03-01 David S. Miller <davem@davemloft.net>
1507
1508 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
1509 h->def_regular, set h->ref_regular.
1510 (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
1511 and dynamic relocations if h->ref_regular.
1512
679b7c76
DM
1513 * elfxx-sparc.c (struct elf_reloc_map): Delete.
1514 (sparc_reloc_map): Delete.
1515 (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
1516 relocation type in switch statements.
1517
dfa7b0b8
AM
15182010-02-25 Alan Modra <amodra@gmail.com>
1519
1520 PR ld/11304
1521 * elf.c (_bfd_elf_init_private_section_data): Rename need_group
1522 to final_link and invert. For final link allow some flags to
1523 differ. Don't specially allow flags to be all zero.
1524
d4a77f3f
NC
15252010-02-24 Alan Modra <amodra@gmail.com>
1526
1527 PR binutils/10858
1528 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
1529 SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
1530 table.
1531
17e57237
NC
15322010-02-23 Andrew Zabolotny <anpaza@mail.ru>
1533
1534 PR binutils/11297
1535 * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
1536 (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
1537
263badd7
AM
15382010-02-22 Alan Modra <amodra@gmail.com>
1539
1540 * reloc.c (bfd_check_overflow): When forming addrmask, shift
1541 fieldmask left by rightshift.
1542 (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
1543 overflow checks.
1544
c35bdf6e
L
15452010-02-20 H.J. Lu <hongjiu.lu@intel.com>
1546
1547 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
1548 STT_GNU_IFUNC on large common symbol.
1549
c16153ae
L
15502010-02-18 H.J. Lu <hongjiu.lu@intel.com>
1551
1552 * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
1553 has_ifunc_symbols if the symbol comes from a shared library.
1554 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
1555 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
1556 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
1557 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
1558 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
1559
d0bf826b
AM
15602010-02-19 Alan Modra <amodra@gmail.com>
1561
1562 * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
1563 (_bfd_elf_copy_private_header_data): ..here.
1564 * elflink.c (_bfd_elf_size_group_sections): New function.
1565 (bfd_elf_size_dynamic_sections): Call it.
1566 * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
1567 (_bfd_elf_fixup_group_sections): Declare.
1568
cd21e546
MGD
15692010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1570
1571 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
1572 merging Tag_DIV_use, Tag_MPextension_use, and
1573 Tag_MPextension_use_legacy tags.
1574
415f38a6
AM
15752010-02-18 Alan Modra <amodra@gmail.com>
1576
1577 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
1578 commit. Don't write zeros for removed group members.
1579 (_bfd_elf_copy_private_header_data): Adjust size of group section
1580 when group members are removed by objcopy.
1581
b946d5d8
DK
15822010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
1583
1584 PR binutils/11280
1585 * configure.host (*-*-solaris2.11): Add host define to select
1586 valid default code page for windres/windmc on solaris.
1587
ab7875de
NC
15882010-02-15 Nick Clifton <nickc@redhat.com>
1589
1590 * po/vi.po: Updated Vietnamese translation.
1591
33811162
DG
15922010-02-12 Daniel Gutson <dgutson@codesourcery.com>
1593
1594 * elf32-arm.c (elf32_arm_output_arch_local_syms): add
1595 missing mapping symbol to data only sections.
1596
00c50991
DM
15972010-02-11 David S. Miller <davem@davemloft.net>
1598
1599 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
1600 and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
1601 symbols.
1602 (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
1603 these relocs on global symbols.
1604 (gdopoff): New.
1605 (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
1606 local symbol references which are not STT_GNU_IFUNC. Handle
1607 relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
1608 and deal with negative vs. non-negative values properly.
1609
1523fa24
TG
16102010-02-09 Tristan Gingold <gingold@adacore.com>
1611
1612 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
1613 non-external relocation.
1614
7865406b
AM
16152010-02-09 Alan Modra <amodra@gmail.com>
1616
1617 * elf64-ppc.c (merge_got_entries): Move earlier in file.
1618 (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
1619 (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
1620 (ppc64_elf_layout_multitoc): Don't resize if we have already
1621 merged got entries.
1622
d7eeb400
MS
16232010-02-09 Michael Holzheu <holzheu@de.ibm.com>
1624
1625 * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
1626 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
1627 elfcore_write_s390_prefix): New.
1628 * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
1629 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
1630 elfcore_write_s390_prefix): New.
1631 (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
1632 NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
1352b58a 1633 (elfcore_write_register_note): Handle .reg-s390-timer,
d7eeb400
MS
1634 .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
1635 .reg-s390-prefix section.
1636
f961d9dd
AM
16372010-02-09 Alan Modra <amodra@gmail.com>
1638
1639 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
1640 unsigned char. Update variables and code using them throughout file.
1641 (struct ppc_link_hash_entry): Likewise for tls_mask.
1642
d0fae19d
AM
1643 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
1644
d77c8a4b
AM
1645 * elf64-ppc.c (has_small_toc_reloc): Don't define.
1646 (makes_toc_func_call, call_check_in_progress): Shuffle flags.
1647 (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
1648 code setting the flag.
1649 (ppc64_elf_next_toc_section): Group big-toc sections in
1650 0x80008000 chunks.
1651
72fbc6e5
DM
16522010-02-08 David S. Miller <davem@davemloft.net>
1653
1654 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
1655 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
1656
1657 * elfxx-sparc.c (create_got_section): Delete.
1658 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
1659 section creator does that work for us. Use ->elf.foo instead of
1660 ->foo where applicable.
1661 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
1662 where applicable.
1663 (allocate_dynrelocs): Likewise.
1664 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1665 (_bfd_sparc_elf_relocate_section): Likewise.
1666 (sparc_vxworks_build_plt_entry): Likewise.
1667 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
1668 (sparc_finish_dyn): Likewise.
1669 (sparc_vxworks_finish_exec_plt): Likewise.
1670 (sparc_vxworks_finish_shared_plt): Likewise.
1671 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
1672
1673 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
1674 macros for visibilty and locality checks.
1675 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
1676 (allocate_dynrelocs): Likewise.
1677 (_bfd_sparc_elf_relocate_section): Likewise.
1678 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
1679
1680 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
1681 but never used local var 'dynobj'.
1682
1683 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
1684 nocopyreloc.
1685
d0c9aeb3
DM
1686 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
1687 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
1688 * bfd-in2.h: Regenerate.
1689 * libbfd.h: Regenerate.
1690
1691 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
1692 and loc_hash_memory.
1693 (_bfd_sparc_elf_link_hash_table_free): Declare.
1694 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
1695 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
1696 bfd_elf32_bfd_link_hash_table_free): Define.
1697 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
1698 has_ifunc_symbols if STT_GNU_IFUNC.
1699 (bfd_elf64_bfd_link_hash_table_free): Define.
1700 (elf_backend_post_process_headers): Define always.
1701 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
1702 (sparc_reloc_map): Add entries for new IFUNC relocs.
1703 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
1704 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
1705 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
1706 elf_sparc_get_local_sym_hash): New.
1707 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
1708 from here...
1709 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
1710 local hash table.
1711 (_bfd_sparc_elf_link_hash_table_free): New.
1712 (create_ifunc_sections): New.
1713 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
1714 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
1715 cons up a fake local hash table entry for it. Unconditionally add
1716 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
1717 dyn relocs for ifunc.
1718 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
1719 (allocate_dynrelocs): Unconditionally emit a PLT entry when
1720 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
1721 (allocate_local_dynrelocs): New function.
1722 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
1723 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
1724 like splt.
1725 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
1726 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
1727 plt in iplt/irelplt.
1728
9ea2b942
RS
17292010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
1730
1731 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
1732 max_contents_size, only consider sections whose contents must
1733 be swapped in.
1734
0b8bcf0d
AM
17352010-02-09 Alan Modra <amodra@gmail.com>
1736
1737 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
1738 (ppc64_elf_size_dynamic_sections): ..and here..
1739 (merge_got_entries): ..rather than here.
1740
33c0ec9d
AM
17412010-02-09 Alan Modra <amodra@gmail.com>
1742
1743 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
1744 (has_small_toc_reloc): Define.
1745 (ppc64_elf_check_relocs): Set the above flags.
1746 (ppc64_elf_edit_opd): Delete obfd param.
1747 (ppc64_elf_tls_optimize): Likewise.
1748 (ppc64_elf_edit_toc): Likewise.
1749 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
1750 * elf64-ppc.h: Update prototypes.
1751
b0dddeec
AM
17522010-02-08 Alan Modra <amodra@gmail.com>
1753
1754 * section.c (struct bfd_section): Delete has_tls_reloc,
1755 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
1756 Add sec_flg0 thru sec_flg5.
1757 (BFD_FAKE_SECTION): Update for changed flags.
1758 * ecoff.c (bfd_debug_section): Likewise.
1759 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
1760 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
1761 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
1762 * elf32-xtensa.c (reloc_done): Define.
1763 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
1764 * bfd-in2.h: Regenerate.
1765
06988dfc
TG
17662010-02-08 Tristan Gingold <gingold@adacore.com>
1767
1768 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
1769 for non-scattered relocations.
1770
deddc40b
NS
17712010-02-08 Nathan Sidwell <nathan@codesourcery.com>
1772
1773 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
1774 apuinfo sections, only scan input sections once and reuse the
1775 buffer.
1776
ce3d2015
AM
17772010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1778
1779 * archures.c (bfd_mach_ppc_titan): Define.
1780 * bfd-in2.h: Regenerate.
1781 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
1782
06a162cf
AM
17832010-02-08 Alan Modra <amodra@gmail.com>
1784
1785 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
1786
4c348442
SA
17872010-02-05 Sterling Augustine <sterling@tensilica.com>
1788
1789 * elf.c (assign_file_positions_for_load_sections) Update lma of
1790 section if necessary. Fixes Bugzilla 11219.
1791
6bbec505
L
17922010-02-05 H.J. Lu <hongjiu.lu@intel.com>
1793
1794 * elf32-i386.c: Remove trailing white spaces.
1795 * elf64-x86-64.c: Likewise.
1796
4dfe6ac6
NC
17972010-02-03 Nick Clifton <nickc@redhat.com>
1798
1799 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
1800 entries for other architectures.
1801 (struct elf_link_hash_table): Add hash_table_id field.
1802 (elf_hash_table_id): New accessor macro.
1803 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
1804 parameter.
1805 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
1806 returning cast pointer.
1807 (elf32_mn10300_link_hash_table_create): Identify new table as
1808 containing MN10300 extensions.
1809 (mn10300_elf_relax_section): Check pointer returned by
1810 elf32_mn10300_hash_table.
1811 * elf32-arm.c: Likewise, except using ARM extensions.
1812 * elf32-avr.c: Likewise, except using AVR extensions.
1813 * elf32-bfin.c: Likewise, except using BFIN extensions.
1814 * elf32-cris.c: Likewise, except using CRIS extensions.
1815 * elf32-frv.c: Likewise, except using FRV extensions.
1816 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
1817 * elf32-i386.c: Likewise, except using I386 extensions.
1818 * elf32-lm32.c: Likewise, except using LM32 extensions.
1819 * elf32-m32r.c: Likewise, except using M32RM extensions.
1820 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
1821 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
1822 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
1823 * elf32-m68k.c: Likewise, except using M68K extensions.
1824 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
1825 * elf32-ppc.c: Likewise, except using PPC32 extensions.
1826 * elf32-s390.c: Likewise, except using S390 extensions.
1827 * elf32-sh.c: Likewise, except using SH extensions.
1828 * elf32-spu.c: Likewise, except using SPU extensions.
1829 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
1830 * elf64-alpha.c: Likewise, except using ALPHA extensions.
1831 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
1832 * elf64-ppc.c: Likewise, except using PPC64 extensions.
1833 * elf64-s390.c: Likewise, except using S390 extensions.
1834 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
1835 * elfxx-ia64.c: Likewise, except using IA64 extensions.
1836 * elfxx-mips.c: Likewise, except using MIPS extensions.
1837 * elfxx-sparc.c: Likewise, except using SPARC extensions.
1838 * elfxx-sparc.h: Likewise, except using SPARC extensions.
1839 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
1840 redundant structure.
1841 (elf32_cr16_hash_table): Delete unused macro.
1842 (elf32_cr16_link_hash_traverse): Delete unused macro.
1843 * elf32-score.c: Likewise.
1844 * elf32-score7.c: Likewise.
1845 * elf32-vax.c: Likewise.
1846 * elf64-sh64.c: Likewise.
1847
927be08e
AM
18482010-02-03 Alan Modra <amodra@gmail.com>
1849
1850 * elf64-ppc.c (struct plt_entry): Move earlier in file.
1851 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
1852 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
1853 Update all uses.
1854 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
1855 Remove no_multi_toc.
1856 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
1857 when allocating a new struct got_entry.
1858 (allocate_got): New function, extracted from..
1859 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
1860 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
1861 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
1862 (ppc64_elf_setup_section_lists): Remove output_bfd param and
1863 no_multi_toc, add add_stub_section and layout_sections_again. Stash
1864 new params in htab. Extract some code to..
1865 (ppc64_elf_start_multitoc_partition): ..here. New function.
1866 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
1867 second pass toc scan.
1868 (merge_got_entries, merge_global_got, reallocate_got): New functions.
1869 (ppc64_elf_reinit_toc): Rename to..
1870 (ppc64_elf_finish_multitoc_partition): ..this.
1871 (ppc64_elf_layout_multitoc): New function.
1872 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
1873 layout_sections_again params.
1874 (ppc64_elf_relocate_section): Handle indirect got entries.
1875 * elf64-ppc.h: Update prototypes. Declare new functions.
1876
4339cae0
L
18772010-02-02 H.J. Lu <hongjiu.lu@intel.com>
1878
1879 * elf-bfd.h (elfcore_write_xstatereg): New.
1880
1881 * elf.c (elfcore_grok_xstatereg): New.
1882 (elfcore_write_xstatereg): Likewise.
1883 (elfcore_grok_note): Handle NT_X86_XSTATE.
1884 (elfcore_write_register_note): Handle .reg-xstate section.
1885
9848eadf
TG
18862010-02-01 Tristan Gingold <gingold@adacore.com>
1887
1888 * som.c (som_write_ar_hdr): Define this macro.
1889
f6fd0237
DA
18902010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1891
1892 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
1893 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
1894 linkage table pointer to use the global table pointer if not doing
1895 a shared link.
1896
a1504221
JB
18972010-01-29 Joel Brobecker <brobecker@adacore.com>
1898
1899 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
1900 if it has already been set.
1901
771deb08
TG
19022010-01-27 Tristan Gingold <gingold@adacore.com>
1903
1904 * vms.h: Remove trailing spaces.
1905 (struct hdr_struct): Remove unused hdr_c_cpr field.
1906 (enum file_format_enum): Add comments.
1907 * vms.c (vms_bfd_print_private_bfd_data): New function that
1908 replaces the macro.
1909 Remove trailing spaces.
1910 * vms-misc.c: Improve comments.
1911 (_bfd_vms_get_object_record): Also handle files without pads.
1912 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
1913 * vms-gsd.c (struct flagdescstruct): Make name field const.
1914 (gsyflagdesc): Fix typo.
1915
bf102f86
AM
19162010-01-27 Alan Modra <amodra@gmail.com>
1917
1918 PR ld/11217
1919 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
1920 (ppc64_elf_setup_section_lists): Init them.
1921 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
1922 and .toc on the same input file.
1923 (ppc64_elf_relocate_section): Correct GOT entry offset.
1924
8f95b6e4
TG
19252010-01-26 Tristan Gingold <gingold@adacore.com>
1926
1927 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
1928 (bfd_target): Add _bfd_write_ar_hdr_fn field.
1929 * archive.c (is_bsd44_extended_name): New macro.
1930 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
1931 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
1932 name.
1933 (_bfd_archive_bsd44_construct_extended_name_table): New function.
1934 (_bfd_generic_write_ar_hdr): Ditto.
1935 (_bfd_bsd44_write_ar_hdr): Ditto.
1936 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
1937 (bsd_write_armap): Adjust firstreal computation.
1938 * libbfd-in.h (struct areltdata): Add extra_size field.
1939 (_bfd_generic_write_ar_hdr): Add prototype.
1940 (_bfd_bsd44_write_ar_hdr): Ditto.
1941 (_bfd_write_ar_hdr): Define.
1942 (_bfd_noarchive_write_ar_hdr): Ditto.
1943 (_bfd_archive_bsd_write_ar_hdr): Ditto.
1944 (_bfd_archive_coff_write_ar_hdr): Ditto.
1945 (_bfd_archive_bsd44_slurp_armap): Ditto.
1946 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
1947 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
1948 (_bfd_archive_bsd44_truncate_arname): Ditto.
1949 (_bfd_archive_bsd44_write_armap): Ditto.
1950 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
1951 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
1952 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
1953 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
1954 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
1955 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
1956 * libbfd.h: Regenerate.
1957 * oasys.c (oasys_write_ar_hdr): Define.
1958 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
1959 * ieee.c (ieee_write_ar_hdr): Define.
1960 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
1961 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
1962 (bfd_pmac_xcoff_backend_data): Ditto.
1963 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
1964 (bfd_xcoff_aix5_backend_data): Ditto.
1965 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
1966 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
1967 * aout-tic30.c (MY_write_ar_hdr): Ditto.
1968 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
1969 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1970 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1971 (bfd_mach_o_construct_extended_name_table)
1972 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1973 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1974 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
1975 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
1976 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
1977 (bfd_mach_o_construct_extended_name_table)
1978 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
1979 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
1980 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
1981 * bfd-in2.h: Regenerate.
1982
98da7939
L
19832010-01-26 Alan Modra <amodra@gmail.com>
1984 H.J. Lu <hongjiu.lu@intel.com>
1985
1986 PR ld/11218
1987 * elflink.c (elf_link_output_extsym): Do not ignore undefined
1988 symbols with ref_regular set when gc_sections is active.
1989
766bc656
AM
19902010-01-25 Alan Modra <amodra@gmail.com>
1991
1992 PR ld/11217
1993 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
1994 with relocations against undefined weak symbols.
1995 (ppc64_elf_relocate_section): Don't optimize calls to undefined
1996 weak functions if the symbol is dynamic.
1997 (ppc64_elf_relocate_section): Edit tprel tls sequences.
1998 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1999 (_bfd_elf_ppc_at_tprel_transform): New function.
2000 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
2001 * bfd-in2.h: Regenerate.
2002
c865e45b
RS
20032010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
2004
2005 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
2006 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
2007 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
2008 bitsize to 1.
2009 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
2010
b918acf9
NC
20112010-01-21 Nick Clifton <nickc@redhat.com>
2012
2013 * elflink.c (elf_link_add_object_symbols): Look up name of
2014 undefined symbol both before and after versioning has been
2015 applied. Do not bother with symbols that are weakly undefined.
2016
55786da2 20172010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
b918acf9 2018
55786da2
AK
2019 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
2020 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
2021
a37a68dd
CC
20222010-01-19 Cary Coutant <ccoutant@google.com>
2023
2024 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
2025
ecd12bc1
AM
20262010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
2027 Alan Modra <amodra@gmail.com>
2028
1352b58a 2029 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
ecd12bc1
AM
2030 (elf_object_p): Read e_phnum extension.
2031 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
1352b58a 2032 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
ecd12bc1
AM
2033 that we can read last program header.
2034
f6ebfac0
AM
20352010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2036
2037 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
2038 R_ARM_THM_CALL entry.
2039 (elf32_arm_final_link_relocate): Correct calculation of
2040 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
2041 or R_ARM_THM_JUMP24 relocation.
2042
22eb4b1d
AM
20432010-01-18 Alan Modra <amodra@gmail.com>
2044
2045 PR 11168
2046 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
2047 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
2048 than 32k sections.
2049
6ec12636
JK
20502010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2051
2052 Fix compilation warning on gcc-3.4.
2053 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
2054 parameter index to sec_index according to the function definition.
2055
38a7df63
CF
20562010-01-13 Chao-ying Fu <fu@mips.com>
2057
2058 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
2059 It is true for all CPUs.
2060 (jal_reloc_p): New function.
2061 (mips_elf_calculate_relocation): Rename require_jalxp to
2062 cross_mode_jump_p.
2063 Update comment for CROSS_MODE_JUMP_P.
2064 Set up cross_mode_jump_p based on the mode change.
2065 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
2066 Update comment for CROSS_MODE_JUMP_P.
2067 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
2068 Use !cross_mode_jump_p to guard conversion.
2069 Convert "jr t9" to "b", if possible.
2070 (_bfd_mips_elf_relocate_section): Rename require_jalx to
2071 cross_mode_jump_p.
2072 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
2073 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
2074
91b9a4a4
NC
20752010-01-13 Nick Clifton <nickc@redhat.com>
2076
2077 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
2078 "m32c" returns the m32c arch_info_struct and not the m16c
2079 arch_info_struct.
2080 (arch_info_struct): Use the new scan function.
2081 (bfd_m32c_arch): Likewise.
2082
618b7301
TG
20832010-01-13 Tristan Gingold <gingold@adacore.com>
2084
2085 * config.bfd: Remove duplicated target vector for i386-*-darwin.
2086 Appends new arch instead of overriding.
2087 Use mach_o_x86_64_vec for x86_64-*-darwin.
2088 * configure.in: Add mach_o_x86_64_vec.
2089 * configure: Regenerate.
2090 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
2091 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
2092 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
2093 * Makefile.in: Regenerate.
2094 * mach-o-x86-64.c: New file.
2095
f88af2f1
TG
20962010-01-13 Tristan Gingold <gingold@adacore.com>
2097
2098 * reloc.c: Add MACH_O_X86_64 relocations.
2099 * bfd-in2.h: Regenerate.
2100 * libbfd.h: Regenerate.
2101
19172f39
TG
21022010-01-13 Tristan Gingold <gingold@adacore.com>
2103
2104 * archive.c (normalize): Use lbasename.
2105 (bfd_bsd_truncate_arname): Ditto.
2106 (bfd_gnu_truncate_arname): Ditto.
2107
6cdb8d82
TG
21082010-01-12 Tristan Gingold <gingold@adacore.com>
2109
2110 * makefile.vms (CFLAGS): Turns warnings into informational messages.
2111
9a753de0
TG
21122010-01-11 Tristan Gingold <gingold@adacore.com>
2113
2114 * mach-o.h: Add x86-64 relocation types.
2115
42fa0891
TG
21162010-01-11 Tristan Gingold <gingold@adacore.com>
2117
2118 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
2119 (bfd_mach_o_set_arch_mach): New prototype.
2120 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
2121 (bfd_mach_o_set_arch_mach): New function.
2122 (bfd_mach_o_gen_mkobject): New function.
2123 Set TARGET_ARCHITECTURE for the generic back-ends.
2124 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
2125 Check that TARGET_ARCHITECTURE is defined.
2126 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
2127 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
2128
cba0723b
TG
21292010-01-11 Tristan Gingold <gingold@adacore.com>
2130
19172f39 2131 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
cba0723b 2132
4d421096
NC
21332010-01-11 Nick Clifton <nickc@redhat.com>
2134
2135 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
2136 handling of R_V850_HI16_S relocation.
2137
20b1d3e3
AM
21382010-01-11 Alan Modra <amodra@gmail.com>
2139
2140 PR 11103
2141 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
2142
a358ecb8
AM
21432010-01-11 Alan Modra <amodra@gmail.com>
2144
2145 PR 6832
2146 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
2147 (find_abstract_instance_name): Use it.
2148 (parse_comp_unit): Set it.
2149
3725885a
RW
21502010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2151
2152 * Makefile.in: Regenerate.
2153 * configure: Regenerate.
2154
3ee87829
TG
21552010-01-08 Tristan Gingold <gingold@adacore.com>
2156
2157 * archive.c: Remove bfd_special_undocumented_glue.
2158
fb34365b
AM
21592010-01-08 Alan Modra <amodra@gmail.com>
2160
2161 PR ld/11133
2162 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
2163 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
2164 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
2165
d023c380
L
21662010-01-07 H.J. Lu <hongjiu.lu@intel.com>
2167
2168 PR ld/11138
2169 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
2170 a symbol referenced by DSO is is defined in a non-shared object
2171 and forced local.
2172
bde6f3eb
L
21732010-01-07 H.J. Lu <hongjiu.lu@intel.com>
2174
2175 PR ld/11133
2176 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
2177 undefined __start_XXX/__stop_XXX in all input files and set
2178 SEC_KEEP.
2179
16583161
L
21802010-01-07 H.J. Lu <hongjiu.lu@intel.com>
2181
2182 PR ld/11143
2183 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
2184
16231b7b
DG
21852010-01-04 Daniel Gutson <dgutson@codesourcery.com>
2186
2187 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
2188 before including procfs.h.
2189 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
2190 * configure.in: Added autoconf probe for the pr_fpreg member.
2191 * configure: Regenerated.
2192 * config.in: Regenerated.
2193 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
2194
608fa8d3
JB
21952010-01-04 Joel Brobecker <brobecker@adacore.com>
2196
2197 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
2198 * dwarf2.c (concat_filename): Rename dirname with dir_name
2199 to void shadowing the dirname function.
2200 Rename subdirname with subdir_name to stay consistent with
2201 the new dir_name variable name.
2202
0dc93057
AM
22032010-01-04 Edmar Wienskoski <edmar@freescale.com>
2204
2205 * archures.c: Add bfd_mach_ppc_e500mc64.
2206 * bfd-in2.h: Regenerate.
2207 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
2208 bfd_mach_ppc_e500mc64.
2209
baf9bed3
JB
22102010-01-01 Joel Brobecker <brobecker@adacore.com>
2211
2212 Fix -Wshadow warnings (seen on ppc-aix)
2213 * xcofflink.c: Replace finfo by flinfo throughout.
2214
43ecc30f 2215For older changes see ChangeLog-2009
56882138
AM
2216\f
2217Local Variables:
2218mode: change-log
2219left-margin: 8
2220fill-column: 74
2221version-control: never
2222End: