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