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