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