Commit | Line | Data |
---|---|---|
c4dd807e MF |
1 | 2012-07-27 Mike Frysinger <vapier@gentoo.org> |
2 | ||
3 | * configure.in (AC_INIT): Call with the args bfd and 2.22.52. | |
4 | (AM_INIT_AUTOMAKE): Remove args. | |
5 | * configure: Regenerate. | |
6 | ||
c92b291c AK |
7 | 2012-07-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
8 | ||
9 | * cpu-s390.c (bfd_s390_64_arch, bfd_s390_arch): Pick the default | |
10 | arch depending on the target size. | |
11 | ||
ecdf0cbb TG |
12 | 2012-07-27 Tristan Gingold <gingold@adacore.com> |
13 | ||
14 | * configure.in: Bump version to 2.23.51 | |
15 | * configure: Regenerate. | |
16 | ||
f725daa8 CC |
17 | 2012-07-26 Teresa Johnson <tejohnson@google.com> |
18 | ||
19 | * bfd/dwarf2.c (find_line): Initialize discriminator_ptr | |
20 | if it is non-NULL. | |
21 | ||
05456594 NC |
22 | 2012-07-26 Meador Inge <meadori@codesourcery.com> |
23 | Nick Clifton <nickc@redhat.com> | |
24 | ||
25 | PR ld/14397 | |
26 | * elf32-arm.c (elf32_arm_finish_dynamic_sections): Report an error | |
27 | if a required section is missing from the linker script. | |
28 | ||
6aa82b64 EW |
29 | 2012-07-24 Jan Waclawek <konfera@efton.sk> |
30 | PR 13899 | |
31 | * elf32-avr.c (elf32_avr_relax_delete_bytes): Call | |
32 | _bfd_elf_link_read_relocs with keep_memory as TRUE. | |
33 | ||
9b8d1a36 CC |
34 | 2012-07-24 Teresa Johnson <tejohnson@google.com> |
35 | ||
36 | * bfd.c (bfd_find_nearest_line_discriminator): New macro. | |
37 | * coff-rs6000.c: Init _bfd_find_nearest_line_discriminator. | |
38 | * coff64-rs6000.c: Likewise. | |
39 | * dwarf2.c (struct line_info): Add discriminator field. | |
40 | (add_line_info): Fill in new discriminator field. | |
41 | (decode_line_info): Record discriminator information instead | |
42 | of ignoring it. | |
43 | (lookup_address_in_line_info_table): Return discriminator field if | |
44 | requested. | |
45 | (comp_unit_find_nearest_line): Add discriminator argument. | |
46 | (find_line): Likewise. | |
47 | (_bfd_dwarf2_find_nearest_line): Likewise. | |
48 | (_bfd_dwarf2_find_line): Likewise. | |
49 | * elf-bfd.h (_bfd_elf_find_nearest_line_discriminator): New. | |
50 | (_bfd_elf_find_line_discriminator): Likewise. | |
51 | (_bfd_generic_find_nearest_line_discriminator): Likewise. Defined. | |
52 | * elf.c (_bfd_elf_find_nearest_line): Change to a wrapper | |
53 | that invokes _bfd_elf_find_nearest_line_discriminator with correct | |
54 | arguments. | |
55 | (_bfd_elf_find_nearest_line_discriminator): New. | |
56 | (_bfd_elf_find_line): Change to a wrapper | |
57 | that invokes _bfd_elf_find_line_discriminator with correct | |
58 | arguments. | |
59 | (_bfd_elf_find_line_discriminator): New. | |
60 | * coffgen.c (coff_find_nearest_line_with_names): Handle | |
61 | new discriminator argument. | |
62 | * elf32-arm.c (elf32_arm_find_nearest_line): Likewise. | |
63 | * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise. | |
64 | * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise. | |
65 | * mach-o.c (bfd_mach_o_find_nearest_line): Likewise. | |
66 | * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Add discriminator | |
67 | argument. | |
68 | (_bfd_dwarf2_find_line): Likewise. | |
69 | (_bfd_generic_find_nearest_line_discriminator): New. | |
70 | * libbfd.c (_bfd_generic_find_nearest_line_discriminator): New. | |
71 | * bfd-in2.h: Regenerated. | |
72 | * libbfd.h: Likewise. | |
73 | * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize | |
74 | _bfd_find_nearest_line_discriminator with | |
75 | _bfd_generic_find_nearest_line_discriminator. | |
76 | (bfd_target): Add _bfd_find_nearest_line_discriminator. | |
77 | ||
082d1122 NC |
78 | 2012-07-24 Sean Keys <skeys@ipdatasys.com> |
79 | ||
80 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Added code | |
81 | that enables the linker to offset addresses, when linking against | |
82 | symbols from the XGATE processor and vice versa. | |
83 | ||
d86492f2 NC |
84 | 2012-07-23 Nick Clifton <nickc@redhat.com> |
85 | ||
86 | * cisco-core.c (cisco_core_file_failing_command): Make static. | |
87 | (cisco_core_file_failing_signal): Make static. | |
88 | ||
7c960184 L |
89 | 2012-07-18 H.J. Lu <hongjiu.lu@intel.com> |
90 | ||
91 | * bfd-in2.h: Regenerated. | |
92 | ||
c06fc9eb L |
93 | 2012-07-18 Nicolàs Alejandro Di Risio <sheeva@tiscali.it> |
94 | ||
95 | PR binutils/14335 | |
96 | * section.c: Fix a typo in comments. | |
97 | ||
470b557a AK |
98 | 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
99 | ||
100 | * elf64-s390.c: Include elf-s390-common.c. | |
101 | (R_390_IRELATIVE): New reloc. | |
102 | (elf_s390_reloc_type_lookup): Support R_390_IRELATIVE. | |
103 | (RELA_ENTRY_SIZE): New macro. | |
104 | (elf_s390_link_hash_entry): New fields ifunc_resolver_address and | |
105 | *ifunc_resolver_section. | |
106 | (struct plt_entry): New struct. | |
107 | (struct elf_s390_obj_tdata): New field local_plt. | |
108 | (elf_s390_local_plt): New macro. | |
109 | (struct elf_s390_link_hash_table): New field irelifunc. | |
110 | (ELF64): New macro. | |
111 | (link_hash_newfunc): Initialize new fields. | |
112 | (elf_s390_check_relocs): Handle IFUNC symbols. | |
113 | (elf_s390_adjust_dynamic_symbol): Don't do anything for IFUNC | |
114 | symbols. | |
115 | (allocate_dynrelocs): Call s390_elf_allocate_ifunc_dyn_relocs for | |
116 | IFUNC symbols. | |
117 | (elf_s390_size_dynamic_sections): Handle IFUNC symbols. | |
118 | (elf_s390_relocate_section): Likewise. | |
119 | (elf_s390_finish_dynamic_symbol): Likewise. | |
120 | (elf_s390_finish_dynamic_sections): Handle local IFUNC symbols. | |
121 | (elf_s390_finish_ifunc_symbol): New function. | |
122 | (elf_s390_gc_sweep_hook): Handle local plt entries. | |
123 | (elf_backend_add_symbol_hook): Define. | |
124 | * elf32-s390.c: See elf64-s390.c changes. | |
125 | * elf-s390-common.c: New file. | |
126 | * bfd-in2.h (BFD_RELOC_390_IRELATIVE): New enum field. | |
127 | * libbfd.h (BFD_RELOC_390_IRELATIVE): New entry for | |
128 | BFD_RELOC_390_IRELATIVE. | |
129 | * reloc.c (BFD_RELOC_390_IRELATIVE): Document new relocation. | |
130 | ||
2c3fc389 NC |
131 | 2012-07-13 Nick Clifton <nickc@redhat.com> |
132 | ||
133 | * aix386-core.c: Remove use of PTR and PARAMS macros. | |
134 | * archive.c: Likewise. | |
135 | * cache.c: Likewise. | |
136 | * cisco-core.c: Likewise. | |
137 | * coff-alpha.c: Likewise. | |
138 | * coff-apollo.c: Likewise. | |
139 | * coff-aux.c: Likewise. | |
140 | * coff-h8300.c: Likewise. | |
141 | * coff-h8500.c: Likewise. | |
142 | * coff-i386.c: Likewise. | |
143 | * coff-i960.c: Likewise. | |
144 | * coff-ia64.c: Likewise. | |
145 | * coff-m68k.c: Likewise. | |
146 | * coff-m88k.c: Likewise. | |
147 | * coff-mcore.c: Likewise. | |
148 | * coff-mips.c: Likewise. | |
149 | * coff-or32.c: Likewise. | |
150 | * coff-ppc.c: Likewise. | |
151 | * coff-rs6000.c: Likewise. | |
152 | * coff-sh.c: Likewise. | |
153 | * coff-sparc.c: Likewise. | |
154 | * coff-stgo32.c: Likewise. | |
155 | * coff-tic30.c: Likewise. | |
156 | * coff-tic4x.c: Likewise. | |
157 | * coff-tic54x.c: Likewise. | |
158 | * coff-tic80.c: Likewise. | |
159 | * coff-w65.c: Likewise. | |
160 | * cofflink.c: Likewise. | |
161 | * cpu-arc.c: Likewise. | |
162 | * cpu-cris.c: Likewise. | |
163 | * cpu-h8500.c: Likewise. | |
164 | * cpu-i960.c: Likewise. | |
165 | * cpu-msp430.c: Likewise. | |
166 | * cpu-ns32k.c: Likewise. | |
167 | * cpu-powerpc.c: Likewise. | |
168 | * cpu-rs6000.c: Likewise. | |
169 | * cpu-tic4x.c: Likewise. | |
170 | * cpu-w65.c: Likewise. | |
171 | * ecoff.c: Likewise. | |
172 | * ecofflink.c: Likewise. | |
173 | * elf-m10200.c: Likewise. | |
174 | * elf32-bfin.c: Likewise. | |
175 | * elf32-cris.c: Likewise. | |
176 | * elf32-crx.c: Likewise. | |
177 | * elf32-fr30.c: Likewise. | |
178 | * elf32-frv.c: Likewise. | |
179 | * elf32-h8300.c: Likewise. | |
180 | * elf32-i960.c: Likewise. | |
181 | * elf32-m32c.c: Likewise. | |
182 | * elf32-m68hc11.c: Likewise. | |
183 | * elf32-m68hc12.c: Likewise. | |
184 | * elf32-m68hc1x.c: Likewise. | |
185 | * elf32-m68k.c: Likewise. | |
186 | * elf32-mcore.c: Likewise. | |
187 | * elf32-rl78.c: Likewise. | |
188 | * elf32-rx.c: Likewise. | |
189 | * elf32-s390.c: Likewise. | |
190 | * elf32-vax.c: Likewise. | |
191 | * elf64-alpha.c: Likewise. | |
192 | * elf64-mmix.c: Likewise. | |
193 | * elf64-s390.c: Likewise. | |
194 | * elf64-sparc.c: Likewise. | |
195 | * elfnn-ia64.c: Likewise. | |
196 | * elfxx-mips.c: Likewise. | |
197 | * elfxx-sparc.c: Likewise. | |
198 | * hash.c: Likewise. | |
199 | * hp300hpux.c: Likewise. | |
200 | * hppabsd-core.c: Likewise. | |
201 | * hpux-core.c: Likewise. | |
202 | * i386dynix.c: Likewise. | |
203 | * i386linux.c: Likewise. | |
204 | * i386lynx.c: Likewise. | |
205 | * i386mach3.c: Likewise. | |
206 | * i386msdos.c: Likewise. | |
207 | * i386os9k.c: Likewise. | |
208 | * irix-core.c: Likewise. | |
209 | * lynx-core.c: Likewise. | |
210 | * m68klinux.c: Likewise. | |
211 | * mach-o.h: Likewise. | |
212 | * mipsbsd.c: Likewise. | |
213 | * netbsd-core.c: Likewise. | |
214 | * nlm32-i386.c: Likewise. | |
215 | * osf-core.c: Likewise. | |
216 | * pc532-mach.c: Likewise. | |
217 | * pef.c: Likewise. | |
218 | * ppcboot.c: Likewise. | |
219 | * ptrace-core.c: Likewise. | |
220 | * reloc16.c: Likewise. | |
221 | * sco5-core.c: Likewise. | |
222 | * som.h: Likewise. | |
223 | * sparclinux.c: Likewise. | |
224 | * sparclynx.c: Likewise. | |
225 | * ticoff.h: Likewise. | |
226 | * trad-core.c: Likewise. | |
227 | * vms-lib.c: Likewise. | |
228 | * xsym.h: Likewise. | |
229 | ||
14160578 AM |
230 | 2012-07-09 Alan Modra <amodra@gmail.com> |
231 | ||
232 | PR ld/14323 | |
233 | * elflink.c (elf_sort_symbol): Sort by size too. | |
234 | (elf_link_add_object_symbols <weakdefs>): Simplify binary search. | |
235 | Do not depend on ordering of symbol aliases. Match largest size. | |
236 | ||
1c52a645 L |
237 | 2012-07-03 H.J. Lu <hongjiu.lu@intel.com> |
238 | ||
239 | * elf.c (assign_section_numbers): Check if number of sections | |
240 | >= SHN_LORESERVE. | |
241 | * elfcode.h (elf_object_p): Likewise. | |
242 | ||
5f8ebec5 NC |
243 | 2012-07-03 Nick Clifton <nickc@redhat.com> |
244 | ||
245 | * archive.c (bsd_write_armap): Catch attempts to create an archive | |
246 | with indicies bigger than 4Gb. | |
247 | (coff_write_armap): Likewise. | |
248 | ||
5a5ed5b0 L |
249 | 2012-07-03 H.J. Lu <hongjiu.lu@intel.com> |
250 | ||
251 | PR binutils/14319 | |
252 | * elf.c (_bfd_elf_make_section_from_shdr): Don't compress empty | |
253 | debug section. | |
254 | ||
90c984fc L |
255 | 2012-07-03 H.J. Lu <hongjiu.lu@intel.com> |
256 | ||
257 | PR ld/3351 | |
258 | * elflink.c (_bfd_elf_update_dynamic_flags): New. | |
259 | (_bfd_elf_merge_symbol): Update both real and indirect symbol | |
260 | dynamic flags. | |
261 | (_bfd_elf_add_default_symbol): Make the real symbol dynamic if | |
262 | the indirect symbol is defined in a shared library. | |
263 | (elf_link_add_object_symbols): Likewise. If the indirect | |
264 | symbol has been forced local, don't make the real symbol | |
265 | dynamic. | |
266 | (elf_link_check_versioned_symbol): Check indirect symbol. | |
267 | (elf_link_output_extsym): Use real symbol definition when | |
268 | reporting indirect symbol error. Check version info for | |
269 | dynamic versioned symbol. | |
270 | ||
3146fac4 AM |
271 | 2012-07-03 Alan Modra <amodra@gmail.com> |
272 | ||
273 | PR ld/14207 | |
274 | * elf.c (assign_file_positions_for_load_sections): Remove assertions | |
275 | that only PT_LOAD headers include file header and section headers. | |
276 | (assign_file_positions_for_non_load_sections): Similarly don't | |
277 | assert PT_GNU_RELRO header does not include file and section headers. | |
278 | Compare first section vma rather than PT_LOAD p_vaddr against | |
279 | relro_start when looking for PT_LOAD covering PT_GNU_RELRO. Replace | |
280 | abort with assertion. | |
281 | ||
87e0a731 AM |
282 | 2012-07-02 Alan Modra <amodra@gmail.com> |
283 | ||
284 | * elf32-m32c.c (m32c_elf_check_relocs): Use bfd_make_section | |
285 | "anyway" variant when creating .plt. | |
286 | (m32c_elf_relax_plt_section): Remove redundant test and unused param. | |
287 | (m32c_elf_relax_section): Test SEC_LINKER_CREATED before calling | |
288 | m32c_elf_relax_plt_section. | |
289 | * elfxx-mips.c (mips_elf_create_got_section): Use make anyway variant | |
290 | when creating .got and .got.plt. | |
291 | (_bfd_mips_elf_final_link): Likewise for .rtproc, and use | |
292 | bfd_get_linker_section. | |
293 | * sunos.c: Similarly throughout. | |
294 | ||
bc823199 AS |
295 | 2012-07-01 Andreas Schwab <schwab@linux-m68k.org> |
296 | ||
297 | * elf.c (_bfd_elf_make_section_from_shdr): Fix typo in error | |
298 | message. | |
299 | ||
a040981f L |
300 | 2012-06-29 H.J. Lu <hongjiu.lu@intel.com> |
301 | ||
302 | * elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE | |
303 | on unresolvable relocation. | |
304 | ||
d5abbdf3 L |
305 | 2012-06-29 H.J. Lu <hongjiu.lu@intel.com> |
306 | ||
307 | * archive.c (_bfd_compute_and_write_armap): Simplify global | |
308 | symbol handling. | |
309 | ||
a8c887dd NC |
310 | 2012-06-29 Nick Clifton <nickc@redhat.com> |
311 | ||
312 | PR ld/14189 | |
313 | * elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount | |
314 | for locally bound symbols. | |
315 | ||
3d4d4302 AM |
316 | 2012-06-29 Alan Modra <amodra@gmail.com> |
317 | ||
318 | * section.c (bfd_get_linker_section): New function. | |
319 | * elf32-arm.c: When retrieving SEC_LINKER_CREATED sections, use | |
320 | the above throughout rather than bfd_get_section_by_name. Use | |
321 | bfd_make_section_anyway rather than bfd_make_section when creating | |
322 | them. | |
323 | * elf32-bfin.c: Likewise. | |
324 | * elf32-cr16.c: Likewise. | |
325 | * elf32-cris.c: Likewise. | |
326 | * elf32-frv.c: Likewise. | |
327 | * elf32-hppa.c: Likewise. | |
328 | * elf32-i370.c: Likewise. | |
329 | * elf32-i386.c: Likewise. | |
330 | * elf32-lm32.c: Likewise. | |
331 | * elf32-m32c.c: Likewise. | |
332 | * elf32-m32r.c: Likewise. | |
333 | * elf32-m68k.c: Likewise. | |
334 | * elf32-microblaze.c: Likewise. | |
335 | * elf32-ppc.c: Likewise. | |
336 | * elf32-rl78.c: Likewise. | |
337 | * elf32-s390.c: Likewise. | |
338 | * elf32-score.c: Likewise. | |
339 | * elf32-score7.c: Likewise. | |
340 | * elf32-sh.c: Likewise. | |
341 | * elf32-tic6x.c: Likewise. | |
342 | * elf32-tilepro.c: Likewise. | |
343 | * elf32-vax.c: Likewise. | |
344 | * elf32-xstormy16.c: Likewise. | |
345 | * elf32-xtensa.c: Likewise. | |
346 | * elf64-alpha.c: Likewise. | |
347 | * elf64-hppa.c: Likewise. | |
348 | * elf64-ia64-vms.c: Likewise. | |
349 | * elf64-ppc.c: Likewise. | |
350 | * elf64-s390.c: Likewise. | |
351 | * elf64-sh64.c: Likewise. | |
352 | * elf64-sparc.c: Likewise. | |
353 | * elf64-x86-64.c: Likewise. | |
354 | * elfnn-ia64.c: Likewise. | |
355 | * elfxx-mips.c: Likewise. | |
356 | * elfxx-sparc.c: Likewise. | |
357 | * elfxx-tilegx.c: Likewise. | |
358 | * elflink.c: Likewise. | |
359 | * elf-vxworks.c: Likewise. | |
360 | * elf-m10300.c: Likewise. Also make use of htab plt, got and | |
361 | gotplt shortcuts. | |
362 | * bfd-in2.h: Regenerate. | |
363 | * elf32-lm32.c (lm32_elf_check_relocs): Use the correct bfd when | |
364 | calling create_rofixup_section. | |
365 | * elflink.c (bfd_elf_final_link): Simplify test for .dynstr. | |
366 | ||
66e17d7f AM |
367 | 2012-06-29 Alan Modra <amodra@gmail.com> |
368 | ||
369 | * elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .rela | |
370 | section for bss type sections, except for .rela.bss. | |
371 | * elf-m10300.c (_bfd_mn10300_elf_create_dynamic_sections): Likewise. | |
372 | * elf32-cr16.c (_bfd_cr16_elf_create_dynamic_sections): Likewise. | |
373 | * elf32-lm32.c (lm32_elf_create_dynamic_sections): Likewise. | |
374 | * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise. | |
375 | * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise. | |
376 | ||
6034aab8 RM |
377 | 2012-06-28 Roland McGrath <mcgrathr@google.com> |
378 | ||
379 | * elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for | |
380 | displacement calculation in nacl_p case. | |
381 | ||
4c6a93d3 NC |
382 | 2012-06-28 Nick Clifton <nickc@redhat.com> |
383 | ||
384 | * po/uk.po: New Ukranian translation. | |
385 | * configure.in (ALL_LINGUAS): Add uk. | |
386 | * configure: Regenerate. | |
387 | ||
a4fd3de5 AM |
388 | 2012-06-26 Alan Modra <amodra@gmail.com> |
389 | ||
390 | * elf64-ppc.c (ppc64_elf_next_toc_section): Don't error if input | |
391 | file has multiple .got/.toc sections and all don't fit in | |
392 | current toc group. | |
393 | ||
62655c7b RM |
394 | 2012-06-22 Roland McGrath <mcgrathr@google.com> |
395 | ||
396 | * elf.c (assign_file_positions_for_non_load_sections): Define | |
397 | __ehdr_start symbol if it's referenced and there's a PT_LOAD | |
398 | segment that covers both the file and program headers. | |
399 | ||
b70e7a2f AS |
400 | 2012-06-22 Andreas Schwab <schwab@linux-m68k.org> |
401 | ||
402 | * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't make | |
403 | _GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute. | |
404 | ||
27fc25a1 AM |
405 | 2012-06-22 Alan Modra <amodra@gmail.com> |
406 | ||
407 | * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't emit out-of-line | |
408 | save/restore functions when relocatable. Make "funcs" static. | |
409 | ||
51806b97 HPN |
410 | 2012-06-18 Hans-Peter Nilsson <hp@axis.com> |
411 | ||
412 | * elf32-cris.c (cris_elf_plt_sym_val): Rewrite to work in presence | |
413 | of merged .got and .got.plt entries. | |
414 | ||
46691134 AM |
415 | 2012-06-18 John Szakmeister <john@szakmeister.net> |
416 | ||
417 | * elf32-arm.c (elf32_arm_final_link_relocate): Correct return value. | |
418 | ||
26a48bb3 HPN |
419 | 2012-06-17 Hans-Peter Nilsson <hp@axis.com> |
420 | ||
421 | * elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE> | |
422 | <R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to | |
423 | thread common symbols. | |
424 | ||
5968a7b8 NC |
425 | 2012-06-13 Nick Clifton <nickc@redhat.com> |
426 | ||
427 | * elf32-arm.c (bfd_arm_get_mach_from_attributes): New function. | |
428 | (elf32_arm_object_p): If the machine number could not be deduced | |
429 | from the notes, call bfd_arm_get_mach_from_attributes to get the | |
430 | number from the attributes. | |
431 | ||
8981c88a L |
432 | 2012-06-12 H.J. Lu <hongjiu.lu@intel.com> |
433 | ||
434 | PR bfd/14207 | |
435 | * elf.c (assign_file_positions_for_non_load_sections): Abort if | |
436 | PT_GNU_RELRO segment doesn't fit in PT_LOAD segment. | |
437 | ||
3832a4d8 AM |
438 | 2012-06-12 Alan Modra <amodra@gmail.com> |
439 | ||
440 | PR ld/14207 | |
441 | * elf.c (_bfd_elf_map_sections_to_segments): Disregard bss type | |
442 | sections at end of PT_LOAD segment when searching for segment | |
443 | that contains end of relro extent. | |
444 | ||
f3944f72 L |
445 | 2012-06-11 H.J. Lu <hongjiu.lu@intel.com> |
446 | ||
447 | * elf.c (assign_file_positions_for_non_load_sections): Reindent. | |
448 | ||
be01b344 L |
449 | 2012-06-11 H.J. Lu <hongjiu.lu@intel.com> |
450 | ||
451 | * elf.c (_bfd_elf_map_sections_to_segments): Reindent. | |
452 | ||
ffbc01cc AM |
453 | 2012-06-06 Alan Modra <amodra@gmail.com> |
454 | ||
455 | * elflink.c (elf_link_input_bfd): Provide a file symbol for | |
456 | each input file with local syms, if the input lacks such. | |
457 | (bfd_elf_final_link): Add a file symbol to mark end of locals | |
458 | for which we can associate with input files. | |
459 | (struct elf_final_link_info): Add filesym_count field. | |
460 | (struct elf_outext_info): Add need_second_pass and second_pass. | |
461 | (elf_link_output_extsym): Detect symbols defined in the output | |
462 | file, emit them on second pass over locals. | |
463 | ||
fe78531d JK |
464 | 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
465 | ||
466 | * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument | |
467 | of target_read_memory as bfd_size_type. | |
468 | * bfd-in2.h: Regenerate. | |
469 | * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN | |
470 | argument of target_read_memory as bfd_size_type. | |
471 | (_bfd_elf32_bfd_from_remote_memory): Likewise. | |
472 | (_bfd_elf64_bfd_from_remote_memory): Likewise. | |
473 | * elf.c (bfd_elf_bfd_from_remote_memory): Likewise. | |
474 | * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise. | |
475 | ||
aef36ac1 AM |
476 | 2012-06-03 Alan Modra <amodra@gmail.com> |
477 | ||
478 | PR binutils/13897 | |
479 | * elf.c (elf_find_function): Cache last function sym info. | |
480 | (_bfd_elf_maybe_function_sym): Return function size, pass in | |
481 | section of interest. | |
482 | * elf-bfd.h (struct elf_backend_data <maybe_function_sym>): Likewise. | |
483 | (_bfd_elf_maybe_function_sym): Likewise. | |
484 | * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise. | |
485 | (opd_entry_value): Add in_code_sec param. Revert caching code. | |
486 | Return -1 if in_code_sec and function found in wrong section. | |
487 | Update all calls. | |
488 | ||
5299c1c4 JK |
489 | 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com> |
490 | ||
491 | * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument | |
492 | of target_read_memory as size_t. | |
493 | * bfd-in2.h: Regenerate. | |
494 | * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN | |
495 | argument of target_read_memory as size_t. | |
496 | (_bfd_elf32_bfd_from_remote_memory): Likewise. | |
497 | (_bfd_elf64_bfd_from_remote_memory): Likewise. | |
498 | * elf.c (bfd_elf_bfd_from_remote_memory): Likewise. | |
499 | * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise. | |
500 | ||
ee1e4ede AM |
501 | 2012-06-01 Alan Modra <amodra@gmail.com> |
502 | ||
503 | PR binutils/13897 | |
504 | * elf64-ppc.c (opd_entry_value): Rewrite cache code. | |
505 | ||
6f0c7050 TT |
506 | 2012-05-29 Tom Tromey <tromey@redhat.com> |
507 | ||
508 | * opncls.c (bfd_fopen): Always close fd on failure. | |
509 | (bfd_fdopenr): Likewise. | |
510 | ||
f5eda473 AM |
511 | 2012-05-27 Alan Modra <amodra@gmail.com> |
512 | ||
513 | PR ld/14170 | |
514 | * elflink.c (_bfd_elf_merge_symbol): When a symbol defined in | |
515 | a dynamic library finds a new instance with non-default | |
516 | visibility in a regular object, correctly handle symbols | |
517 | already on the undefs list and undo dynamic symbol state when | |
518 | the new symbol is hidden or internal. | |
519 | ||
bbf96e4e L |
520 | 2012-05-25 H.J. Lu <hongjiu.lu@intel.com> |
521 | ||
522 | * elf32-i386.c (elf_i386_create_dynamic_sections): Don't use | |
523 | dynamic_sec_flags to create PLT .eh_frame section. | |
524 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise. | |
525 | ||
9a2a56cc AM |
526 | 2012-05-25 Alan Modra <amodra@gmail.com> |
527 | ||
528 | PR ld/13909 | |
529 | * elf-eh-frame.c (_bfd_elf_eh_frame_present): New function. | |
530 | (_bfd_elf_maybe_strip_eh_frame_hdr): Use it here. | |
531 | * elf-bfd.h (_bfd_elf_eh_frame_present): Declare. | |
532 | * elflink.c (bfd_elf_size_dynamic_sections): Let the backend | |
533 | size dynamic sections before stripping eh_frame_hdr. | |
534 | (bfd_elf_gc_sections): Handle multiple .eh_frame sections. | |
535 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Drop glink_eh_frame | |
536 | if no other .eh_frame sections exist. | |
537 | * elf64-ppc.c (ppc64_elf_size_stubs): Likewise. | |
538 | * elf32-i386.c (elf_i386_create_dynamic_sections): Don't size | |
539 | or alloc plt_eh_frame here.. | |
540 | (elf_i386_size_dynamic_sections): ..do it here instead. Don't | |
541 | specially keep sgotplt, iplt, tgotplt, sdynbss for symbols. | |
542 | (elf_i386_finish_dynamic_sections): Check plt_eh_frame->contents | |
543 | before writing plt offset. | |
544 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Don't size | |
545 | or alloc plt_eh_frame here.. | |
546 | (elf_x86_64_size_dynamic_sections): ..do it here instead. | |
547 | (elf_x86_64_finish_dynamic_sections): Check plt_eh_frame->contents | |
548 | before writing plt offset. | |
549 | ||
4bbe044a AM |
550 | 2012-05-24 Alan Modra <amodra@gmail.com> |
551 | ||
552 | PR ld/14158 | |
553 | * elf64-ppc.c (ppc64_elf_size_stubs): Round up glink_eh_frame | |
554 | size to output section alignment. | |
555 | (ppc64_elf_build_stubs): Likewise, and extend last FDE to cover. | |
556 | ||
89b2bec8 AM |
557 | 2012-05-23 Alan Modra <amodra@gmail.com> |
558 | ||
559 | * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Handle | |
560 | BFDs with multiple .eh_frame sections. | |
561 | ||
259b427a AM |
562 | 2012-05-23 Alan Modra <amodra@gmail.com> |
563 | ||
564 | PR ld/13909 | |
565 | * elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs. | |
566 | ||
e4de50d4 L |
567 | 2012-05-22 H.J. Lu <hongjiu.lu@intel.com> |
568 | ||
569 | PR ld/13909 | |
570 | * elf32-i386.c (elf_i386_create_dynamic_sections): Revert the | |
571 | last change. | |
572 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise. | |
573 | ||
7e01508c AM |
574 | 2012-05-22 Alan Modra <amodra@gmail.com> |
575 | ||
576 | * elflink.c (bfd_elf_discard_info): Look for next .eh_frame if | |
577 | first one is zero size or discarded. | |
578 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set most of | |
579 | glink_eh_frame contents here.. | |
580 | (ppc_elf_finish_dynamic_sections): ..rather than here. Just set | |
581 | offset to .glink. | |
582 | ||
5d4f7eb2 L |
583 | 2012-05-22 H.J. Lu <hongjiu.lu@intel.com> |
584 | ||
585 | PR ld/13909 | |
586 | * elf32-i386.c (elf_i386_create_dynamic_sections): Create PLT | |
587 | eh_frame section if there is an input .eh_frame section. | |
588 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise. | |
589 | ||
2fe0fd06 L |
590 | 2012-05-22 H.J. Lu <hongjiu.lu@intel.com> |
591 | ||
592 | PR ld/14105 | |
593 | * elf32-i386.c (elf_i386_create_dynamic_sections): Always | |
594 | create PLT eh_frame section with SEC_LINKER_CREATED. | |
595 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise. | |
596 | ||
90061c33 AM |
597 | 2012-05-22 Alan Modra <amodra@gmail.com> |
598 | ||
599 | * elflink.c (bfd_elf_discard_info): Handle multiple .eh_frame | |
600 | sections attached to a BFD. | |
601 | * section.c (bfd_get_section_by_name): Rewrite description. | |
602 | (bfd_get_next_section_by_name): New function. | |
603 | * bfd-in2.h: Regenerate. | |
604 | ||
8bbeae90 AS |
605 | 2012-05-21 Andreas Schwab <schwab@linux-m68k.org> |
606 | ||
607 | * elf32-m68k.c (elf_m68k_grok_prstatus): New function. | |
608 | (elf_m68k_grok_psinfo): New function. | |
609 | (elf_backend_grok_prstatus): Define. | |
610 | (elf_backend_grok_psinfo): Define. | |
611 | ||
a44acb1e MR |
612 | 2012-05-19 Maciej W. Rozycki <macro@linux-mips.org> |
613 | ||
614 | * elf64-mips.c (elf_backend_got_header_size): Correct definition. | |
615 | * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Use the ELF | |
616 | backend's GOT header size instead of hardcoding it. | |
617 | ||
751c1fe7 MR |
618 | 2012-05-19 Maciej W. Rozycki <macro@linux-mips.org> |
619 | ||
620 | * elf32-vax.c (elf_vax_relocate_section) | |
621 | <R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again. | |
622 | ||
ddd74d3c MR |
623 | 2012-05-19 Maciej W. Rozycki <macro@linux-mips.org> |
624 | ||
625 | * elf32-vax.c (elf_vax_relocate_section) | |
626 | <R_VAX_8, R_VAX_16, R_VAX_32>: Use section flags rather than | |
627 | its name as the check for text sections. | |
628 | ||
b0189df0 MR |
629 | 2012-05-19 Maciej W. Rozycki <macro@linux-mips.org> |
630 | ||
631 | * elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure | |
632 | the third reloc offset is the same as the first. | |
633 | ||
94caa966 AM |
634 | 2012-05-19 Alan Modra <amodra@gmail.com> |
635 | ||
636 | * elf32-ppc.h (has_vle_insns, is_ppc_vle): Delete. | |
637 | (has_tls_reloc, has_tls_get_addr_call): Move back to.. | |
638 | * elf32-ppc.c: ..here. | |
639 | (ppc_elf_section_flags, elf_backend_section_flags): Delete. | |
640 | (ppc_elf_modify_segment_map): Use ELF sh_flags to detect VLE sections. | |
641 | ||
220cf809 L |
642 | 2012-05-18 H.J. Lu <hongjiu.lu@intel.com> |
643 | ||
644 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Don't make | |
645 | _DYNAMIC nor _GLOBAL_OFFSET_TABLE_ absolute. | |
646 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
647 | ||
3a11e31e RM |
648 | 2012-05-18 Roland McGrath <mcgrathr@google.com> |
649 | ||
650 | * archive.c (_bfd_generic_read_ar_hdr_mag): Fix last change so as | |
651 | not to clobber the ar_fmag field stored in ARED->arch_header. | |
652 | ||
2a0bfc8d PA |
653 | 2012-05-18 Pedro Alves <palves@redhat.com> |
654 | ||
655 | * mach-o.h: Don't include sysdep.h. | |
656 | ||
0bee45d9 NC |
657 | 2012-05-18 Nick Clifton <nickc@redhat.com> |
658 | ||
659 | PR 14072 | |
660 | * bfd-in.h: Check for PACKAGE or PACKAGE_VERSION before | |
661 | complaining about config.h not having been included. | |
662 | * bfd-in2.h: Regenerate. | |
663 | ||
f2c621e4 AS |
664 | 2012-05-18 Andreas Schwab <schwab@linux-m68k.org> |
665 | ||
666 | * aclocal.m4: Regenerate. | |
667 | * Makefile.in: Regenerate. | |
668 | ||
df7b86aa NC |
669 | 2012-05-17 Daniel Richard G. <skunk@iskunk.org> |
670 | Nick Clifton <nickc@redhat.com> | |
671 | ||
672 | PR 14072 | |
673 | * configure.in: Add check that sysdep.h has been included before | |
674 | any system header files. | |
675 | * configure: Regenerate. | |
676 | * config.in: Regenerate. | |
677 | * aclocal.m4: Regenerate. | |
678 | * bfd-in.h: Generate an error if included before config.h. | |
679 | * sysdep.h: Likewise. | |
680 | * bfd-in2.h: Regenerate. | |
681 | * compress.c: Remove #include "config.h". | |
682 | * plugin.c: Likewise. | |
683 | * elf32-m68hc1x.c: Include sysdep.h before alloca-conf.h. | |
684 | * elf64-hppa.c: Likewise. | |
685 | * som.c: Likewise. | |
686 | * xsymc.c: Likewise. | |
687 | ||
2633a79c AM |
688 | 2012-05-17 Maciej W. Rozycki <macro@linux-mips.org> |
689 | Alan Modra <amodra@gmail.com> | |
690 | ||
691 | * elf.c (ignore_section_sym): Correct comment. Don't return | |
692 | true for absolute section. | |
693 | (elf_map_symbols): Move stray comment. Adjust for above change. | |
694 | Don't discard global section symbols. | |
695 | ||
ab6dce23 AM |
696 | 2012-05-17 Alan Modra <amodra@gmail.com> |
697 | ||
698 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make _DYNAMIC, | |
699 | _GLOBAL_OFFSET_TABLE_ or _PROCEDURE_LINKAGE_TABLE_ absolute. | |
700 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Don't make _DYNAMIC | |
701 | absolute. | |
702 | ||
e1dad58d AM |
703 | 2012-05-17 Alan Modra <amodra@gmail.com> |
704 | ||
705 | * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call, has_vle_insns, | |
706 | is_ppc_vle): Move to.. | |
707 | * elf32-ppc.h: ..here, making is_ppc_vle a macro. | |
708 | ||
a0f49396 NC |
709 | 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com> |
710 | ||
711 | * bfd-in.h (bfd_get_section_name, bfd_get_section_vma, | |
712 | bfd_get_section_lma, bfd_get_section_alignment, | |
713 | bfd_get_section_flags, bfd_get_section_userdata): Rewrite macros | |
714 | in order to use the `bfd' argument. | |
715 | * bfd-in2.h: Regenerate. | |
716 | * elf-vxworks.c (elf_vxworks_finish_dynamic_entry): Pass proper `bfd' | |
717 | as the first argument for `bfd_get_section_alignment'. | |
718 | * elf32-arm.c (create_ifunc_sections): Likewise, for | |
719 | `bfd_set_section_alignment'. | |
720 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise, for | |
721 | `bfd_get_section_name'. | |
722 | * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise. | |
723 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. | |
724 | (ppc_elf_relocate_section): Likewise. | |
725 | * elf64-mmix.c (mmix_final_link_relocate): Likewise, for | |
726 | `bfd_get_section_vma'. | |
727 | * elf64-ppc.c (create_linkage_sections): Likewise, for | |
728 | `bfd_set_section_alignment'. | |
729 | ||
40551fb8 NC |
730 | 2012-05-16 Georg-Johann Lay <avr@gjlay.de> |
731 | ||
732 | PR target/13503 | |
733 | * reloc.c: Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO. | |
734 | * bfd-in2.h: Regenerate. | |
735 | * libbfd.h: Regenrate. | |
736 | * elf32-avr.c (elf_avr_howto_table): Rename R_AVR_8_HHI8 to | |
737 | R_AVR_8_HLO8. | |
738 | (avr_reloc_map): Likewise. | |
739 | ||
691bf19c NC |
740 | 2012-05-16 Daniel Richard G. <skunk@iskunk.org> |
741 | ||
742 | PR binutils/13558 | |
743 | * bfd/aout-cris.c: Include sysdep.h before bfd.h. | |
744 | * bfd/aout-ns32k.c: Likewise. | |
745 | * bfd/aout-sparcle.c: Likewise. | |
746 | * bfd/aout0.c: Likewise. | |
747 | * bfd/bfd-in2.h: Likewise. | |
748 | * bfd/coff-stgo32.c: Likewise. | |
749 | * bfd/cpu-lm32.c: Likewise. | |
750 | * bfd/cpu-microblaze.c: Likewise. | |
751 | * bfd/cpu-score.c: Likewise. | |
752 | * bfd/cpu-tilegx.c: Likewise. | |
753 | * bfd/cpu-tilepro.c: Likewise. | |
754 | * bfd/elf32-lm32.c: Likewise. | |
755 | * bfd/elf32-microblaze.c: Likewise. | |
756 | * bfd/elf32-score7.c: Likewise. | |
757 | * bfd/elf32-tilepro.c: Likewise. | |
758 | * bfd/elfxx-tilegx.c: Likewise. | |
759 | * bfd/mach-o.h: Likewise. | |
760 | * bfd/nlm32-ppc.c: Likewise. | |
761 | * bfd/ns32knetbsd.c: Likewise. | |
762 | * bfd/pef.h: Likewise. | |
763 | * bfd/plugin.c: Likewise. | |
764 | * bfd/stab-syms.c: Likewise. | |
765 | * bfd/sunos.c: Likewise. | |
766 | * bfd/syms.c: Likewise. | |
767 | * bfd/xsym.h: Likewise. | |
768 | ||
8b127cbc AM |
769 | 2012-05-16 Alan Modra <amodra@gmail.com> |
770 | ||
771 | * elflink.c: Rename flaginfo to flinfo throughout, except.. | |
772 | (bfd_elf_lookup_section_flags): ..here, rename finfo to flaginfo. | |
773 | Formatting, style. Simplify flag match. | |
774 | ||
a2a50954 AM |
775 | 2012-05-16 Alan Modra <amodra@gmail.com> |
776 | ||
777 | * dwarf2.c: Formatting. | |
778 | (arange_add): Pass in unit rather than bfd. Update callers. | |
779 | Ignore empty ranges. Don't ask for cleared memory. | |
780 | (parse_comp_unit): Only set unit->base_address if processing | |
781 | DW_TAG_compile_unit. | |
782 | (find_debug_info): Optimise section lookup. | |
783 | (place_sections): Use bfd_alloc for stash->adjusted_sections. | |
784 | (find_line): Match previously parsed comp unit addresses as we | |
785 | do for newly parsed comp units. | |
786 | ||
df35687a AM |
787 | 2012-05-16 Alan Modra <amodra@gmail.com> |
788 | ||
789 | * archive.c (_bfd_generic_read_ar_hdr_mag): Ensure sscanf | |
790 | stops at end of ar_size field. | |
791 | ||
eee3b786 AM |
792 | 2012-05-16 Alan Modra <amodra@gmail.com> |
793 | ||
794 | PR ld/13962 | |
795 | PR ld/7023 | |
796 | * elf.c (bfd_section_from_shdr): Fail when .dynsym sh_info is | |
797 | out of range. As a special case, fix sh_info for zero sh_size. | |
798 | Do the same for .symtab. | |
799 | ||
6927f982 NC |
800 | 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk> |
801 | Stephane Carrez <stcarrez@nerim.fr> | |
802 | ||
803 | * archures.c: Add bfd_arch_m9s12x and bfd_arch_m9s12xg. | |
804 | * config.bfd: Likewise. | |
805 | * cpu-m9s12x.c: New. | |
806 | * cpu-m9s12xg.c: New. | |
807 | * elf32-m68hc12.c: Add S12X and XGATE co-processor support. | |
808 | Add option to offset S12 addresses into XGATE memory space. | |
809 | Fix carry bug in IMM16 (IMM8 low/high) relocate. | |
810 | * Makefile.am (ALL_MACHINES): Add cpu-m9s12x and cpu-m9s12xg. | |
811 | (ALL_MACHINES_CFILES): Likewise. | |
812 | * reloc.c: Add S12X relocs. | |
813 | * Makefile.in: Regenerate. | |
814 | * bfd-in2.h: Regenerate. | |
815 | * libbfd.h: Regenerate. | |
816 | ||
b9c361e0 JL |
817 | 2012-05-14 James Lemke <jwlemke@codesourcery.com> |
818 | Catherine Moore <clm@codesourcery.com> | |
819 | ||
820 | * bfd.c (bfd_lookup_section_flags): Add section parm. | |
821 | * ecoff.c (bfd_debug_section): Remove flag_info initializer. | |
822 | * elf-bfd.h (bfd_elf_section_data): Move in section_flag_info. | |
823 | (bfd_elf_lookup_section_flags): Add section parm. | |
824 | * elf32-ppc.c (is_ppc_vle): New function. | |
825 | (ppc_elf_modify_segment_map): New function. | |
826 | (elf_backend_modify_segment_map): Define. | |
827 | (has_vle_insns): New define. | |
828 | * elf32-ppc.h (ppc_elf_modify_segment_map): Declare. | |
829 | * elflink.c (bfd_elf_lookup_section_flags): Add return value & parm. | |
830 | Move in logic to omit / include a section. | |
831 | * libbfd-in.h (bfd_link_info): Add section parm. | |
832 | (bfd_generic_lookup_section_flags): Likewise. | |
833 | * reloc.c (bfd_generic_lookup_section_flags): Likewise. | |
834 | * section.c (bfd_section): Move out section_flag_info. | |
835 | (BFD_FAKE_SECTION): Remove flag_info initializer. | |
836 | * targets.c (_bfd_lookup_section_flags): Add section parm. | |
837 | ||
838 | 2012-05-14 Catherine Moore <clm@codesourcery.com> | |
839 | ||
840 | * archures.c (bfd_mach_ppc_vle): New. | |
841 | * bfd-in2.h: Regenerated. | |
842 | * cpu-powerpc.c (bfd_powerpc_archs): New entry for vle. | |
843 | * elf32-ppc.c (split16_format_type): New enumeration. | |
844 | (ppc_elf_vle_split16): New function. | |
845 | (HOWTO): Add entries for R_PPC_VLE relocations. | |
846 | (ppc_elf_reloc_type_lookup): Handle PPC_VLE relocations. | |
847 | (ppc_elf_section_flags): New function. | |
848 | (ppc_elf_lookup_section_flags): New function. | |
849 | (ppc_elf_section_processing): New function. | |
850 | (ppc_elf_check_relocs): Handle PPC_VLE relocations. | |
851 | (ppc_elf_relocation_section): Likewise. | |
852 | (elf_backend_lookup_section_flags_hook): Define. | |
853 | (elf_backend_section_flags): Define. | |
854 | (elf_backend_section_processing): Define. | |
6927f982 | 855 | * elf32-ppc.h (ppc_elf_section_processing): Declare. |
b9c361e0 JL |
856 | * libbfd.h: Regenerated. |
857 | * reloc.c (BFD_RELOC_PPC_VLE_REL8, BFD_RELOC_PPC_VLE_REL15, | |
858 | BFD_RELOC_PPC_VLE_REL24, BFD_RELOC_PPC_VLE_LO16A, | |
859 | BFD_RELOC_PPC_VLE_LO16D, BFD_RELOC_PPC_VLE_HI16A, | |
860 | BFD_RELOC_PPC_VLE_HI16D, BFD_RELOC_PPC_VLE_HA16A, | |
861 | BFD_RELOC_PPC_VLE_HA16D, BFD_RELOC_PPC_VLE_SDA21, | |
862 | BFD_RELOC_PPC_VLE_SDA21_LO, BFD_RELOC_PPC_VLE_SDAREL_LO16A, | |
863 | BFD_RELOC_PPC_VLE_SDAREL_LO16D, BFD_RELOC_PPC_VLE_SDAREL_HI16A, | |
864 | BFD_RELOC_PPC_VLE_SDAREL_HI16D, BFD_RELOC_PPC_VLE_SDAREL_HA16A, | |
865 | BFD_RELOC_PPC_VLE_SDAREL_HA16D): New bfd relocations. | |
866 | ||
8b127cbc | 867 | 2012-05-11 Georg-Johann Lay <avr@gjlay.de> |
99700d6f NC |
868 | |
869 | PR target/13503 | |
870 | * reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO, | |
871 | BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI. | |
872 | * bfd-in2.h: Regenerate. | |
873 | * libbfd.h: Regenrate. | |
874 | * elf32-avr.c (elf_avr_howto_table): Add entries for | |
875 | R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8. | |
876 | (avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8, | |
877 | R_AVR_8_HHI8. | |
878 | ||
268a8d3a L |
879 | 2012-05-10 H.J. Lu <hongjiu.lu@intel.com> |
880 | ||
881 | * elf64-x86-64.c (elf_x86_64_relocate_section): Use int in x32 | |
882 | addend overflow check. | |
883 | ||
74b1e045 DD |
884 | 2012-05-10 DJ Delorie <dj@redhat.com> |
885 | ||
886 | * elf32-rx.c (rx_elf_object_p): Ignore empty segments. | |
887 | ||
6f2c9068 L |
888 | 2012-05-10 H.J. Lu <hongjiu.lu@intel.com> |
889 | ||
890 | * elf64-x86-64.c (elf_x86_64_relocate_section): Display signed | |
891 | hex number in x32 addend overflow check. | |
892 | ||
1da80baa L |
893 | 2012-05-10 H.J. Lu <hongjiu.lu@intel.com> |
894 | ||
895 | * elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle | |
896 | R_X86_64_RELATIVE64. | |
897 | ||
8cf0d2dd L |
898 | 2012-05-09 H.J. Lu <hongjiu.lu@intel.com> |
899 | ||
900 | * elf64-x86-64.c (elf_x86_64_relocate_section): Check addend | |
901 | overflow for R_X86_64_RELATIVE64. | |
902 | ||
2d16d28e DK |
903 | 2012-05-08 Ben Cheng <bccheng@google.com> |
904 | ||
8b127cbc | 905 | * elf.c: Preserve the original p_align and p_flags if they are |
2d16d28e DK |
906 | valid. |
907 | ||
2de5d135 AM |
908 | 2012-05-07 Alan Modra <amodra@gmail.com> |
909 | ||
910 | * elf64-ia64-vms.c (elf64_ia64_relocate_section): Update | |
911 | RELOC_AGAINST_DISCARDED_SECTION invocation. | |
912 | ||
a134cc9b HPN |
913 | 2012-05-07 Hans-Peter Nilsson <hp@axis.com> |
914 | ||
915 | * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use | |
916 | local variable i_ instead of assuming and using a variable i. | |
917 | ||
545fd46b MR |
918 | 2012-05-07 Maciej W. Rozycki <macro@linux-mips.org> |
919 | ||
920 | * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound | |
921 | relocations. | |
922 | * elfxx-mips.c (mips_reloc_against_discarded_section): New | |
923 | function. | |
924 | (_bfd_mips_elf_relocate_section): Call it, in place of | |
925 | RELOC_AGAINST_DISCARDED_SECTION. | |
926 | * elf-m10200.c (mn10200_elf_relocate_section): Update arguments | |
927 | to RELOC_AGAINST_DISCARDED_SECTION. | |
928 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
929 | * elf32-arm.c (elf32_arm_relocate_section): Likewise. | |
930 | * elf32-avr.c (elf32_avr_relocate_section): Likewise. | |
931 | * elf32-bfin.c (bfin_relocate_section): Likewise. | |
932 | (bfinfdpic_relocate_section): Likewise. | |
933 | * elf32-cr16.c (elf32_cr16_relocate_section): Likewise. | |
934 | * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise. | |
935 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
936 | * elf32-crx.c (elf32_crx_relocate_section): Likewise. | |
937 | * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. | |
938 | * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise. | |
939 | * elf32-fr30.c (fr30_elf_relocate_section): Likewise. | |
940 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. | |
941 | * elf32-h8300.c (elf32_h8_relocate_section): Likewise. | |
942 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
943 | * elf32-i370.c (i370_elf_relocate_section): Likewise. | |
944 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
945 | * elf32-i860.c (elf32_i860_relocate_section): Likewise. | |
946 | * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise. | |
947 | * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise. | |
948 | * elf32-lm32.c (lm32_elf_relocate_section): Likewise. | |
949 | * elf32-m32c.c (m32c_elf_relocate_section): Likewise. | |
950 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
951 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise. | |
952 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
953 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
954 | * elf32-mep.c (mep_elf_relocate_section): Likewise. | |
955 | * elf32-moxie.c (moxie_elf_relocate_section): Likewise. | |
956 | * elf32-msp430.c (elf32_msp430_relocate_section): Likewise. | |
957 | * elf32-mt.c (mt_elf_relocate_section): Likewise. | |
958 | * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise. | |
959 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
960 | * elf32-rl78.c (rl78_elf_relocate_section): Likewise. | |
961 | * elf32-rx.c (rx_elf_relocate_section): Likewise. | |
962 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
963 | * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise. | |
964 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
965 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
966 | * elf32-spu.c (spu_elf_relocate_section): Likewise. | |
967 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise. | |
968 | * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise. | |
969 | * elf32-v850.c (v850_elf_relocate_section): Likewise. | |
970 | * elf32-vax.c (elf_vax_relocate_section): Likewise. | |
971 | * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise. | |
972 | * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. | |
973 | * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. | |
974 | * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise. | |
975 | (elf64_alpha_relocate_section): Likewise. | |
976 | * elf64-hppa.c (elf64_hppa_relocate_section): Likewise. | |
977 | * elf64-mmix.c (mmix_elf_relocate_section): Likewise. | |
978 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
979 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
980 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. | |
981 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
982 | * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
983 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. | |
984 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise. | |
985 | ||
62ab84ec AM |
986 | 2012-05-05 Alan Modra <amodra@gmail.com> |
987 | ||
988 | PR ld/14052 | |
989 | PR ld/13621 | |
990 | * linker.c (_bfd_nearby_section): Revert 2012-02-13 change. | |
991 | ||
45dfa85a AM |
992 | 2012-05-05 Alan Modra <amodra@gmail.com> |
993 | ||
994 | * aout-arm.c: Replace all uses of bfd_abs_section, bfd_com_section, | |
995 | bfd_und_section and bfd_ind_section with their _ptr variants, or | |
996 | use corresponding bfd_is_* macros. | |
997 | * aout-ns32k.c: Likewise. | |
998 | * aout-tic30.c: Likewise. | |
999 | * coff-arm.c: Likewise. | |
1000 | * coff-tic54x.c: Likewise. | |
1001 | * cpu-ns32k.c: Likewise. | |
1002 | * elf-attrs.c: Likewise. | |
1003 | * elfcode.h: Likewise. | |
1004 | * peicode.h: Likewise. | |
1005 | * reloc.c: Likewise. | |
1006 | * riscix.c: Likewise. | |
1007 | * versados.c: Likewise. | |
1008 | * section.c: Likewise. | |
1009 | (bfd_abs_section, bfd_ind_section, bfd_com_section, | |
1010 | bfd_ind_section): Delete. | |
1011 | (std_section): New array replacing above. | |
1012 | (bfd_abs_section_ptr, bfd_ind_section_ptr, bfd_com_section_ptr, | |
1013 | bfd_ind_section_ptr, STD_SECTION): Update. | |
1014 | (BFD_FAKE_SECTION, GLOBAL_SYM_INIT): Remove unnecessary casts. | |
36ab465d | 1015 | * bfd-in2.h: Regenerate. |
45dfa85a | 1016 | |
f6c1a2d5 NC |
1017 | 2012-05-03 Sean Keys <skeys@ipdatasys.com> |
1018 | ||
1019 | * cpu-xgate.c: New file. Added XGATE support. | |
1020 | * archures.c (bfd_architecture): Add XGATE architecture. | |
1021 | (bfd_archures_list): Add reference to XGATE architecture info. | |
1022 | * elf-bfd.h (prep_headers): Handle bfd_arch_xgate. | |
1023 | * reloc.c: Add various XGATE relocation enums. | |
1024 | * targets.c (bfd_elf32_xgate_vec): Declare and add to target vector | |
1025 | list. | |
1026 | * Makefile.am: Add support for XGATE elf. | |
1027 | * configure.in: Ditto. | |
1028 | * config.bfd: Ditto. | |
1029 | * Makefile.in: Regenerate. | |
1030 | * configure: Ditto. | |
1031 | * bfd-in2.h: Ditto. | |
1032 | * libbfd.h: Ditto. | |
1033 | Added files for XGATE relocations. | |
1034 | * elf32-xgate.c: Created minimal relocation file. | |
1035 | * elf32-xgate.h: Created minimal header file for elf32-xgate. | |
1036 | ||
fec16237 TG |
1037 | 2012-05-03 Tristan Gingold <gingold@adacore.com> |
1038 | ||
1039 | * dwarf2.c (decode_line_info): Ignore | |
1040 | DW_LNE_HP_source_file_correlation. | |
1041 | ||
57402f1e NC |
1042 | 2012-05-01 Nick Clifton <nickc@redhat.com> |
1043 | ||
1044 | PR binutils/13121 | |
1045 | * aoutx.h: Rename 'finfo' to 'flaginfo' to avoid conflicts with | |
1046 | AIX system headers. | |
1047 | * coff-ppc.c: Likewise. | |
1048 | * cofflink.c: Likewise. | |
1049 | * elf32-arm.c: Likewise. | |
1050 | * elf64-sparc.c: Likewise. | |
1051 | * elflink.c: Likewise. | |
1052 | * pdp11.c: Likewise. | |
1053 | * rescoff.c: Likewise. | |
1054 | ||
c49ead2f MW |
1055 | 2012-04-26 Mark Wielaard <mjw@redhat.com> |
1056 | ||
1057 | * dwarf2.c (scan_unit_for_symbols): Account for DW_AT_high_pc | |
1058 | possibly being relative to DW_AT_low_pc. | |
1059 | (parse_comp_unit): Likewise. | |
1060 | ||
cab0ad83 AS |
1061 | 2012-04-26 Andreas Schwab <schwab@linux-m68k.org> |
1062 | ||
1063 | * elf32-m68k.c (elf_m68k_check_relocs): Mark non-GOT references | |
1064 | also when generating PIE. | |
1065 | (elf_m68k_discard_copies): Mark undefined weak symbols referenced | |
1066 | by relocations as dynamic. | |
1067 | ||
2b56b3f3 HPN |
1068 | 2012-04-26 Hans-Peter Nilsson <hp@axis.com> |
1069 | ||
1070 | Provide a way for programs to recognize BFD_ASSERT calls. | |
1071 | * bfd.c (bfd_assert_handler_type): New API type. | |
1072 | (bfd_set_assert_handler, bfd_get_assert_handler): New API functions. | |
1073 | (_bfd_assert_handler): New variable. | |
1074 | (_bfd_default_assert_handler): New function. | |
1075 | (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler. | |
1076 | * libbfd-in.h (_bfd_assert_handler): Declare. | |
1077 | * libbfd.h, bfd-in2.h: Regenerate. | |
1078 | ||
27586251 HPN |
1079 | 2012-04-24 Hans-Peter Nilsson <hp@axis.com> |
1080 | ||
1081 | PR ld/13990 | |
1082 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local | |
1083 | symbol, where PLT refcount is set to -1. | |
1084 | ||
dbaa2011 AM |
1085 | 2012-04-24 Alan Modra <amodra@gmail.com> |
1086 | ||
1087 | PR ld/13991 | |
8b127cbc | 1088 | * elf-bfd.h (_bfd_elf_link_just_syms): Define as |
dbaa2011 | 1089 | _bfd_generic_link_just_syms. |
8b127cbc AM |
1090 | * elflink.c (_bfd_elf_link_just_syms): Delete. |
1091 | * linker.c (_bfd_generic_link_just_syms): Set sec_info_type. | |
dbaa2011 | 1092 | |
8b127cbc AM |
1093 | * bfd-in.h (discarded_section): Renamed from elf_discarded_section. |
1094 | * section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS, | |
dbaa2011 AM |
1095 | SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME, |
1096 | SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE. | |
8b127cbc AM |
1097 | * elf-eh-frame.c, * elf-m10200.c, * elf-m10300.c, |
1098 | * elf.c, * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c, | |
1099 | * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, | |
1100 | * elf32-crx.c, * elf32-d10v.c, * elf32-epiphany.c, | |
1101 | * elf32-fr30.c, * elf32-frv.c, * elf32-h8300.c, | |
1102 | * elf32-hppa.c, * elf32-i370.c, * elf32-i386.c, | |
1103 | * elf32-i860.c, * elf32-ip2k.c, * elf32-iq2000.c, | |
1104 | * elf32-lm32.c, * elf32-m32c.c, * elf32-m32r.c, | |
1105 | * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c, | |
1106 | * elf32-mep.c, * elf32-moxie.c, * elf32-msp430.c, | |
1107 | * elf32-mt.c, * elf32-openrisc.c, * elf32-ppc.c, | |
1108 | * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c, | |
1109 | * elf32-score.c, * elf32-score7.c, * elf32-sh.c, | |
1110 | * elf32-spu.c, * elf32-tic6x.c, * elf32-tilepro.c, | |
1111 | * elf32-v850.c, * elf32-vax.c, * elf32-xc16x.c, | |
1112 | * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c, | |
1113 | * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c, | |
1114 | * elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c, | |
1115 | * elf64-x86-64.c, * elflink.c, * elfnn-ia64.c, | |
1116 | * elfxx-mips.c, * elfxx-sparc.c, * elfxx-tilegx.c, | |
1117 | * reloc.c: Update all references. | |
1118 | * bfd-in2.h: Regenerate. | |
dbaa2011 | 1119 | |
87049b0d AK |
1120 | 2012-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
1121 | ||
1122 | * elf32-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default. | |
1123 | * elf64-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default. | |
1124 | ||
85e02784 TS |
1125 | 2012-04-19 Thomas Schwinge <thomas@codesourcery.com> |
1126 | ||
1127 | * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for | |
1128 | got_type. | |
1129 | (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use | |
1130 | it. | |
1131 | ||
87458ed2 KK |
1132 | 2012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
1133 | ||
1134 | * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic | |
1135 | relocations when LE conversion happens on the IE tls symbol. | |
1136 | ||
ea2d813e RM |
1137 | 2012-04-17 Roland McGrath <mcgrathr@google.com> |
1138 | ||
1139 | * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding | |
1140 | so that 32-byte boundary is a proper instruction boundary. | |
1141 | ||
da03bf4d TG |
1142 | 2012-04-17 Tristan Gingold <gingold@adacore.com> |
1143 | ||
1144 | * vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to | |
1145 | member of an object archive.< | |
1146 | ||
d2226024 TG |
1147 | 2012-04-17 Tristan Gingold <gingold@adacore.com> |
1148 | ||
1149 | * vms-lib.c (MAX_EKEYLEN): Define. | |
1150 | (MAX_KEYLEN): Fix value. | |
1151 | (vms_write_index): Add comments and fix indentation. | |
1152 | Adjust comparaison. Add assertions. Free kbn_blk. | |
1153 | (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN. | |
1154 | Compense MAX_KEYLEN adjustment. | |
1155 | ||
cb4437b8 MR |
1156 | 2012-04-16 Maciej W. Rozycki <macro@linux-mips.org> |
1157 | ||
1158 | * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs. | |
1159 | (_bfd_mips_elf_check_relocs): Update accordingly. | |
1160 | ||
aed64b35 L |
1161 | 2012-04-13 Alan Modra <amodra@gmail.com> |
1162 | ||
1163 | PR ld/13947 | |
1164 | * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for | |
1165 | reloc sections. | |
1166 | ||
2615994e DM |
1167 | 2012-04-12 David S. Miller <davem@davemloft.net> |
1168 | ||
1169 | * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32, | |
1170 | BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs. | |
1171 | * libbfd.h: Regenerate. | |
1172 | * bfd-in2.h: Likewise. | |
1173 | * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function. | |
1174 | (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34, | |
1175 | R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10. | |
1176 | (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs. | |
1177 | (_bfd_sparc_elf_check_relocs): Likewise. | |
1178 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
1179 | (_bfd_sparc_elf_relocate_section): Likewise. | |
1180 | ||
b38cadfb NC |
1181 | 2012-04-12 Roland McGrath <mcgrathr@google.com> |
1182 | ||
1183 | * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry): | |
1184 | New variables. | |
1185 | (struct elf32_arm_link_hash_table): New member `nacl_p'. | |
1186 | (elf32_arm_link_hash_table_create): Initialize it. | |
1187 | (elf32_arm_nacl_link_hash_table_create): New function. | |
1188 | (arm_movw_immediate, arm_movt_immediate): New functions. | |
1189 | (elf32_arm_populate_plt_entry): Test HTAB->nacl_p. | |
1190 | (elf32_arm_finish_dynamic_sections): Likewise. | |
1191 | (elf32_arm_output_plt_map_1): Likewise. | |
1192 | (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec): | |
1193 | New backend vector stanza. | |
1194 | (elf32_arm_nacl_modify_segment_map): New function. | |
1195 | * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*. | |
1196 | * targets.c: Support bfd_elf32_{big,little}_nacl_vec. | |
1197 | * configure.in: Likewise. | |
1198 | (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here. | |
1199 | (bfd_elf32_littlearm_nacl_vec): Likewise. | |
1200 | (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise. | |
1201 | (bfd_elf32_bigarm_symbian_vec): Likewise. | |
1202 | (bfd_elf32_littlearm_symbian_vec): Likewise. | |
1203 | (bfd_elf32_bigarm_vxworks_vec): Likewise. | |
1204 | (bfd_elf32_littlearm_vxworks_vec): Likewise. | |
1205 | * configure: Regenerated. | |
1206 | ||
202e2356 NC |
1207 | 2012-04-12 Tristan Gingold <gingold@adacore.com> |
1208 | ||
1209 | * elflink.c (elf_link_output_extsym): Add a guard. | |
1210 | (bfd_elf_final_link): Remove assertion. | |
1211 | (bfd_elf_final_link): Add a guard. | |
1212 | * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed. | |
1213 | (elfNN_vms_section_from_shdr, elfNN_vms_object_p) | |
1214 | (elfNN_vms_post_process_headers, elfNN_vms_section_processing) | |
1215 | (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup): | |
1216 | Remove. | |
1217 | (elfNN-ia64-vms target): Move to ... | |
1218 | * elf64-ia64-vms.c: New file. | |
1219 | * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo | |
1220 | * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo. | |
1221 | (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c. | |
1222 | * configure: Regenerate. | |
1223 | * Makefile.in: Regenerate. | |
1224 | ||
4841cf0c NC |
1225 | 2012-04-11 Nick Clifton <nickc@redhat.com> |
1226 | ||
1227 | PR binutils/13897 | |
1228 | * elf64-ppc.c (opd_entry_value): When dealing with sections | |
1229 | without relocs, keep the last section loaded in order to avoid | |
1230 | unnecessary reloads. | |
1231 | ||
d324f6d6 RM |
1232 | 2012-04-09 Roland McGrath <mcgrathr@google.com> |
1233 | ||
1234 | * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs. | |
1235 | * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs. | |
1236 | (nacl_modify_program_headers): Likewise. | |
1237 | ||
5a68afcf RM |
1238 | 2012-04-03 Roland McGrath <mcgrathr@google.com> |
1239 | ||
1240 | * elf-nacl.c: New file. | |
1241 | * elf-nacl.h: New file. | |
1242 | * elf32-i386.c (elf_backend_modify_segment_map): Define for | |
1243 | bfd_elf32_i386_nacl_vec. | |
1244 | (elf_backend_modify_program_headers): Likewise. | |
1245 | * elf64-x86-64.c (elf_backend_modify_segment_map): Define for | |
1246 | bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec. | |
1247 | (elf_backend_modify_program_headers): Likewise. | |
1248 | * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here. | |
1249 | (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here. | |
1250 | * Makefile.in: Regenerated. | |
1251 | * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here. | |
1252 | (bfd_elf32_x86_64_nacl_vec): Likewise. | |
1253 | (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise. | |
1254 | (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise. | |
1255 | (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise. | |
1256 | (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise. | |
1257 | (bfd_elf32_i386_nacl_vec): Likewise. | |
1258 | (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise. | |
1259 | (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise. | |
1260 | * configure: Regenerated. | |
1261 | ||
3a4ae681 AS |
1262 | 2012-03-31 Andreas Schwab <schwab@linux-m68k.org> |
1263 | ||
1264 | * elf32-m68k.c (elf_m68k_relocate_section): Allow | |
1265 | R_68K_TLS_LE{8,16,32} for PIE. | |
1266 | ||
a7e28bbe AK |
1267 | 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
1268 | ||
1269 | * elf64-s390.c: Fix several comments regarding PLT entry | |
1270 | description. | |
1271 | * elf32-s390.c: Likewise. | |
1272 | ||
f41345a7 AK |
1273 | 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
1274 | ||
1275 | * elf64-s390.c: Use the section pointer shortcuts in | |
1276 | elf_link_hash_table and remove them from the target specific | |
1277 | variant. | |
1278 | * elf32-s390.c: Likewise. | |
1279 | ||
9aa17453 AK |
1280 | 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
1281 | ||
1282 | * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry): | |
1283 | New definitions. | |
1284 | (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove. | |
1285 | (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32. | |
1286 | (elf_s390_finish_dynamic_sections): Likewise. | |
1287 | * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry) | |
1288 | (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry) | |
1289 | (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions. | |
1290 | (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*) | |
1291 | (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove. | |
1292 | ||
00d8c7a9 AK |
1293 | 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
1294 | ||
1295 | * elf32-s390.c (struct elf_s390_dyn_relocs): Remove. | |
1296 | Rename all occurrences in the file to elf_dyn_relocs. | |
1297 | * elf64-s390.c: Likewise. | |
1298 | ||
a66eed7a AM |
1299 | 2012-03-30 Alan Modra <amodra@gmail.com> |
1300 | ||
1301 | * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic | |
1302 | libraries. | |
1303 | ||
f67f98b5 AM |
1304 | 2012-03-29 Alan Modra <amodra@gmail.com> |
1305 | ||
1306 | * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete. | |
1307 | * bfd-in2.h: Regenerate. | |
1308 | ||
e8d2ba53 AM |
1309 | 2012-03-23 Alan Modra <amodra@gmail.com> |
1310 | ||
1311 | * elf.c (assign_file_positions_for_non_load_sections): Don't warn | |
1312 | on empty alloc sections. | |
1313 | ||
051d833a AM |
1314 | 2012-03-23 Alan Modra <amodra@gmail.com> |
1315 | ||
1316 | * linker.c (_bfd_nearby_section): New function, split out from.. | |
1317 | (fix_syms): ..here. | |
1318 | * bfd-in.h (_bfd_nearby_section): Declare. | |
1319 | * bfd-in2.h: Regenerate. | |
1320 | * elflink.c (elf_link_input_bfd): Don't use text_index_section or | |
1321 | data_index_section with ld -q or ld -r output relocs against | |
1322 | stripped output sections. Instead use _bfd_nearby_section. | |
1323 | ||
62599110 AM |
1324 | 2012-03-23 Alan Modra <amodra@gmail.com> |
1325 | ||
1326 | PR binutils/13894 | |
1327 | * elf64-ppc.c (opd_entry_value): Read full symbol table when | |
1328 | sym hashes unavailable. | |
1329 | ||
b781d74f JM |
1330 | 2012-03-21 Eliot Dresselhaus <eliot@sonic.net> |
1331 | ||
1332 | * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE | |
1333 | for non-C6X objects. | |
1334 | ||
17d5dae2 KT |
1335 | 2012-03-20 Kai Tietz <ktietz@redhat.com> |
1336 | ||
1337 | PR ld/12742 | |
1338 | * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h. | |
1339 | * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined. | |
1340 | Add windows.h header include if HAVE_WINDOWS_H is defined. | |
1341 | (dlerror): New static function if windows variant is used instead | |
1342 | of dlfcn.h. | |
1343 | (dlclose): Likewise. | |
1344 | (dlopen): Likewise. | |
1345 | (dlsym): Likewise. | |
1346 | * configure: Regenerated. | |
1347 | * config.in: Regenerated. | |
1348 | ||
bdb892b9 L |
1349 | 2012-03-20 H.J. Lu <hongjiu.lu@intel.com> |
1350 | ||
1351 | PR ld/13880 | |
1352 | * elf32-i386.c (elf_i386_relocate_section): Don't issue an error | |
1353 | for R_386_GOTOFF relocation against protected function if | |
1354 | SYMBOLIC_BIND is true. | |
1355 | ||
1356 | * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an | |
1357 | error for R_X86_64_GOTOFF64 relocation against protected function | |
1358 | when building executable or SYMBOLIC_BIND is true. | |
1359 | ||
8059fb19 RM |
1360 | 2012-03-16 Roland McGrath <mcgrathr@google.com> |
1361 | ||
1362 | * config.bfd: Handle x86_64-*-nacl*. | |
1363 | * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza. | |
1364 | (bfd_elf32_x86_64_nacl_vec): Likewise. | |
1365 | * targets.c: Support them. | |
1366 | * configure.in: Likewise. | |
1367 | * configure: Regenerated. | |
1368 | ||
ac56ee8f MGD |
1369 | 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
1370 | ||
1371 | * elf32-arm.c (elf32_arm_attributes_accept_div): New function. | |
1372 | (elf32_arm_attributes_forbid_div): Likewise. | |
1373 | (elf32_arm_merge_eabi_attributes): Correct handling of | |
1374 | Tag_DIV_use. | |
1375 | ||
eed180f8 RM |
1376 | 2012-03-15 Roland McGrath <mcgrathr@google.com> |
1377 | ||
a4456d24 RM |
1378 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use |
1379 | elf_x86_64_backend_data parameters for plt_eh_frame. | |
1380 | ||
eed180f8 RM |
1381 | * elf64-x86-64.c (struct elf_x86_64_backend_data): New type. |
1382 | (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros. | |
1383 | (elf_x86_64_arch_bed): New variable. | |
1384 | (elf_backend_arch_data): New macro. | |
1385 | (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE. | |
1386 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
1387 | (elf_x86_64_relocate_section): Likewise. | |
1388 | (elf_x86_64_plt_sym_val): Likewise. | |
1389 | (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data | |
1390 | parameters for PLT details. | |
1391 | (elf_x86_64_finish_dynamic_sections): Likewise. | |
1392 | ||
caa0075c RM |
1393 | 2012-03-14 Roland McGrath <mcgrathr@google.com> |
1394 | ||
1395 | * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up | |
1396 | to the full size, padding out with nop instructions. | |
1397 | ||
1d7e9d18 AM |
1398 | 2012-03-12 Alan Modra <amodra@gmail.com> |
1399 | ||
1400 | * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn | |
1401 | on zero size dynbss symbol. | |
1402 | * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise. | |
1403 | * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise. | |
1404 | * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise. | |
1405 | * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
1406 | * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise. | |
1407 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise. | |
1408 | * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise. | |
1409 | * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise. | |
1410 | * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. | |
1411 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. | |
1412 | * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
1413 | * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise. | |
1414 | * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise. | |
1415 | * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise. | |
1416 | * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise. | |
1417 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
1418 | * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
1419 | * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise. | |
1420 | * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. | |
1421 | * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. | |
1422 | * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise. | |
1423 | ||
aea77599 AM |
1424 | 2012-03-10 Edmar Wienskoski <edmar@freescale.com> |
1425 | ||
1426 | * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500. | |
1427 | * bfd-in2.h: Regenerate. | |
1428 | * cpu-powerpc.c (bfd_powerpc_archs): Add entries for | |
1429 | bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500. | |
1430 | ||
56b8aada L |
1431 | 2012-03-09 H.J. Lu <hongjiu.lu@intel.com> |
1432 | ||
1433 | PR ld/13817 | |
8b127cbc | 1434 | * elf32-i386.c (elf_i386_relocate_section): Restore |
56b8aada L |
1435 | R_386_IRELATIVE. |
1436 | ||
8b127cbc | 1437 | * elf64-x86-64.c (elf_x86_64_relocate_section): Restore |
56b8aada L |
1438 | R_X86_64_IRELATIVE. |
1439 | ||
460f1cdc TG |
1440 | 2012-03-08 Tristan Gingold <gingold@adacore.com> |
1441 | ||
1442 | * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum | |
1443 | keylen according to archive kind. Set nextvbn and nextrfa lhd | |
1444 | fields. Add comments. | |
1445 | ||
0a22ae8e NC |
1446 | 2012-03-07 Nick Clifton <nickc@redhat.com> |
1447 | ||
1448 | * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type | |
1449 | field. | |
1450 | (elf32_mn10300_link_hash_table): Add tls_ldm_got entry; | |
1451 | (elf_mn10300_tdata): Define. | |
1452 | (elf_mn10300_local_got_tls_type): Define. | |
1453 | (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD, | |
1454 | R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE, | |
1455 | R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD, | |
1456 | R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs. | |
1457 | (mn10300_reloc_map): Likewise. | |
1458 | (elf_mn10300_tls_transition): New function. | |
1459 | (dtpoff, tpoff, mn10300_do_tls_transition): New functions. | |
1460 | (mn10300_elf_check_relocs): Add TLS support. | |
1461 | (mn10300_elf_final_link_relocate): Likewise. | |
1462 | (mn10300_elf_relocate_section): Likewise. | |
1463 | (mn10300_elf_relax_section): Likewise. | |
1464 | (elf32_mn10300_link_hash_newfunc): Initialise new field. | |
1465 | (_bfd_mn10300_copy_indirect_symbol): New function. | |
1466 | (elf32_mn10300_link_hash_table_create): Initialise new fields. | |
1467 | (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support. | |
1468 | (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise. | |
1469 | (_bfd_mn10300_elf_reloc_type_class): Allocate an | |
1470 | elf_mn10300_obj_tdata structure. | |
1471 | (elf_backend_copy_indirect_symbol): Define. | |
1472 | * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD, | |
1473 | BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE, | |
1474 | BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD, | |
1475 | BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations. | |
1476 | (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to | |
1477 | alongside other MN10300 relocations. | |
1478 | * bfd-in2.h: Regenerate. | |
1479 | * libbfd.h: Regenerate. | |
1480 | ||
3ce231f8 JJ |
1481 | 2012-03-06 Jakub Jelinek <jakub@redhat.com> |
1482 | ||
1483 | * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE | |
1484 | set relocate to TRUE. | |
1485 | ||
0bef263a RO |
1486 | 2012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
1487 | ||
1488 | PR ld/12152 | |
1489 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore | |
1490 | overflows for R_SPARC_UA32 in .stab sections. | |
1491 | ||
84abc003 AM |
1492 | 2012-03-01 Alan Modra <amodra@gmail.com> |
1493 | ||
1494 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning. | |
1495 | ||
3d301fdc AM |
1496 | 2012-02-27 Alan Modra <amodra@gmail.com> |
1497 | ||
1498 | * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd | |
1499 | before calling elf specific function. | |
1500 | (sh_elf_osec_readonly_p): Test for error return from above. | |
1501 | ||
cb83c803 AM |
1502 | 2012-02-27 Alan Modra <amodra@gmail.com> |
1503 | ||
1504 | * elf32-spu.c (build_stub): Fix malloc under-allocation. | |
1505 | ||
6f7be959 WL |
1506 | 2012-02-25 Walter Lee <walt@tilera.com> |
1507 | * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL, | |
1508 | BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD, | |
1509 | BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD, | |
1510 | BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD, | |
1511 | BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD, | |
1512 | BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE, | |
1513 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE, | |
1514 | BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO, | |
1515 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO, | |
1516 | BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI, | |
1517 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI, | |
1518 | BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA, | |
1519 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA, | |
1520 | BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE, | |
1521 | BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE, | |
1522 | BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE, | |
1523 | BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE, | |
1524 | BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE, | |
1525 | BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE, | |
1526 | BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD, | |
1527 | BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD, | |
1528 | BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD, | |
1529 | BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD, | |
1530 | BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD, | |
1531 | BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD, | |
1532 | BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD. | |
1533 | Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT, | |
1534 | BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT, | |
1535 | BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT, | |
1536 | BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT, | |
1537 | BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT, | |
1538 | BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT, | |
1539 | BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT, | |
1540 | BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT, | |
1541 | BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD, | |
1542 | BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD, | |
1543 | BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD, | |
1544 | BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD, | |
1545 | BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD, | |
1546 | BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD, | |
1547 | BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD, | |
1548 | BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD, | |
1549 | BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE, | |
1550 | BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE, | |
1551 | BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE, | |
1552 | BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE, | |
1553 | BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE, | |
1554 | BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE, | |
1555 | BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE, | |
1556 | BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE. | |
1557 | * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro | |
1558 | relocations. | |
1559 | (tilepro_reloc_map): Ditto. | |
1560 | (tilepro_info_to_howto_rela): Ditto. | |
1561 | (reloc_to_create_func): Ditto. | |
1562 | (tilepro_tls_translate_to_le): New. | |
1563 | (tilepro_tls_translate_to_ie): New. | |
1564 | (tilepro_elf_tls_transition): New. | |
1565 | (tilepro_elf_check_relocs): Handle new tls relocations. | |
1566 | (tilepro_elf_gc_sweep_hook): Ditto. | |
1567 | (allocate_dynrelocs): Ditto. | |
1568 | (tilepro_elf_relocate_section): Ditto. | |
1569 | (tilepro_replace_insn): New. | |
1570 | (insn_mask_X1): New. | |
1571 | (insn_mask_X0_no_dest_no_srca): New | |
1572 | (insn_mask_X1_no_dest_no_srca): New | |
1573 | (insn_mask_Y0_no_dest_no_srca): New | |
1574 | (insn_mask_Y1_no_dest_no_srca): New | |
1575 | (srca_mask_X0): New | |
1576 | (srca_mask_X1): New | |
1577 | (insn_tls_le_move_X1): New | |
1578 | (insn_tls_le_move_zero_X0X1): New | |
1579 | (insn_tls_ie_lw_X1): New | |
1580 | (insn_tls_ie_add_X0X1): New | |
1581 | (insn_tls_ie_add_Y0Y1): New | |
1582 | (insn_tls_gd_add_X0X1): New | |
1583 | (insn_tls_gd_add_Y0Y1): New | |
1584 | * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx | |
1585 | relocations. | |
1586 | (tilegx_reloc_map): Ditto. | |
1587 | (tilegx_info_to_howto_rela): Ditto. | |
1588 | (reloc_to_create_func): Ditto. | |
1589 | (tilegx_elf_link_hash_table): New field disable_le_transition. | |
1590 | (tilegx_tls_translate_to_le): New. | |
1591 | (tilegx_tls_translate_to_ie): New. | |
1592 | (tilegx_elf_tls_transition): New. | |
1593 | (tilegx_elf_check_relocs): Handle new tls relocations. | |
1594 | (tilegx_elf_gc_sweep_hook): Ditto. | |
1595 | (allocate_dynrelocs): Ditto. | |
1596 | (tilegx_elf_relocate_section): Ditto. | |
1597 | (tilegx_copy_bits): New. | |
1598 | (tilegx_replace_insn): New. | |
1599 | (insn_mask_X1): New. | |
1600 | (insn_mask_X0_no_dest_no_srca): New. | |
1601 | (insn_mask_X1_no_dest_no_srca): New. | |
1602 | (insn_mask_Y0_no_dest_no_srca): New. | |
1603 | (insn_mask_Y1_no_dest_no_srca): New. | |
1604 | (insn_mask_X0_no_operand): New. | |
1605 | (insn_mask_X1_no_operand): New. | |
1606 | (insn_mask_Y0_no_operand): New. | |
1607 | (insn_mask_Y1_no_operand): New. | |
1608 | (insn_tls_ie_ld_X1): New. | |
1609 | (insn_tls_ie_ld4s_X1): New. | |
1610 | (insn_tls_ie_add_X0X1): New. | |
1611 | (insn_tls_ie_add_Y0Y1): New. | |
1612 | (insn_tls_ie_addx_X0X1): New. | |
1613 | (insn_tls_ie_addx_Y0Y1): New. | |
1614 | (insn_tls_gd_add_X0X1): New. | |
1615 | (insn_tls_gd_add_Y0Y1): New. | |
1616 | (insn_move_X0X1): New. | |
1617 | (insn_move_Y0Y1): New. | |
1618 | (insn_add_X0X1): New. | |
1619 | (insn_add_Y0Y1): New. | |
1620 | (insn_addx_X0X1): New. | |
1621 | (insn_addx_Y0Y1): New. | |
1622 | * libbfd.h: Regenerate. | |
1623 | * bfd-in2.h: Regenerate. | |
1624 | ||
82590249 WL |
1625 | 2012-02-25 Walter Lee <walt@tilera.com> |
1626 | ||
fb6cedde WL |
1627 | * config.bfd (tilegx-*-*): rename little endian vector; add big |
1628 | endian vector. | |
1629 | (tilegxbe-*-*): New case. | |
1630 | * configure.in (bfd_elf32_tilegx_vec): Rename... | |
1631 | (bfd_elf32_tilegx_le_vec): ... to this. | |
1632 | (bfd_elf32_tilegx_be_vec): New vector. | |
1633 | (bfd_elf64_tilegx_vec): Rename... | |
1634 | (bfd_elf64_tilegx_le_vec): ... to this. | |
1635 | (bfd_elf64_tilegx_be_vec): New vector. | |
1636 | * configure: Regenerate. | |
1637 | * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename. | |
1638 | (TARGET_LITTLE_NAME): Ditto. | |
1639 | (TARGET_BIG_SYM): Define. | |
1640 | (TARGET_BIG_NAME): Define. | |
1641 | * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename. | |
1642 | (TARGET_LITTLE_NAME): Ditto. | |
1643 | (TARGET_BIG_SYM): Define. | |
1644 | (TARGET_BIG_NAME): Define. | |
1645 | * targets.c (bfd_elf32_tilegx_vec): Rename... | |
1646 | (bfd_elf32_tilegx_le_vec): ... to this. | |
1647 | (bfd_elf32_tilegx_be_vec): Declare. | |
1648 | (bfd_elf64_tilegx_vec): Rename... | |
1649 | (bfd_elf64_tilegx_le_vec): ... to this. | |
1650 | (bfd_elf64_tilegx_be_vec): Declare. | |
1651 | (_bfd_target_vector): Add / rename above vectors. | |
82590249 WL |
1652 | * arctures.c (bfd_architecture): Define bfd_mach_tilegx32. |
1653 | * bfd-in2.h: Regenerate. | |
1654 | * cpu-tilegx.c (bfd_tilegx32_arch): define. | |
fb6cedde | 1655 | (bfd_tilegx_arch): link to bfd_tilegx32_arch. |
82590249 | 1656 | |
4115917d NC |
1657 | 2012-02-24 Nick Clifton <nickc@redhat.com> |
1658 | ||
1659 | PR ld/13730 | |
1660 | * reloc.c (bfd_generic_get_relocated_section_contents): Issue an | |
1661 | error message instead of aborting, when an outofrange reloc is | |
1662 | encountered. | |
1663 | ||
19765f52 IS |
1664 | 2012-02-23 Iain Sandoe <idsandoe@googlemail.com> |
1665 | ||
1666 | * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New. | |
1667 | (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc | |
1668 | bit-fields when target and host differ in endian-ness. When | |
1669 | PAIRs are non-scattered find the 'symbol' from the preceding | |
1670 | reloc. Add FIXME re. reloc symbols on section boundaries. | |
1671 | (bfd_mach_o_swap_out_non_scattered_reloc): New. | |
1672 | (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc. | |
1673 | ||
6639d37a IS |
1674 | 2012-02-17 Iain Sandoe <idsandoe@googlemail.com> |
1675 | ||
1676 | * mach-o-i386.c (i386_howto_table): Add support for 16 bit | |
1677 | sect-diffs. | |
1678 | (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs. | |
1679 | (bfd_mach_o_i386_swap_reloc_out): Likewise. | |
1680 | ||
e1e81ed3 IS |
1681 | 2012-02-17 Tristan Gingold <gingold@adacore.com> |
1682 | ||
1683 | * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF): | |
1684 | * libbfd.h: Regenerated. | |
1685 | * bfd-in2.h: Likewise. | |
1686 | * mach-o-i386.c (i386_howto_table): Include local sectdiff. | |
1687 | (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff. | |
1688 | (bfd_mach_o_i386_swap_reloc_out): Likewise. | |
1689 | ||
d0ddfe27 AK |
1690 | 2012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
1691 | ||
1692 | * elf32-s390.c (elf_s390_relocate_section): Support basr in the | |
1693 | GD->LE and LD->LE optimizations. | |
1694 | ||
eb8c5f3f AM |
1695 | 2012-02-16 Alan Modra <amodra@gmail.com> |
1696 | ||
1697 | PR binutils/13355 | |
1698 | * elf32-rx.c (elf32_rx_relax_section): Correct width check. | |
1699 | ||
e1741a1e RH |
1700 | 2012-02-13 Richard Henderson <rth@redhat.com> |
1701 | ||
1702 | PR ld/13621 | |
1703 | * linker.c (fix_syms): Force symbols outside any section into | |
1704 | bfd_abs_section_ptr. | |
1705 | ||
5efbbc43 AM |
1706 | 2012-02-13 Alan Modra <amodra@gmail.com> |
1707 | ||
1708 | * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function. | |
1709 | * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare. | |
1710 | * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define. | |
1711 | * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define. | |
1712 | ||
3e3c397d JK |
1713 | 2012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
1714 | Nick Clifton <nickc@redhat.com> | |
1715 | ||
1716 | * oasys.c (oasys_write_header): Fix compilation warning on zero-sized | |
1717 | memset. | |
1718 | ||
09903f4b IS |
1719 | 2012-02-10 Iain Sandoe <idsandoe@googlemail.com> |
1720 | ||
1721 | * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section | |
1722 | vma additions in their logical, rather than physical order. | |
1723 | ||
632039e0 IS |
1724 | 2012-02-10 Iain Sandoe <idsandoe@googlemail.com> |
1725 | ||
1726 | * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section | |
1727 | parameters. | |
1728 | * mach-o-x86-64.c (text_section_names_xlat): New. | |
1729 | (mach_o_x86_64_segsec_names_xlat): New. | |
1730 | (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat. | |
1731 | * mach-o-i386.c (text_section_names_xlat): Correct section parameters. | |
1732 | ||
565a6476 TG |
1733 | 2012-02-10 Tristan Gingold <gingold@adacore.com> |
1734 | ||
1735 | * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator | |
1736 | to avoid infinite loop. Add comments. | |
1737 | ||
923f257f L |
1738 | 2012-02-09 H.J. Lu <hongjiu.lu@intel.com> |
1739 | ||
1740 | PR ld/13675 | |
1741 | * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte | |
1742 | nop instructions. | |
1743 | (bfd_arch_i386_short_nop_fill): New. | |
1744 | (bfd_arch_i386_long_nop_fill): Likewise. | |
1745 | Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info | |
1746 | initializers. Use bfd_arch_i386_long_nop_fill on 64bit | |
1747 | bfd_arch_info initializers. | |
1748 | ||
1749 | * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ... | |
1750 | (bfd_arch_i386_short_nop_fill): This. | |
1751 | Update bfd_arch_info initializers. | |
1752 | * cpu-l1om.c: Likewise. | |
1753 | ||
4e6b54a6 AM |
1754 | 2012-02-08 Alan Modra <amodra@gmail.com> |
1755 | ||
1756 | * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too. | |
1757 | (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear | |
1758 | the correct h->u.weakdef. | |
1759 | ||
ff9e0f5b AM |
1760 | 2012-02-07 Alan Modra <amodra@gmail.com> |
1761 | ||
1762 | * elf.c (elf_find_function): Don't use internal_elf_sym. | |
1763 | (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type | |
1764 | parameter with asymbol. | |
1765 | * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise. | |
1766 | * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype. | |
1767 | (struct elf_backend_data <maybe_function_sym>): Likewise. | |
1768 | ||
526f25b2 EW |
1769 | 2012-02-02 Vidya Praveen (vidya.praveen@atmel.com) |
1770 | ||
1771 | PR bfd/13410 | |
8b127cbc | 1772 | * elf32-avr.c (elf32_avr_relax_section): Correct the |
526f25b2 EW |
1773 | condition that qualifies the candidates for relaxation. |
1774 | ||
7c4f9963 TG |
1775 | 2012-02-02 Tristan Gingold <gingold@adacore.com> |
1776 | ||
1777 | * bfdio.c (real_fopen): Remove unused vms_modes variable. | |
1778 | ||
facf03f2 TG |
1779 | 2012-02-02 Tristan Gingold <gingold@adacore.com> |
1780 | ||
1781 | * mach-o.c (bfd_mach_o_read_header): Silent uninitialized | |
1782 | variable warning. | |
1783 | ||
cd99171c TG |
1784 | 2012-02-02 Tristan Gingold <gingold@adacore.com> |
1785 | ||
1786 | * archive.c (bfd_slurp_armap): Fix thinko in cast. | |
1787 | ||
b7761f11 L |
1788 | 2012-01-31 H.J. Lu <hongjiu.lu@intel.com> |
1789 | ||
1790 | PR ld/13616 | |
1791 | * archures.c (bfd_arch_info): Add fill. | |
1792 | (bfd_default_arch_struct): Add bfd_arch_default_fill. | |
1793 | (bfd_arch_default_fill): New. | |
1794 | ||
1795 | * configure.in: Set bfd version to 2.22.52. | |
1796 | * configure: Regenerated. | |
1797 | ||
1798 | * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info | |
1799 | initializer. | |
1800 | * cpu-arc.c: Likewise. | |
1801 | * cpu-arm.c: Likewise. | |
1802 | * cpu-avr.c: Likewise. | |
1803 | * cpu-bfin.c: Likewise. | |
1804 | * cpu-cr16.c: Likewise. | |
1805 | * cpu-cr16c.c: Likewise. | |
1806 | * cpu-cris.c: Likewise. | |
1807 | * cpu-crx.c: Likewise. | |
1808 | * cpu-d10v.c: Likewise. | |
1809 | * cpu-d30v.c: Likewise. | |
1810 | * cpu-dlx.c: Likewise. | |
1811 | * cpu-epiphany.c: Likewise. | |
1812 | * cpu-fr30.c: Likewise. | |
1813 | * cpu-frv.c: Likewise. | |
1814 | * cpu-h8300.c: Likewise. | |
1815 | * cpu-h8500.c: Likewise. | |
1816 | * cpu-hppa.c: Likewise. | |
1817 | * cpu-i370.c: Likewise. | |
1818 | * cpu-i860.c: Likewise. | |
1819 | * cpu-i960.c: Likewise. | |
1820 | * cpu-ia64.c: Likewise. | |
1821 | * cpu-ip2k.c: Likewise. | |
1822 | * cpu-iq2000.c: Likewise. | |
1823 | * cpu-lm32.c: Likewise. | |
1824 | * cpu-m10200.c: Likewise. | |
1825 | * cpu-m10300.c: Likewise. | |
1826 | * cpu-m32c.c: Likewise. | |
1827 | * cpu-m32r.c: Likewise. | |
1828 | * cpu-m68hc11.c: Likewise. | |
1829 | * cpu-m68hc12.c: Likewise. | |
1830 | * cpu-m68k.c: Likewise. | |
1831 | * cpu-m88k.c: Likewise. | |
1832 | * cpu-mcore.c: Likewise. | |
1833 | * cpu-mep.c: Likewise. | |
1834 | * cpu-microblaze.c: Likewise. | |
1835 | * cpu-mips.c: Likewise. | |
1836 | * cpu-mmix.c: Likewise. | |
1837 | * cpu-moxie.c: Likewise. | |
1838 | * cpu-msp430.c: Likewise. | |
1839 | * cpu-mt.c: Likewise. | |
1840 | * cpu-ns32k.c: Likewise. | |
1841 | * cpu-openrisc.c: Likewise. | |
1842 | * cpu-or32.c: Likewise. | |
1843 | * cpu-pdp11.c: Likewise. | |
1844 | * cpu-pj.c: Likewise. | |
1845 | * cpu-plugin.c: Likewise. | |
1846 | * cpu-powerpc.c: Likewise. | |
1847 | * cpu-rl78.c: Likewise. | |
1848 | * cpu-rs6000.c: Likewise. | |
1849 | * cpu-rx.c: Likewise. | |
1850 | * cpu-s390.c: Likewise. | |
1851 | * cpu-score.c: Likewise. | |
1852 | * cpu-sh.c: Likewise. | |
1853 | * cpu-sparc.c: Likewise. | |
1854 | * cpu-spu.c: Likewise. | |
1855 | * cpu-tic30.c: Likewise. | |
1856 | * cpu-tic4x.c: Likewise. | |
1857 | * cpu-tic54x.c: Likewise. | |
1858 | * cpu-tic6x.c: Likewise. | |
1859 | * cpu-tic80.c: Likewise. | |
1860 | * cpu-tilegx.c: Likewise. | |
1861 | * cpu-tilepro.c: Likewise. | |
1862 | * cpu-v850.c: Likewise. | |
1863 | * cpu-vax.c: Likewise. | |
1864 | * cpu-w65.c: Likewise. | |
1865 | * cpu-we32k.c: Likewise. | |
1866 | * cpu-xc16x.c: Likewise. | |
1867 | * cpu-xstormy16.c: Likewise. | |
1868 | * cpu-xtensa.c: Likewise. | |
1869 | * cpu-z80.c: Likewise. | |
1870 | * cpu-z8k.c: Likewise. | |
1871 | ||
1872 | * cpu-i386.c: Include "libiberty.h". | |
ff9e0f5b | 1873 | (bfd_arch_i386_fill): New. |
b7761f11 L |
1874 | Add bfd_arch_i386_fill to bfd_arch_info initializer. |
1875 | ||
1876 | * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer. | |
1877 | * cpu-l1om.c: Likewise. | |
1878 | ||
ff9e0f5b | 1879 | * linker.c (default_data_link_order): Call abfd->arch_info->fill |
b7761f11 L |
1880 | if fill size is 0. |
1881 | ||
1882 | * bfd-in2.h: Regenerated. | |
1883 | ||
0d048da3 ME |
1884 | 2012-01-27 Michael Eager <eager@eagercon.com> |
1885 | ||
8b127cbc | 1886 | * elf32-microblaze.c (create_got_section): |
0d048da3 ME |
1887 | Reuse existing .rela.got section. |
1888 | ||
9f296da3 AM |
1889 | 2012-01-23 Alan Modra <amodra@gmail.com> |
1890 | ||
1891 | * elf-bfd.h: Formatting. | |
1892 | (struct elf_backend_data): Add "maybe_function_sym". | |
1893 | (_bfd_elf_maybe_function_sym): Declare. | |
1894 | * elfxx-target.h (elf_backend_maybe_function_sym): Define. | |
1895 | (elfNN_bed): Init new field. | |
1896 | * elf.c (elf_find_function): Use maybe_function_sym. | |
1897 | (_bfd_elf_maybe_function_sym): New function. | |
1898 | * elf64-ppc.c (elf_backend_maybe_function_sym): Define. | |
1899 | (ppc64_elf_maybe_function_sym): New function. | |
1900 | ||
f1bb16f8 NC |
1901 | 2012-01-20 Francois Gouget <fgouget@codeweavers.com> |
1902 | ||
1903 | PR binutils/13534 | |
1904 | * archive.c (_bfd_ar_sizepad): New function. Correctly install and | |
1905 | pad the size field in an archive header. | |
1906 | (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan | |
1907 | function for the archive size field. | |
1908 | (bfd_generic_openr_next_archived_file): Likewise. | |
1909 | (do_slurp_coff_armap): Likewise. | |
1910 | (_bfd_write_archive_contents): Likewise. | |
1911 | (_bfd_bsd44_write_ar_hdr): Use the new function. | |
1912 | (bfd_ar_hdr_from_filesystem): Likewise. | |
1913 | (_bfd_write_archive_contents): Likewise. | |
1914 | (bsd_write_armap): Likewise. | |
1915 | (coff_write_armap): Likewise. | |
1916 | * archive64.c (bfd_elf64_archive_write_armap): Likewise. | |
1917 | * bfdio.c (bfd_bread): Use correct type for archive element | |
1918 | sizes. | |
1919 | * ar.c (open_inarch): Likewise. | |
1920 | (extract_file): Likewise. | |
1921 | * libbfd-in.h (struct areltdata): Use correct types for | |
1922 | parsed_size and extra_size fields. | |
1923 | Prototype _bfd_ar_sizepad function. | |
1924 | * libbfd.h: Regenerate. | |
1925 | ||
1f20dca5 UW |
1926 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
1927 | ||
1928 | * elf.c (elfcore_write_prpsinfo): Provide unconditionally. | |
1929 | Return NULL if core file generation is unsupported. | |
1930 | (elfcore_write_prstatus): Likewise. | |
1931 | * elf32-arm.c (elf32_arm_nabi_write_core_note): New function. | |
1932 | (elf_backend_write_core_note): Define. | |
1933 | ||
100fc767 TG |
1934 | 2012-01-19 Tristan Gingold <gingold@adacore.com> |
1935 | ||
1936 | * pef.c: Add a comment. | |
1937 | * xsym.c: Likewise. | |
1938 | ||
75cd47ed AM |
1939 | 2012-01-17 Alan Modra <amodra@gmail.com> |
1940 | ||
1941 | * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave | |
1942 | trailing garbage in the note. | |
1943 | * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise. | |
1944 | ||
8a5dcf53 AM |
1945 | 2012-01-16 Daniel Green <venix1@gmail.com> |
1946 | ||
1947 | PR ld/13491 | |
1948 | * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test | |
1949 | h->root.type not h->type. | |
1950 | * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise. | |
1951 | ||
bb76d940 IS |
1952 | 2012-01-13 Iain Sandoe <idsandoe@googlemail.com> |
1953 | ||
8a5dcf53 AM |
1954 | * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute |
1955 | indirect symbols. | |
687be931 IS |
1956 | |
1957 | 2012-01-13 Iain Sandoe <idsandoe@googlemail.com> | |
1958 | ||
1959 | * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file | |
bb76d940 IS |
1960 | position from here... to (bfd_mach_o_build_seg_command): Here. |
1961 | ||
50d10658 IS |
1962 | 2012-01-12 Iain Sandoe <idsandoe@googlemail.com> |
1963 | ||
1964 | * mach-o.c (bfd_mach_o_count_indirect_symbols): New. | |
1965 | (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table. | |
1966 | * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the | |
1967 | file. (bfd_mach_o_section): Add indirect_syms field. | |
1968 | ||
e5081f2f IS |
1969 | 2012-01-11 Iain Sandoe <idsandoe@googlemail.com> |
1970 | ||
1971 | * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of | |
1972 | vmsize from filesize. Don't compute offsets or file sizes for | |
1973 | zerofill sections. | |
1974 | ||
bbd56171 IS |
1975 | 2012-01-11 Iain Sandoe <idsandoe@googlemail.com> |
1976 | ||
1977 | * mach-o.c (bfd_mach_o_build_commands): Make the building of each | |
1978 | command type independent. | |
1979 | ||
794e51c0 AM |
1980 | 2012-01-11 Alan Modra <amodra@gmail.com> |
1981 | ||
1982 | * elf64-ppc.c: Define more insns used in plt call stubs. | |
1983 | (ppc64_elf_brtaken_reloc): Assume isa version 2 or above. | |
1984 | (ppc64_elf_relocate_section): Likewise. | |
1985 | (enum ppc_stub_type): Add ppc_stub_plt_call_r2save. | |
1986 | (struct ppc_link_hash_table): Increase size of stub_count array. | |
1987 | Add plt_stub_align and plt_thread_safe. | |
1988 | (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define. | |
1989 | (plt_stub_size, plt_stub_pad): New functions. | |
1990 | (build_plt_stub): Emit barriers for power7 thread safety. Don't | |
1991 | emit needless save of r2. | |
1992 | (build_tls_get_addr_stub): Adjust params. | |
1993 | (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning | |
1994 | plt stubs. Adjust build_*plt_stub calls. | |
1995 | (ppc_size_one_stub): Similarly. | |
1996 | (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align | |
1997 | params. Choose default for plt_thread_safe based on existence of | |
1998 | calls to thread creation functions. Modify plt_call to | |
1999 | plt_call_r2save when no tocsave reloc found. Align tail of stub | |
2000 | sections. | |
2001 | (ppc64_elf_build_stubs): Align tail of stub sections. Adjust | |
2002 | output of stub statistics. | |
2003 | (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save. | |
2004 | * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype. | |
2005 | ||
df4f9443 L |
2006 | 2012-01-10 H.J. Lu <hongjiu.lu@intel.com> |
2007 | ||
2008 | PR ld/13581 | |
2009 | * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P | |
2010 | check on R_X86_64_PCXX. | |
2011 | ||
2a65a88e TG |
2012 | 2012-01-10 Tristan Gingold <gingold@adacore.com> |
2013 | ||
2014 | * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false | |
2015 | warning. | |
2016 | ||
660722b0 TG |
2017 | 2012-01-10 Tristan Gingold <gingold@adacore.com> |
2018 | ||
2019 | * bfdio.c (bfd_tell): Handle nested archives. | |
2020 | (bfd_seek): Ditto. | |
2021 | * cache.c (bfd_cache_lookup_worker): Ditto. | |
2022 | * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with | |
2023 | nested archives. | |
2024 | (bfd_generic_openr_next_archived_file): Likewise. | |
2025 | ||
b22161d6 IS |
2026 | 2012-01-09 Iain Sandoe <idsandoe@googlemail.com> |
2027 | ||
2028 | * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement. | |
2029 | (bfd_mach_o_write_symtab): Remove handling for indirect syms. | |
2030 | (bfd_mach_o_primary_symbol_sort_key): Likewise. | |
2031 | (bfd_mach_o_cf_symbols): Likewise. | |
2032 | (bfd_mach_o_sort_symbol_table): Remove. | |
2033 | (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling | |
2034 | for indirect and dysymtab counts. Do the symbol sorting here. | |
2035 | (bfd_mach_o_build_dysymtab_command): Count the symbol types here. | |
2036 | Make the indirect symbols a TODO. | |
2037 | (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols. | |
2038 | (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with | |
2039 | a non-zero value. | |
2040 | (bfd_mach_o_read_symtab_symbol): Record the symbol index. | |
2041 | (bfd_mach_o_read_symtab_symbol): Adjust recording of global status. | |
2042 | * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries. | |
2043 | (IS_MACHO_INDIRECT): Remove. | |
2044 | (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New. | |
2045 | ||
28a1b4f8 NC |
2046 | 2012-01-06 Nick Clifton <nickc@redhat.com> |
2047 | ||
2048 | PR binutils/13121 | |
2049 | * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to | |
2050 | 'flaginfo' to avoid conflicts with AIX system headers. | |
2051 | ||
36f0a48f TG |
2052 | 2012-01-06 Tristan Gingold <gingold@adacore.com> |
2053 | ||
2054 | * bfdio.c (bfd_bread): Use arelt_size macro. | |
2055 | ||
76d4c1cb TG |
2056 | 2012-01-06 Tristan Gingold <gingold@adacore.com> |
2057 | ||
2058 | * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs. | |
2059 | ||
a1c7aafb NC |
2060 | 2012-01-05 Nick Clifton <nickc@redhat.com> |
2061 | ||
2062 | PR ld/12161 | |
2063 | * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if | |
2064 | necessary. | |
2065 | ||
e85c6a70 JK |
2066 | 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
2067 | ||
2068 | Fix zero registers core files when built by gcc-4.7. | |
2069 | * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and | |
2070 | size. Call elfcore_write_note for the local variables. Remove the | |
2071 | final elfcore_write_note call. Add NOTREACHED comments. | |
2072 | ||
15bbba8d TG |
2073 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
2074 | ||
2075 | * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function. | |
2076 | (bfd_mach_o_generic_stat_arch_elt): Adjust. | |
2077 | ||
a4e241ca TG |
2078 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
2079 | ||
2080 | * mach-o.c (bfd_mach_o_fat_member_init): New function. | |
2081 | (bfd_mach_o_openr_next_archived_file): Reindent. | |
2082 | Adjust to call bfd_mach_o_fat_member_init. | |
2083 | (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init. | |
2084 | ||
71141310 TG |
2085 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
2086 | ||
2087 | * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle | |
2088 | BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1, | |
2089 | BFD_RELOC_MACH_O_X86_64_PCREL32_2, | |
2090 | BFD_RELOC_MACH_O_X86_64_PCREL32_4, | |
2091 | BFD_RELOC_MACH_O_X86_64_BRANCH32, | |
2092 | BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32, | |
2093 | BFD_RELOC_MACH_O_X86_64_GOT. | |
2094 | ||
9f4a5bd1 TG |
2095 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
2096 | ||
2097 | * mach-o.h (bfd_mach_o_fvmlib_command): New structure. | |
2098 | (bfd_mach_o_load_command): Add fvmlib field. | |
2099 | ||
2100 | * mach-o.c (bfd_mach_o_read_fvmlib): New function. | |
2101 | (bfd_mach_o_read_command): Handle fvmlib. | |
2102 | ||
0b2de107 TG |
2103 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
2104 | ||
2105 | * mach-o.c (bfd_mach_o_convert_architecture): Reindent. | |
2106 | Decode msubtype for ARM. | |
2107 | ||
aeefa1c9 TG |
2108 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
2109 | ||
2110 | * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments. | |
2111 | ||
fc55a902 TG |
2112 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
2113 | ||
2114 | * mach-o.h: Reindent header. | |
2115 | (bfd_mach_o_encryption_info_command): New structure. | |
2116 | (bfd_mach_o_load_command): Add encryption_info field. | |
2117 | ||
2118 | * mach-o.c (bfd_mach_o_read_encryption_info): New function. | |
2119 | (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO. | |
2120 | (bfd_mach_o_read_command): Adjust error message. | |
2121 | ||
2ca7691a TG |
2122 | 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com> |
2123 | ||
2124 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part | |
2125 | which reads DWARF2 and stores in stash from find_line. | |
2126 | (find_line) Call _bfd_dwarf2_slurp_debug_info. | |
2127 | * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration. | |
2128 | * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate. | |
2129 | * mach-o.c (dsym_subdir): The name of subdir where debug | |
2130 | information may be stored. | |
2131 | (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose | |
2132 | type is UUID. | |
2133 | (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is | |
2134 | corresponding to the executable. | |
2135 | (bfd_mach_o_find_dsym): New. Find a debug information BFD in the | |
2136 | specified binary file. | |
2137 | (bfd_mach_o_follow_dsym): New. Find a debug information BFD for | |
2138 | the original BFD. | |
2139 | (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O | |
2140 | executables, dylibs, and bundles. | |
2141 | (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file. | |
2142 | * mach-o.h (dsym_bfd): The BFD of the dSYM file. | |
2143 | ||
68588f95 IS |
2144 | 2012-01-03 Iain Sandoe <idsandoe@googlemail.com> |
2145 | ||
2146 | * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index | |
2147 | for stabd symbols. | |
2148 | (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs. | |
2149 | (bfd_mach_o_cf_symbols): Likewise. | |
2150 | ||
f2b324f1 IS |
2151 | 2012-01-03 Iain Sandoe <idsandoe@googlemail.com> |
2152 | ||
2153 | * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo. | |
2154 | ||
7f307238 IS |
2155 | 2012-01-03 Iain Sandoe <idsandoe@googlemail.com> |
2156 | ||
2157 | * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index | |
2158 | as the value of an indirect symbol. Keep the string table index in | |
2159 | non-indirect syms for reference. | |
2160 | (bfd_mach_o_write_dysymtab): New. | |
2161 | (bfd_mach_o_primary_symbol_sort_key): New. | |
2162 | (bfd_mach_o_cf_symbols): New. | |
2163 | (bfd_mach_o_sort_symbol_table): New. | |
2164 | (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols. | |
2165 | If we are emitting a dysymtab, process indirect symbols and count the | |
2166 | number of each other kind. | |
2167 | (bfd_mach_o_mangle_sections): New. | |
2168 | (bfd_mach_o_write_contents): Split out some pre-requisite code into | |
2169 | the command builder. Write dysymtab if the command is present. | |
2170 | (bfd_mach_o_count_sections_for_seg): New. | |
2171 | (bfd_mach_o_build_seg_command): New. | |
2172 | (bfd_mach_o_build_dysymtab_command): New. | |
2173 | (bfd_mach_o_build_commands): Reorganize to support the fact that some | |
2174 | commands are optional and should not be emitted if there are no | |
2175 | sections or symbols. | |
2176 | (bfd_mach_o_set_section_contents): Amend comment. | |
23e1d329 | 2177 | * mach-o.h: Amend and add to comments. |
7f307238 IS |
2178 | (mach_o_data_struct): Add fields for dysymtab symbols counts and a |
2179 | pointer to the indirects, when present. | |
2180 | (bfd_mach_o_should_emit_dysymtab): New macro. | |
2181 | (IS_MACHO_INDIRECT): Likewise. | |
2182 | ||
23e1d329 | 2183 | For older changes see ChangeLog-2011 |
56882138 AM |
2184 | \f |
2185 | Local Variables: | |
2186 | mode: change-log | |
2187 | left-margin: 8 | |
2188 | fill-column: 74 | |
2189 | version-control: never | |
2190 | End: |