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