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