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