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