Commit | Line | Data |
---|---|---|
0aabe54e AM |
1 | 2011-06-06 Alan Modra <amodra@gmail.com> |
2 | ||
3 | * targets.c (bfd_target): Make ar_max_namelen an unsigned char. | |
4 | Add match_priority. | |
5 | * configure.in: Bump bfd version. | |
6 | * elfcode.h (elf_object_p): Delete hacks preventing match of | |
7 | EM_NONE and ELFOSABI_NONE targets when a better match exists. | |
8 | * elfxx-target.h (elf_match_priority): Define and use. | |
9 | * format.c (bfd_check_format_matches): Use target match_priority | |
10 | to choose best of multiple matching targets. In cases with multiple | |
11 | matches rerun _bfd_check_format if we don't choose the last match. | |
12 | * aout-adobe.c, * aout-arm.c, * aout-target.h, * aout-tic30.c, | |
13 | * binary.c, * bout.c, * coff-alpha.c, * coff-i386.c, * coff-i860.c, | |
14 | * coff-i960.c, * coff-ia64.c, * coff-mips.c, * coff-or32.c, | |
15 | * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, * coff-tic30.c, | |
16 | * coff-tic54x.c, * coff-x86_64.c, * coff64-rs6000.c, * coffcode.h, | |
17 | * i386msdos.c, * i386os9k.c, * ieee.c, * ihex.c, * mach-o-target.c, | |
18 | * mipsbsd.c, * mmo.c, * nlm-target.h, * oasys.c, * pdp11.c, | |
19 | * pe-mips.c, * pef.c, * plugin.c, * ppcboot.c, * som.c, * srec.c, | |
20 | * tekhex.c, * trad-core.c, * verilog.c, * versados.c, * vms-alpha.c, | |
21 | * vms-lib.c, * xsym.c: Init match_priority field. | |
22 | * configure: Regenerate. | |
23 | * bfd-in2.h: Regenerate. | |
24 | ||
70b554c9 L |
25 | 2011-06-04 H.J. Lu <hongjiu.lu@intel.com> |
26 | ||
27 | PR ld/12842 | |
28 | * elfcode.h (elf_object_p): Revert the last change. | |
29 | ||
d50ec8a7 AM |
30 | 2011-06-04 Alan Modra <amodra@gmail.com> |
31 | ||
32 | * archures.c (bfd_arch_get_compatible): If one arch is unknown, | |
33 | return the other arch. | |
34 | * elfcode.h (elf_object_p): Allow explicit match to generic ELF | |
35 | target. | |
36 | ||
164a5cb7 NC |
37 | 2011-06-03 Bertram Felgenhauer <bertram.felgenhauer@gmail.com> |
38 | ||
39 | PR ld/12682 | |
40 | * hash.c (higher_primer_number): Add more, small, prime numbers. | |
41 | (bfd_hash_set_default_size): Likewise. | |
42 | ||
cc643b88 NC |
43 | 2011-06-02 Nick Clifton <nickc@redhat.com> |
44 | ||
45 | * coff-mcore.c: Fix spelling typo. | |
46 | * coff-stgo32.c: Likewise. | |
47 | * elf32-arm.c: Likewise. | |
48 | * elf32-avr.c: Likewise. | |
49 | * elf-m68hc1x.c: Likewise. | |
50 | * elf32-mcore.c: Likewise. | |
51 | * elf32-mep.c: Likewise. | |
52 | * elf32-mt.c: Likewise. | |
53 | * elf32-ppc.c: Likewise. | |
54 | * elf32-xtensa.c: Likewise. | |
55 | * elf64-ppc.c: Likewise. | |
56 | * elfxx-mips.c: Likewise. | |
57 | * netbsd.h: Likewise. | |
58 | * nlmcode.h: Likewise. | |
59 | * vms-alpha.c: Likewise. | |
60 | * po/bfd.pot: Regenerate. | |
61 | * po/SRC-POTFILES.in: Regenerate. | |
62 | ||
4c422395 DD |
63 | 2011-06-01 DJ Delorie <dj@redhat.com> |
64 | ||
65 | * config.bfd: Add bfd_elf32_rx_be_ns_vec. | |
66 | * target.c: Likewise. | |
67 | * configure.in: Likewise. | |
68 | * configure.in: Regenerate. | |
69 | * elf32-rx.c: Add elf32-rx-be-ns target. | |
70 | (rx_elf_object_p): Never allow the be-ns target by default, | |
71 | only allow it if the user requests it. | |
72 | ||
4b819e1f L |
73 | 2011-06-01 H.J. Lu <hongjiu.lu@intel.com> |
74 | ||
75 | * elf32-i386.c (elf_i386_size_dynamic_sections): Properly warn | |
76 | relocation in readonly section in a shared object. | |
77 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise. | |
78 | ||
74ce8de7 NC |
79 | 2011-05-31 Nick Clifton <nickc@redhat.com> |
80 | ||
81 | * archive.c (adjust_relative_path): Fix comment to prevent it | |
82 | corrupting the auto-generated bfd.h. | |
83 | ||
63e1a0fc PB |
84 | 2011-05-31 Paul Brook <paul@codesourcery.com> |
85 | ||
86 | * elf32-arm.c (elf32_arm_final_link_relocate): Only do bl conversion | |
87 | for known functions. | |
88 | (elf32_arm_swap_symbol_in): Only set ST_BRANCH_TO_ARM for function | |
89 | symbols. | |
90 | ||
12352d3f PB |
91 | 2011-05-31 Paul Brook <paul@codesourcery.com> |
92 | ||
93 | * elf32-arm.c (arm_stub_is_thumb): Add | |
94 | arm_stub_long_branch_v4t_thumb_tls_pic. | |
95 | (elf32_arm_final_link_relocate): TLS stubs are always ARM. | |
96 | Handle Thumb stubs. | |
97 | ||
c4948609 NC |
98 | 2011-05-27 Nick Clifton <nickc@redhat.com> |
99 | ||
100 | PR binutils/12710 | |
101 | * archive.c (_bfd_get_elt_at_filepos): Set correct error value if | |
102 | unable to read a file pointed to by an entry in a thin archive. | |
103 | (adjust_relative_path): Use lrealpath to canonicalize paths. | |
104 | Handle the case where the reference path is above the current | |
105 | path in the directory tree. | |
106 | ||
6769d501 L |
107 | 2011-05-26 H.J. Lu <hongjiu.lu@intel.com> |
108 | ||
109 | PR ld/12809 | |
110 | * elf64-x86-64.c (elf_x86_64_relocate_section): Handle | |
111 | R_X86_64_TPOFF64 in executable. | |
112 | ||
2676a7d9 AM |
113 | 2011-05-26 Alan Modra <amodra@gmail.com> |
114 | ||
115 | * elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Remove most of comment. | |
116 | * elflink.c (_bfd_elf_symbol_refs_local_p): Expand | |
117 | local_protected comment. | |
118 | ||
cbe79dfe TG |
119 | 2011-05-25 Tristan Gingold <gingold@adacore.com> |
120 | ||
121 | * configure.in (bfd_elf32_ia64_big_vec, bfd_elf32_ia64_hpux_big_vec) | |
122 | (bfd_elf64_ia64_big_vec, bfd_elf64_ia64_hpux_big_vec) | |
123 | (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_vms_vec): Add elfxx-ia64.lo | |
124 | * Makefile.am (BFD64_BACKENDS): Add elfxx-ia64.lo | |
125 | (BFD64_BACKENDS_CFILES): Add elfxx-ia64.c | |
126 | (elf32-ia64.c): Created from elfnn-ia64.c | |
127 | (elf64-ia64.c): Likewise. | |
128 | * elfxx-ia64.h: New file. | |
129 | * elfxx-ia64.c: Split with elfnn-ia64.c. Keep only the following | |
130 | functions.Includes elfxx-ia64.h. | |
131 | (elfNN_ia64_reloc): Renames to ia64_elf_reloc. Adjust error message. | |
132 | (IA64_HOWTO): Adjust. | |
133 | (lookup_howto): Renames to ia64_elf_lookup_howto. Make it public. | |
134 | (elfNN_ia64_reloc_type_lookup): Renames to | |
135 | ia64_elf_reloc_type_lookup. Make it public. Adjust calls. | |
136 | (elfNN_ia64_reloc_name_lookup): Renames to | |
137 | ia64_elf_reloc_name_lookup. Make it public. | |
138 | (elfNN_ia64_relax_br): Renames to ia64_elf_relax_br. Make it public. | |
139 | (elfNN_ia64_relax_brl): Renames to ia64_elf_relax_brl. Make it | |
140 | public. | |
141 | (elfNN_ia64_relax_ldxmov): Renames to ia64_elf_relax_ldxmov. | |
142 | Move it and make it public. Move prototype to elfxx-ia64.h | |
143 | (elfNN_ia64_install_value): Renames to ia64_elf_install_value. | |
144 | Move prototype to elfxx-ia64.h | |
145 | * elfnn-ia64.c: New file, split from elfxx-ia64.c. | |
146 | (elfNN_ia64_info_to_howto): Adjust calls. | |
147 | (elfNN_ia64_relax_section): Adjust calls. | |
148 | (count_dyn_reloc): Fix typo. | |
149 | (elfNN_ia64_relocate_section): Adjust calls. | |
150 | (elfNN_ia64_finish_dynamic_symbol): Likewise. | |
151 | (bfd_elfNN_bfd_reloc_type_lookup) | |
152 | (bfd_elfNN_bfd_reloc_name_lookup): Adjust macros. | |
153 | * configure: Regenerate. | |
154 | * Makefile.in: Regenerate. | |
155 | ||
1ce74905 DD |
156 | 2011-05-23 DJ Delorie <dj@redhat.com> |
157 | ||
158 | * elf32-rx.c (rx_elf_object_p): When reading an RX object in, undo | |
159 | the vma/lma swapping done in elf32_rx_modify_program_headers. | |
160 | ||
997fbe36 NC |
161 | 2011-05-23 Nick Clifton <nickc@redhat.com> |
162 | ||
163 | * elf-m10300.c (mn10300_elf_mkobject): New function. | |
164 | (bfd_elf32_mkobject): Define. | |
165 | ||
6061a67d AM |
166 | 2011-05-23 Alan Modra <amodra@gmail.com> |
167 | ||
168 | * elf-bfd.h: Comment typo fix. | |
169 | * elf32-ppc.c (struct ppc_elf_dyn_relocs): Delete. Replace with | |
170 | struct elf_dyn_relocs throughout. | |
171 | * elf64-ppc.c (struct ppc_dyn_relocs): Likewise. | |
172 | ||
25f53a85 AM |
173 | 2011-05-23 Alan Modra <amodra@gmail.com> |
174 | ||
175 | * elf32-frv.c: Use info->callbacks->einfo throughout file in linker | |
176 | functions rather than warning callback or _bfd_error_handler. | |
177 | * elf32-ppc.c: Likewise. | |
178 | * elf64-ppc.c: Likewise. | |
179 | * elf32-ppc.c (ppc_elf_tls_optimize): Use %H in __tls_get_addr lost | |
180 | arg error. | |
181 | * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise. | |
182 | ||
6de6a7fe AM |
183 | 2011-05-23 Alan Modra <amodra@gmail.com> |
184 | ||
185 | PR 12763 | |
186 | * elf.c (assign_file_positions_for_load_sections): Set sh_offset for | |
187 | .tbss, and page align same for all SHT_NOBITS sections. | |
188 | ||
86b2281f AM |
189 | 2011-05-21 Alan Modra <amodra@gmail.com> |
190 | ||
191 | PR 12763 | |
192 | * elf.c (_bfd_elf_make_section_from_shdr): Set up TLS section LMAs | |
193 | from PT_TLS header. | |
194 | (_bfd_elf_map_sections_to_segments): Don't create a final PT_LOAD | |
195 | segment if just for .tbss. | |
196 | (assign_file_positions_for_load_sections): Don't report "can't | |
197 | allocate in segment" errors for .tbss. | |
198 | (assign_file_positions_for_non_load_sections): Don't set p_filesz | |
199 | from SHT_NOBITS section filepos. | |
200 | ||
4a732032 BS |
201 | 2011-05-20 Bernd Schmidt <bernds@codesourcery.com> |
202 | ||
203 | * elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for | |
204 | R_C6000_PCR_H16 and R_C6000_PCR_L16. | |
205 | (elf32_tic6x_relocate_section): Handle them. | |
206 | ||
dd98f8d2 NC |
207 | 2011-05-18 Nick Clifton <nickc@redhat.com> |
208 | ||
209 | PR ld/12761 | |
210 | * elflink.c (elf_link_add_object_symbols): Process .gnu.warning | |
211 | sections when building shared libraries. | |
212 | ||
9c489990 NC |
213 | 2011-05-18 RafaĆ Krypa <r.krypa@samsung.com> |
214 | ||
215 | PR ld/12778 | |
216 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic | |
217 | reloc pointer. | |
218 | ||
5ccfed9b TG |
219 | 2011-05-18 Tristan Gingold <gingold@adacore.com> |
220 | ||
221 | * xcofflink.c (xcoff_link_add_symbols): Handle C_DWARF symbols. | |
222 | (xcoff_sweep): Always keep dwarf sections. | |
223 | (xcoff_link_input_bfd): Handle dwarf symbols and sections. | |
224 | ||
85645aed TG |
225 | 2011-05-18 Tristan Gingold <gingold@adacore.com> |
226 | ||
227 | * libxcoff.h (struct xcoff_dwsect_name): New type. | |
228 | (XCOFF_DWSECT_NBR_NAMES): New macro. | |
229 | (xcoff_dwsect_names): Declare. | |
230 | * coffcode.h (sec_to_styp_flags): Handle xcoff dwarf sections. | |
231 | (styp_to_sec_flags): Ditto. | |
232 | (coff_new_section_hook): Ditto. | |
233 | (coff_slurp_symbol_table): Handle C_DWARF and C_INFO. | |
234 | * coff-rs6000.c (xcoff_dwsect_name): New variable. | |
235 | ||
84bff83f NC |
236 | 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com> |
237 | ||
238 | PR ld/12759 | |
239 | * elf32-rx.c (ignore_lma): New variable. | |
240 | (bfd_elf32_rx_set_target_flags): Add ignore_lma parameter. | |
241 | (rx_modify_program_headers): Only copy the LMA into the VMA if | |
242 | ignore_lma is true. | |
243 | ||
16d96b5b AM |
244 | 2011-05-17 Alan Modra <amodra@gmail.com> |
245 | ||
246 | PR ld/12760 | |
247 | * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call. | |
248 | * elflink.c (elf_link_add_object_symbols): Likewise. | |
249 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. | |
250 | ||
41e04eaa AM |
251 | 2011-05-16 Alan Modra <amodra@gmail.com> |
252 | ||
253 | * linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak. | |
254 | ||
77c56f44 RS |
255 | 2011-05-15 Richard Sandiford <rdsandiford@googlemail.com> |
256 | ||
257 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Record both local and | |
258 | global GOT entries for GOT_PAGE relocations against global symbols. | |
259 | ||
2a616379 BS |
260 | 2011-05-13 Bernd Schmidt <bernds@codesourcery.com> |
261 | ||
262 | * config.bfd (tic6x-*-elf, tic6x-*-uclinux): New. | |
263 | (tic6x-*-*): Replaced by these. | |
264 | * elf32-tic6x.c (elf32_tic6x_set_osabi): New static function. | |
265 | (elf32_tic6x_check_relocs): Create dynamic sections if -shared. | |
266 | (elf_backend_relocs_compatible, elf_backend_post_process_headers): | |
267 | Define. | |
268 | (elf32_bed, TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM, | |
269 | TARGET_BIG_NAME, ELF_OSABI): Redefine twice, and include | |
270 | "elf32-target.h" two more times. | |
271 | * configure.in: Handle bfd_elf32_tic6x_linux_be_vec, | |
272 | bfd_elf32_tic6x_linux_le_vec, bfd_elf32_tic6x_elf_be_vec and | |
273 | bfd_elf32_tic6x_elf_le_vec. | |
274 | * configure: Regenerate. | |
275 | ||
3ac5406b JB |
276 | 2011-05-13 Jan Beulich <jbeulich@novell.com> |
277 | ||
278 | * config.bfd: Add targets x86_64-*-pe and x86_64-*-pep. | |
279 | ||
335e41d4 JK |
280 | 2011-05-12 Jan Kratochvil <jan.kratochvil@redhat.com> |
281 | ||
282 | * config.in: Regenerated. | |
283 | * configure: Regenerated. | |
284 | * configure.in: New tests for HAVE_PRPSINFO_T_PR_PID, | |
285 | HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID and | |
286 | HAVE_PSINFO32_T_PR_PID. | |
287 | * elf.c (elfcore_grok_psinfo): Protect reading psinfo.pr_pid by | |
288 | HAVE_PRPSINFO_T_PR_PID, HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID | |
289 | and HAVE_PSINFO32_T_PR_PID. | |
290 | * hosts/x86-64linux.h (HAVE_PRPSINFO32_T_PR_PID): New redefinition. | |
291 | ||
bc989cdc JK |
292 | 2011-05-10 Jan Kratochvil <jan.kratochvil@redhat.com> |
293 | ||
294 | * elf.c (elfcore_grok_psinfo): Initialize CORE_PID for both native and | |
295 | 32bit psinfo. | |
296 | * elf32-ppc.c (ppc_elf_grok_psinfo): Initialize core_pid. | |
297 | * elf64-ppc.c (ppc64_elf_grok_psinfo): Likewise. | |
298 | ||
fbd9ad90 PB |
299 | 2011-05-09 Paul Brook <paul@codesourcery.com> |
300 | ||
301 | * bfd-in.h (elf32_tic6x_fix_exidx_coverage): Add prototype. | |
302 | * bfd-in2.h: Regenerate. | |
303 | * elf32-tic6x.c: Include limits.h. | |
304 | (tic6x_unwind_edit_type, tic6x_unwind_table_edit, | |
305 | _tic6x_elf_section_data): New. | |
306 | (elf32_tic6x_section_data): Define. | |
307 | (elf32_tic6x_new_section_hook): Allocate target specific data. | |
308 | (elf32_tic6x_add_unwind_table_edit): New function. | |
309 | (get_tic6x_elf_section_data, elf32_tic6x_adjust_exidx_size, | |
310 | elf32_tic6x_insert_cantunwind_after, elf32_tic6x_add_low31, | |
311 | elf32_tic6x_copy_exidx_entry): New functions. | |
312 | (elf_backend_write_section): Define. | |
313 | ||
1bce6bd8 PB |
314 | 2011-05-09 Paul Brook <paul@codesourcery.com> |
315 | ||
316 | * elf32-tic6x.c (is_tic6x_elf_unwind_section_name, | |
317 | elf32_tic6x_fake_sections): New functions. | |
318 | (elf_backend_fake_sections): Define. | |
319 | ||
9cf0e282 PB |
320 | 2011-05-09 Paul Brook <paul@codesourcery.com> |
321 | ||
322 | * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): New function. | |
323 | (elf_backend_gc_mark_extra_sections): Define. | |
324 | ||
730035f7 DK |
325 | 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com> |
326 | ||
327 | PR ld/12365 | |
328 | * cofflink.c (bfd_coff_link_input_bfd): Check for and warn about | |
329 | references to symbols defined in discarded sections. | |
330 | ||
88e59394 DK |
331 | 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com> |
332 | ||
333 | PR ld/12365 | |
334 | * coffgen.c (coff_write_symbol): Assume input section is its own | |
335 | output section if output_section member not set. | |
336 | (coff_write_alien_symbol): Likewise. | |
337 | ||
310fd250 L |
338 | 2011-05-07 H.J. Lu <hongjiu.lu@intel.com> |
339 | ||
340 | PR ld/12730 | |
341 | * elf.c (_bfd_elf_section_offset): Check SEC_ELF_REVERSE_COPY. | |
342 | ||
343 | * elflink.c (elf_link_input_bfd): Reverse copy .ctors/.dtors | |
41e04eaa | 344 | sections if needed. |
310fd250 L |
345 | |
346 | * section.c (SEC_ELF_REVERSE_COPY): New. | |
347 | * bfd-in2.h: Regenerated. | |
348 | ||
70778fc7 AM |
349 | 2011-05-07 Anders Kaseorg <andersk@ksplice.com> |
350 | ||
351 | PR 12739 | |
352 | * libbfd.c (bfd_get_8, bfd_get_signed_8): Use const cast. | |
353 | * bfd-in2.h: Regenerate. | |
354 | ||
8185f55c TG |
355 | 2011-05-06 Tristan Gingold <gingold@adacore.com> |
356 | ||
357 | * vms-alpha.c (evax_section_flags): Remove SEC_IN_MEMORY. | |
358 | (_bfd_vms_slurp_egsd): Rename old_flags to vms_flags. Handle | |
359 | any code section. Add comments. | |
360 | (alpha_vms_object_p): Use void * instead of PTR. | |
361 | (alpha_vms_create_eisd_for_section): Fix test for setting DZRO. | |
362 | (build_module_list): Guard against no DST section. Add comments. | |
363 | (alpha_vms_link_output_symbol): Discard undefined symbols. | |
364 | (alpha_vms_get_section_contents): Simply memcpy if the section was | |
365 | already loaded. Fix typo. | |
366 | (vms_new_section_hook): Use void * instead of PTR. | |
367 | (vms_alpha_vec): Ditto. | |
368 | ||
7d24e6a6 RS |
369 | 2011-05-06 Richard Sandiford <richard.sandiford@linaro.org> |
370 | ||
371 | * elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb | |
372 | branch to a PLT entry, redirect it to the PLT's Thumb entry point. | |
373 | ||
c6a8f6e0 BS |
374 | 2011-05-05 Bernd Schmidt <bernds@codesourcery.com> |
375 | ||
376 | * elf32-tic6x.c (elf32_tic6x_final_link): New function. | |
377 | (elf32_tic6x_merge_attributes): Do not warn for PID or PIC | |
378 | mismatch. Choose the lower of the two values. | |
379 | (bfd_elf32_bfd_final_link): New macro. | |
380 | ||
7f41df2e TG |
381 | 2011-04-28 Tristan Gingold <gingold@adacore.com> |
382 | ||
383 | * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file. | |
384 | (bfd_xcoff_swap_aux_out): Ditto. | |
385 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto. | |
386 | (bfd_xcoff64_swap_aux_out): Ditto. | |
387 | ||
9507a174 AM |
388 | 2011-05-04 Alan Modra <amodra@gmail.com> |
389 | ||
390 | PR ld/12727 | |
391 | * elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear | |
392 | was_undefined on dot-symbols. | |
393 | ||
2fbb87f6 PB |
394 | 2011-05-03 Paul Brook <paul@codesourcery.com> |
395 | ||
396 | ||
397 | * elf32-tic6x.c (elf32_tic6x_howto_table, | |
398 | elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook, | |
399 | elf32_tic6x_relocate_section, elf32_tic6x_check_relocs): | |
400 | Add R_C6000_EHTYPE. | |
401 | ||
9d4057ee AM |
402 | 2011-05-01 Alan Modra <amodra@gmail.com> |
403 | ||
404 | PR ld/12718 | |
405 | * elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before | |
406 | creating ifunc sections. | |
407 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
408 | ||
71e7aa7d L |
409 | 2011-04-30 H.J. Lu <hongjiu.lu@intel.com> |
410 | ||
411 | * elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter | |
412 | names. | |
413 | ||
b5dee4ea TT |
414 | 2011-04-28 Tom Tromey <tromey@redhat.com> |
415 | ||
416 | * bfdio.c (memory_bstat): Pass correct size to memset. | |
417 | ||
e4c93b56 MF |
418 | 2011-04-28 Mike Frysinger <vapier@gentoo.org> |
419 | ||
420 | * dwarf2.c (dwarf_debug_sections): Mark const. | |
421 | * elf.c (special_sections): Likewise. | |
422 | * libbfd-in.h (dwarf_debug_sections): Likewise. | |
423 | * libbfd.h: Regenerate. | |
424 | ||
72b016b4 NC |
425 | 2011-04-26 Kai Tietz <ktietz@redhat.com> |
426 | ||
427 | * coffcode.h (sec_to_styp_flags): Allow linkonce for | |
428 | debugging sections. | |
429 | ||
4964e065 TG |
430 | 2011-04-26 Tristan Gingold <gingold@adacore.com> |
431 | ||
432 | * coff64-rs6000.c: Convert to ISO-C. Remove PARAMS and PTR macros. | |
433 | ||
35ed3f94 AM |
434 | 2011-04-24 Alan Modra <amodra@gmail.com> |
435 | ||
436 | PR ld/12365 | |
437 | PR ld/12696 | |
438 | * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call. | |
439 | * linker.c (_bfd_link_hash_newfunc): Clear bitfields. | |
440 | (_bfd_generic_link_add_one_symbol): Update "notice" call. | |
441 | * elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when | |
442 | it is a redef of an IR symbol in a real BFD. | |
443 | ||
b70321a2 L |
444 | 2011-04-22 H.J. Lu <hongjiu.lu@intel.com> |
445 | ||
446 | * elf32-i386.c (elf_i386_readonly_dynrelocs): Warn relocation | |
447 | in readonly section in a shared object. | |
448 | (elf_i386_size_dynamic_sections): Likewise. | |
449 | * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise. | |
450 | (elf_x86_64_size_dynamic_sections): Likewise. | |
451 | ||
aa715242 L |
452 | 2011-04-21 H.J. Lu <hongjiu.lu@intel.com> |
453 | ||
454 | PR ld/12694 | |
455 | * elf32-i386.c (elf_i386_readonly_dynrelocs): Skip local IFUNC | |
456 | symbols. | |
457 | * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise. | |
458 | ||
f6df62c8 L |
459 | 2011-04-21 H.J. Lu <hongjiu.lu@intel.com> |
460 | ||
461 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Return false | |
462 | on dynamic symbol error. | |
463 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
464 | ||
4bbd5a24 TG |
465 | 2011-04-20 Tristan Gingold <gingold@adacore.com> |
466 | ||
467 | * config.bfd (alpha*-*-*vms*, ia64*-*-*vms*): Define targ_selvecs. | |
468 | ||
8ad17b3a AM |
469 | 2011-04-20 Alan Modra <amodra@gmail.com> |
470 | ||
471 | * hash.c (bfd_default_hash_table_size): Make it an unsigned long. | |
472 | (bfd_hash_table_init_n): Overflow checking. | |
473 | (bfd_hash_set_default_size): Return current size. Take unsigned long | |
474 | arg. Add 65537 to hash_size primes. | |
475 | * bfd-in.h (bfd_hash_set_default_size): Update prototype. | |
476 | * bfd-in2.h: Regenerate. | |
477 | ||
1b0df531 JK |
478 | 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
479 | ||
480 | * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of | |
481 | memmove elements. | |
482 | ||
595213d4 AM |
483 | 2011-04-20 Alan Modra <amodra@gmail.com> |
484 | ||
9e6619e2 AM |
485 | * libbfd.c (bfd_log2): Do return rounded up value. |
486 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Replace bfd_log2 | |
487 | call with expanded old round down version of the function. | |
488 | ||
595213d4 AM |
489 | * archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd. |
490 | * elflink.c (elf_link_add_object_symbols): Delete redundant code. | |
491 | ||
02d00247 AM |
492 | 2011-04-20 Alan Modra <amodra@gmail.com> |
493 | ||
494 | PR ld/12365 | |
495 | * elfcode.h (elf_slurp_symbol_table): Put common plugin IR symbols | |
496 | in their own common section. | |
497 | * elflink.c (elf_link_add_object_symbols): Likewise. | |
498 | * linker.c (generic_link_check_archive_element): Don't lose flags | |
499 | if common section is pre-existing. | |
500 | (_bfd_generic_link_add_one_symbol): Likewise. | |
501 | ||
24f58f47 AM |
502 | 2011-04-20 Alan Modra <amodra@gmail.com> |
503 | ||
504 | PR ld/12365 | |
505 | * elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls. | |
506 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call | |
507 | multiple_definition regardless of allow_multiple_definition. | |
508 | * simple.c (simple_dummy_multiple_definition): Update. | |
509 | * xcofflink.c (xcoff_link_add_symbols): Update multiple_definition | |
510 | calls. | |
511 | ||
417236c0 TG |
512 | 2011-04-18 Tristan Gingold <gingold@adacore.com> |
513 | ||
514 | * coff-rs6000.c: Convert to ISO-C. Remove PARAMS macro. | |
515 | ||
901f1d17 AM |
516 | 2011-04-18 Alan Modra <amodra@gmail.com> |
517 | ||
518 | PR ld/12365 | |
519 | PR ld/12672 | |
520 | * bfd.c (BFD_PLUGIN): Define. | |
521 | (BFD_FLAGS_SAVED, BFD_FLAGS_FOR_BFD_USE_MASK): Add BFD_PLUGIN. | |
522 | * bfd-in2.h: Regenerate. | |
523 | * elflink.c (elf_link_output_extsym): Strip undefined plugin syms. | |
524 | * opncls.c (bfd_make_readable): Don't lose original bfd flags. | |
525 | ||
63524580 JK |
526 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
527 | ||
528 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for | |
529 | SEC_LOAD. | |
530 | ||
e21e5835 NC |
531 | 2011-04-15 Sergio Durigan Junior <sergiodj@redhat.com> |
532 | ||
533 | * elf-bfd.h (struct sdt_note): New struct. | |
534 | (struct elf_obj_tdata) <sdt_note_head>: New field. | |
535 | * elf.c (elfobj_grok_stapsdt_note_1): New function. | |
536 | (elfobj_grok_stapsdt_note): Likewise. | |
537 | (elf_parse_notes): Added code to treat SystemTap note | |
538 | sections. | |
539 | ||
6452a567 RH |
540 | 2011-04-12 Richard Henderson <rth@redhat.com> |
541 | ||
542 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not | |
543 | exclude empty .got sections. | |
544 | ||
2a750708 L |
545 | 2011-04-11 H.J. Lu <hongjiu.lu@intel.com> |
546 | ||
547 | * elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound | |
548 | array access for BFD_RELOC_386_IRELATIVE. | |
549 | ||
2123f9ad BS |
550 | 2011-04-11 Bernd Schmidt <bernds@codesourcery.com> |
551 | ||
552 | * elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field. | |
553 | ||
f64b2e8d NC |
554 | 2011-04-11 Mark Wielaard <mjw@redhat.com> |
555 | ||
556 | PR 10549 | |
557 | * elf-bfd.h (has_ifunc_symbols): Renamed to has_gnu_symbols. | |
558 | (has_gnu_symbols): Renamed from has_ifunc_symbols. | |
559 | * elf.c (_bfd_elf_set_osabi): Use new has_gnu_symbols name. | |
560 | * elf32-arm.c (elf32_arm_add_symbol_hook): Set has_gnu_symbols | |
561 | also if STB_GNU_UNIQUE symbol binding was seen. | |
562 | * elf32-i386.c (elf_i386_add_symbol_hook): Likewise. | |
563 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. | |
564 | * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise. | |
565 | * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise. | |
566 | * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise. | |
567 | * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise. | |
568 | ||
e57278ef AM |
569 | 2011-04-11 Alan Modra <amodra@gmail.com> |
570 | ||
571 | * bfd-in.h (bfd_get_section_limit): Don't use rawsize with output | |
572 | sections. | |
573 | * libbfd.c (_bfd_generic_get_section_contents): Likewise. | |
574 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
575 | * section.c (bfd_get_section_contents): Likewise. | |
576 | * compress.c (bfd_get_full_section_contents): Likewise. | |
577 | * elf32-rx.c (rx_final_link): Ignore rawsize. | |
578 | * elf32-microblaze.c (microblaze_elf_relocate_section): Use correct | |
579 | bfd with bfd_get_section_limit. | |
580 | * elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use | |
581 | os->size during final link. Update callers. | |
582 | * bfd-in2.h: Regenerate. | |
583 | ||
e2ece73c RS |
584 | 2011-04-10 Richard Sandiford <rdsandiford@googlemail.com> |
585 | ||
586 | PR ld/12637 | |
587 | * elfxx-mips.c (mips_elf_merge_got_with): Use arg->global_count | |
588 | as the number of global entries when merging with the primary GOT. | |
589 | ||
9f973f28 L |
590 | 2011-04-09 H.J. Lu <hongjiu.lu@intel.com> |
591 | ||
592 | * elf32-i386.c: Update copyright year. | |
593 | * elf64-x86-64.c: Likewise. | |
594 | ||
21e68916 KT |
595 | 2011-04-09 Kai Tietz <ktietz@redhat.com> |
596 | ||
597 | * peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary | |
598 | buffer and use rawsize for sorting. | |
599 | * coffcode.h (coff_compute_section_file_positions): Set rawsize | |
600 | before doing alignment. | |
601 | ||
62d78908 L |
602 | 2011-04-09 H.J. Lu <hongjiu.lu@intel.com> |
603 | ||
604 | * elf32-i386.c (elf_i386_relocate_section): Return relocation | |
605 | error on unsupported relocation. | |
606 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
607 | ||
2351cae0 L |
608 | 2011-04-09 H.J. Lu <hongjiu.lu@intel.com> |
609 | ||
610 | PR binutils/12657 | |
611 | * hosts/x86-64linux.h (elf_prstatus32): Replace __pid_t with | |
612 | pid_t. | |
613 | ||
959b0961 L |
614 | 2011-04-08 H.J. Lu <hongjiu.lu@intel.com> |
615 | ||
616 | PR ld/12654 | |
617 | * elf32-i386.c (elf_i386_relocate_section): Check !executable | |
618 | instead of shared for R_386_TLS_LDO_32. | |
619 | ||
33b54431 TG |
620 | 2011-04-08 Tristan Gingold <gingold@adacore.com> |
621 | ||
622 | * Makefile.am (SOURCE_HFILES): Remove xcoff-target.h | |
623 | * coff-pmac: Remove | |
624 | * xcoff-target.h: Remove | |
625 | * Makefile.in: Regenerate. | |
626 | ||
5d8e6b4d CC |
627 | 2011-04-07 Cary Coutant <ccoutant@google.com> |
628 | ||
629 | * dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification. | |
630 | ||
44e87ece | 631 | 2011-04-07 Paul Brook <paul@codesourcery.com> |
33b54431 | 632 | |
44e87ece PB |
633 | * elf32-tic6x.c (elf32_tic6x_howto_table): R_C6000_PREL31 is |
634 | pc-relative. | |
635 | (elf32_tic6x_howto_table_rel): Ditto. | |
636 | (elf32_tic6x_relocate_section): Implement R_C6000_PREL31. | |
637 | (elf32_tic6x_check_relocs): Ditto. | |
638 | ||
8c5fc800 JM |
639 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
640 | ||
641 | * config.bfd (thumb-*-oabi): Don't handle in list of obsolete | |
642 | targets. | |
643 | (strongarm*, thumb*, xscale*): Remove architectures. | |
644 | (strongarm-*-kaos*, thumb-*-coff, thumb-*-elf, thumb-epoc-pe*, | |
645 | thumb-*-pe*, strongarm-*-elf, strongarm-*-coff, xscale-*-elf, | |
646 | xscale-*-coff): Remove targets. | |
647 | ||
6f8027ae TG |
648 | 2011-04-01 Tristan Gingold <gingold@adacore.com> |
649 | ||
650 | * elfxx-ia64.c: include bfd_stdint.h | |
651 | ||
c89ce65c JK |
652 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
653 | ||
654 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable | |
655 | dynobj and its initialization. | |
656 | ||
545f57c6 TG |
657 | 2011-03-31 Tristan Gingold <gingold@adacore.com> |
658 | ||
659 | * makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec. | |
660 | * configure.com: Set BFD_HOST_64BIT_LONG_LONG and | |
661 | BFD_HOST_LONG_LONG to 1. | |
662 | ||
083faca9 TG |
663 | 2011-03-31 Tristan Gingold <gingold@adacore.com> |
664 | ||
665 | * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning. | |
666 | (_bfd_vms_write_etir): Ditto. | |
667 | (_bfd_vms_slurp_etir): Avoid to use intptr_t | |
668 | * configure.com: Generate bfd_stdint.h | |
669 | ||
ac145307 BS |
670 | 2011-03-31 Bernd Schmidt <bernds@codesourcery.com> |
671 | ||
672 | * elf32-tic6x.h (struct elf32_tic6x_params): New. | |
673 | (elf32_tic6x_setup): Declare. | |
674 | * elf32-tic6x.c: Include <limits.h>. | |
675 | (ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define. | |
676 | (struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry): | |
677 | New structures. | |
678 | (elf32_tic6x_link_hash_table, is_tic6x_elf): New macros. | |
679 | (tic6x_elf_scom_section, tic6x_elf_scom_symbol, | |
680 | tic6x_elf_scom_symbol_ptr): New static variables. | |
681 | (elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel, | |
682 | elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE, | |
683 | R_C6000_PCR_H16 and R_C6000_PCR_L16. | |
684 | (elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create, | |
685 | elf32_tic6x_link_hash_table_free, elf32_tic6x_setup, | |
686 | elf32_tic6x_using_dsbt, elf32_tic6x_install_rela, | |
687 | elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc, | |
688 | elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook, | |
689 | elf32_tic6x_adjust_dynamic_symbol): New static functions. | |
690 | (elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches | |
691 | to weak symbols as required by the ABI. | |
692 | Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file | |
693 | as needed when generating DSBT output. | |
694 | (elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook, | |
695 | elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section, | |
696 | elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections, | |
697 | elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers, | |
698 | elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val, | |
699 | elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym): | |
700 | New static functions. | |
701 | (ELF_MAXPAGESIZE): Define to 0x1000. | |
702 | (bfd_elf32_bfd_copy_private_bfd_data, | |
703 | bfd_elf32_bfd_link_hash_table_create, | |
704 | bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount, | |
705 | elf_backend_want_got_plt, elf_backend_want_dynbss, | |
706 | elf_backend_plt_readonly, elf_backend_got_header_size, | |
707 | elf_backend_gc_sweep_hook, elf_backend_modify_program_headers, | |
708 | elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol, | |
709 | elf_backend_check_relocs, elf_backend_add_symbol_hook, | |
710 | elf_backend_symbol_processing, elf_backend_link_output_symbol_hook, | |
711 | elf_backend_section_from_bfd_section, | |
712 | elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections, | |
713 | elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections, | |
714 | elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define. | |
715 | ||
716 | * bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE, | |
717 | BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add. | |
718 | * bfd/bfd-in2.h: Regenerate. | |
719 | * bfd/libbfd.h: Regenerate. | |
720 | * config.bfd: Accept tic6x-*-* instead of tic6x-*-elf. | |
721 | ||
53dd76d3 TG |
722 | 2011-03-31 Tristan Gingold <gingold@adacore.com> |
723 | ||
724 | * coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL | |
725 | entry on xcoff when value is C_NULL_VALUE. | |
726 | ||
727 | 2011-03-31 Tristan Gingold <gingold@adacore.com> | |
2040caca TG |
728 | |
729 | * libcoff-in.h (exec_hdr): Remove. | |
730 | * libcoff.h: Regenerate. | |
731 | ||
3a294fa7 NC |
732 | 2011-03-30 Nick Clifton <nickc@redhat.com> |
733 | ||
734 | * po/da.po: Updated Danish translation. | |
735 | ||
e117360e RH |
736 | 2011-03-29 Richard Henderson <rth@redhat.com> |
737 | ||
738 | * elf64-alpha.c (elf64_alpha_gc_mark_hook): New. | |
739 | (elf64_alpha_gc_sweep_hook): New. | |
740 | (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): New. | |
741 | (elf_backend_can_gc_sections): New. | |
742 | ||
5b806d27 NC |
743 | 2011-03-26 John Marino <binutils@marino.st> |
744 | ||
745 | * config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*. | |
746 | * configure.in: Delete unused bfd_elf32_i386_dragonfly_vec. | |
747 | * configure: Regenerate. | |
748 | ||
b42adabf NC |
749 | 2011-03-25 Michael Snyder <msnyder@vmware.com> |
750 | ||
751 | * coffcode.h (coff_set_alignment_hook): Check return of bfd_seek. | |
752 | ||
a283ff93 TG |
753 | 2011-03-25 Tristan Gingold <gingold@adacore.com> |
754 | ||
755 | * vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use | |
756 | of find_nearest_line on object files. | |
757 | ||
cf6b8767 TG |
758 | 2011-03-25 Tristan Gingold <gingold@adacore.com> |
759 | ||
760 | * vms-alpha.c (evax_section_flags): Make $CODE$ section read-only. | |
761 | Minor reordering. | |
762 | (alpha_vms_create_eisd_for_section): Make code sections read-only. | |
763 | ||
663a1470 AM |
764 | 2011-03-24 Alan Modra <amodra@gmail.com> |
765 | ||
766 | * elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where | |
767 | old-style __tls_get_addr calls without marker relocs don't match | |
768 | their arg setup insn one for one. If such mismatches are found | |
769 | report the reloc and don't do any tls optimization. | |
770 | * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise. | |
771 | ||
dc80f6ae EW |
772 | 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com> |
773 | ||
774 | * bfd-in2.h: Regenerate. | |
775 | ||
8cc66334 EW |
776 | 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com> |
777 | ||
778 | * archures.c: Add AVR XMEGA architecture information. | |
779 | * cpu-avr.c (arch_info_struct): Likewise. | |
780 | * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise. | |
781 | (elf32_avr_object_p): Likewise. | |
782 | ||
34e77a92 RS |
783 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
784 | ||
785 | * reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation. | |
786 | * bfd-in2.h: Regenerate. | |
787 | * elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition | |
788 | to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE | |
789 | entry. | |
790 | (elf32_arm_howto_from_type): Update accordingly. | |
791 | (elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE. | |
792 | (elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3. | |
793 | (arm_plt_info): New structure, split out from elf32_arm_link_hash_entry | |
794 | with an extra noncall_refcount field. | |
795 | (arm_local_iplt_info): New structure. | |
796 | (elf_arm_obj_tdata): Add local_iplt. | |
797 | (elf32_arm_local_iplt): New accessor macro. | |
798 | (elf32_arm_link_hash_entry): Replace plt_thumb_refcount, | |
799 | plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info. | |
800 | Change tls_type to a bitfield and add is_iplt. | |
801 | (elf32_arm_link_hash_newfunc): Update accordingly. | |
802 | (elf32_arm_allocate_local_sym_info): New function. | |
803 | (elf32_arm_create_local_iplt): Likewise. | |
804 | (elf32_arm_get_plt_info): Likewise. | |
805 | (elf32_arm_plt_needs_thumb_stub_p): Likewise. | |
806 | (elf32_arm_get_local_dynreloc_list): Likewise. | |
807 | (create_ifunc_sections): Likewise. | |
808 | (elf32_arm_copy_indirect_symbol): Update after the changes to | |
809 | elf32_arm_link_hash_entry. Assert the is_iplt has not yet been set. | |
810 | (arm_type_of_stub): Add an st_type argument. Use elf32_arm_get_plt_info | |
811 | to get PLT information. Assert that all STT_GNU_IFUNC references | |
812 | are turned into PLT references. | |
813 | (arm_build_one_stub): Pass the symbol type to | |
814 | elf32_arm_final_link_relocate. | |
815 | (elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub. | |
816 | (elf32_arm_allocate_irelocs): New function. | |
817 | (elf32_arm_add_dynreloc): In static objects, use .rel.iplt for | |
818 | all R_ARM_IRELATIVE. | |
819 | (elf32_arm_allocate_plt_entry): New function. | |
820 | (elf32_arm_populate_plt_entry): Likewise. | |
821 | (elf32_arm_final_link_relocate): Add an st_type parameter. | |
822 | Set srelgot to null for static objects. Use separate variables | |
823 | to record which st_value and st_type should be used when generating | |
824 | a dynamic relocation. Use elf32_arm_get_plt_info to find the | |
825 | symbol's PLT information, setting has_iplt_entry, splt, | |
826 | plt_offset and gotplt_offset accordingly. Check whether | |
827 | STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change | |
828 | the relocation target accordingly. Broaden assert to include | |
829 | .iplts. Don't set sreloc for static relocations. Assert that | |
830 | we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32 | |
831 | and R_ARM_ABS32_NOI. Generate R_ARM_IRELATIVE relocations instead | |
832 | of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC | |
833 | symbol. Pass the symbol type to arm_type_of_stub. Conditionally | |
834 | resolve GOT references to the .igot.plt entry. | |
835 | (elf32_arm_relocate_section): Update the call to | |
836 | elf32_arm_final_link_relocate. | |
837 | (elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT | |
838 | information. Treat R_ARM_REL32 and R_ARM_REL32_NOI as call | |
839 | relocations in shared libraries and relocatable executables. | |
840 | Count non-call PLT references. Use elf32_arm_get_local_dynreloc_list | |
841 | to get the list of dynamic relocations for a local symbol. | |
842 | (elf32_arm_check_relocs): Always create ifunc sections. Set isym | |
843 | at the same time as setting h. Use elf32_arm_allocate_local_sym_info | |
844 | to allocate local symbol information. Treat R_ARM_REL32 and | |
845 | R_ARM_REL32_NOI as call relocations in shared libraries and | |
846 | relocatable executables. Record PLT information for local | |
847 | STT_GNU_IFUNC functions as well as global functions. Count | |
848 | non-call PLT references. Use elf32_arm_get_local_dynreloc_list | |
849 | to get the list of dynamic relocations for a local symbol. | |
850 | (elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols. | |
851 | Don't remove STT_GNU_IFUNC PLTs unless all references have been | |
852 | removed. Update after the changes to elf32_arm_link_hash_entry. | |
853 | (allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT | |
854 | entries should live in .plt or .iplt. Check whether the .igot.plt | |
855 | and .got entries can be combined. Use elf32_arm_allocate_plt_entry | |
856 | to allocate .plt and .(i)got.plt entries. Detect which .got | |
857 | entries will need R_ARM_IRELATIVE relocations and use | |
858 | elf32_arm_allocate_irelocs to allocate them. Likewise other | |
859 | non-.got dynamic relocations. | |
860 | (elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt | |
861 | and dynamic relocations for local STT_GNU_IFUNC symbols. | |
862 | Check whether the .igot.plt and .got entries can be combined. | |
863 | Detect which .got entries will need R_ARM_IRELATIVE relocations | |
864 | and use elf32_arm_allocate_irelocs to allocate them. Use stashed | |
865 | section pointers intead of strcmp checks. Handle iplt and igotplt. | |
866 | (elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry | |
867 | to fill in .plt, .got.plt and .rel(a).plt entries. Point | |
868 | STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations | |
869 | resolve to it. | |
870 | (elf32_arm_output_plt_map_1): New function, split out from | |
871 | elf32_arm_output_plt_map. Handle .iplt entries. Use | |
872 | elf32_arm_plt_needs_thumb_stub_p. | |
873 | (elf32_arm_output_plt_map): Call it. | |
874 | (elf32_arm_output_arch_local_syms): Add mapping symbols for | |
875 | local .iplt entries. | |
876 | (elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols. | |
877 | (elf32_arm_swap_symbol_out): Likewise. | |
878 | (elf32_arm_add_symbol_hook): New function. | |
879 | (elf_backend_add_symbol_hook): Define for all targets. | |
880 | ||
35fc36a8 RS |
881 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
882 | ||
883 | * elf-bfd.h (elf_link_hash_entry): Add target_internal. | |
884 | * elf.c (swap_out_syms): Set st_target_internal for each | |
885 | Elf_Internal_Sym. | |
886 | * elfcode.h (elf_swap_symbol_in): Likewise. | |
887 | * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise. | |
888 | * elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise. | |
889 | * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise. | |
890 | * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
891 | * elflink.c (elf_link_output_extsym): Likewise. | |
892 | (bfd_elf_final_link): Likewise. | |
893 | (elf_link_add_object_symbols): Copy st_target_internal | |
894 | to the hash table if we see a definition. | |
895 | (_bfd_elf_copy_link_hash_symbol_type): Copy target_internal. | |
896 | * elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with | |
897 | a branch_type field. | |
898 | (a8_erratum_fix, a8_erratum_reloc): Likewise. | |
899 | (arm_type_of_stub): Replace actual_st_type with an | |
900 | actual_branch_type parameter. | |
901 | (arm_build_one_stub): Use branch types rather than st_types to | |
902 | determine the type of branch. | |
903 | (cortex_a8_erratum_scan): Likewise. | |
904 | (elf32_arm_size_stubs): Likewise. | |
905 | (bfd_elf32_arm_process_before_allocation): Likewise. | |
906 | (allocate_dynrelocs_for_symbol): Likewise. | |
907 | (elf32_arm_finish_dynamic_sections): Likewise. | |
908 | (elf32_arm_final_link_relocate): Replace sym_flags parameter with | |
909 | a branch_type parameter. | |
910 | (elf32_arm_relocate_section): Update call accordingly. | |
911 | (elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC. | |
912 | (elf32_arm_output_map_sym): Initialize st_target_internal. | |
913 | (elf32_arm_output_stub_sym): Likewise. | |
914 | (elf32_arm_symbol_processing): Delete. | |
915 | (elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs. | |
916 | Use st_target_internal to record the branch type. | |
917 | (elf32_arm_swap_symbol_out): Use st_target_internal to test for | |
918 | Thumb functions. | |
919 | (elf32_arm_is_function_type): Delete. | |
920 | (elf_backend_symbol_processing): Likewise. | |
921 | (elf_backend_is_function_type): Likewise. | |
922 | ||
cbc704f3 RS |
923 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
924 | ||
925 | * elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj. | |
926 | (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion | |
927 | into the PLT block. | |
928 | ||
f6e32f6d RS |
929 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
930 | ||
931 | * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p, | |
932 | may_need_local_target_p and may_become_dynamic_p to classify | |
933 | the relocation type. Don't check info->symbolic or h->def_regular | |
934 | when deciding whether to record a potential dynamic reloc. | |
935 | Don't treat potential dynamic relocs as PLT references. | |
936 | (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't | |
937 | try to make the PLT reference count go negative. | |
938 | ||
b436d854 RS |
939 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
940 | ||
941 | * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the | |
942 | GOT entry here, rather than leaving it to finish_dynamic_symbol. | |
943 | Only create a dynamic relocation for local references if | |
944 | info->shared. | |
945 | (allocate_dynrelocs_for_symbol): Update dynamic relocation | |
946 | allocation accordingly. | |
947 | (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here. | |
948 | ||
47beaa6a RS |
949 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
950 | ||
951 | * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function. | |
952 | (elf32_arm_add_dynreloc): Likewise. | |
953 | (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs | |
954 | to allocate dynamic relocations. | |
955 | (elf32_arm_size_dynamic_sections): Likewise. | |
956 | (allocate_dynrelocs): Likewise. Rename to | |
957 | allocate_dynrelocs_for_symbol. | |
958 | (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to | |
959 | create dynamic relocations. | |
960 | (elf32_arm_finish_dynamic_symbol): Likewise. | |
961 | ||
52bc799a L |
962 | 2011-03-12 H.J. Lu <hongjiu.lu@intel.com> |
963 | ||
964 | * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS | |
965 | x32 GD->IE and GD->LE transitions. | |
966 | (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE | |
967 | and LD->LE transitions. | |
968 | ||
e11840f9 AM |
969 | 2011-03-10 Alan Modra <amodra@gmail.com> |
970 | ||
971 | * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset | |
972 | for LO_DS error message and correct multiple. | |
973 | ||
aa374f67 AM |
974 | 2011-03-10 Alan Modra <amodra@gmail.com> |
975 | ||
976 | * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define. | |
977 | (ppc64_elf_link_just_syms): New function. | |
978 | (opd_entry_value): Don't assume big-endian host. | |
979 | (get_r2off): New function. | |
980 | (ppc_build_one_stub, ppc_size_one_stub): Use it here. | |
981 | ||
d59a60e9 MS |
982 | 2011-03-06 Michael Snyder <msnyder@vmware.com> |
983 | ||
4281caad MS |
984 | * compress.c (bfd_compress_section_contents): Check for out of mem. |
985 | ||
17672001 MS |
986 | * elf64-x86-64.c (elf_x86_64_relocate_section): Document |
987 | that case statement falls through intentionally. | |
988 | ||
d59a60e9 MS |
989 | * elf32-i386.c (elf_i386_relocate_section): Document fall through. |
990 | ||
0e29e6e8 AM |
991 | 2011-03-04 Alan Modra <amodra@gmail.com> |
992 | ||
993 | * archive.c (bsd_write_armap): Don't call stat in deterministic | |
994 | mode, and don't use st_mtime if stat returns error. | |
995 | ||
eb00922a MS |
996 | 2011-03-03 Michael Snyder <msnyder@vmware.com> |
997 | ||
08c13595 MS |
998 | * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code. |
999 | ||
d543c50d MS |
1000 | * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error. |
1001 | ||
c38eb2a6 MS |
1002 | * aoutx.h (aout_final_link): Use sizeof int not sizeof int*. |
1003 | (aout_link_write_other_symbol): Missing break statement. | |
1004 | ||
8ecc1f20 MS |
1005 | * dwarf2.c (scan_unit_for_symbols): Stop memory leak. |
1006 | ||
eb00922a MS |
1007 | * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails. |
1008 | ||
4a4c5f25 L |
1009 | 2011-03-03 H.J. Lu <hongjiu.lu@intel.com> |
1010 | ||
1011 | * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS | |
1012 | x32 IE->LE transition. | |
1013 | (elf_x86_64_relocate_section): Likewise. | |
1014 | ||
ddcf1fcf BS |
1015 | 2011-03-02 Bernd Schmidt <bernds@codesourcery.com> |
1016 | ||
aa374f67 AM |
1017 | * elflink.c (is_reloc_section): Remove function. |
1018 | (get_dynamic_reloc_section_name): Construct string manually. | |
ddcf1fcf | 1019 | |
007d6189 KT |
1020 | 2011-02-28 Kai Tietz <kai.tietz@onevision.com> |
1021 | ||
1022 | * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp. | |
1023 | (adjust_relative_path): Likewise. | |
1024 | (_bfd_construct_extended_name_table): Likewise. | |
1025 | * corefile.c (generic_core_file_matches_executable_p): Likewise. | |
1026 | * elf32-bfin.c (bfinfdpic_relocate_section): Likewise. | |
1027 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. | |
1028 | * elf32-spu.c (sort_bfds): Likewise. | |
1029 | (spu_elf_auto_overlay): Likewise. | |
1030 | * syms.c (_bfd_stab_section_find_nearest_line): Likewise. | |
1031 | * xcofflink.c (xcoff_set_import_path): Likewise. | |
1032 | * xtensa-isa.c (xtensa_regfile_lookup): Likewise. | |
1033 | (xtensa_regfile_lookup_shortname): Likewise. | |
1034 | ||
8616ad89 AM |
1035 | 2011-02-28 Alan Modra <amodra@gmail.com> |
1036 | ||
1037 | PR 12513 | |
1038 | * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and | |
1039 | stringsize. Properly sanity check symdef_count. Remove redundant | |
1040 | bfd_release. | |
1041 | ||
80549d04 RĂE |
1042 | 2011-02-25 Rafael Ăvila de EspĂndola <respindola@mozilla.com> |
1043 | ||
1044 | * plugin.c (bfd_plugin_object_p): Correctly set the filesize | |
1045 | and handle claim_file seeking. Only try to load the plugin once. | |
1046 | ||
93b3ac75 AS |
1047 | 2011-02-22 Andreas Schwab <schwab@redhat.com> |
1048 | ||
1049 | * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD | |
1050 | relocation read the value from the second GOT slot. | |
1051 | ||
6fa052f0 TG |
1052 | 2011-02-15 Tristan Gingold <gingold@adacore.com> |
1053 | ||
1054 | * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment. | |
1055 | ||
28be611c AM |
1056 | 2011-02-15 Alan Modra <amodra@gmail.com> |
1057 | ||
1058 | * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of | |
1059 | toc relocs. Fuss over free(NULL). | |
1060 | ||
93252b1c MF |
1061 | 2011-02-14 Mike Frysinger <vapier@gentoo.org> |
1062 | ||
1063 | * elflink.c (bfd_elf_size_dynamic_sections): Add | |
1064 | bfd_get_symbol_leading_char to the start of newname. | |
1065 | ||
822ce8ee RW |
1066 | 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1067 | ||
1068 | * configure: Regenerate. | |
1069 | ||
425b145b AM |
1070 | 2011-02-09 Alan Modra <amodra@gmail.com> |
1071 | ||
1072 | * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until | |
1073 | we are done. When optimising large toc, check that a global | |
1074 | symbol on a toc reloc is defined in a kept section. | |
1075 | ||
82f2dbf7 NC |
1076 | 2011-02-08 Nick Clifton <nickc@redhat.com> |
1077 | ||
1078 | PR binutils/12467 | |
1079 | * elf.c (assign_file_positions_for_load_sections): Set the program | |
1080 | header offset and entry size to zero if there are no program | |
1081 | headers. | |
1082 | ||
df22d223 AM |
1083 | 2011-02-08 Alan Modra <amodra@gmail.com> |
1084 | ||
1085 | * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL | |
1086 | local_syms when looking for local symbols in .toc. | |
1087 | ||
6683a28d AM |
1088 | 2011-02-01 Alan Modra <amodra@gmail.com> |
1089 | ||
1090 | * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value | |
1091 | for toc pointer on any section having makes_toc_func_call set. | |
1092 | (check_pasted_section): Ensure pasted .init/.fini fragments use | |
1093 | the same toc if any has makes_toc_func_call set. | |
1094 | ||
5240d94d JM |
1095 | 2011-01-28 Joseph Myers <joseph@codesourcery.com> |
1096 | ||
1097 | * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs | |
1098 | field. | |
1099 | ||
ed88c97e RS |
1100 | 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com> |
1101 | ||
1102 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore | |
1103 | common sections too. | |
1104 | ||
1a0c107f L |
1105 | 2011-01-18 H.J. Lu <hongjiu.lu@intel.com> |
1106 | ||
04449d86 L |
1107 | * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after |
1108 | Solaris target. | |
1a0c107f | 1109 | |
d68cd58c NC |
1110 | 2011-01-18 Pierre Muller <muller@ics.u-strasbg.fr> |
1111 | ||
1112 | Fix compilation for mingw64. | |
1113 | * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate | |
1114 | typecast to avoid warning. | |
1115 | * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type | |
1116 | usage. | |
1117 | * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead | |
1118 | of long for pointer to avoid warning. | |
1119 | (elfNN_ia64_relax_brl): Idem. | |
1120 | (elfNN_ia64_install_value): Idem. | |
1121 | * vms-alpha.c (_bfd_vms_slurp_etir): Idem. | |
1122 | ||
da17376b RS |
1123 | 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org> |
1124 | ||
1125 | * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than | |
1126 | h->needs_plt when deciding whether to record a possible dynamic reloc. | |
1127 | ||
1e81e12b RS |
1128 | 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org> |
1129 | ||
1130 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered | |
1131 | dynamic relocs for the removed section. | |
1132 | ||
d1534d16 L |
1133 | 2011-01-15 H.J. Lu <hongjiu.lu@intel.com> |
1134 | ||
1135 | * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32 | |
1136 | relocations. | |
1137 | ||
248775ba L |
1138 | 2011-01-14 H.J. Lu <hongjiu.lu@intel.com> |
1139 | ||
1140 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type. | |
1141 | (elf_x86_64_link_hash_table_create): Set pointer_r_type. | |
1142 | (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64 | |
1143 | for ILP32. Remove ABI_64_P PIC check for R_X86_64_8, | |
1144 | R_X86_64_16, R_X86_64_32 and R_X86_64_32S. | |
1145 | (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64 | |
1146 | for ILP32. | |
1147 | ||
4a97a0e5 AM |
1148 | 2011-01-14 Alan Modra <amodra@gmail.com> |
1149 | ||
1150 | * bfd.c (bfd_perror): Flush stdout before and stderr after printing | |
1151 | error. | |
1152 | (_bfd_default_error_handler): Likewise. | |
1153 | * elf.c (print_segment_map): Likewise. | |
1154 | * libbfd.c (warn_deprecated): Likewise. | |
1155 | * som.c (som_sizeof_headers): No need to do so here. | |
1156 | * coff-i860.c: Replace use of printf for error messages with | |
1157 | _bfd_error_handler. | |
1158 | * coff-ppc.c: Likewise. | |
1159 | * coff-sh.c: Likewise. | |
1160 | * elf32-bfin.c: Likewise. | |
1161 | * elf32-dlx.c: Likewise. | |
1162 | * elf32-mep.c: Likewise. | |
1163 | * elf32-v850.c: Likewise. | |
1164 | * mach-o.c: Likewise. | |
1165 | * pef.c: Likewise. | |
1166 | ||
82e96e07 L |
1167 | 2011-01-13 H.J. Lu <hongjiu.lu@intel.com> |
1168 | ||
1169 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove | |
1170 | swap_reloca_out. | |
1171 | (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out. | |
1172 | (elf_x86_64_check_relocs): Align relocation section to 4 byte | |
1173 | for 32bit. | |
1174 | (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with | |
1175 | ELF_ST_TYPE. | |
1176 | (elf_x86_64_finish_dynamic_symbol): Updated. | |
1177 | (elf_x86_64_finish_dynamic_sections): Don't use | |
1178 | Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor | |
1179 | bfd_elf64_swap_dyn_out. | |
1180 | ||
e6a6bb22 AM |
1181 | 2011-01-14 J. Park <grassman@gmail.com> |
1182 | ||
1183 | PR ld/12339 | |
1184 | * elf32-arm.c (allocate_dynrelocs): Don't set up eh before | |
1185 | following bfd_link_hash_warning symbol link. | |
1186 | ||
0855e32b NS |
1187 | 2011-01-10 Nathan Sidwell <nathan@codesourcery.com> |
1188 | Glauber de Oliveira Costa <glommer@gmail.com> | |
1189 | ||
1190 | * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL, | |
1191 | BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ, | |
1192 | BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New | |
1193 | relocations. | |
1194 | * libbfd.h: Rebuilt. | |
1195 | * bfd-in2.h: Rebuilt. | |
1196 | * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations. | |
1197 | (elf32_arm_reloc_map): Likewise. | |
1198 | (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates. | |
1199 | (elf32_arm_stub_long_branch_any_tls_pic, | |
1200 | elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates. | |
1201 | (DEF_STUBS): Add new stubs. | |
1202 | (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field. | |
1203 | (elf32_arm_local_tlsdesc_gotent): New. | |
1204 | (GOT_TLS_GDESC): New mask. | |
1205 | (GOT_TLS_GD_ANY): Define. | |
1206 | (struct elf32_arm_link_hash_entry): Add tlsdesc_got field. | |
1207 | (elf32_arm_compute_jump_table_size): New. | |
1208 | (struct elf32_arm_link_hash_table): Add next_tls_desc_index, | |
1209 | num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline, | |
1210 | sgotplt_jump_table_size fields. | |
1211 | (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field. | |
1212 | (elf32_arm_link_hash_table_create): Initialize new fields. | |
1213 | (arm_type_of_stub): Check TLS desc relocs too. | |
1214 | (elf32_arm_stub_name): TLS desc relocs can be shared. | |
1215 | (elf32_arm_tls_transition): Determine relaxation. | |
1216 | (arm_stub_required_alignment): Add tls stubs. | |
1217 | (elf32_arm_size_stubs): Likewise. | |
1218 | (elf32_arm_tls_relax): Perform TLS relaxing. | |
1219 | (elf32_arm_final_link_relocate): Process TLS DESC relocations. | |
1220 | (IS_ARM_TLS_GNU_RELOC): New. | |
1221 | (IS_ARM_TLS_RELOC): Use it. | |
1222 | (elf32_arm_relocate_section): Perform TLS relaxing. | |
1223 | (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls | |
1224 | desc relocations. | |
1225 | (allocate_dynrelocs): Allocate tls desc relcoations. | |
1226 | (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping | |
1227 | symbols. | |
1228 | (elf32_arm_size_dynamic_sections): Allocate tls trampolines and | |
1229 | got slots. | |
1230 | (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE | |
1231 | symbol. | |
1232 | (elf32_arm_finish_dynamic_symbol): Adjust. | |
1233 | (arm_put_trampoline): New. | |
1234 | (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls | |
1235 | trampolines. | |
1236 | (elf_backend_always_size_sections): Define. | |
1237 | ||
7be86737 L |
1238 | 2011-01-06 H.J. Lu <hongjiu.lu@intel.com> |
1239 | ||
1240 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized. | |
1241 | ||
ae428b57 | 1242 | 2011-01-06 H.J. Lu <hongjiu.lu@intel.com> |
3db2e7dd L |
1243 | |
1244 | PR ld/12366 | |
1245 | PR ld/12371 | |
1246 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly | |
1247 | handle symbols marked with regular reference, but not non-GOT | |
1248 | reference when building shared library. | |
1249 | ||
1250 | * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle | |
1251 | local and global STT_GNU_IFUNC symols when building shared | |
1252 | library. | |
1253 | * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise. | |
1254 | ||
9689e3a3 DD |
1255 | 2011-01-05 DJ Delorie <dj@redhat.com> |
1256 | ||
1257 | * reloc.c: Add BFD_RELOC_RX_OP_NEG. | |
1258 | * libbfd.h: Regenerate. | |
1259 | * bfd-in2.h: Regenerate. | |
1260 | * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg. | |
1261 | ||
889a4d3e L |
1262 | 2011-01-03 H.J. Lu <hongjiu.lu@intel.com> |
1263 | ||
1264 | * cpu-i386.c (bfd_i386_compatible): New. | |
1265 | (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible | |
1266 | with bfd_i386_compatible. | |
1267 | (bfd_x86_64_arch_intel_syntax): Likewise. | |
1268 | (bfd_i386_arch_intel_syntax): Likewise. | |
1269 | (i8086_arch): Likewise. | |
1270 | (bfd_x64_32_arch): Likewise. | |
1271 | (bfd_x86_64_arch): Likewise. | |
1272 | (bfd_i386_arch): Likewise. | |
1273 | ||
9e9e0820 | 1274 | For older changes see ChangeLog-2010 |
56882138 AM |
1275 | \f |
1276 | Local Variables: | |
1277 | mode: change-log | |
1278 | left-margin: 8 | |
1279 | fill-column: 74 | |
1280 | version-control: never | |
1281 | End: |