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