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