]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/ChangeLog
* elf-bfd.h (struct elf_assign_sym_version_info): Delete.
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
1 2009-01-23 Alan Modra <amodra@bigpond.net.au>
2
3 * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
4 (struct elf_info_failed, struct elf_find_verdep_info): Move to..
5 * elflink.c: ..here, somewhat modified.
6 * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
7 _bfd_elf_link_find_version_dependencies,
8 _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
9 _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
10 _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
11 declare..
12 * elflink.c: ..and make static here.
13 (_bfd_elf_link_find_version_dependencies): Adjust for removal
14 of output_bfd from struct elf_find_verdep_info.
15 (_bfd_elf_link_assign_sym_version): Similarly adjust to use
16 struct elf_info_failed.
17 (bfd_elf_size_dynamic_sections): Adjust.
18
19 2009-01-22 Alan Modra <amodra@bigpond.net.au>
20
21 PR 6832
22 * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
23 after comp_unit_find_line call.
24
25 2009-01-21 Nick Clifton <nickc@redhat.com>
26
27 PR 9769
28 * vmsutil.c (vms_file_stats_name): Remove use of unsupported
29 tm_gmtoff field in struct tm.
30
31 2009-01-21 Alan Modra <amodra@bigpond.net.au>
32
33 * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
34 * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
35 sections in soft-icache lines unless non_ia_text. Don't add
36 rodata if doing so would exceed line size.
37
38 2009-01-19 Hans-Peter Nilsson <hp@axis.com>
39
40 * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
41 types than bfd_link_hash_indirect, before early return, call
42 _bfd_elf_link_hash_copy_indirect.
43
44 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
45
46 * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
47 * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
48 * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
49 (elf_backend_obj_attrs_order): New define.
50 * elfxx-target.h (elf_backend_obj_attrs_order): New define.
51 (elfNN_bed): Add elf_backend_obj_attrs_order.
52
53 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
54
55 * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
56 (obj_attr_size): Likewise.
57 (write_obj_attribute): Likewise.
58 (_bfd_elf_copy_obj_attributes): Likewise.
59 (_bfd_elf_parse_attributes): Likewise.
60 * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
61 (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
62 (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
63 (ATTR_TYPE_HAS_NO_DEFAULT): New define.
64 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
65 with macros.
66
67 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
68
69 * elf-attrs.c (is_default_attr): Support defaultless attributes.
70 (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
71 (bfd_elf_add_obj_attr_string): Likewise.
72 (bfd_elf_add_obj_attr_int_string): Likewise.
73 (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
74 * elf-bfd.h (struct obj_attribute): Document new flag bit.
75 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
76 Tag_nodefaults has no default value.
77 (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
78 comment to reflect the new state.
79
80 2009-01-19 Alan Modra <amodra@bigpond.net.au>
81
82 PR 9695
83 * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
84 (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
85 (adjust_z_magix): Delete dead code handling QMAGIC.
86
87 2009-01-16 Kai Tietz <kai.tietz@onevision.com>
88
89 * coffcode.h (styp_to_sec_flags): Correct interpretation of
90 IMAGE_SCN_MEM_DISCARDABLE.
91
92 2009-01-16 Alan Modra <amodra@bigpond.net.au>
93
94 * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
95 SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
96 * configure.in (commonbfdlib): Delete.
97 (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
98 (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
99 is available, not just for linux.
100 * po/SRC-POTFILES.in: Regenerate.
101 * Makefile.in: Regenerate.
102 * configure: Regenerate.
103
104 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
105 Julian Brown <julian@codesourcery.com>
106
107 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
108 ARM attributes in ABI 2.07.
109 * elf32-arm.c (get_secondary_compatible_arch): New function.
110 (set_secondary_compatible_arch): New function.
111 (tag_cpu_arch_combine): New function.
112 (elf32_arm_copy_one_eabi_other_attribute): Delete function.
113 (elf32_arm_copy_eabi_other_attribute_list): Delete function.
114 (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
115 make it fit with order_01243.
116 Add support for Tag_also_compatible_with,
117 Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
118 Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
119 Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
120 Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
121 Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
122 Tag_VFP_arch and Tag_ABI_FP_16bit_format.
123 Rework the way unknown attributes are handled.
124 Defer errors until all attributes have been processed.
125
126 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
127
128 * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
129 bfd_elf_add_obj_attr_int_string.
130 Read Tag_compatibility from its new location in the attribute array,
131 rather than the attribute list.
132 (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
133 bfd_elf_add_obj_attr_int_string.
134 (_bfd_elf_parse_attributes): Likewise.
135 (_bfd_elf_merge_object_attributes): There's now only one
136 Tag_compatibility, and it's in the array, not the list.
137 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
138 Tag_compatibility.
139 (bfd_elf_add_obj_attr_compat): Rename to
140 bfd_elf_add_obj_attr_int_string.
141 (bfd_elf_add_proc_attr_compat): Rename to
142 bfd_elf_add_proc_attr_int_string.
143 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
144 Tag_compatibility.
145
146 2009-01-15 Douglas B Rupp <rupp@gnat.com>
147
148 * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
149 (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
150 (vmsutil.lo): Add dependency rule.
151 * Makefile.in: Regenerate.
152 * config.bfd (ia64*-*-*vms*): Add case.
153 * configure.in (bfd_elf64_ia64_vms_vec): Add case.
154 * configure: Regenerate.
155 * vmsutil.c: New file.
156 * vmsutil.h: New file.
157 * elf-bfd.h (struct bfd_elf_special_section): Change type of
158 attr to bfd_vma.
159 * elfxx-ia64.c (elfNN_vms_post_process_headers,
160 elfNN_vms_section_processing, elfNN_vms_final_write_processing,
161 elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
162 elfNN_vms_object_p): New functions
163 * targets.c (bfd_elf64_ia64_vms_vec): New target.
164
165 2009-01-14 H.J. Lu <hongjiu.lu@intel.com>
166
167 PR ld/9727
168 * elflink.c (elf_gc_sweep): Exclude the group section if the
169 first member of the section group is excluded.
170
171 2009-01-14 Alan Modra <amodra@bigpond.net.au>
172
173 PR 9735
174 * syms.c (_bfd_stab_section_find_nearest_line): Don't free
175 saved filename, use bfd_alloc rather than bfd_malloc for it.
176
177 2009-01-13 Alan Modra <amodra@bigpond.net.au>
178
179 * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
180
181 2009-01-13 Alan Modra <amodra@bigpond.net.au>
182
183 * elf32-spu.c (remove_cycles): Always set call->max_depth.
184
185 2009-01-12 Alan Modra <amodra@bigpond.net.au>
186
187 * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
188
189 2009-01-12 Alan Modra <amodra@bigpond.net.au>
190
191 * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
192 num_lines_log2.
193 (struct got_entry): Add br_addr.
194 (struct call_info): Add priority.
195 (struct function_info): Add lr_store and sp_adjust.
196 (spu_elf_setup): Init line_size_log2 and num_lines_log2.
197 (spu_elf_find_overlays): For soft-icache, mark any section within cache
198 area as an overlay, and check that no other overlays exist. Look up
199 icache overlay manager entry sym.
200 (BRA_STUBS, BRA, BRASL): Define.
201 (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
202 (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
203 in branch insn.
204 (count_stub, build_stub): Support soft-icache.
205 (build_spuear_stubs, process_stubs): Adjust build_stub call.
206 (spu_elf_size_stubs): Size soft-icache stubs.
207 (overlay_index): New function.
208 (spu_elf_build_stubs): Make static. Support soft-icache.
209 (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
210 (find_function_stack_adjust): Save lr store and stack adjust insn
211 offsets.
212 (maybe_insert_function): Adjust find_function_stack_adjust call.
213 (mark_functions_via_relocs): Retrieve priority.
214 (remove_cycles): Only warn about pruned arcs when stack_analysis.
215 (sort_calls): Sort by priority first.
216 (mark_overlay_section): Ignore .ovl.init.
217 (sum_stack): Only print when stack_analysis.
218 (print_one_overlay_section): New function, extracted from..
219 (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
220 (spu_elf_stack_analysis): Only print when htab->stack_analysis.
221 (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
222 analysis. Call spu_elf_build_stubs.
223 (spu_elf_relocate_section): For soft-icache encode overlay index
224 into addresses.
225 (spu_elf_output_symbol_hook): Support soft-icache.
226 (spu_elf_modify_program_headers: Likewise.
227
228 * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
229 num_regions to num_lines. Add line_size and max_branch.
230 (enum _ovly_flavour): Add ovly_soft_icache.
231 (spu_elf_build_stubs): Delete.
232
233 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
234
235 * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
236 relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
237
238 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
239
240 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
241 <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
242 the program, the known offset starts at the negative size of the
243 TLS section.
244 <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
245 Similar.
246
247 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
248
249 * config.bfd: Add lm32-*-rtems*.
250
251 2009-01-03 H.J. Lu <hongjiu.lu@intel.com>
252
253 * coff-ppc.c: Add 2009 to Copyright.
254 * elf32-cris.c: Likewise.
255 * elflink.c: Likewise.
256
257 2009-01-03 Hans-Peter Nilsson <hp@axis.com>
258
259 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
260 gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
261
262 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
263
264 PR ld/9679
265 * elflink.c (elf_merge_st_other): New.
266 (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
267 hide them if needed.
268 (elf_link_add_object_symbols): Updated.
269
270 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
271
272 PR ld/9676
273 * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
274 ref_dynamic and dynamic_def fields when setting def_regular
275 to 1.
276
277 2009-01-02 Curtis Mackie <curtmackevo@gmail.com>
278
279 PR 9682
280 * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
281 literal.
282
283 For older changes see ChangeLog-2008
284 \f
285 Local Variables:
286 mode: change-log
287 left-margin: 8
288 fill-column: 74
289 version-control: never
290 End: