1 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
3 * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
4 may_need_local_target_p and may_become_dynamic_p to classify
5 the relocation type. Don't check info->symbolic or h->def_regular
6 when deciding whether to record a potential dynamic reloc.
7 Don't treat potential dynamic relocs as PLT references.
8 (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't
9 try to make the PLT reference count go negative.
11 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
13 * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
14 GOT entry here, rather than leaving it to finish_dynamic_symbol.
15 Only create a dynamic relocation for local references if
17 (allocate_dynrelocs_for_symbol): Update dynamic relocation
18 allocation accordingly.
19 (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
21 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
23 * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
24 (elf32_arm_add_dynreloc): Likewise.
25 (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
26 to allocate dynamic relocations.
27 (elf32_arm_size_dynamic_sections): Likewise.
28 (allocate_dynrelocs): Likewise. Rename to
29 allocate_dynrelocs_for_symbol.
30 (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
31 create dynamic relocations.
32 (elf32_arm_finish_dynamic_symbol): Likewise.
34 2011-03-12 H.J. Lu <hongjiu.lu@intel.com>
36 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
37 x32 GD->IE and GD->LE transitions.
38 (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
39 and LD->LE transitions.
41 2011-03-10 Alan Modra <amodra@gmail.com>
43 * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
44 for LO_DS error message and correct multiple.
46 2011-03-10 Alan Modra <amodra@gmail.com>
48 * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
49 (ppc64_elf_link_just_syms): New function.
50 (opd_entry_value): Don't assume big-endian host.
51 (get_r2off): New function.
52 (ppc_build_one_stub, ppc_size_one_stub): Use it here.
54 2011-03-06 Michael Snyder <msnyder@vmware.com>
56 * compress.c (bfd_compress_section_contents): Check for out of mem.
58 * elf64-x86-64.c (elf_x86_64_relocate_section): Document
59 that case statement falls through intentionally.
61 * elf32-i386.c (elf_i386_relocate_section): Document fall through.
63 2011-03-04 Alan Modra <amodra@gmail.com>
65 * archive.c (bsd_write_armap): Don't call stat in deterministic
66 mode, and don't use st_mtime if stat returns error.
68 2011-03-03 Michael Snyder <msnyder@vmware.com>
70 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
72 * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
74 * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
75 (aout_link_write_other_symbol): Missing break statement.
77 * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
79 * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
81 2011-03-03 H.J. Lu <hongjiu.lu@intel.com>
83 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
84 x32 IE->LE transition.
85 (elf_x86_64_relocate_section): Likewise.
87 2011-03-02 Bernd Schmidt <bernds@codesourcery.com>
89 * elflink.c (is_reloc_section): Remove function.
90 (get_dynamic_reloc_section_name): Construct string manually.
92 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
94 * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
95 (adjust_relative_path): Likewise.
96 (_bfd_construct_extended_name_table): Likewise.
97 * corefile.c (generic_core_file_matches_executable_p): Likewise.
98 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
99 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
100 * elf32-spu.c (sort_bfds): Likewise.
101 (spu_elf_auto_overlay): Likewise.
102 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
103 * xcofflink.c (xcoff_set_import_path): Likewise.
104 * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
105 (xtensa_regfile_lookup_shortname): Likewise.
107 2011-02-28 Alan Modra <amodra@gmail.com>
110 * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
111 stringsize. Properly sanity check symdef_count. Remove redundant
114 2011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
116 * plugin.c (bfd_plugin_object_p): Correctly set the filesize
117 and handle claim_file seeking. Only try to load the plugin once.
119 2011-02-22 Andreas Schwab <schwab@redhat.com>
121 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
122 relocation read the value from the second GOT slot.
124 2011-02-15 Tristan Gingold <gingold@adacore.com>
126 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
128 2011-02-15 Alan Modra <amodra@gmail.com>
130 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
131 toc relocs. Fuss over free(NULL).
133 2011-02-14 Mike Frysinger <vapier@gentoo.org>
135 * elflink.c (bfd_elf_size_dynamic_sections): Add
136 bfd_get_symbol_leading_char to the start of newname.
138 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
140 * configure: Regenerate.
142 2011-02-09 Alan Modra <amodra@gmail.com>
144 * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
145 we are done. When optimising large toc, check that a global
146 symbol on a toc reloc is defined in a kept section.
148 2011-02-08 Nick Clifton <nickc@redhat.com>
151 * elf.c (assign_file_positions_for_load_sections): Set the program
152 header offset and entry size to zero if there are no program
155 2011-02-08 Alan Modra <amodra@gmail.com>
157 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
158 local_syms when looking for local symbols in .toc.
160 2011-02-01 Alan Modra <amodra@gmail.com>
162 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
163 for toc pointer on any section having makes_toc_func_call set.
164 (check_pasted_section): Ensure pasted .init/.fini fragments use
165 the same toc if any has makes_toc_func_call set.
167 2011-01-28 Joseph Myers <joseph@codesourcery.com>
169 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
172 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
174 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
177 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
179 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
182 2011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
184 Fix compilation for mingw64.
185 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
186 typecast to avoid warning.
187 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
189 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
190 of long for pointer to avoid warning.
191 (elfNN_ia64_relax_brl): Idem.
192 (elfNN_ia64_install_value): Idem.
193 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
195 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
197 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
198 h->needs_plt when deciding whether to record a possible dynamic reloc.
200 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
202 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
203 dynamic relocs for the removed section.
205 2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
207 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
210 2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
212 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
213 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
214 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
215 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
216 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
217 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
220 2011-01-14 Alan Modra <amodra@gmail.com>
222 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
224 (_bfd_default_error_handler): Likewise.
225 * elf.c (print_segment_map): Likewise.
226 * libbfd.c (warn_deprecated): Likewise.
227 * som.c (som_sizeof_headers): No need to do so here.
228 * coff-i860.c: Replace use of printf for error messages with
230 * coff-ppc.c: Likewise.
231 * coff-sh.c: Likewise.
232 * elf32-bfin.c: Likewise.
233 * elf32-dlx.c: Likewise.
234 * elf32-mep.c: Likewise.
235 * elf32-v850.c: Likewise.
236 * mach-o.c: Likewise.
239 2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
241 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
243 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
244 (elf_x86_64_check_relocs): Align relocation section to 4 byte
246 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
248 (elf_x86_64_finish_dynamic_symbol): Updated.
249 (elf_x86_64_finish_dynamic_sections): Don't use
250 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
251 bfd_elf64_swap_dyn_out.
253 2011-01-14 J. Park <grassman@gmail.com>
256 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
257 following bfd_link_hash_warning symbol link.
259 2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
260 Glauber de Oliveira Costa <glommer@gmail.com>
262 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
263 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
264 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
267 * bfd-in2.h: Rebuilt.
268 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
269 (elf32_arm_reloc_map): Likewise.
270 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
271 (elf32_arm_stub_long_branch_any_tls_pic,
272 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
273 (DEF_STUBS): Add new stubs.
274 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
275 (elf32_arm_local_tlsdesc_gotent): New.
276 (GOT_TLS_GDESC): New mask.
277 (GOT_TLS_GD_ANY): Define.
278 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
279 (elf32_arm_compute_jump_table_size): New.
280 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
281 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
282 sgotplt_jump_table_size fields.
283 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
284 (elf32_arm_link_hash_table_create): Initialize new fields.
285 (arm_type_of_stub): Check TLS desc relocs too.
286 (elf32_arm_stub_name): TLS desc relocs can be shared.
287 (elf32_arm_tls_transition): Determine relaxation.
288 (arm_stub_required_alignment): Add tls stubs.
289 (elf32_arm_size_stubs): Likewise.
290 (elf32_arm_tls_relax): Perform TLS relaxing.
291 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
292 (IS_ARM_TLS_GNU_RELOC): New.
293 (IS_ARM_TLS_RELOC): Use it.
294 (elf32_arm_relocate_section): Perform TLS relaxing.
295 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
297 (allocate_dynrelocs): Allocate tls desc relcoations.
298 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
300 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
302 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
304 (elf32_arm_finish_dynamic_symbol): Adjust.
305 (arm_put_trampoline): New.
306 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
308 (elf_backend_always_size_sections): Define.
310 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
312 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
314 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
318 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
319 handle symbols marked with regular reference, but not non-GOT
320 reference when building shared library.
322 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
323 local and global STT_GNU_IFUNC symols when building shared
325 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
327 2011-01-05 DJ Delorie <dj@redhat.com>
329 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
330 * libbfd.h: Regenerate.
331 * bfd-in2.h: Regenerate.
332 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
334 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
336 * cpu-i386.c (bfd_i386_compatible): New.
337 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
338 with bfd_i386_compatible.
339 (bfd_x86_64_arch_intel_syntax): Likewise.
340 (bfd_i386_arch_intel_syntax): Likewise.
341 (i8086_arch): Likewise.
342 (bfd_x64_32_arch): Likewise.
343 (bfd_x86_64_arch): Likewise.
344 (bfd_i386_arch): Likewise.
346 For older changes see ChangeLog-2010
352 version-control: never