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