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