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