]>
Commit | Line | Data |
---|---|---|
730035f7 DK |
1 | 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com> |
2 | ||
3 | PR ld/12365 | |
4 | * cofflink.c (bfd_coff_link_input_bfd): Check for and warn about | |
5 | references to symbols defined in discarded sections. | |
6 | ||
88e59394 DK |
7 | 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com> |
8 | ||
9 | PR ld/12365 | |
10 | * coffgen.c (coff_write_symbol): Assume input section is its own | |
11 | output section if output_section member not set. | |
12 | (coff_write_alien_symbol): Likewise. | |
13 | ||
310fd250 L |
14 | 2011-05-07 H.J. Lu <hongjiu.lu@intel.com> |
15 | ||
16 | PR ld/12730 | |
17 | * elf.c (_bfd_elf_section_offset): Check SEC_ELF_REVERSE_COPY. | |
18 | ||
19 | * elflink.c (elf_link_input_bfd): Reverse copy .ctors/.dtors | |
20 | sections if needed. | |
21 | ||
22 | * section.c (SEC_ELF_REVERSE_COPY): New. | |
23 | * bfd-in2.h: Regenerated. | |
24 | ||
70778fc7 AM |
25 | 2011-05-07 Anders Kaseorg <andersk@ksplice.com> |
26 | ||
27 | PR 12739 | |
28 | * libbfd.c (bfd_get_8, bfd_get_signed_8): Use const cast. | |
29 | * bfd-in2.h: Regenerate. | |
30 | ||
8185f55c TG |
31 | 2011-05-06 Tristan Gingold <gingold@adacore.com> |
32 | ||
33 | * vms-alpha.c (evax_section_flags): Remove SEC_IN_MEMORY. | |
34 | (_bfd_vms_slurp_egsd): Rename old_flags to vms_flags. Handle | |
35 | any code section. Add comments. | |
36 | (alpha_vms_object_p): Use void * instead of PTR. | |
37 | (alpha_vms_create_eisd_for_section): Fix test for setting DZRO. | |
38 | (build_module_list): Guard against no DST section. Add comments. | |
39 | (alpha_vms_link_output_symbol): Discard undefined symbols. | |
40 | (alpha_vms_get_section_contents): Simply memcpy if the section was | |
41 | already loaded. Fix typo. | |
42 | (vms_new_section_hook): Use void * instead of PTR. | |
43 | (vms_alpha_vec): Ditto. | |
44 | ||
7d24e6a6 RS |
45 | 2011-05-06 Richard Sandiford <richard.sandiford@linaro.org> |
46 | ||
47 | * elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb | |
48 | branch to a PLT entry, redirect it to the PLT's Thumb entry point. | |
49 | ||
c6a8f6e0 BS |
50 | 2011-05-05 Bernd Schmidt <bernds@codesourcery.com> |
51 | ||
52 | * elf32-tic6x.c (elf32_tic6x_final_link): New function. | |
53 | (elf32_tic6x_merge_attributes): Do not warn for PID or PIC | |
54 | mismatch. Choose the lower of the two values. | |
55 | (bfd_elf32_bfd_final_link): New macro. | |
56 | ||
7f41df2e TG |
57 | 2011-04-28 Tristan Gingold <gingold@adacore.com> |
58 | ||
59 | * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file. | |
60 | (bfd_xcoff_swap_aux_out): Ditto. | |
61 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto. | |
62 | (bfd_xcoff64_swap_aux_out): Ditto. | |
63 | ||
9507a174 AM |
64 | 2011-05-04 Alan Modra <amodra@gmail.com> |
65 | ||
66 | PR ld/12727 | |
67 | * elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear | |
68 | was_undefined on dot-symbols. | |
69 | ||
2fbb87f6 PB |
70 | 2011-05-03 Paul Brook <paul@codesourcery.com> |
71 | ||
72 | ||
73 | * elf32-tic6x.c (elf32_tic6x_howto_table, | |
74 | elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook, | |
75 | elf32_tic6x_relocate_section, elf32_tic6x_check_relocs): | |
76 | Add R_C6000_EHTYPE. | |
77 | ||
9d4057ee AM |
78 | 2011-05-01 Alan Modra <amodra@gmail.com> |
79 | ||
80 | PR ld/12718 | |
81 | * elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before | |
82 | creating ifunc sections. | |
83 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
84 | ||
71e7aa7d L |
85 | 2011-04-30 H.J. Lu <hongjiu.lu@intel.com> |
86 | ||
87 | * elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter | |
88 | names. | |
89 | ||
b5dee4ea TT |
90 | 2011-04-28 Tom Tromey <tromey@redhat.com> |
91 | ||
92 | * bfdio.c (memory_bstat): Pass correct size to memset. | |
93 | ||
e4c93b56 MF |
94 | 2011-04-28 Mike Frysinger <vapier@gentoo.org> |
95 | ||
96 | * dwarf2.c (dwarf_debug_sections): Mark const. | |
97 | * elf.c (special_sections): Likewise. | |
98 | * libbfd-in.h (dwarf_debug_sections): Likewise. | |
99 | * libbfd.h: Regenerate. | |
100 | ||
72b016b4 NC |
101 | 2011-04-26 Kai Tietz <ktietz@redhat.com> |
102 | ||
103 | * coffcode.h (sec_to_styp_flags): Allow linkonce for | |
104 | debugging sections. | |
105 | ||
4964e065 TG |
106 | 2011-04-26 Tristan Gingold <gingold@adacore.com> |
107 | ||
108 | * coff64-rs6000.c: Convert to ISO-C. Remove PARAMS and PTR macros. | |
109 | ||
35ed3f94 AM |
110 | 2011-04-24 Alan Modra <amodra@gmail.com> |
111 | ||
112 | PR ld/12365 | |
113 | PR ld/12696 | |
114 | * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call. | |
115 | * linker.c (_bfd_link_hash_newfunc): Clear bitfields. | |
116 | (_bfd_generic_link_add_one_symbol): Update "notice" call. | |
117 | * elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when | |
118 | it is a redef of an IR symbol in a real BFD. | |
119 | ||
b70321a2 L |
120 | 2011-04-22 H.J. Lu <hongjiu.lu@intel.com> |
121 | ||
122 | * elf32-i386.c (elf_i386_readonly_dynrelocs): Warn relocation | |
123 | in readonly section in a shared object. | |
124 | (elf_i386_size_dynamic_sections): Likewise. | |
125 | * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise. | |
126 | (elf_x86_64_size_dynamic_sections): Likewise. | |
127 | ||
aa715242 L |
128 | 2011-04-21 H.J. Lu <hongjiu.lu@intel.com> |
129 | ||
130 | PR ld/12694 | |
131 | * elf32-i386.c (elf_i386_readonly_dynrelocs): Skip local IFUNC | |
132 | symbols. | |
133 | * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise. | |
134 | ||
f6df62c8 L |
135 | 2011-04-21 H.J. Lu <hongjiu.lu@intel.com> |
136 | ||
137 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Return false | |
138 | on dynamic symbol error. | |
139 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
140 | ||
4bbd5a24 TG |
141 | 2011-04-20 Tristan Gingold <gingold@adacore.com> |
142 | ||
143 | * config.bfd (alpha*-*-*vms*, ia64*-*-*vms*): Define targ_selvecs. | |
144 | ||
8ad17b3a AM |
145 | 2011-04-20 Alan Modra <amodra@gmail.com> |
146 | ||
147 | * hash.c (bfd_default_hash_table_size): Make it an unsigned long. | |
148 | (bfd_hash_table_init_n): Overflow checking. | |
149 | (bfd_hash_set_default_size): Return current size. Take unsigned long | |
150 | arg. Add 65537 to hash_size primes. | |
151 | * bfd-in.h (bfd_hash_set_default_size): Update prototype. | |
152 | * bfd-in2.h: Regenerate. | |
153 | ||
1b0df531 JK |
154 | 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com> |
155 | ||
156 | * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of | |
157 | memmove elements. | |
158 | ||
595213d4 AM |
159 | 2011-04-20 Alan Modra <amodra@gmail.com> |
160 | ||
9e6619e2 AM |
161 | * libbfd.c (bfd_log2): Do return rounded up value. |
162 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Replace bfd_log2 | |
163 | call with expanded old round down version of the function. | |
164 | ||
595213d4 AM |
165 | * archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd. |
166 | * elflink.c (elf_link_add_object_symbols): Delete redundant code. | |
167 | ||
02d00247 AM |
168 | 2011-04-20 Alan Modra <amodra@gmail.com> |
169 | ||
170 | PR ld/12365 | |
171 | * elfcode.h (elf_slurp_symbol_table): Put common plugin IR symbols | |
172 | in their own common section. | |
173 | * elflink.c (elf_link_add_object_symbols): Likewise. | |
174 | * linker.c (generic_link_check_archive_element): Don't lose flags | |
175 | if common section is pre-existing. | |
176 | (_bfd_generic_link_add_one_symbol): Likewise. | |
177 | ||
24f58f47 AM |
178 | 2011-04-20 Alan Modra <amodra@gmail.com> |
179 | ||
180 | PR ld/12365 | |
181 | * elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls. | |
182 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call | |
183 | multiple_definition regardless of allow_multiple_definition. | |
184 | * simple.c (simple_dummy_multiple_definition): Update. | |
185 | * xcofflink.c (xcoff_link_add_symbols): Update multiple_definition | |
186 | calls. | |
187 | ||
417236c0 TG |
188 | 2011-04-18 Tristan Gingold <gingold@adacore.com> |
189 | ||
190 | * coff-rs6000.c: Convert to ISO-C. Remove PARAMS macro. | |
191 | ||
901f1d17 AM |
192 | 2011-04-18 Alan Modra <amodra@gmail.com> |
193 | ||
194 | PR ld/12365 | |
195 | PR ld/12672 | |
196 | * bfd.c (BFD_PLUGIN): Define. | |
197 | (BFD_FLAGS_SAVED, BFD_FLAGS_FOR_BFD_USE_MASK): Add BFD_PLUGIN. | |
198 | * bfd-in2.h: Regenerate. | |
199 | * elflink.c (elf_link_output_extsym): Strip undefined plugin syms. | |
200 | * opncls.c (bfd_make_readable): Don't lose original bfd flags. | |
201 | ||
63524580 JK |
202 | 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
203 | ||
204 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for | |
205 | SEC_LOAD. | |
206 | ||
e21e5835 NC |
207 | 2011-04-15 Sergio Durigan Junior <sergiodj@redhat.com> |
208 | ||
209 | * elf-bfd.h (struct sdt_note): New struct. | |
210 | (struct elf_obj_tdata) <sdt_note_head>: New field. | |
211 | * elf.c (elfobj_grok_stapsdt_note_1): New function. | |
212 | (elfobj_grok_stapsdt_note): Likewise. | |
213 | (elf_parse_notes): Added code to treat SystemTap note | |
214 | sections. | |
215 | ||
6452a567 RH |
216 | 2011-04-12 Richard Henderson <rth@redhat.com> |
217 | ||
218 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not | |
219 | exclude empty .got sections. | |
220 | ||
2a750708 L |
221 | 2011-04-11 H.J. Lu <hongjiu.lu@intel.com> |
222 | ||
223 | * elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound | |
224 | array access for BFD_RELOC_386_IRELATIVE. | |
225 | ||
2123f9ad BS |
226 | 2011-04-11 Bernd Schmidt <bernds@codesourcery.com> |
227 | ||
228 | * elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field. | |
229 | ||
f64b2e8d NC |
230 | 2011-04-11 Mark Wielaard <mjw@redhat.com> |
231 | ||
232 | PR 10549 | |
233 | * elf-bfd.h (has_ifunc_symbols): Renamed to has_gnu_symbols. | |
234 | (has_gnu_symbols): Renamed from has_ifunc_symbols. | |
235 | * elf.c (_bfd_elf_set_osabi): Use new has_gnu_symbols name. | |
236 | * elf32-arm.c (elf32_arm_add_symbol_hook): Set has_gnu_symbols | |
237 | also if STB_GNU_UNIQUE symbol binding was seen. | |
238 | * elf32-i386.c (elf_i386_add_symbol_hook): Likewise. | |
239 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. | |
240 | * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise. | |
241 | * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise. | |
242 | * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise. | |
243 | * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise. | |
244 | ||
e57278ef AM |
245 | 2011-04-11 Alan Modra <amodra@gmail.com> |
246 | ||
247 | * bfd-in.h (bfd_get_section_limit): Don't use rawsize with output | |
248 | sections. | |
249 | * libbfd.c (_bfd_generic_get_section_contents): Likewise. | |
250 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
251 | * section.c (bfd_get_section_contents): Likewise. | |
252 | * compress.c (bfd_get_full_section_contents): Likewise. | |
253 | * elf32-rx.c (rx_final_link): Ignore rawsize. | |
254 | * elf32-microblaze.c (microblaze_elf_relocate_section): Use correct | |
255 | bfd with bfd_get_section_limit. | |
256 | * elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use | |
257 | os->size during final link. Update callers. | |
258 | * bfd-in2.h: Regenerate. | |
259 | ||
e2ece73c RS |
260 | 2011-04-10 Richard Sandiford <rdsandiford@googlemail.com> |
261 | ||
262 | PR ld/12637 | |
263 | * elfxx-mips.c (mips_elf_merge_got_with): Use arg->global_count | |
264 | as the number of global entries when merging with the primary GOT. | |
265 | ||
9f973f28 L |
266 | 2011-04-09 H.J. Lu <hongjiu.lu@intel.com> |
267 | ||
268 | * elf32-i386.c: Update copyright year. | |
269 | * elf64-x86-64.c: Likewise. | |
270 | ||
21e68916 KT |
271 | 2011-04-09 Kai Tietz <ktietz@redhat.com> |
272 | ||
273 | * peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary | |
274 | buffer and use rawsize for sorting. | |
275 | * coffcode.h (coff_compute_section_file_positions): Set rawsize | |
276 | before doing alignment. | |
277 | ||
62d78908 L |
278 | 2011-04-09 H.J. Lu <hongjiu.lu@intel.com> |
279 | ||
280 | * elf32-i386.c (elf_i386_relocate_section): Return relocation | |
281 | error on unsupported relocation. | |
282 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
283 | ||
2351cae0 L |
284 | 2011-04-09 H.J. Lu <hongjiu.lu@intel.com> |
285 | ||
286 | PR binutils/12657 | |
287 | * hosts/x86-64linux.h (elf_prstatus32): Replace __pid_t with | |
288 | pid_t. | |
289 | ||
959b0961 L |
290 | 2011-04-08 H.J. Lu <hongjiu.lu@intel.com> |
291 | ||
292 | PR ld/12654 | |
293 | * elf32-i386.c (elf_i386_relocate_section): Check !executable | |
294 | instead of shared for R_386_TLS_LDO_32. | |
295 | ||
33b54431 TG |
296 | 2011-04-08 Tristan Gingold <gingold@adacore.com> |
297 | ||
298 | * Makefile.am (SOURCE_HFILES): Remove xcoff-target.h | |
299 | * coff-pmac: Remove | |
300 | * xcoff-target.h: Remove | |
301 | * Makefile.in: Regenerate. | |
302 | ||
5d8e6b4d CC |
303 | 2011-04-07 Cary Coutant <ccoutant@google.com> |
304 | ||
305 | * dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification. | |
306 | ||
44e87ece | 307 | 2011-04-07 Paul Brook <paul@codesourcery.com> |
33b54431 | 308 | |
44e87ece PB |
309 | * elf32-tic6x.c (elf32_tic6x_howto_table): R_C6000_PREL31 is |
310 | pc-relative. | |
311 | (elf32_tic6x_howto_table_rel): Ditto. | |
312 | (elf32_tic6x_relocate_section): Implement R_C6000_PREL31. | |
313 | (elf32_tic6x_check_relocs): Ditto. | |
314 | ||
8c5fc800 JM |
315 | 2011-04-06 Joseph Myers <joseph@codesourcery.com> |
316 | ||
317 | * config.bfd (thumb-*-oabi): Don't handle in list of obsolete | |
318 | targets. | |
319 | (strongarm*, thumb*, xscale*): Remove architectures. | |
320 | (strongarm-*-kaos*, thumb-*-coff, thumb-*-elf, thumb-epoc-pe*, | |
321 | thumb-*-pe*, strongarm-*-elf, strongarm-*-coff, xscale-*-elf, | |
322 | xscale-*-coff): Remove targets. | |
323 | ||
6f8027ae TG |
324 | 2011-04-01 Tristan Gingold <gingold@adacore.com> |
325 | ||
326 | * elfxx-ia64.c: include bfd_stdint.h | |
327 | ||
c89ce65c JK |
328 | 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com> |
329 | ||
330 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable | |
331 | dynobj and its initialization. | |
332 | ||
545f57c6 TG |
333 | 2011-03-31 Tristan Gingold <gingold@adacore.com> |
334 | ||
335 | * makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec. | |
336 | * configure.com: Set BFD_HOST_64BIT_LONG_LONG and | |
337 | BFD_HOST_LONG_LONG to 1. | |
338 | ||
083faca9 TG |
339 | 2011-03-31 Tristan Gingold <gingold@adacore.com> |
340 | ||
341 | * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning. | |
342 | (_bfd_vms_write_etir): Ditto. | |
343 | (_bfd_vms_slurp_etir): Avoid to use intptr_t | |
344 | * configure.com: Generate bfd_stdint.h | |
345 | ||
ac145307 BS |
346 | 2011-03-31 Bernd Schmidt <bernds@codesourcery.com> |
347 | ||
348 | * elf32-tic6x.h (struct elf32_tic6x_params): New. | |
349 | (elf32_tic6x_setup): Declare. | |
350 | * elf32-tic6x.c: Include <limits.h>. | |
351 | (ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define. | |
352 | (struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry): | |
353 | New structures. | |
354 | (elf32_tic6x_link_hash_table, is_tic6x_elf): New macros. | |
355 | (tic6x_elf_scom_section, tic6x_elf_scom_symbol, | |
356 | tic6x_elf_scom_symbol_ptr): New static variables. | |
357 | (elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel, | |
358 | elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE, | |
359 | R_C6000_PCR_H16 and R_C6000_PCR_L16. | |
360 | (elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create, | |
361 | elf32_tic6x_link_hash_table_free, elf32_tic6x_setup, | |
362 | elf32_tic6x_using_dsbt, elf32_tic6x_install_rela, | |
363 | elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc, | |
364 | elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook, | |
365 | elf32_tic6x_adjust_dynamic_symbol): New static functions. | |
366 | (elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches | |
367 | to weak symbols as required by the ABI. | |
368 | Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file | |
369 | as needed when generating DSBT output. | |
370 | (elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook, | |
371 | elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section, | |
372 | elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections, | |
373 | elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers, | |
374 | elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val, | |
375 | elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym): | |
376 | New static functions. | |
377 | (ELF_MAXPAGESIZE): Define to 0x1000. | |
378 | (bfd_elf32_bfd_copy_private_bfd_data, | |
379 | bfd_elf32_bfd_link_hash_table_create, | |
380 | bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount, | |
381 | elf_backend_want_got_plt, elf_backend_want_dynbss, | |
382 | elf_backend_plt_readonly, elf_backend_got_header_size, | |
383 | elf_backend_gc_sweep_hook, elf_backend_modify_program_headers, | |
384 | elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol, | |
385 | elf_backend_check_relocs, elf_backend_add_symbol_hook, | |
386 | elf_backend_symbol_processing, elf_backend_link_output_symbol_hook, | |
387 | elf_backend_section_from_bfd_section, | |
388 | elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections, | |
389 | elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections, | |
390 | elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define. | |
391 | ||
392 | * bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE, | |
393 | BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add. | |
394 | * bfd/bfd-in2.h: Regenerate. | |
395 | * bfd/libbfd.h: Regenerate. | |
396 | * config.bfd: Accept tic6x-*-* instead of tic6x-*-elf. | |
397 | ||
53dd76d3 TG |
398 | 2011-03-31 Tristan Gingold <gingold@adacore.com> |
399 | ||
400 | * coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL | |
401 | entry on xcoff when value is C_NULL_VALUE. | |
402 | ||
403 | 2011-03-31 Tristan Gingold <gingold@adacore.com> | |
2040caca TG |
404 | |
405 | * libcoff-in.h (exec_hdr): Remove. | |
406 | * libcoff.h: Regenerate. | |
407 | ||
3a294fa7 NC |
408 | 2011-03-30 Nick Clifton <nickc@redhat.com> |
409 | ||
410 | * po/da.po: Updated Danish translation. | |
411 | ||
e117360e RH |
412 | 2011-03-29 Richard Henderson <rth@redhat.com> |
413 | ||
414 | * elf64-alpha.c (elf64_alpha_gc_mark_hook): New. | |
415 | (elf64_alpha_gc_sweep_hook): New. | |
416 | (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): New. | |
417 | (elf_backend_can_gc_sections): New. | |
418 | ||
5b806d27 NC |
419 | 2011-03-26 John Marino <binutils@marino.st> |
420 | ||
421 | * config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*. | |
422 | * configure.in: Delete unused bfd_elf32_i386_dragonfly_vec. | |
423 | * configure: Regenerate. | |
424 | ||
b42adabf NC |
425 | 2011-03-25 Michael Snyder <msnyder@vmware.com> |
426 | ||
427 | * coffcode.h (coff_set_alignment_hook): Check return of bfd_seek. | |
428 | ||
a283ff93 TG |
429 | 2011-03-25 Tristan Gingold <gingold@adacore.com> |
430 | ||
431 | * vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use | |
432 | of find_nearest_line on object files. | |
433 | ||
cf6b8767 TG |
434 | 2011-03-25 Tristan Gingold <gingold@adacore.com> |
435 | ||
436 | * vms-alpha.c (evax_section_flags): Make $CODE$ section read-only. | |
437 | Minor reordering. | |
438 | (alpha_vms_create_eisd_for_section): Make code sections read-only. | |
439 | ||
663a1470 AM |
440 | 2011-03-24 Alan Modra <amodra@gmail.com> |
441 | ||
442 | * elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where | |
443 | old-style __tls_get_addr calls without marker relocs don't match | |
444 | their arg setup insn one for one. If such mismatches are found | |
445 | report the reloc and don't do any tls optimization. | |
446 | * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise. | |
447 | ||
dc80f6ae EW |
448 | 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com> |
449 | ||
450 | * bfd-in2.h: Regenerate. | |
451 | ||
8cc66334 EW |
452 | 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com> |
453 | ||
454 | * archures.c: Add AVR XMEGA architecture information. | |
455 | * cpu-avr.c (arch_info_struct): Likewise. | |
456 | * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise. | |
457 | (elf32_avr_object_p): Likewise. | |
458 | ||
34e77a92 RS |
459 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
460 | ||
461 | * reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation. | |
462 | * bfd-in2.h: Regenerate. | |
463 | * elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition | |
464 | to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE | |
465 | entry. | |
466 | (elf32_arm_howto_from_type): Update accordingly. | |
467 | (elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE. | |
468 | (elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3. | |
469 | (arm_plt_info): New structure, split out from elf32_arm_link_hash_entry | |
470 | with an extra noncall_refcount field. | |
471 | (arm_local_iplt_info): New structure. | |
472 | (elf_arm_obj_tdata): Add local_iplt. | |
473 | (elf32_arm_local_iplt): New accessor macro. | |
474 | (elf32_arm_link_hash_entry): Replace plt_thumb_refcount, | |
475 | plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info. | |
476 | Change tls_type to a bitfield and add is_iplt. | |
477 | (elf32_arm_link_hash_newfunc): Update accordingly. | |
478 | (elf32_arm_allocate_local_sym_info): New function. | |
479 | (elf32_arm_create_local_iplt): Likewise. | |
480 | (elf32_arm_get_plt_info): Likewise. | |
481 | (elf32_arm_plt_needs_thumb_stub_p): Likewise. | |
482 | (elf32_arm_get_local_dynreloc_list): Likewise. | |
483 | (create_ifunc_sections): Likewise. | |
484 | (elf32_arm_copy_indirect_symbol): Update after the changes to | |
485 | elf32_arm_link_hash_entry. Assert the is_iplt has not yet been set. | |
486 | (arm_type_of_stub): Add an st_type argument. Use elf32_arm_get_plt_info | |
487 | to get PLT information. Assert that all STT_GNU_IFUNC references | |
488 | are turned into PLT references. | |
489 | (arm_build_one_stub): Pass the symbol type to | |
490 | elf32_arm_final_link_relocate. | |
491 | (elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub. | |
492 | (elf32_arm_allocate_irelocs): New function. | |
493 | (elf32_arm_add_dynreloc): In static objects, use .rel.iplt for | |
494 | all R_ARM_IRELATIVE. | |
495 | (elf32_arm_allocate_plt_entry): New function. | |
496 | (elf32_arm_populate_plt_entry): Likewise. | |
497 | (elf32_arm_final_link_relocate): Add an st_type parameter. | |
498 | Set srelgot to null for static objects. Use separate variables | |
499 | to record which st_value and st_type should be used when generating | |
500 | a dynamic relocation. Use elf32_arm_get_plt_info to find the | |
501 | symbol's PLT information, setting has_iplt_entry, splt, | |
502 | plt_offset and gotplt_offset accordingly. Check whether | |
503 | STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change | |
504 | the relocation target accordingly. Broaden assert to include | |
505 | .iplts. Don't set sreloc for static relocations. Assert that | |
506 | we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32 | |
507 | and R_ARM_ABS32_NOI. Generate R_ARM_IRELATIVE relocations instead | |
508 | of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC | |
509 | symbol. Pass the symbol type to arm_type_of_stub. Conditionally | |
510 | resolve GOT references to the .igot.plt entry. | |
511 | (elf32_arm_relocate_section): Update the call to | |
512 | elf32_arm_final_link_relocate. | |
513 | (elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT | |
514 | information. Treat R_ARM_REL32 and R_ARM_REL32_NOI as call | |
515 | relocations in shared libraries and relocatable executables. | |
516 | Count non-call PLT references. Use elf32_arm_get_local_dynreloc_list | |
517 | to get the list of dynamic relocations for a local symbol. | |
518 | (elf32_arm_check_relocs): Always create ifunc sections. Set isym | |
519 | at the same time as setting h. Use elf32_arm_allocate_local_sym_info | |
520 | to allocate local symbol information. Treat R_ARM_REL32 and | |
521 | R_ARM_REL32_NOI as call relocations in shared libraries and | |
522 | relocatable executables. Record PLT information for local | |
523 | STT_GNU_IFUNC functions as well as global functions. Count | |
524 | non-call PLT references. Use elf32_arm_get_local_dynreloc_list | |
525 | to get the list of dynamic relocations for a local symbol. | |
526 | (elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols. | |
527 | Don't remove STT_GNU_IFUNC PLTs unless all references have been | |
528 | removed. Update after the changes to elf32_arm_link_hash_entry. | |
529 | (allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT | |
530 | entries should live in .plt or .iplt. Check whether the .igot.plt | |
531 | and .got entries can be combined. Use elf32_arm_allocate_plt_entry | |
532 | to allocate .plt and .(i)got.plt entries. Detect which .got | |
533 | entries will need R_ARM_IRELATIVE relocations and use | |
534 | elf32_arm_allocate_irelocs to allocate them. Likewise other | |
535 | non-.got dynamic relocations. | |
536 | (elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt | |
537 | and dynamic relocations for local STT_GNU_IFUNC symbols. | |
538 | Check whether the .igot.plt and .got entries can be combined. | |
539 | Detect which .got entries will need R_ARM_IRELATIVE relocations | |
540 | and use elf32_arm_allocate_irelocs to allocate them. Use stashed | |
541 | section pointers intead of strcmp checks. Handle iplt and igotplt. | |
542 | (elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry | |
543 | to fill in .plt, .got.plt and .rel(a).plt entries. Point | |
544 | STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations | |
545 | resolve to it. | |
546 | (elf32_arm_output_plt_map_1): New function, split out from | |
547 | elf32_arm_output_plt_map. Handle .iplt entries. Use | |
548 | elf32_arm_plt_needs_thumb_stub_p. | |
549 | (elf32_arm_output_plt_map): Call it. | |
550 | (elf32_arm_output_arch_local_syms): Add mapping symbols for | |
551 | local .iplt entries. | |
552 | (elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols. | |
553 | (elf32_arm_swap_symbol_out): Likewise. | |
554 | (elf32_arm_add_symbol_hook): New function. | |
555 | (elf_backend_add_symbol_hook): Define for all targets. | |
556 | ||
35fc36a8 RS |
557 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
558 | ||
559 | * elf-bfd.h (elf_link_hash_entry): Add target_internal. | |
560 | * elf.c (swap_out_syms): Set st_target_internal for each | |
561 | Elf_Internal_Sym. | |
562 | * elfcode.h (elf_swap_symbol_in): Likewise. | |
563 | * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise. | |
564 | * elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise. | |
565 | * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise. | |
566 | * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
567 | * elflink.c (elf_link_output_extsym): Likewise. | |
568 | (bfd_elf_final_link): Likewise. | |
569 | (elf_link_add_object_symbols): Copy st_target_internal | |
570 | to the hash table if we see a definition. | |
571 | (_bfd_elf_copy_link_hash_symbol_type): Copy target_internal. | |
572 | * elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with | |
573 | a branch_type field. | |
574 | (a8_erratum_fix, a8_erratum_reloc): Likewise. | |
575 | (arm_type_of_stub): Replace actual_st_type with an | |
576 | actual_branch_type parameter. | |
577 | (arm_build_one_stub): Use branch types rather than st_types to | |
578 | determine the type of branch. | |
579 | (cortex_a8_erratum_scan): Likewise. | |
580 | (elf32_arm_size_stubs): Likewise. | |
581 | (bfd_elf32_arm_process_before_allocation): Likewise. | |
582 | (allocate_dynrelocs_for_symbol): Likewise. | |
583 | (elf32_arm_finish_dynamic_sections): Likewise. | |
584 | (elf32_arm_final_link_relocate): Replace sym_flags parameter with | |
585 | a branch_type parameter. | |
586 | (elf32_arm_relocate_section): Update call accordingly. | |
587 | (elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC. | |
588 | (elf32_arm_output_map_sym): Initialize st_target_internal. | |
589 | (elf32_arm_output_stub_sym): Likewise. | |
590 | (elf32_arm_symbol_processing): Delete. | |
591 | (elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs. | |
592 | Use st_target_internal to record the branch type. | |
593 | (elf32_arm_swap_symbol_out): Use st_target_internal to test for | |
594 | Thumb functions. | |
595 | (elf32_arm_is_function_type): Delete. | |
596 | (elf_backend_symbol_processing): Likewise. | |
597 | (elf_backend_is_function_type): Likewise. | |
598 | ||
cbc704f3 RS |
599 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
600 | ||
601 | * elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj. | |
602 | (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion | |
603 | into the PLT block. | |
604 | ||
f6e32f6d RS |
605 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
606 | ||
607 | * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p, | |
608 | may_need_local_target_p and may_become_dynamic_p to classify | |
609 | the relocation type. Don't check info->symbolic or h->def_regular | |
610 | when deciding whether to record a potential dynamic reloc. | |
611 | Don't treat potential dynamic relocs as PLT references. | |
612 | (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't | |
613 | try to make the PLT reference count go negative. | |
614 | ||
b436d854 RS |
615 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
616 | ||
617 | * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the | |
618 | GOT entry here, rather than leaving it to finish_dynamic_symbol. | |
619 | Only create a dynamic relocation for local references if | |
620 | info->shared. | |
621 | (allocate_dynrelocs_for_symbol): Update dynamic relocation | |
622 | allocation accordingly. | |
623 | (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here. | |
624 | ||
47beaa6a RS |
625 | 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org> |
626 | ||
627 | * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function. | |
628 | (elf32_arm_add_dynreloc): Likewise. | |
629 | (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs | |
630 | to allocate dynamic relocations. | |
631 | (elf32_arm_size_dynamic_sections): Likewise. | |
632 | (allocate_dynrelocs): Likewise. Rename to | |
633 | allocate_dynrelocs_for_symbol. | |
634 | (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to | |
635 | create dynamic relocations. | |
636 | (elf32_arm_finish_dynamic_symbol): Likewise. | |
637 | ||
52bc799a L |
638 | 2011-03-12 H.J. Lu <hongjiu.lu@intel.com> |
639 | ||
640 | * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS | |
641 | x32 GD->IE and GD->LE transitions. | |
642 | (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE | |
643 | and LD->LE transitions. | |
644 | ||
e11840f9 AM |
645 | 2011-03-10 Alan Modra <amodra@gmail.com> |
646 | ||
647 | * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset | |
648 | for LO_DS error message and correct multiple. | |
649 | ||
aa374f67 AM |
650 | 2011-03-10 Alan Modra <amodra@gmail.com> |
651 | ||
652 | * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define. | |
653 | (ppc64_elf_link_just_syms): New function. | |
654 | (opd_entry_value): Don't assume big-endian host. | |
655 | (get_r2off): New function. | |
656 | (ppc_build_one_stub, ppc_size_one_stub): Use it here. | |
657 | ||
d59a60e9 MS |
658 | 2011-03-06 Michael Snyder <msnyder@vmware.com> |
659 | ||
4281caad MS |
660 | * compress.c (bfd_compress_section_contents): Check for out of mem. |
661 | ||
17672001 MS |
662 | * elf64-x86-64.c (elf_x86_64_relocate_section): Document |
663 | that case statement falls through intentionally. | |
664 | ||
d59a60e9 MS |
665 | * elf32-i386.c (elf_i386_relocate_section): Document fall through. |
666 | ||
0e29e6e8 AM |
667 | 2011-03-04 Alan Modra <amodra@gmail.com> |
668 | ||
669 | * archive.c (bsd_write_armap): Don't call stat in deterministic | |
670 | mode, and don't use st_mtime if stat returns error. | |
671 | ||
eb00922a MS |
672 | 2011-03-03 Michael Snyder <msnyder@vmware.com> |
673 | ||
08c13595 MS |
674 | * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code. |
675 | ||
d543c50d MS |
676 | * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error. |
677 | ||
c38eb2a6 MS |
678 | * aoutx.h (aout_final_link): Use sizeof int not sizeof int*. |
679 | (aout_link_write_other_symbol): Missing break statement. | |
680 | ||
8ecc1f20 MS |
681 | * dwarf2.c (scan_unit_for_symbols): Stop memory leak. |
682 | ||
eb00922a MS |
683 | * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails. |
684 | ||
4a4c5f25 L |
685 | 2011-03-03 H.J. Lu <hongjiu.lu@intel.com> |
686 | ||
687 | * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS | |
688 | x32 IE->LE transition. | |
689 | (elf_x86_64_relocate_section): Likewise. | |
690 | ||
ddcf1fcf BS |
691 | 2011-03-02 Bernd Schmidt <bernds@codesourcery.com> |
692 | ||
aa374f67 AM |
693 | * elflink.c (is_reloc_section): Remove function. |
694 | (get_dynamic_reloc_section_name): Construct string manually. | |
ddcf1fcf | 695 | |
007d6189 KT |
696 | 2011-02-28 Kai Tietz <kai.tietz@onevision.com> |
697 | ||
698 | * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp. | |
699 | (adjust_relative_path): Likewise. | |
700 | (_bfd_construct_extended_name_table): Likewise. | |
701 | * corefile.c (generic_core_file_matches_executable_p): Likewise. | |
702 | * elf32-bfin.c (bfinfdpic_relocate_section): Likewise. | |
703 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. | |
704 | * elf32-spu.c (sort_bfds): Likewise. | |
705 | (spu_elf_auto_overlay): Likewise. | |
706 | * syms.c (_bfd_stab_section_find_nearest_line): Likewise. | |
707 | * xcofflink.c (xcoff_set_import_path): Likewise. | |
708 | * xtensa-isa.c (xtensa_regfile_lookup): Likewise. | |
709 | (xtensa_regfile_lookup_shortname): Likewise. | |
710 | ||
8616ad89 AM |
711 | 2011-02-28 Alan Modra <amodra@gmail.com> |
712 | ||
713 | PR 12513 | |
714 | * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and | |
715 | stringsize. Properly sanity check symdef_count. Remove redundant | |
716 | bfd_release. | |
717 | ||
80549d04 RÁE |
718 | 2011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com> |
719 | ||
720 | * plugin.c (bfd_plugin_object_p): Correctly set the filesize | |
721 | and handle claim_file seeking. Only try to load the plugin once. | |
722 | ||
93b3ac75 AS |
723 | 2011-02-22 Andreas Schwab <schwab@redhat.com> |
724 | ||
725 | * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD | |
726 | relocation read the value from the second GOT slot. | |
727 | ||
6fa052f0 TG |
728 | 2011-02-15 Tristan Gingold <gingold@adacore.com> |
729 | ||
730 | * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment. | |
731 | ||
28be611c AM |
732 | 2011-02-15 Alan Modra <amodra@gmail.com> |
733 | ||
734 | * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of | |
735 | toc relocs. Fuss over free(NULL). | |
736 | ||
93252b1c MF |
737 | 2011-02-14 Mike Frysinger <vapier@gentoo.org> |
738 | ||
739 | * elflink.c (bfd_elf_size_dynamic_sections): Add | |
740 | bfd_get_symbol_leading_char to the start of newname. | |
741 | ||
822ce8ee RW |
742 | 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
743 | ||
744 | * configure: Regenerate. | |
745 | ||
425b145b AM |
746 | 2011-02-09 Alan Modra <amodra@gmail.com> |
747 | ||
748 | * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until | |
749 | we are done. When optimising large toc, check that a global | |
750 | symbol on a toc reloc is defined in a kept section. | |
751 | ||
82f2dbf7 NC |
752 | 2011-02-08 Nick Clifton <nickc@redhat.com> |
753 | ||
754 | PR binutils/12467 | |
755 | * elf.c (assign_file_positions_for_load_sections): Set the program | |
756 | header offset and entry size to zero if there are no program | |
757 | headers. | |
758 | ||
df22d223 AM |
759 | 2011-02-08 Alan Modra <amodra@gmail.com> |
760 | ||
761 | * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL | |
762 | local_syms when looking for local symbols in .toc. | |
763 | ||
6683a28d AM |
764 | 2011-02-01 Alan Modra <amodra@gmail.com> |
765 | ||
766 | * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value | |
767 | for toc pointer on any section having makes_toc_func_call set. | |
768 | (check_pasted_section): Ensure pasted .init/.fini fragments use | |
769 | the same toc if any has makes_toc_func_call set. | |
770 | ||
5240d94d JM |
771 | 2011-01-28 Joseph Myers <joseph@codesourcery.com> |
772 | ||
773 | * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs | |
774 | field. | |
775 | ||
ed88c97e RS |
776 | 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com> |
777 | ||
778 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore | |
779 | common sections too. | |
780 | ||
1a0c107f L |
781 | 2011-01-18 H.J. Lu <hongjiu.lu@intel.com> |
782 | ||
04449d86 L |
783 | * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after |
784 | Solaris target. | |
1a0c107f | 785 | |
d68cd58c NC |
786 | 2011-01-18 Pierre Muller <muller@ics.u-strasbg.fr> |
787 | ||
788 | Fix compilation for mingw64. | |
789 | * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate | |
790 | typecast to avoid warning. | |
791 | * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type | |
792 | usage. | |
793 | * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead | |
794 | of long for pointer to avoid warning. | |
795 | (elfNN_ia64_relax_brl): Idem. | |
796 | (elfNN_ia64_install_value): Idem. | |
797 | * vms-alpha.c (_bfd_vms_slurp_etir): Idem. | |
798 | ||
da17376b RS |
799 | 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org> |
800 | ||
801 | * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than | |
802 | h->needs_plt when deciding whether to record a possible dynamic reloc. | |
803 | ||
1e81e12b RS |
804 | 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org> |
805 | ||
806 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered | |
807 | dynamic relocs for the removed section. | |
808 | ||
d1534d16 L |
809 | 2011-01-15 H.J. Lu <hongjiu.lu@intel.com> |
810 | ||
811 | * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32 | |
812 | relocations. | |
813 | ||
248775ba L |
814 | 2011-01-14 H.J. Lu <hongjiu.lu@intel.com> |
815 | ||
816 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type. | |
817 | (elf_x86_64_link_hash_table_create): Set pointer_r_type. | |
818 | (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64 | |
819 | for ILP32. Remove ABI_64_P PIC check for R_X86_64_8, | |
820 | R_X86_64_16, R_X86_64_32 and R_X86_64_32S. | |
821 | (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64 | |
822 | for ILP32. | |
823 | ||
4a97a0e5 AM |
824 | 2011-01-14 Alan Modra <amodra@gmail.com> |
825 | ||
826 | * bfd.c (bfd_perror): Flush stdout before and stderr after printing | |
827 | error. | |
828 | (_bfd_default_error_handler): Likewise. | |
829 | * elf.c (print_segment_map): Likewise. | |
830 | * libbfd.c (warn_deprecated): Likewise. | |
831 | * som.c (som_sizeof_headers): No need to do so here. | |
832 | * coff-i860.c: Replace use of printf for error messages with | |
833 | _bfd_error_handler. | |
834 | * coff-ppc.c: Likewise. | |
835 | * coff-sh.c: Likewise. | |
836 | * elf32-bfin.c: Likewise. | |
837 | * elf32-dlx.c: Likewise. | |
838 | * elf32-mep.c: Likewise. | |
839 | * elf32-v850.c: Likewise. | |
840 | * mach-o.c: Likewise. | |
841 | * pef.c: Likewise. | |
842 | ||
82e96e07 L |
843 | 2011-01-13 H.J. Lu <hongjiu.lu@intel.com> |
844 | ||
845 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove | |
846 | swap_reloca_out. | |
847 | (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out. | |
848 | (elf_x86_64_check_relocs): Align relocation section to 4 byte | |
849 | for 32bit. | |
850 | (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with | |
851 | ELF_ST_TYPE. | |
852 | (elf_x86_64_finish_dynamic_symbol): Updated. | |
853 | (elf_x86_64_finish_dynamic_sections): Don't use | |
854 | Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor | |
855 | bfd_elf64_swap_dyn_out. | |
856 | ||
e6a6bb22 AM |
857 | 2011-01-14 J. Park <grassman@gmail.com> |
858 | ||
859 | PR ld/12339 | |
860 | * elf32-arm.c (allocate_dynrelocs): Don't set up eh before | |
861 | following bfd_link_hash_warning symbol link. | |
862 | ||
0855e32b NS |
863 | 2011-01-10 Nathan Sidwell <nathan@codesourcery.com> |
864 | Glauber de Oliveira Costa <glommer@gmail.com> | |
865 | ||
866 | * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL, | |
867 | BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ, | |
868 | BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New | |
869 | relocations. | |
870 | * libbfd.h: Rebuilt. | |
871 | * bfd-in2.h: Rebuilt. | |
872 | * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations. | |
873 | (elf32_arm_reloc_map): Likewise. | |
874 | (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates. | |
875 | (elf32_arm_stub_long_branch_any_tls_pic, | |
876 | elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates. | |
877 | (DEF_STUBS): Add new stubs. | |
878 | (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field. | |
879 | (elf32_arm_local_tlsdesc_gotent): New. | |
880 | (GOT_TLS_GDESC): New mask. | |
881 | (GOT_TLS_GD_ANY): Define. | |
882 | (struct elf32_arm_link_hash_entry): Add tlsdesc_got field. | |
883 | (elf32_arm_compute_jump_table_size): New. | |
884 | (struct elf32_arm_link_hash_table): Add next_tls_desc_index, | |
885 | num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline, | |
886 | sgotplt_jump_table_size fields. | |
887 | (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field. | |
888 | (elf32_arm_link_hash_table_create): Initialize new fields. | |
889 | (arm_type_of_stub): Check TLS desc relocs too. | |
890 | (elf32_arm_stub_name): TLS desc relocs can be shared. | |
891 | (elf32_arm_tls_transition): Determine relaxation. | |
892 | (arm_stub_required_alignment): Add tls stubs. | |
893 | (elf32_arm_size_stubs): Likewise. | |
894 | (elf32_arm_tls_relax): Perform TLS relaxing. | |
895 | (elf32_arm_final_link_relocate): Process TLS DESC relocations. | |
896 | (IS_ARM_TLS_GNU_RELOC): New. | |
897 | (IS_ARM_TLS_RELOC): Use it. | |
898 | (elf32_arm_relocate_section): Perform TLS relaxing. | |
899 | (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls | |
900 | desc relocations. | |
901 | (allocate_dynrelocs): Allocate tls desc relcoations. | |
902 | (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping | |
903 | symbols. | |
904 | (elf32_arm_size_dynamic_sections): Allocate tls trampolines and | |
905 | got slots. | |
906 | (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE | |
907 | symbol. | |
908 | (elf32_arm_finish_dynamic_symbol): Adjust. | |
909 | (arm_put_trampoline): New. | |
910 | (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls | |
911 | trampolines. | |
912 | (elf_backend_always_size_sections): Define. | |
913 | ||
7be86737 L |
914 | 2011-01-06 H.J. Lu <hongjiu.lu@intel.com> |
915 | ||
916 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized. | |
917 | ||
ae428b57 | 918 | 2011-01-06 H.J. Lu <hongjiu.lu@intel.com> |
3db2e7dd L |
919 | |
920 | PR ld/12366 | |
921 | PR ld/12371 | |
922 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly | |
923 | handle symbols marked with regular reference, but not non-GOT | |
924 | reference when building shared library. | |
925 | ||
926 | * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle | |
927 | local and global STT_GNU_IFUNC symols when building shared | |
928 | library. | |
929 | * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise. | |
930 | ||
9689e3a3 DD |
931 | 2011-01-05 DJ Delorie <dj@redhat.com> |
932 | ||
933 | * reloc.c: Add BFD_RELOC_RX_OP_NEG. | |
934 | * libbfd.h: Regenerate. | |
935 | * bfd-in2.h: Regenerate. | |
936 | * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg. | |
937 | ||
889a4d3e L |
938 | 2011-01-03 H.J. Lu <hongjiu.lu@intel.com> |
939 | ||
940 | * cpu-i386.c (bfd_i386_compatible): New. | |
941 | (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible | |
942 | with bfd_i386_compatible. | |
943 | (bfd_x86_64_arch_intel_syntax): Likewise. | |
944 | (bfd_i386_arch_intel_syntax): Likewise. | |
945 | (i8086_arch): Likewise. | |
946 | (bfd_x64_32_arch): Likewise. | |
947 | (bfd_x86_64_arch): Likewise. | |
948 | (bfd_i386_arch): Likewise. | |
949 | ||
9e9e0820 | 950 | For older changes see ChangeLog-2010 |
56882138 AM |
951 | \f |
952 | Local Variables: | |
953 | mode: change-log | |
954 | left-margin: 8 | |
955 | fill-column: 74 | |
956 | version-control: never | |
957 | End: |