daily update
[binutils-gdb.git] / bfd / ChangeLog
1 2011-03-04 Alan Modra <amodra@gmail.com>
2
3 * archive.c (bsd_write_armap): Don't call stat in deterministic
4 mode, and don't use st_mtime if stat returns error.
5
6 2011-03-03 Michael Snyder <msnyder@vmware.com>
7
8 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
9
10 * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
11
12 * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
13 (aout_link_write_other_symbol): Missing break statement.
14
15 * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
16
17 * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
18
19 2011-03-03 H.J. Lu <hongjiu.lu@intel.com>
20
21 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
22 x32 IE->LE transition.
23 (elf_x86_64_relocate_section): Likewise.
24
25 2011-03-02 Bernd Schmidt <bernds@codesourcery.com>
26
27 * elflink.c (is_reloc_section): Remove function.
28 (get_dynamic_reloc_section_name): Construct string manually.
29
30 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
31
32 * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
33 (adjust_relative_path): Likewise.
34 (_bfd_construct_extended_name_table): Likewise.
35 * corefile.c (generic_core_file_matches_executable_p): Likewise.
36 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
37 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
38 * elf32-spu.c (sort_bfds): Likewise.
39 (spu_elf_auto_overlay): Likewise.
40 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
41 * xcofflink.c (xcoff_set_import_path): Likewise.
42 * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
43 (xtensa_regfile_lookup_shortname): Likewise.
44
45 2011-02-28 Alan Modra <amodra@gmail.com>
46
47 PR 12513
48 * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
49 stringsize. Properly sanity check symdef_count. Remove redundant
50 bfd_release.
51
52 2011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
53
54 * plugin.c (bfd_plugin_object_p): Correctly set the filesize
55 and handle claim_file seeking. Only try to load the plugin once.
56
57 2011-02-22 Andreas Schwab <schwab@redhat.com>
58
59 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
60 relocation read the value from the second GOT slot.
61
62 2011-02-15 Tristan Gingold <gingold@adacore.com>
63
64 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
65
66 2011-02-15 Alan Modra <amodra@gmail.com>
67
68 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
69 toc relocs. Fuss over free(NULL).
70
71 2011-02-14 Mike Frysinger <vapier@gentoo.org>
72
73 * elflink.c (bfd_elf_size_dynamic_sections): Add
74 bfd_get_symbol_leading_char to the start of newname.
75
76 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77
78 * configure: Regenerate.
79
80 2011-02-09 Alan Modra <amodra@gmail.com>
81
82 * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
83 we are done. When optimising large toc, check that a global
84 symbol on a toc reloc is defined in a kept section.
85
86 2011-02-08 Nick Clifton <nickc@redhat.com>
87
88 PR binutils/12467
89 * elf.c (assign_file_positions_for_load_sections): Set the program
90 header offset and entry size to zero if there are no program
91 headers.
92
93 2011-02-08 Alan Modra <amodra@gmail.com>
94
95 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
96 local_syms when looking for local symbols in .toc.
97
98 2011-02-01 Alan Modra <amodra@gmail.com>
99
100 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
101 for toc pointer on any section having makes_toc_func_call set.
102 (check_pasted_section): Ensure pasted .init/.fini fragments use
103 the same toc if any has makes_toc_func_call set.
104
105 2011-01-28 Joseph Myers <joseph@codesourcery.com>
106
107 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
108 field.
109
110 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
111
112 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
113 common sections too.
114
115 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
116
117 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
118 Solaris target.
119
120 2011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
121
122 Fix compilation for mingw64.
123 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
124 typecast to avoid warning.
125 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
126 usage.
127 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
128 of long for pointer to avoid warning.
129 (elfNN_ia64_relax_brl): Idem.
130 (elfNN_ia64_install_value): Idem.
131 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
132
133 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
134
135 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
136 h->needs_plt when deciding whether to record a possible dynamic reloc.
137
138 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
139
140 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
141 dynamic relocs for the removed section.
142
143 2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
144
145 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
146 relocations.
147
148 2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
149
150 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
151 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
152 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
153 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
154 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
155 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
156 for ILP32.
157
158 2011-01-14 Alan Modra <amodra@gmail.com>
159
160 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
161 error.
162 (_bfd_default_error_handler): Likewise.
163 * elf.c (print_segment_map): Likewise.
164 * libbfd.c (warn_deprecated): Likewise.
165 * som.c (som_sizeof_headers): No need to do so here.
166 * coff-i860.c: Replace use of printf for error messages with
167 _bfd_error_handler.
168 * coff-ppc.c: Likewise.
169 * coff-sh.c: Likewise.
170 * elf32-bfin.c: Likewise.
171 * elf32-dlx.c: Likewise.
172 * elf32-mep.c: Likewise.
173 * elf32-v850.c: Likewise.
174 * mach-o.c: Likewise.
175 * pef.c: Likewise.
176
177 2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
178
179 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
180 swap_reloca_out.
181 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
182 (elf_x86_64_check_relocs): Align relocation section to 4 byte
183 for 32bit.
184 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
185 ELF_ST_TYPE.
186 (elf_x86_64_finish_dynamic_symbol): Updated.
187 (elf_x86_64_finish_dynamic_sections): Don't use
188 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
189 bfd_elf64_swap_dyn_out.
190
191 2011-01-14 J. Park <grassman@gmail.com>
192
193 PR ld/12339
194 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
195 following bfd_link_hash_warning symbol link.
196
197 2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
198 Glauber de Oliveira Costa <glommer@gmail.com>
199
200 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
201 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
202 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
203 relocations.
204 * libbfd.h: Rebuilt.
205 * bfd-in2.h: Rebuilt.
206 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
207 (elf32_arm_reloc_map): Likewise.
208 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
209 (elf32_arm_stub_long_branch_any_tls_pic,
210 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
211 (DEF_STUBS): Add new stubs.
212 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
213 (elf32_arm_local_tlsdesc_gotent): New.
214 (GOT_TLS_GDESC): New mask.
215 (GOT_TLS_GD_ANY): Define.
216 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
217 (elf32_arm_compute_jump_table_size): New.
218 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
219 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
220 sgotplt_jump_table_size fields.
221 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
222 (elf32_arm_link_hash_table_create): Initialize new fields.
223 (arm_type_of_stub): Check TLS desc relocs too.
224 (elf32_arm_stub_name): TLS desc relocs can be shared.
225 (elf32_arm_tls_transition): Determine relaxation.
226 (arm_stub_required_alignment): Add tls stubs.
227 (elf32_arm_size_stubs): Likewise.
228 (elf32_arm_tls_relax): Perform TLS relaxing.
229 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
230 (IS_ARM_TLS_GNU_RELOC): New.
231 (IS_ARM_TLS_RELOC): Use it.
232 (elf32_arm_relocate_section): Perform TLS relaxing.
233 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
234 desc relocations.
235 (allocate_dynrelocs): Allocate tls desc relcoations.
236 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
237 symbols.
238 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
239 got slots.
240 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
241 symbol.
242 (elf32_arm_finish_dynamic_symbol): Adjust.
243 (arm_put_trampoline): New.
244 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
245 trampolines.
246 (elf_backend_always_size_sections): Define.
247
248 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
249
250 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
251
252 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
253
254 PR ld/12366
255 PR ld/12371
256 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
257 handle symbols marked with regular reference, but not non-GOT
258 reference when building shared library.
259
260 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
261 local and global STT_GNU_IFUNC symols when building shared
262 library.
263 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
264
265 2011-01-05 DJ Delorie <dj@redhat.com>
266
267 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
268 * libbfd.h: Regenerate.
269 * bfd-in2.h: Regenerate.
270 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
271
272 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
273
274 * cpu-i386.c (bfd_i386_compatible): New.
275 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
276 with bfd_i386_compatible.
277 (bfd_x86_64_arch_intel_syntax): Likewise.
278 (bfd_i386_arch_intel_syntax): Likewise.
279 (i8086_arch): Likewise.
280 (bfd_x64_32_arch): Likewise.
281 (bfd_x86_64_arch): Likewise.
282 (bfd_i386_arch): Likewise.
283
284 For older changes see ChangeLog-2010
285 \f
286 Local Variables:
287 mode: change-log
288 left-margin: 8
289 fill-column: 74
290 version-control: never
291 End: