]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
bfd/
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
b436d854
RS
12011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
2
3 * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
4 GOT entry here, rather than leaving it to finish_dynamic_symbol.
5 Only create a dynamic relocation for local references if
6 info->shared.
7 (allocate_dynrelocs_for_symbol): Update dynamic relocation
8 allocation accordingly.
9 (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
10
47beaa6a
RS
112011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
12
13 * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
14 (elf32_arm_add_dynreloc): Likewise.
15 (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
16 to allocate dynamic relocations.
17 (elf32_arm_size_dynamic_sections): Likewise.
18 (allocate_dynrelocs): Likewise. Rename to
19 allocate_dynrelocs_for_symbol.
20 (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
21 create dynamic relocations.
22 (elf32_arm_finish_dynamic_symbol): Likewise.
23
52bc799a
L
242011-03-12 H.J. Lu <hongjiu.lu@intel.com>
25
26 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
27 x32 GD->IE and GD->LE transitions.
28 (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
29 and LD->LE transitions.
30
e11840f9
AM
312011-03-10 Alan Modra <amodra@gmail.com>
32
33 * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
34 for LO_DS error message and correct multiple.
35
aa374f67
AM
362011-03-10 Alan Modra <amodra@gmail.com>
37
38 * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
39 (ppc64_elf_link_just_syms): New function.
40 (opd_entry_value): Don't assume big-endian host.
41 (get_r2off): New function.
42 (ppc_build_one_stub, ppc_size_one_stub): Use it here.
43
d59a60e9
MS
442011-03-06 Michael Snyder <msnyder@vmware.com>
45
4281caad
MS
46 * compress.c (bfd_compress_section_contents): Check for out of mem.
47
17672001
MS
48 * elf64-x86-64.c (elf_x86_64_relocate_section): Document
49 that case statement falls through intentionally.
50
d59a60e9
MS
51 * elf32-i386.c (elf_i386_relocate_section): Document fall through.
52
0e29e6e8
AM
532011-03-04 Alan Modra <amodra@gmail.com>
54
55 * archive.c (bsd_write_armap): Don't call stat in deterministic
56 mode, and don't use st_mtime if stat returns error.
57
eb00922a
MS
582011-03-03 Michael Snyder <msnyder@vmware.com>
59
08c13595
MS
60 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
61
d543c50d
MS
62 * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
63
c38eb2a6
MS
64 * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
65 (aout_link_write_other_symbol): Missing break statement.
66
8ecc1f20
MS
67 * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
68
eb00922a
MS
69 * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
70
4a4c5f25
L
712011-03-03 H.J. Lu <hongjiu.lu@intel.com>
72
73 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
74 x32 IE->LE transition.
75 (elf_x86_64_relocate_section): Likewise.
76
ddcf1fcf
BS
772011-03-02 Bernd Schmidt <bernds@codesourcery.com>
78
aa374f67
AM
79 * elflink.c (is_reloc_section): Remove function.
80 (get_dynamic_reloc_section_name): Construct string manually.
ddcf1fcf 81
007d6189
KT
822011-02-28 Kai Tietz <kai.tietz@onevision.com>
83
84 * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
85 (adjust_relative_path): Likewise.
86 (_bfd_construct_extended_name_table): Likewise.
87 * corefile.c (generic_core_file_matches_executable_p): Likewise.
88 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
89 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
90 * elf32-spu.c (sort_bfds): Likewise.
91 (spu_elf_auto_overlay): Likewise.
92 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
93 * xcofflink.c (xcoff_set_import_path): Likewise.
94 * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
95 (xtensa_regfile_lookup_shortname): Likewise.
96
8616ad89
AM
972011-02-28 Alan Modra <amodra@gmail.com>
98
99 PR 12513
100 * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
101 stringsize. Properly sanity check symdef_count. Remove redundant
102 bfd_release.
103
80549d04
RÁE
1042011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
105
106 * plugin.c (bfd_plugin_object_p): Correctly set the filesize
107 and handle claim_file seeking. Only try to load the plugin once.
108
93b3ac75
AS
1092011-02-22 Andreas Schwab <schwab@redhat.com>
110
111 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
112 relocation read the value from the second GOT slot.
113
6fa052f0
TG
1142011-02-15 Tristan Gingold <gingold@adacore.com>
115
116 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
117
28be611c
AM
1182011-02-15 Alan Modra <amodra@gmail.com>
119
120 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
121 toc relocs. Fuss over free(NULL).
122
93252b1c
MF
1232011-02-14 Mike Frysinger <vapier@gentoo.org>
124
125 * elflink.c (bfd_elf_size_dynamic_sections): Add
126 bfd_get_symbol_leading_char to the start of newname.
127
822ce8ee
RW
1282011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
129
130 * configure: Regenerate.
131
425b145b
AM
1322011-02-09 Alan Modra <amodra@gmail.com>
133
134 * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
135 we are done. When optimising large toc, check that a global
136 symbol on a toc reloc is defined in a kept section.
137
82f2dbf7
NC
1382011-02-08 Nick Clifton <nickc@redhat.com>
139
140 PR binutils/12467
141 * elf.c (assign_file_positions_for_load_sections): Set the program
142 header offset and entry size to zero if there are no program
143 headers.
144
df22d223
AM
1452011-02-08 Alan Modra <amodra@gmail.com>
146
147 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
148 local_syms when looking for local symbols in .toc.
149
6683a28d
AM
1502011-02-01 Alan Modra <amodra@gmail.com>
151
152 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
153 for toc pointer on any section having makes_toc_func_call set.
154 (check_pasted_section): Ensure pasted .init/.fini fragments use
155 the same toc if any has makes_toc_func_call set.
156
5240d94d
JM
1572011-01-28 Joseph Myers <joseph@codesourcery.com>
158
159 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
160 field.
161
ed88c97e
RS
1622011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
163
164 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
165 common sections too.
166
1a0c107f
L
1672011-01-18 H.J. Lu <hongjiu.lu@intel.com>
168
04449d86
L
169 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
170 Solaris target.
1a0c107f 171
d68cd58c
NC
1722011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
173
174 Fix compilation for mingw64.
175 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
176 typecast to avoid warning.
177 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
178 usage.
179 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
180 of long for pointer to avoid warning.
181 (elfNN_ia64_relax_brl): Idem.
182 (elfNN_ia64_install_value): Idem.
183 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
184
da17376b
RS
1852011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
186
187 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
188 h->needs_plt when deciding whether to record a possible dynamic reloc.
189
1e81e12b
RS
1902011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
191
192 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
193 dynamic relocs for the removed section.
194
d1534d16
L
1952011-01-15 H.J. Lu <hongjiu.lu@intel.com>
196
197 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
198 relocations.
199
248775ba
L
2002011-01-14 H.J. Lu <hongjiu.lu@intel.com>
201
202 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
203 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
204 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
205 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
206 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
207 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
208 for ILP32.
209
4a97a0e5
AM
2102011-01-14 Alan Modra <amodra@gmail.com>
211
212 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
213 error.
214 (_bfd_default_error_handler): Likewise.
215 * elf.c (print_segment_map): Likewise.
216 * libbfd.c (warn_deprecated): Likewise.
217 * som.c (som_sizeof_headers): No need to do so here.
218 * coff-i860.c: Replace use of printf for error messages with
219 _bfd_error_handler.
220 * coff-ppc.c: Likewise.
221 * coff-sh.c: Likewise.
222 * elf32-bfin.c: Likewise.
223 * elf32-dlx.c: Likewise.
224 * elf32-mep.c: Likewise.
225 * elf32-v850.c: Likewise.
226 * mach-o.c: Likewise.
227 * pef.c: Likewise.
228
82e96e07
L
2292011-01-13 H.J. Lu <hongjiu.lu@intel.com>
230
231 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
232 swap_reloca_out.
233 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
234 (elf_x86_64_check_relocs): Align relocation section to 4 byte
235 for 32bit.
236 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
237 ELF_ST_TYPE.
238 (elf_x86_64_finish_dynamic_symbol): Updated.
239 (elf_x86_64_finish_dynamic_sections): Don't use
240 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
241 bfd_elf64_swap_dyn_out.
242
e6a6bb22
AM
2432011-01-14 J. Park <grassman@gmail.com>
244
245 PR ld/12339
246 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
247 following bfd_link_hash_warning symbol link.
248
0855e32b
NS
2492011-01-10 Nathan Sidwell <nathan@codesourcery.com>
250 Glauber de Oliveira Costa <glommer@gmail.com>
251
252 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
253 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
254 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
255 relocations.
256 * libbfd.h: Rebuilt.
257 * bfd-in2.h: Rebuilt.
258 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
259 (elf32_arm_reloc_map): Likewise.
260 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
261 (elf32_arm_stub_long_branch_any_tls_pic,
262 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
263 (DEF_STUBS): Add new stubs.
264 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
265 (elf32_arm_local_tlsdesc_gotent): New.
266 (GOT_TLS_GDESC): New mask.
267 (GOT_TLS_GD_ANY): Define.
268 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
269 (elf32_arm_compute_jump_table_size): New.
270 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
271 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
272 sgotplt_jump_table_size fields.
273 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
274 (elf32_arm_link_hash_table_create): Initialize new fields.
275 (arm_type_of_stub): Check TLS desc relocs too.
276 (elf32_arm_stub_name): TLS desc relocs can be shared.
277 (elf32_arm_tls_transition): Determine relaxation.
278 (arm_stub_required_alignment): Add tls stubs.
279 (elf32_arm_size_stubs): Likewise.
280 (elf32_arm_tls_relax): Perform TLS relaxing.
281 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
282 (IS_ARM_TLS_GNU_RELOC): New.
283 (IS_ARM_TLS_RELOC): Use it.
284 (elf32_arm_relocate_section): Perform TLS relaxing.
285 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
286 desc relocations.
287 (allocate_dynrelocs): Allocate tls desc relcoations.
288 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
289 symbols.
290 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
291 got slots.
292 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
293 symbol.
294 (elf32_arm_finish_dynamic_symbol): Adjust.
295 (arm_put_trampoline): New.
296 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
297 trampolines.
298 (elf_backend_always_size_sections): Define.
299
7be86737
L
3002011-01-06 H.J. Lu <hongjiu.lu@intel.com>
301
302 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
303
ae428b57 3042011-01-06 H.J. Lu <hongjiu.lu@intel.com>
3db2e7dd
L
305
306 PR ld/12366
307 PR ld/12371
308 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
309 handle symbols marked with regular reference, but not non-GOT
310 reference when building shared library.
311
312 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
313 local and global STT_GNU_IFUNC symols when building shared
314 library.
315 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
316
9689e3a3
DD
3172011-01-05 DJ Delorie <dj@redhat.com>
318
319 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
320 * libbfd.h: Regenerate.
321 * bfd-in2.h: Regenerate.
322 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
323
889a4d3e
L
3242011-01-03 H.J. Lu <hongjiu.lu@intel.com>
325
326 * cpu-i386.c (bfd_i386_compatible): New.
327 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
328 with bfd_i386_compatible.
329 (bfd_x86_64_arch_intel_syntax): Likewise.
330 (bfd_i386_arch_intel_syntax): Likewise.
331 (i8086_arch): Likewise.
332 (bfd_x64_32_arch): Likewise.
333 (bfd_x86_64_arch): Likewise.
334 (bfd_i386_arch): Likewise.
335
9e9e0820 336For older changes see ChangeLog-2010
56882138
AM
337\f
338Local Variables:
339mode: change-log
340left-margin: 8
341fill-column: 74
342version-control: never
343End: