ecc442ff12cd39a2d352a4c26a8f9602a5e954f6
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2
3 * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
4 functions to C90.
5 * elf64-hppa.h: Likewise.
6
7 2009-02-06 Joseph Myers <joseph@codesourcery.com>
8
9 * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
10 .sbss handling.
11
12 2009-02-04 Alan Modra <amodra@bigpond.net.au>
13
14 * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
15 Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
16
17 2009-02-03 Sandip Matte <sandip@rmicorp.com>
18
19 * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
20 * archures.c (bfd_mach_mips_xlr): Define.
21 * bfd-in2.h: Regenerate.
22 * cpu-mips.c (I_xlr): Define.
23 (arch_info_struct): Add XLR entry.
24 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
25 (mips_set_isa_flags): Handle bfd_mach_mips_xlr
26 (mips_mach_extensions): Add XLR entry.
27
28 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
29
30 * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
31
32 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
33
34 * configure.in: AC_SUBST pdfdir.
35 * Makefile.am: Add install-pdf, install-pdf-am
36 and install-pdf-recursive targets. Define pdfdir.
37 * doc/Makefile.am: Define pdf__strip_dir. Add
38 install-pdf and install-pdf-am targets.
39 * po/Make-in: Add install-pdf target.
40 * configure: Regenerate.
41 * Makefile.in: Regenerate
42 * doc/Makefile.in: Regenerate.
43
44 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
45
46 * bfd-in2.h: Regenerate.
47 * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
48 fields from n_entries to n_slots where appropriate, update comments.
49 (HOWTO): Add TLS relocations.
50 (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
51 (enum elf_m68k_got_offset_size): New enum.
52 (struct elf_m68k_got_entry.type): Move field to ...
53 (struct elf_m68k_got_entry_key): ... here. Update all uses.
54 (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
55 functions.
56 (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
57 functions.
58 (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
59 fields into n_entries array. Update comments.
60 (elf_m68k_init_got): Simplify, update all uses.
61 (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
62 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
63 GOT entries; update name, update all uses.
64 (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
65 (elf_m68k_get_got_entry): Update.
66 (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
67 simplify.
68 (elf_m68k_remove_got_entry_type): Simplify.
69 (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
70 (elf_m68k_can_merge_gots): Update.
71 (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
72 (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
73 GOT entries, simplify.
74 (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
75 (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
76 field, remove obsoleted local_n_entries field.
77 (elf_m68k_partition_multi_got_2): New static function.
78 (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
79 update.
80 (elf_m68k_remove_got_entry_type): Update.
81 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
82 (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
83 update of sgot->size and srelgot->size.
84 (elf_m68k_gc_sweep_hook): Update.
85 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
86 (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
87 TLS relocations.
88 * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
89 * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
90
91 2009-02-02 DJ Delorie <dj@redhat.com>
92
93 * elf32-mep.c (config_names): Regenerate configuration.
94
95 2009-02-02 Alan Modra <amodra@bigpond.net.au>
96
97 * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
98 (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
99 * elf.c (bfd_elf_get_str_section): Make static.
100 (bfd_elf_find_section): Delete.
101 * libbfd.h: Regenerate.
102
103 2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
104
105 * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
106 (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
107
108 2009-01-31 Alan Modra <amodra@bigpond.net.au>
109
110 * elflink.c (on_needed_list): New function.
111 (elf_link_add_object_symbols): Link in --as-needed libs if they
112 satisfy undefined symbols in other libs.
113
114 2009-01-30 Julian Brown <julian@codesourcery.com>
115
116 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
117 EXEC_P or DYNAMIC flags, and skip sections which are being linked
118 with --just-symbols (-R).
119
120 2009-01-29 Adam Nemet <anemet@caviumnetworks.com>
121
122 * dwarf2.c (read_rangelist): Use read_address to read low_pc and
123 high_pc in order to properly sign-extend VMAs.
124
125 2009-01-29 Daniel Jacobowitz <dan@codesourcery.com>
126 Mark Shinwell <shinwell@codesourcery.com>
127 Catherine Moore <clm@codesourcery.com>
128
129 * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
130
131 2009-01-28 Catherine Moore <clm@codesourcery.com>
132
133 * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
134 SEC_LOAD for dynamic relocation sections.
135
136 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
137
138 * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
139 (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
140 the size of local TLS data.
141
142 2009-01-27 Andreas Schwab <schwab@suse.de>
143
144 * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
145 architectures in the archive.
146
147 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
148
149 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
150 <R_CRIS_32_DTPREL>: Correct relocation value.
151
152 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
153 <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
154 symbols with non-default visibility.
155
156 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
157
158 * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
159 describing the trampolines.
160 (ppc_elf_relocate_section): Update relocs to describe the
161 trampolines.
162
163 2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
164
165 * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
166 branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
167 and R_PARISC_PCREL12F relocations.
168
169 2009-01-24 Alan Modra <amodra@bigpond.net.au>
170
171 PR 6022
172 * elflink.c (find_version_for_sym): New function split out from,
173 but without export_dynamic test, ..
174 (_bfd_elf_link_assign_sym_version): ..here.
175 (_bfd_elf_export_symbol): Use it.
176
177 2009-01-23 Alan Modra <amodra@bigpond.net.au>
178
179 * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
180 (struct elf_info_failed, struct elf_find_verdep_info): Move to..
181 * elflink.c: ..here, somewhat modified.
182 * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
183 _bfd_elf_link_find_version_dependencies,
184 _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
185 _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
186 _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
187 declare..
188 * elflink.c: ..and make static here.
189 (_bfd_elf_link_find_version_dependencies): Adjust for removal
190 of output_bfd from struct elf_find_verdep_info.
191 (_bfd_elf_link_assign_sym_version): Similarly adjust to use
192 struct elf_info_failed.
193 (bfd_elf_size_dynamic_sections): Adjust.
194
195 2009-01-22 Alan Modra <amodra@bigpond.net.au>
196
197 PR 6832
198 * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
199 after comp_unit_find_line call.
200
201 2009-01-21 Nick Clifton <nickc@redhat.com>
202
203 PR 9769
204 * vmsutil.c (vms_file_stats_name): Remove use of unsupported
205 tm_gmtoff field in struct tm.
206
207 2009-01-21 Alan Modra <amodra@bigpond.net.au>
208
209 * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
210 * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
211 sections in soft-icache lines unless non_ia_text. Don't add
212 rodata if doing so would exceed line size.
213
214 2009-01-19 Hans-Peter Nilsson <hp@axis.com>
215
216 * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
217 types than bfd_link_hash_indirect, before early return, call
218 _bfd_elf_link_hash_copy_indirect.
219
220 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
221
222 * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
223 * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
224 * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
225 (elf_backend_obj_attrs_order): New define.
226 * elfxx-target.h (elf_backend_obj_attrs_order): New define.
227 (elfNN_bed): Add elf_backend_obj_attrs_order.
228
229 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
230
231 * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
232 (obj_attr_size): Likewise.
233 (write_obj_attribute): Likewise.
234 (_bfd_elf_copy_obj_attributes): Likewise.
235 (_bfd_elf_parse_attributes): Likewise.
236 * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
237 (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
238 (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
239 (ATTR_TYPE_HAS_NO_DEFAULT): New define.
240 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
241 with macros.
242
243 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
244
245 * elf-attrs.c (is_default_attr): Support defaultless attributes.
246 (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
247 (bfd_elf_add_obj_attr_string): Likewise.
248 (bfd_elf_add_obj_attr_int_string): Likewise.
249 (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
250 * elf-bfd.h (struct obj_attribute): Document new flag bit.
251 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
252 Tag_nodefaults has no default value.
253 (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
254 comment to reflect the new state.
255
256 2009-01-19 Alan Modra <amodra@bigpond.net.au>
257
258 PR 9695
259 * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
260 (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
261 (adjust_z_magix): Delete dead code handling QMAGIC.
262
263 2009-01-16 Kai Tietz <kai.tietz@onevision.com>
264
265 * coffcode.h (styp_to_sec_flags): Correct interpretation of
266 IMAGE_SCN_MEM_DISCARDABLE.
267
268 2009-01-16 Alan Modra <amodra@bigpond.net.au>
269
270 * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
271 SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
272 * configure.in (commonbfdlib): Delete.
273 (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
274 (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
275 is available, not just for linux.
276 * po/SRC-POTFILES.in: Regenerate.
277 * Makefile.in: Regenerate.
278 * configure: Regenerate.
279
280 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
281 Julian Brown <julian@codesourcery.com>
282
283 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
284 ARM attributes in ABI 2.07.
285 * elf32-arm.c (get_secondary_compatible_arch): New function.
286 (set_secondary_compatible_arch): New function.
287 (tag_cpu_arch_combine): New function.
288 (elf32_arm_copy_one_eabi_other_attribute): Delete function.
289 (elf32_arm_copy_eabi_other_attribute_list): Delete function.
290 (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
291 make it fit with order_01243.
292 Add support for Tag_also_compatible_with,
293 Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
294 Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
295 Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
296 Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
297 Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
298 Tag_VFP_arch and Tag_ABI_FP_16bit_format.
299 Rework the way unknown attributes are handled.
300 Defer errors until all attributes have been processed.
301
302 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
303
304 * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
305 bfd_elf_add_obj_attr_int_string.
306 Read Tag_compatibility from its new location in the attribute array,
307 rather than the attribute list.
308 (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
309 bfd_elf_add_obj_attr_int_string.
310 (_bfd_elf_parse_attributes): Likewise.
311 (_bfd_elf_merge_object_attributes): There's now only one
312 Tag_compatibility, and it's in the array, not the list.
313 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
314 Tag_compatibility.
315 (bfd_elf_add_obj_attr_compat): Rename to
316 bfd_elf_add_obj_attr_int_string.
317 (bfd_elf_add_proc_attr_compat): Rename to
318 bfd_elf_add_proc_attr_int_string.
319 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
320 Tag_compatibility.
321
322 2009-01-15 Douglas B Rupp <rupp@gnat.com>
323
324 * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
325 (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
326 (vmsutil.lo): Add dependency rule.
327 * Makefile.in: Regenerate.
328 * config.bfd (ia64*-*-*vms*): Add case.
329 * configure.in (bfd_elf64_ia64_vms_vec): Add case.
330 * configure: Regenerate.
331 * vmsutil.c: New file.
332 * vmsutil.h: New file.
333 * elf-bfd.h (struct bfd_elf_special_section): Change type of
334 attr to bfd_vma.
335 * elfxx-ia64.c (elfNN_vms_post_process_headers,
336 elfNN_vms_section_processing, elfNN_vms_final_write_processing,
337 elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
338 elfNN_vms_object_p): New functions
339 * targets.c (bfd_elf64_ia64_vms_vec): New target.
340
341 2009-01-14 H.J. Lu <hongjiu.lu@intel.com>
342
343 PR ld/9727
344 * elflink.c (elf_gc_sweep): Exclude the group section if the
345 first member of the section group is excluded.
346
347 2009-01-14 Alan Modra <amodra@bigpond.net.au>
348
349 PR 9735
350 * syms.c (_bfd_stab_section_find_nearest_line): Don't free
351 saved filename, use bfd_alloc rather than bfd_malloc for it.
352
353 2009-01-13 Alan Modra <amodra@bigpond.net.au>
354
355 * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
356
357 2009-01-13 Alan Modra <amodra@bigpond.net.au>
358
359 * elf32-spu.c (remove_cycles): Always set call->max_depth.
360
361 2009-01-12 Alan Modra <amodra@bigpond.net.au>
362
363 * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
364
365 2009-01-12 Alan Modra <amodra@bigpond.net.au>
366
367 * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
368 num_lines_log2.
369 (struct got_entry): Add br_addr.
370 (struct call_info): Add priority.
371 (struct function_info): Add lr_store and sp_adjust.
372 (spu_elf_setup): Init line_size_log2 and num_lines_log2.
373 (spu_elf_find_overlays): For soft-icache, mark any section within cache
374 area as an overlay, and check that no other overlays exist. Look up
375 icache overlay manager entry sym.
376 (BRA_STUBS, BRA, BRASL): Define.
377 (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
378 (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
379 in branch insn.
380 (count_stub, build_stub): Support soft-icache.
381 (build_spuear_stubs, process_stubs): Adjust build_stub call.
382 (spu_elf_size_stubs): Size soft-icache stubs.
383 (overlay_index): New function.
384 (spu_elf_build_stubs): Make static. Support soft-icache.
385 (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
386 (find_function_stack_adjust): Save lr store and stack adjust insn
387 offsets.
388 (maybe_insert_function): Adjust find_function_stack_adjust call.
389 (mark_functions_via_relocs): Retrieve priority.
390 (remove_cycles): Only warn about pruned arcs when stack_analysis.
391 (sort_calls): Sort by priority first.
392 (mark_overlay_section): Ignore .ovl.init.
393 (sum_stack): Only print when stack_analysis.
394 (print_one_overlay_section): New function, extracted from..
395 (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
396 (spu_elf_stack_analysis): Only print when htab->stack_analysis.
397 (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
398 analysis. Call spu_elf_build_stubs.
399 (spu_elf_relocate_section): For soft-icache encode overlay index
400 into addresses.
401 (spu_elf_output_symbol_hook): Support soft-icache.
402 (spu_elf_modify_program_headers: Likewise.
403
404 * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
405 num_regions to num_lines. Add line_size and max_branch.
406 (enum _ovly_flavour): Add ovly_soft_icache.
407 (spu_elf_build_stubs): Delete.
408
409 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
410
411 * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
412 relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
413
414 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
415
416 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
417 <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
418 the program, the known offset starts at the negative size of the
419 TLS section.
420 <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
421 Similar.
422
423 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
424
425 * config.bfd: Add lm32-*-rtems*.
426
427 2009-01-03 H.J. Lu <hongjiu.lu@intel.com>
428
429 * coff-ppc.c: Add 2009 to Copyright.
430 * elf32-cris.c: Likewise.
431 * elflink.c: Likewise.
432
433 2009-01-03 Hans-Peter Nilsson <hp@axis.com>
434
435 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
436 gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
437
438 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
439
440 PR ld/9679
441 * elflink.c (elf_merge_st_other): New.
442 (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
443 hide them if needed.
444 (elf_link_add_object_symbols): Updated.
445
446 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
447
448 PR ld/9676
449 * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
450 ref_dynamic and dynamic_def fields when setting def_regular
451 to 1.
452
453 2009-01-02 Curtis Mackie <curtmackevo@gmail.com>
454
455 PR 9682
456 * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
457 literal.
458
459 For older changes see ChangeLog-2008
460 \f
461 Local Variables:
462 mode: change-log
463 left-margin: 8
464 fill-column: 74
465 version-control: never
466 End:
This page took 0.038227 seconds and 4 git commands to generate.