file deffilep.c was initially added on branch binutils-2_19-branch.
[binutils.git] / bfd / ChangeLog
bloba409367d22c03fdfcca3eb5980a383890d1f773f
1 2009-02-02  Alan Modra  <amodra@bigpond.net.au>
3         * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
4         (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
5         * elf.c (bfd_elf_get_str_section): Make static.
6         (bfd_elf_find_section): Delete.
7         * libbfd.h: Regenerate.
9 2009-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
11         * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
12         (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
14 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
16         * elflink.c (on_needed_list): New function.
17         (elf_link_add_object_symbols): Link in --as-needed libs if they
18         satisfy undefined symbols in other libs.
20 2009-01-30  Julian Brown  <julian@codesourcery.com>
22         * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
23         EXEC_P or DYNAMIC flags, and skip sections which are being linked
24         with --just-symbols (-R).
26 2009-01-29  Adam Nemet  <anemet@caviumnetworks.com>
28         * dwarf2.c (read_rangelist): Use read_address to read low_pc and
29         high_pc in order to properly sign-extend VMAs.
31 2009-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
32             Mark Shinwell  <shinwell@codesourcery.com>
33             Catherine Moore  <clm@codesourcery.com>
35         * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
37 2009-01-28  Catherine Moore <clm@codesourcery.com>
39         * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
40         SEC_LOAD for dynamic relocation sections.
42 2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
44         * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
45         (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
46         the size of local TLS data.
48 2009-01-27  Andreas Schwab  <schwab@suse.de>
50         * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
51         architectures in the archive.
53 2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
55         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
56         <R_CRIS_32_DTPREL>: Correct relocation value.
58         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
59         <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
60         symbols with non-default visibility.
62 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
64         * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
65         describing the trampolines.
66         (ppc_elf_relocate_section): Update relocs to describe the
67         trampolines.
69 2009-01-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
71         * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
72         branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
73         and R_PARISC_PCREL12F relocations.
75 2009-01-24  Alan Modra  <amodra@bigpond.net.au>
77         PR 6022
78         * elflink.c (find_version_for_sym): New function split out from,
79         but without export_dynamic test, ..
80         (_bfd_elf_link_assign_sym_version): ..here.
81         (_bfd_elf_export_symbol): Use it.
83 2009-01-23  Alan Modra  <amodra@bigpond.net.au>
85         * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
86         (struct elf_info_failed, struct elf_find_verdep_info): Move to..
87         * elflink.c: ..here, somewhat modified.
88         * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
89         _bfd_elf_link_find_version_dependencies,
90         _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
91         _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
92         _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
93         declare..
94         * elflink.c: ..and make static here.
95         (_bfd_elf_link_find_version_dependencies): Adjust for removal
96         of output_bfd from struct elf_find_verdep_info.
97         (_bfd_elf_link_assign_sym_version): Similarly adjust to use
98         struct elf_info_failed.
99         (bfd_elf_size_dynamic_sections): Adjust.
101 2009-01-22  Alan Modra  <amodra@bigpond.net.au>
103         PR 6832
104         * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
105         after comp_unit_find_line call.
107 2009-01-21  Nick Clifton  <nickc@redhat.com>
109         PR 9769
110         * vmsutil.c (vms_file_stats_name): Remove use of unsupported
111         tm_gmtoff field in struct tm.
113 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
115         * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
116         * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
117         sections in soft-icache lines unless non_ia_text.  Don't add
118         rodata if doing so would exceed line size.
120 2009-01-19  Hans-Peter Nilsson  <hp@axis.com>
122         * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
123         types than bfd_link_hash_indirect, before early return, call
124         _bfd_elf_link_hash_copy_indirect.
126 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
128         * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
129         * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
130         * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
131         (elf_backend_obj_attrs_order): New define.
132         * elfxx-target.h (elf_backend_obj_attrs_order): New define.
133         (elfNN_bed): Add elf_backend_obj_attrs_order.
135 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
137         * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
138         (obj_attr_size): Likewise.
139         (write_obj_attribute): Likewise.
140         (_bfd_elf_copy_obj_attributes): Likewise.
141         (_bfd_elf_parse_attributes): Likewise.
142         * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
143         (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
144         (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
145         (ATTR_TYPE_HAS_NO_DEFAULT): New define.
146         * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
147         with macros.
149 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
151         * elf-attrs.c (is_default_attr): Support defaultless attributes.
152         (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
153         (bfd_elf_add_obj_attr_string): Likewise.
154         (bfd_elf_add_obj_attr_int_string): Likewise.
155         (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
156         * elf-bfd.h (struct obj_attribute): Document new flag bit.
157         * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
158         Tag_nodefaults has no default value.
159         (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
160         comment to reflect the new state.
162 2009-01-19  Alan Modra  <amodra@bigpond.net.au>
164         PR 9695
165         * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
166         (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
167         (adjust_z_magix): Delete dead code handling QMAGIC.
169 2009-01-16  Kai Tietz  <kai.tietz@onevision.com>
171         * coffcode.h (styp_to_sec_flags): Correct interpretation of
172         IMAGE_SCN_MEM_DISCARDABLE.
174 2009-01-16  Alan Modra  <amodra@bigpond.net.au>
176         * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
177         SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
178         * configure.in (commonbfdlib): Delete.
179         (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
180         (SHARED_LIBADD): Rename from WIN32LIBADD.  Add pic libiberty if such
181         is available, not just for linux.
182         * po/SRC-POTFILES.in: Regenerate.
183         * Makefile.in: Regenerate.
184         * configure: Regenerate.
186 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
187             Julian Brown   <julian@codesourcery.com>
189         * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
190         ARM attributes in ABI 2.07.
191         * elf32-arm.c (get_secondary_compatible_arch): New function.
192         (set_secondary_compatible_arch): New function.
193         (tag_cpu_arch_combine): New function.
194         (elf32_arm_copy_one_eabi_other_attribute): Delete function.
195         (elf32_arm_copy_eabi_other_attribute_list): Delete function.
196         (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
197         make it fit with order_01243.
198         Add support for Tag_also_compatible_with,
199         Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
200         Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
201         Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
202         Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
203         Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
204         Tag_VFP_arch and Tag_ABI_FP_16bit_format.
205         Rework the way unknown attributes are handled.
206         Defer errors until all attributes have been processed.
208 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
210         * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
211         bfd_elf_add_obj_attr_int_string.
212         Read Tag_compatibility from its new location in the attribute array,
213         rather than the attribute list.
214         (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
215         bfd_elf_add_obj_attr_int_string.
216         (_bfd_elf_parse_attributes): Likewise.
217         (_bfd_elf_merge_object_attributes): There's now only one
218         Tag_compatibility, and it's in the array, not the list.
219         * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
220         Tag_compatibility.
221         (bfd_elf_add_obj_attr_compat): Rename to
222         bfd_elf_add_obj_attr_int_string.
223         (bfd_elf_add_proc_attr_compat): Rename to
224         bfd_elf_add_proc_attr_int_string.
225         * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
226         Tag_compatibility.
228 2009-01-15  Douglas B Rupp  <rupp@gnat.com>
230         * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
231         (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
232         (vmsutil.lo): Add dependency rule.
233         * Makefile.in: Regenerate.
234         * config.bfd (ia64*-*-*vms*): Add case.
235         * configure.in (bfd_elf64_ia64_vms_vec): Add case.
236         * configure: Regenerate.
237         * vmsutil.c: New file.
238         * vmsutil.h: New file.
239         * elf-bfd.h (struct bfd_elf_special_section): Change type of
240         attr to bfd_vma.
241         * elfxx-ia64.c (elfNN_vms_post_process_headers,
242         elfNN_vms_section_processing, elfNN_vms_final_write_processing,
243         elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
244         elfNN_vms_object_p): New functions
245         * targets.c (bfd_elf64_ia64_vms_vec): New target.
247 2009-01-14  H.J. Lu  <hongjiu.lu@intel.com>
249         PR ld/9727
250         * elflink.c (elf_gc_sweep): Exclude the group section if the
251         first member of the section group is excluded.
253 2009-01-14  Alan Modra  <amodra@bigpond.net.au>
255         PR 9735
256         * syms.c (_bfd_stab_section_find_nearest_line): Don't free
257         saved filename, use bfd_alloc rather than bfd_malloc for it.
259 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
261         * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
263 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
265         * elf32-spu.c (remove_cycles): Always set call->max_depth.
267 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
269         * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
271 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
273         * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
274         num_lines_log2.
275         (struct got_entry): Add br_addr.
276         (struct call_info): Add priority.
277         (struct function_info): Add lr_store and sp_adjust.
278         (spu_elf_setup): Init line_size_log2 and num_lines_log2.
279         (spu_elf_find_overlays): For soft-icache, mark any section within cache
280         area as an overlay, and check that no other overlays exist.  Look up
281         icache overlay manager entry sym.
282         (BRA_STUBS, BRA, BRASL): Define.
283         (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
284         (needs_ovl_stub): Adjust for soft-icache.  Return priority encoded
285         in branch insn.
286         (count_stub, build_stub): Support soft-icache.
287         (build_spuear_stubs, process_stubs): Adjust build_stub call.
288         (spu_elf_size_stubs): Size soft-icache stubs.
289         (overlay_index): New function.
290         (spu_elf_build_stubs): Make static.  Support soft-icache.
291         (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
292         (find_function_stack_adjust): Save lr store and stack adjust insn
293         offsets.
294         (maybe_insert_function): Adjust find_function_stack_adjust call.
295         (mark_functions_via_relocs): Retrieve priority.
296         (remove_cycles): Only warn about pruned arcs when stack_analysis.
297         (sort_calls): Sort by priority first.
298         (mark_overlay_section): Ignore .ovl.init.
299         (sum_stack): Only print when stack_analysis.
300         (print_one_overlay_section): New function, extracted from..
301         (spu_elf_auto_overlay): ..here.  Support soft-icache overlays.
302         (spu_elf_stack_analysis): Only print when htab->stack_analysis.
303         (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
304         analysis.  Call spu_elf_build_stubs.
305         (spu_elf_relocate_section): For soft-icache encode overlay index
306         into addresses.
307         (spu_elf_output_symbol_hook): Support soft-icache.
308         (spu_elf_modify_program_headers: Likewise.
310         * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis.  Rename
311         num_regions to num_lines.  Add line_size and max_branch.
312         (enum _ovly_flavour): Add ovly_soft_icache.
313         (spu_elf_build_stubs): Delete.
315 2009-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
317         * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
318         relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
320 2009-01-07  Hans-Peter Nilsson  <hp@axis.com>
322         * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
323         <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
324         the program, the known offset starts at the negative size of the
325         TLS section.
326         <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
327         Similar.
329 2009-01-05  Joel Sherrill <joel.sherrill@oarcorp.com>
331         * config.bfd: Add lm32-*-rtems*.
333 2009-01-03  H.J. Lu  <hongjiu.lu@intel.com>
335         * coff-ppc.c: Add 2009 to Copyright.
336         * elf32-cris.c: Likewise.
337         * elflink.c: Likewise.
339 2009-01-03  Hans-Peter Nilsson  <hp@axis.com>
341         * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
342         gotplt_index to rela_plt_index.  Adjust for R_CRIS_DTPMOD entry.
344 2009-01-02  H.J. Lu  <hongjiu.lu@intel.com>
346         PR ld/9679
347         * elflink.c (elf_merge_st_other): New.
348         (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
349         hide them if needed.
350         (elf_link_add_object_symbols): Updated.
352 2009-01-02  H.J. Lu  <hongjiu.lu@intel.com>
354         PR ld/9676
355         * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
356         ref_dynamic and dynamic_def fields when setting def_regular
357         to 1.
359 2009-01-02  Curtis Mackie  <curtmackevo@gmail.com>
361         PR 9682
362         * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
363         literal.
365 For older changes see ChangeLog-2008
367 Local Variables:
368 mode: change-log
369 left-margin: 8
370 fill-column: 74
371 version-control: never
372 End: