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