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