1 2016-06-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4 * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust syms
5 and relocs only if shrinking occurred.
7 2016-06-08 H.J. Lu <hongjiu.lu@intel.com>
9 * elf64-i386.c (elf_i386_link_hash_entry): Add tls_get_addr.
10 (elf_i386_link_hash_newfunc): Initialize tls_get_addr to 2.
11 (elf_i386_check_tls_transition): Check indirect call and direct
12 call with the addr32 prefix for general and local dynamic models.
13 Set the tls_get_addr feild.
14 (elf_i386_convert_load_reloc): Always use addr32 prefix for
15 indirect ___tls_get_addr call via GOT.
16 (elf_i386_relocate_section): Handle GD->LE, GD->IE and LD->LE
17 transitions with indirect call and direct call with the addr32
20 2016-06-07 Marcin KoĆcielnicki <koriakin@0x04.net>
22 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Fix comment.
23 * elf64-s390.c (elf_s390x_plt_entry): Fix comment.
24 (elf_s390_relocate_section): Fix comment.
25 (elf_s390_finish_dynamic_sections): Fix initialization of fixed
28 2016-06-07 Ulrich Weigand <ulrich.weigand@de.ibm.com>
30 * elf64-s390.c (elf_s390_finish_dynamic_sections): Subtract plt
31 section offset when calculation the larl operand in the first PLT
34 2016-06-07 Alan Modra <amodra@gmail.com>
36 * cpu-powerpc.c (powerpc_compatible): Allow bfd_mach_ppc_vle entry
37 to match other 32-bit archs.
38 * elf32-ppc.c (_bfd_elf_ppc_set_arch): New function.
39 (ppc_elf_object_p): Call it.
40 (ppc_elf_special_sections): Use APUINFO_SECTION_NAME. Fix
42 (APUINFO_SECTION_NAME, APUINFO_LABEL): Don't define here.
43 * elf64-ppc.c (ppc64_elf_object_p): Call _bfd_elf_ppc_set_arch.
44 * bfd-in.h (_bfd_elf_ppc_at_tls_transform,
45 _bfd_elf_ppc_at_tprel_transform): Move to..
47 (_bfd_elf_ppc_set_arch): Declare.
48 * bfd-in2.h: Regenerate.
50 2016-06-06 H.J. Lu <hongjiu.lu@intel.com>
52 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add tls_get_addr.
53 (elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 2.
54 (elf_x86_64_check_tls_transition): Check indirect call and
55 direct call with the addr32 prefix for general and local dynamic
56 models. Set the tls_get_addr feild.
57 (elf_x86_64_convert_load_reloc): Always use addr32 prefix for
58 indirect __tls_get_addr call via GOT.
59 (elf_x86_64_relocate_section): Handle GD->LE, GD->IE and LD->LE
60 transitions with indirect call and direct call with the addr32
63 2016-06-04 Christian Groessler <chris@groessler.org>
65 * coff-z8k.c (extra_case): Fix range check for R_JR relocation.
67 2016-06-02 Nick Clifton <nickc@redhat.com>
70 * cpu-arm.c (processors): Add "arm_any" type to match any ARM
72 (arch_info_struct): Likewise.
73 (architectures): Likewise.
75 2016-06-02 Vineet Gupta <Vineet.Gupta1@synopsys.com>
77 * config.bfd: Replace -uclibc with *.
79 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
81 * elf64-x86-64.c: Replace data32 with data16 in comments.
83 2016-05-31 Alan Modra <amodra@gmail.com>
87 * elflink.c (_bfd_elf_merge_symbol): Revert PR16467 change.
88 (_bfd_elf_add_default_symbol): Don't indirect to/from defined
89 symbol given a version by a script different to the version
90 of the symbol being added.
91 (elf_link_add_object_symbols): Use _bfd_elf_strtab_save and
92 _bfd_elf_strtab_restore. Don't fudge dynstr references.
93 * elf-strtab.c (_bfd_elf_strtab_restore_size): Delete.
94 (struct strtab_save): New.
95 (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): New functions.
96 * elf-bfd.h (_bfd_elf_strtab_restore_size): Delete.
97 (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): Declare.
99 2016-06-01 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
101 * elf32-hppa.h: Add extern "C".
102 * elf32-nds32.h: Likewise.
103 * elf32-tic6x.h: Likewise.
105 2016-06-01 Nick Clifton <nickc@redhat.com>
107 * po/sr.po: New Serbian translation.
108 * configure.ac (ALL_LINGUAS): Add sr.
109 * configure: Regenerate.
111 2016-05-28 Maciej W. Rozycki <macro@imgtec.com>
113 * elfxx-mips.c (b_reloc_p): New function.
114 (_bfd_mips_elf_relocate_section) <bfd_reloc_outofrange>: Handle
117 2016-05-28 Maciej W. Rozycki <macro@imgtec.com>
119 * elfxx-mips.c (mips_elf_calculate_relocation): <R_MIPS16_26>
120 <R_MIPS_26, R_MICROMIPS_26_S1>: Drop the region bits of the
121 reloc location from calculation, treat the addend as signed with
122 local non-section symbols and enable overflow detection.
124 2016-05-28 Alan Modra <amodra@gmail.com>
126 * aoutx.h: Adjust linker callback calls throughout file,
129 * coff-alpha.c: Likewise.
130 * coff-arm.c: Likewise.
131 * coff-h8300.c: Likewise.
132 * coff-h8500.c: Likewise.
133 * coff-i960.c: Likewise.
134 * coff-mcore.c: Likewise.
135 * coff-mips.c: Likewise.
136 * coff-ppc.c: Likewise.
137 * coff-rs6000.c: Likewise.
138 * coff-sh.c: Likewise.
139 * coff-tic80.c: Likewise.
140 * coff-w65.c: Likewise.
141 * coff-z80.c: Likewise.
142 * coff-z8k.c: Likewise.
143 * coff64-rs6000.c: Likewise.
144 * cofflink.c: Likewise.
146 * elf-bfd.h: Likewise.
147 * elf-m10200.c: Likewise.
148 * elf-m10300.c: Likewise.
149 * elf32-arc.c: Likewise.
150 * elf32-arm.c: Likewise.
151 * elf32-avr.c: Likewise.
152 * elf32-bfin.c: Likewise.
153 * elf32-cr16.c: Likewise.
154 * elf32-cr16c.c: Likewise.
155 * elf32-cris.c: Likewise.
156 * elf32-crx.c: Likewise.
157 * elf32-d10v.c: Likewise.
158 * elf32-epiphany.c: Likewise.
159 * elf32-fr30.c: Likewise.
160 * elf32-frv.c: Likewise.
161 * elf32-ft32.c: Likewise.
162 * elf32-h8300.c: Likewise.
163 * elf32-hppa.c: Likewise.
164 * elf32-i370.c: Likewise.
165 * elf32-i386.c: Likewise.
166 * elf32-i860.c: Likewise.
167 * elf32-ip2k.c: Likewise.
168 * elf32-iq2000.c: Likewise.
169 * elf32-lm32.c: Likewise.
170 * elf32-m32c.c: Likewise.
171 * elf32-m32r.c: Likewise.
172 * elf32-m68hc1x.c: Likewise.
173 * elf32-m68k.c: Likewise.
174 * elf32-mep.c: Likewise.
175 * elf32-metag.c: Likewise.
176 * elf32-microblaze.c: Likewise.
177 * elf32-moxie.c: Likewise.
178 * elf32-msp430.c: Likewise.
179 * elf32-mt.c: Likewise.
180 * elf32-nds32.c: Likewise.
181 * elf32-nios2.c: Likewise.
182 * elf32-or1k.c: Likewise.
183 * elf32-ppc.c: Likewise.
184 * elf32-s390.c: Likewise.
185 * elf32-score.c: Likewise.
186 * elf32-score7.c: Likewise.
187 * elf32-sh.c: Likewise.
188 * elf32-sh64.c: Likewise.
189 * elf32-spu.c: Likewise.
190 * elf32-tic6x.c: Likewise.
191 * elf32-tilepro.c: Likewise.
192 * elf32-v850.c: Likewise.
193 * elf32-vax.c: Likewise.
194 * elf32-visium.c: Likewise.
195 * elf32-xstormy16.c: Likewise.
196 * elf32-xtensa.c: Likewise.
197 * elf64-alpha.c: Likewise.
198 * elf64-hppa.c: Likewise.
199 * elf64-ia64-vms.c: Likewise.
200 * elf64-mmix.c: Likewise.
201 * elf64-ppc.c: Likewise.
202 * elf64-s390.c: Likewise.
203 * elf64-sh64.c: Likewise.
204 * elf64-x86-64.c: Likewise.
205 * elflink.c: Likewise.
206 * elfnn-aarch64.c: Likewise.
207 * elfnn-ia64.c: Likewise.
208 * elfxx-mips.c: Likewise.
209 * elfxx-sparc.c: Likewise.
210 * elfxx-tilegx.c: Likewise.
211 * linker.c: Likewise.
213 * pe-mips.c: Likewise.
215 * reloc16.c: Likewise.
216 * simple.c: Likewise.
217 * vms-alpha.c: Likewise.
218 * xcofflink.c: Likewise.
219 * elf32-rl78.c (get_symbol_value, get_romstart, get_ramstart): Delete
220 status param. Adjust calls to these and linker callbacks throughout.
221 * elf32-rx.c: (get_symbol_value, get_gp, get_romstart,
222 get_ramstart): Delete status param. Adjust calls to these and
223 linker callbacks throughout.
225 2016-05-27 Maciej W. Rozycki <macro@imgtec.com>
227 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS16_26>
228 <R_MIPS_26, R_MICROMIPS_26_S1>: Include the addend in JALX's
229 target alignment verification.
231 2016-05-27 Maciej W. Rozycki <macro@imgtec.com>
233 * elfxx-mips.c (mips_elf_calculate_relocation): Also use the
234 section name if `bfd_elf_string_from_elf_section' returns an
237 2016-05-26 Maciej W. Rozycki <macro@imgtec.com>
239 * elfxx-mips.c (_bfd_mips_elf_relocate_section)
240 <bfd_reloc_outofrange>: Use the `%X%H' rather than `%C' format
241 for message. Continue processing rather than returning failure.
243 2016-05-25 Maciej W. Rozycki <macro@imgtec.com>
245 * elfxx-mips.c (_bfd_mips_elf_relocate_section)
246 <bfd_reloc_outofrange>: Call `->einfo' rather than `->warning'.
247 Call `bfd_set_error'.
249 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
252 * archive.c (bfd_slurp_armap): Replace
253 bfd_elf64_archive_slurp_armap with
254 _bfd_archive_64_bit_slurp_armap.
255 (bsd_write_armap): Call _bfd_archive_64_bit_write_armap if
256 BFD64 is defined and the archive is too big.
257 (coff_write_armap): Likewise.
258 * archive64.c (bfd_elf64_archive_slurp_armap): Renamed to ...
259 (_bfd_archive_64_bit_slurp_armap): This.
260 (bfd_elf64_archive_write_armap): Renamed to ...
261 (_bfd_archive_64_bit_write_armap): This.
262 * configure.ac: Add --enable-64-bit-archive.
263 (want_64_bit_archive): New. Set to true by default for 64-bit
264 MIPS and s390 ELF targets.
265 (USE_64_BIT_ARCHIVE): New AC_DEFINE.
266 * config.in: Regenerated.
267 * configure: Likewise.
268 * elf64-mips.c (bfd_elf64_archive_functions): Removed.
269 (bfd_elf64_archive_slurp_armap): Likewise.
270 (bfd_elf64_archive_write_armap): Likewise.
271 (bfd_elf64_archive_slurp_extended_name_table): Likewise.
272 (bfd_elf64_archive_construct_extended_name_table): Likewise.
273 (bfd_elf64_archive_truncate_arname): Likewise.
274 (bfd_elf64_archive_read_ar_hdr): Likewise.
275 (bfd_elf64_archive_write_ar_hdr): Likewise.
276 (bfd_elf64_archive_openr_next_archived_file): Likewise.
277 (bfd_elf64_archive_get_elt_at_index): Likewise.
278 (bfd_elf64_archive_generic_stat_arch_elt): Likewise.
279 (bfd_elf64_archive_update_armap_timestamp): Likewise.
280 * elf64-s390.c (bfd_elf64_archive_functions): Removed.
281 (bfd_elf64_archive_slurp_armap): Likewise.
282 (bfd_elf64_archive_write_armap): Likewise.
283 (bfd_elf64_archive_slurp_extended_name_table): Likewise.
284 (bfd_elf64_archive_construct_extended_name_table): Likewise.
285 (bfd_elf64_archive_truncate_arname): Likewise.
286 (bfd_elf64_archive_read_ar_hdr): Likewise.
287 (bfd_elf64_archive_write_ar_hdr): Likewise.
288 (bfd_elf64_archive_openr_next_archived_file): Likewise.
289 (bfd_elf64_archive_get_elt_at_index): Likewise.
290 (bfd_elf64_archive_generic_stat_arch_elt): Likewise.
291 (bfd_elf64_archive_update_armap_timestamp): Likewise.
292 * elfxx-target.h (TARGET_BIG_SYM): Use _bfd_archive_64_bit on
293 BFD_JUMP_TABLE_ARCHIVE if USE_64_BIT_ARCHIVE is defined and
294 bfd_elfNN_archive_functions isn't defined.
295 (TARGET_LITTLE_SYM): Likewise.
296 * libbfd-in.h (_bfd_archive_64_bit_slurp_armap): New prototype.
297 (_bfd_archive_64_bit_write_armap): Likewise.
298 (_bfd_archive_64_bit_slurp_extended_name_table): New macro.
299 (_bfd_archive_64_bit_construct_extended_name_table): Likewise.
300 (_bfd_archive_64_bit_truncate_arname): Likewise.
301 (_bfd_archive_64_bit_read_ar_hdr): Likewise.
302 (_bfd_archive_64_bit_write_ar_hdr): Likewise.
303 (_bfd_archive_64_bit_openr_next_archived_file): Likewise.
304 (_bfd_archive_64_bit_get_elt_at_index): Likewise.
305 (_bfd_archive_64_bit_generic_stat_arch_elt): Likewise.
306 (_bfd_archive_64_bit_update_armap_timestamp): Likewise.
307 * libbfd.h: Regenerated.
308 * plugin.c (plugin_vec): Use _bfd_archive_64_bit on
309 BFD_JUMP_TABLE_ARCHIVE if USE_64_BIT_ARCHIVE is defined.
311 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
314 * cofflink.c (coff_link_check_archive_element): Return TRUE if
315 linker add_archive_element callback returns FALSE.
316 * ecoff.c (ecoff_link_check_archive_element): Likewise.
317 * elf64-ia64-vms.c (elf64_vms_link_add_archive_symbols): Skip
318 archive element if linker add_archive_element callback returns
320 * elflink.c (elf_link_add_archive_symbols): Likewise.
321 * pdp11.c (aout_link_check_ar_symbols): Likewise.
322 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Likewise.
323 * xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Likewise.
324 (xcoff_link_check_ar_symbols): Likewise.
326 2016-05-24 Maciej W. Rozycki <macro@imgtec.com>
328 * elfxx-mips.c (_bfd_mips_elf_relocate_section)
329 <bfd_reloc_outofrange>: Unify error reporting code.
331 2016-05-23 Jim Wilson <jim.wilson@linaro.org>
333 * elfnn-aarch64.c: Unconditionally enable R_AARCH64_NULL and
334 R_AARCH64_NONE. Use HOWTO64 for R_AARCH64_NULL.
335 * relocs.c: Add BFD_RELOC_AARCH64_NULL.
336 * bfd-in2.h: Regenerate.
337 * libbfd.h: Likewise.
339 2016-05-23 Kuba Sejdak <jakub.sejdak@phoesys.com>
341 * config.bfd: Add entry for arm-phoenix.
343 2016-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
345 * elf32-arm.c (arm_dedicated_stub_section_padding): New function.
346 (elf32_arm_size_stubs): Declare stub_type in a more outer scope and
347 account for padding for stub section requiring one.
348 (elf32_arm_build_stubs): Add comment to stress the importance of
349 zeroing veneer section content.
351 2016-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
353 * bfd-in.h (bfd_elf32_arm_keep_private_stub_output_sections): Declare
355 * bfd-in2.h: Regenerate.
356 * elf32-arm.c (arm_dedicated_stub_output_section_required): New
358 (arm_dedicated_stub_output_section_required_alignment): Likewise.
359 (arm_dedicated_stub_output_section_name): Likewise.
360 (arm_dedicated_stub_input_section_ptr): Likewise.
361 (elf32_arm_create_or_find_stub_sec): Add stub type parameter and
362 function description comment. Add support for dedicated output stub
363 section to given stub types.
364 (elf32_arm_add_stub): Add a stub type parameter and pass it down to
365 elf32_arm_create_or_find_stub_sec.
366 (elf32_arm_create_stub): Pass stub type down to elf32_arm_add_stub.
367 (elf32_arm_size_stubs): Pass stub type when calling
368 elf32_arm_create_or_find_stub_sec for Cortex-A8 erratum veneers.
369 (bfd_elf32_arm_keep_private_stub_output_sections): New function.
371 2016-05-20 H.J. Lu <hongjiu.lu@intel.com>
373 * elf32-i386.c (elf_i386_check_relocs): Don't check R_386_GOT32
374 when setting need_convert_load.
376 2016-05-20 Maciej W. Rozycki <macro@imgtec.com>
378 * elfxx-mips.c (mips_elf_read_rel_addend): Adjust the addend for
381 2016-05-19 H.J. Lu <hongjiu.lu@intel.com>
384 * elf32-i386.c (elf_i386_convert_load_reloc): Don't check
386 (elf_i386_convert_load): Don't convert R_386_GOT32.
388 2016-05-20 Alan Modra <amodra@gmail.com>
391 * elf.c (elf_fake_sections): Set sh_entsize for SHT_INIT_ARRAY,
392 SHT_FINI_ARRAY, and SHT_PREINIT_ARRAY.
394 2016-05-19 Cupertino Miranda <cmiranda@synopsys.com>
396 * elf32-arc.c (arc_elf_final_write_processing): Changed.
397 (debug_arc_reloc): Likewise.
398 (elf_arc_relocate_section): Likewise.
399 (elf_arc_check_relocs): Likewise.
400 (elf_arc_adjust_dynamic_symbol): Likewise.
401 (elf_arc_add_symbol_hook): Likewise.
403 2016-05-19 Maciej W. Rozycki <macro@imgtec.com>
405 * config.bfd: Remove `am34-*-linux*' support.
407 2016-05-19 Alan Modra <amodra@gmail.com>
409 * elf64-ppc.c (allocate_dynrelocs): Allocate got and other dynamic
410 relocs before plt relocs.
412 2016-05-19 Alan Modra <amodra@gmail.com>
414 * elf64-ppc.c (ppc64_elf_branch_reloc): Check for NULL owner
415 before dereferencing.
417 2016-05-18 Nick Clifton <nickc@redhat.com>
419 * po/sv.po: Updated Swedish translation.
421 2016-05-18 Alan Modra <amodra@gmail.com>
423 * elf32-arm.c (elf32_arm_size_stubs): Free or cache local syms
424 for each BFD. Don't goto error_ret_free_local from outside loop.
426 2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
428 * elf-s390-common.c (elf_s390_add_symbol_hook): Remove
429 STB_GNU_UNIQUE handling.
430 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
431 * elf32-arm.c (elf32_arm_add_symbol_hook): Likewise.
432 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
433 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
434 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
435 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
436 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
437 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
438 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
439 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Likewise.
440 * elf32-i386.c (elf_i386_add_symbol_hook): Remove function.
441 (elf_backend_add_symbol_hook): Remove macro.
442 * elflink.c (elf_link_add_object_symbols): Set `has_gnu_symbols'
443 for STB_GNU_UNIQUE symbols.
445 2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
447 * elf32-v850.c (v850_elf_copy_notes): New function, factored out
449 (v850_elf_copy_private_bfd_data): ... here. Call the new
450 function and `_bfd_elf_copy_private_bfd_data'.
452 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
455 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Don't convert
456 GOTPCREL relocation against large section.
458 2016-05-13 Alan Modra <amodra@gmail.com>
460 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_sections): Use
461 linker dynamic sections in calculating size and address of
462 dynamic tags rather than using output sections. Remove asserts.
463 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Likewise.
464 * elf32-cr16.c (_bfd_cr16_elf_finish_dynamic_sections): Likewise.
465 * elf32-cris.c (elf_cris_finish_dynamic_sections): Likewise.
466 * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
467 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise.
468 * elf32-m32r.c (m32r_elf_finish_dynamic_sections): Likewise.
469 * elf32-m68k.c (elf_m68k_finish_dynamic_sections): Likewise.
470 * elf32-metag.c (elf_metag_finish_dynamic_sections): Likewise.
471 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Likewise.
472 * elf32-nds32.c (nds32_elf_finish_dynamic_sections): Likewise.
473 * elf32-nios2.c (nios2_elf32_finish_dynamic_sections): Likewise.
474 * elf32-or1k.c (or1k_elf_finish_dynamic_sections): Likewise.
475 * elf32-s390.c (elf_s390_finish_dynamic_sections): Likewise.
476 * elf32-score.c (s3_bfd_score_elf_finish_dynamic_sections): Likewise.
477 * elf32-score7.c (s7_bfd_score_elf_finish_dynamic_sections): Likewise.
478 * elf32-vax.c (elf_vax_finish_dynamic_sections): Likewise.
479 * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Likewise.
480 * elf64-alpha.c (elf64_alpha_finish_dynamic_sections): Likewise.
481 * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise.
482 * elf64-sh64.c (sh64_elf64_finish_dynamic_sections): Likewise.
483 * elflink.c (bfd_elf_final_link): Likewise.
484 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise.
485 * elfxx-sparc.c (sparc_finish_dyn): Likewise. Adjust error message.
486 * elf32-arc.c (GET_SYMBOL_OR_SECTION): Remove ASSERT arg and
487 don't set doit. Look up dynobj section.
488 (elf_arc_finish_dynamic_sections): Adjust GET_SYMBOL_OR_SECTION
489 invocation and dynamic tag vma calculation. Don't test
491 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections): Fix
494 2016-05-13 Alan Modra <amodra@gmail.com>
496 * elflink.c (elf_link_sort_relocs): Wrap overlong lines. Fix
497 octets_per_byte. Put dynamic .rela.plt last in link orders.
498 Assign output_offset for reloc sections rather than writing
499 sorted relocs from block corresponding to output_offset.
501 2016-05-12 Alan Modra <amodra@gmail.com>
503 * elf-bfd.h (elf_reloc_type_class): Put reloc_class_plt last.
505 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
507 * elfxx-mips.c (print_mips_ases): Add DSPR3.
509 2016-05-11 Alan Modra <amodra@gmail.com>
511 * elf32-hppa.c (elf32_hppa_init_stub_bfd): New function.
512 (elf32_hppa_check_relocs): Don't set dynobj.
513 (elf32_hppa_size_stubs): Test !SEC_LINKER_CREATED for stub sections.
514 (elf32_hppa_build_stubs): Likewise.
515 * elf32-hppa.h (elf32_hppa_init_stub_bfd): Declare.
517 2016-05-11 Alan Modra <amodra@gmail.com>
520 * elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
521 * elf32-ppc.c (ppc_elf_tls_setup): Likewise.
523 2016-05-10 Jiong Wang <jiong.wang@arm.com>
525 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Remove redundant
526 aarch64_tls_transition check.
528 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
530 * elf32-arm.c (enum elf32_arm_stub_type): New max_stub_type
532 (arm_stub_sym_claimed): New function.
533 (elf32_arm_create_stub): Use veneered symbol name and section if
534 veneer needs to claim its symbol, and keep logic unchanged otherwise.
535 (arm_stub_claim_sym): New function.
536 (arm_map_one_stub): Call arm_stub_claim_sym if veneer needs to claim
537 veneered symbol, otherwise create local symbol as before.
539 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
541 * elf32-arm.c (elf32_arm_size_stubs): Use new macros
542 ARM_GET_SYM_BRANCH_TYPE and ARM_SET_SYM_BRANCH_TYPE to respectively get
543 and set branch type of a symbol.
544 (bfd_elf32_arm_process_before_allocation): Likewise.
545 (elf32_arm_relocate_section): Likewise and fix identation along the
547 (allocate_dynrelocs_for_symbol): Likewise.
548 (elf32_arm_finish_dynamic_symbol): Likewise.
549 (elf32_arm_swap_symbol_in): Likewise.
550 (elf32_arm_swap_symbol_out): Likewise.
552 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
554 * bfd-in.h (elf32_arm_size_stubs): Add an output section parameter.
555 * bfd-in2.h: Regenerated.
556 * elf32-arm.c (struct elf32_arm_link_hash_table): Add an output section
557 parameter to add_stub_section callback.
558 (elf32_arm_create_or_find_stub_sec): Get output section from link_sec
559 and pass it down to add_stub_section.
560 (elf32_arm_add_stub): Set section to stub_sec if NULL before using it
562 (elf32_arm_size_stubs): Add output section parameter to
563 add_stub_section function pointer parameter.
565 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
567 * elf32-arm.c (elf32_arm_create_stub): New function.
568 (elf32_arm_size_stubs): Use elf32_arm_create_stub for stub creation.
570 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
572 * elf32-arm.c (enum elf32_arm_stub_type): Delete
573 arm_stub_a8_veneer_lwm enumerator.
574 (arm_stub_a8_veneer_lwm): New unsigned constant to replace
575 aforementioned enumerator.
576 (struct elf32_arm_stub_hash_entry): Delete target_addend
577 field and add source_value.
578 (struct a8_erratum_fix): Delete addend field and add target_offset.
579 (stub_hash_newfunc): Initialize source_value field amd remove
580 initialization for target_addend.
581 (arm_build_one_stub): Stop special casing Thumb relocations: promote
582 the else to being always executed, moving the
583 arm_stub_a8_veneer_b_cond specific code in it. Remove
584 stub_entry->target_addend from points_to computation.
585 (cortex_a8_erratum_scan): Store in a8_erratum_fix structure the offset
586 to target symbol from start of section rather than the offset from the
588 (elf32_arm_size_stubs): Set stub_entry's source_value and target_value
589 fields from struct a8_erratum_fix's offset and target_offset
591 (make_branch_to_a8_stub): Rename target variable to loc. Compute
592 veneered_insn_loc and loc using stub_entry's source_value.
594 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
596 (elf32_arm_merge_eabi_attributes): Add merging logic for
599 2016-05-10 Pip Cet <pipcet@gmail.com>
602 * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type):
603 Define as _bfd_generic_copy_link_hash_symbol_type when using
606 2016-05-09 Nick Clifton <nickc@redhat.com>
609 * elf.c (bfd_elf_get_elf_syms): Check for out of range sh_link
610 field before accessing sections array.
612 2016-05-09 Christophe Monat <christophe.monat@st.com>
615 * elf32-arm.c (is_thumb2_vldm): Account for T1 (DP) encoding.
616 (stm32l4xx_need_create_replacing_stub): Rename ambiguous nb_regs
618 (create_instruction_vldmia): Add is_dp to disambiguate SP/DP
620 (create_instruction_vldmdb): Likewise.
621 (stm32l4xx_create_replacing_stub_vldm): is_dp detects DP encoding,
622 uses it to re-encode.
624 2016-05-09 Nick Clifton <nickc@redhat.com>
627 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Revert accidental
630 2016-05-09 Alan Modra <amodra@gmail.com>
632 * elf64-ppc.c (ppc64_elf_init_stub_bfd): Remove redundant NULL check.
634 2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
637 * elf-bfd.h (elf_link_hash_entry): Update comments for indx,
638 documenting that indx == -3 if symbol is defined in a discarded
640 * elflink.c (elf_link_add_object_symbols): Set indx to -3 if
641 symbol is defined in a discarded section.
642 (elf_link_output_extsym): Strip a global symbol defined in a
645 2016-05-06 H.J. Lu <hongjiu.lu@intel.com>
647 * elf32-i386.c (elf_backend_add_symbol_hook): Defined for Intel
650 2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
652 * elf32-i386.c (elf_i386_convert_load): Extract the GOT load
654 (elf_i386_convert_load_reloc): This. New function.
655 * elf64-x86-64.c (elf_x86_64_convert_load): Extract the GOT load
657 (elf_x86_64_convert_load_reloc): This. New function.
659 2016-05-05 H.J. Lu <hongjiu.lu@intel.com>
661 * elf32-i386.c (elf_i386_check_tls_transition): Remove abfd.
662 Don't check if contents == NULL.
663 (elf_i386_tls_transition): Add from_relocate_section. Check
664 from_relocate_section instead of contents != NULL. Update
665 elf_i386_check_tls_transition call.
666 (elf_i386_check_relocs): Cache the section contents if
667 keep_memory is FALSE. Pass FALSE as from_relocate_section to
668 elf_i386_tls_transition.
669 (elf_i386_relocate_section): Pass TRUE as from_relocate_section
670 to elf_i386_tls_transition.
671 (elf_backend_caches_rawsize): New.
672 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Don't check
674 (elf_x86_64_tls_transition): Add from_relocate_section. Check
675 from_relocate_section instead of contents != NULL.
676 (elf_x86_64_check_relocs): Cache the section contents if
677 keep_memory is FALSE. Pass FALSE as from_relocate_section to
678 elf_x86_64_tls_transition.
679 (elf_x86_64_relocate_section): Pass TRUE as from_relocate_section
680 to elf_x86_64_tls_transition.
681 (elf_backend_caches_rawsize): New.
683 2016-05-03 Maciej W. Rozycki <macro@imgtec.com>
686 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Handle
689 2016-05-03 Jiong Wang <jiong.wang@arm.com>
691 * bfd-in.h (bfd_elf64_aarch64_set_options): Update prototype.
692 * bfd-in2.h (bfd_elf64_aarch64_set_options): Likewise.
693 * elfnn-aarch64.c (bfd_elfNN_aarch64_set_options): Initialize
694 no_apply_dynamic_relocs.
695 (elfNN_aarch64_final_link_relocate): Apply absolute relocations even though
696 dynamic relocations generated.
698 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
700 * elf32-i386.c (elf_i386_size_dynamic_sections): Move interp
702 (elf_i386_create_dynamic_sections): Here.
703 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Move
704 interp setting to ...
705 (elf_x86_64_create_dynamic_sections): Here.
707 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
709 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take GOT_RELOC
710 and replace (EH)->has_got_reloc with GOT_RELOC.
711 (elf_i386_fixup_symbol): Pass has_got_reloc to
712 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
713 (elf_i386_allocate_dynrelocs): Likewise.
714 (elf_i386_relocate_section): Likewise.
715 (elf_i386_finish_dynamic_symbol): Likewise.
716 (elf_i386_convert_load): Pass TRUE to
717 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
718 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Take
719 GOT_RELOC and replace (EH)->has_got_reloc with GOT_RELOC.
720 (elf_x86_64_fixup_symbol): Pass has_got_reloc to
721 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
722 (elf_x86_64_allocate_dynrelocs): Likewise.
723 (elf_x86_64_relocate_section): Likewise.
724 (elf_x86_64_finish_dynamic_symbol): Likewise.
725 (elf_x86_64_convert_load): Pass TRUE to
726 UNDEFINED_WEAK_RESOLVED_TO_ZERO.
728 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
730 * elf32-i386.c (check_relocs_failed): New.
731 (elf_i386_check_relocs): Set check_relocs_failed on error.
732 (elf_i386_relocate_section): Skip if check_relocs failed.
734 2016-04-29 H.J. Lu <hongjiu.lu@intel.com>
736 * elf64-x86-64.c (elf_x86_64_check_relocs): Set
737 check_relocs_failed on error.
739 2016-04-29 Nick Clifton <nickc@redhat.com>
742 * elf-bfd.h (struct elf_backend_data): Rename
743 elf_backend_set_special_section_info_and_link to
744 elf_backend_copy_special_section_fields.
745 * elfxx-target.h: Likewise.
746 * elf.c (section_match): Ignore the SHF_INFO_LINK flag when
747 comparing section flags.
748 (copy_special_section_fields): New function.
749 (_bfd_elf_copy_private_bfd_data): Copy the EI_ABIVERSION field.
750 Perform two scans over special sections. The first one looks for
751 a direct mapping between the output section and an input section.
752 The second scan looks for a possible match based upon section
754 * elf32-arm.c (elf32_arm_copy_special_section_fields): New
755 function. Handle setting the sh_link field of SHT_ARM_EXIDX
757 * elf32-i386.c (elf32_i386_set_special_info_link): Rename to
758 elf32_i386_copy_solaris_special_section_fields.
759 * elf32-sparc.c (elf32_sparc_set_special_section_info_link):
760 Rename to elf32_sparc_copy_solaris_special_section_fields.
761 * elf64-x86-64.c (elf64_x86_64_set_special_info_link): Rename to
762 elf64_x86_64_copy_solaris_special_section_fields.
764 2016-04-28 Nick Clifton <nickc@redhat.com>
766 * po/zh_CN.po: Updated Chinese (simplified) translation.
768 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
771 * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
772 when estimating distances between output sections.
774 2016-04-27 Alan Modra <amodra@gmail.com>
776 * elflink.c (_bfd_elf_is_start_stop): New function.
777 (_bfd_elf_gc_mark_rsec): Use it.
778 * elf-bfd.h (_bfd_elf_is_start_stop): Declare.
780 2016-04-26 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
782 * elf32-rx.c (rx_set_section_contents): Avoid arithmetic on void *.
783 * mmo.c (mmo_get_section_contents): Likewise.
784 (mmo_set_section_contents): Likewise.
786 2016-04-26 H.J. Lu <hongjiu.lu@intel.com>
788 * elf-bfd.h (elf_link_hash_table): Update comments for
790 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always count for
791 the unused NULL entry at the head of dynamic symbol table.
792 (bfd_elf_size_dynsym_hash_dynstr): Remove dynsymcount != 0
795 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
797 * elflink.c (_bfd_elf_link_create_dynstrtab): Exclude linker
798 created file from dynobj.
800 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
802 * elflink.c (_bfd_elf_link_create_dynstrtab): Set dynobj to a
803 normal input file if possible.
805 2016-04-21 Nick Clifton <nickc@redhat.com>
807 * aout-adobe.c: Use _bfd_generic_link_check_relocs.
808 * aout-target.h: Likewise.
809 * aout-tic30.c: Likewise.
810 * binary.c: Likewise.
812 * coff-alpha.c: Likewise.
813 * coff-rs6000.c: Likewise.
814 * coff64-rs6000.c: Likewise.
815 * coffcode.h: Likewise.
816 * i386msdos.c: Likewise.
817 * i386os9k.c: Likewise.
820 * libbfd-in.h: Likewise.
821 * libecoff.h: Likewise.
822 * mach-o-target.c: Likewise.
824 * nlm-target.h: Likewise.
827 * plugin.c: Likewise.
828 * ppcboot.c: Likewise.
831 * tekhex.c: Likewise.
832 * versados.c: Likewise.
833 * vms-alpha.c: Likewise.
835 * elfxx-target.h: Use _bfd_elf_link_check_relocs.
836 * linker.c (bfd_link_check_relocs): New function.
837 (_bfd_generic_link_check_relocs): New function.
838 * targets.c (BFD_JUMP_TABLE_LINK): Add initialization of
839 _bfd_link_check_relocs field.
840 (struct bfd_target)L Add _bfd_link_check_relocs field.
841 * bfd-in2.h: Regenerate.
842 * libbfd.h: Regenerate.
844 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
846 * elf32-i386.c (elf_i386_gc_sweep_hook): Removed.
847 (elf_backend_gc_sweep_hook): Likewise.
848 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
849 (elf_backend_gc_sweep_hook): Likewise.
851 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
853 * elflink.c (_bfd_elf_link_check_relocs): Don't check relocations
856 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
859 * elf64-x86-64.c (check_relocs_failed): New.
860 (elf_x86_64_need_pic): Moved before elf_x86_64_check_relocs.
861 Support relocation agaist local symbol. Set check_relocs_failed.
862 (elf_x86_64_check_relocs): Use elf_x86_64_need_pic. Check
863 R_X86_64_32 relocation overflow.
864 (elf_x86_64_relocate_section): Skip if check_relocs failed.
865 Update one elf_x86_64_need_pic and remove one elf_x86_64_need_pic.
867 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
869 * elf32-i386.c (elf_i386_check_relocs): Call
870 _bfd_elf_create_ifunc_sections only for STT_GNU_IFUNC symbol.
871 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
873 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
875 * elf-bfd.h (_bfd_elf_link_check_relocs): New.
876 * elflink.c (_bfd_elf_link_check_relocs): New function.
877 (elf_link_add_object_symbols): Call _bfd_elf_link_check_relocs
878 if check_relocs_after_open_input is FALSE.
880 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
882 * cache.c: Update old style function definitions.
883 * elf32-m68k.c: Likewise.
884 * elf64-mmix.c: Likewise.
885 * stab-syms.c: Likewise.
887 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
889 * elf32-arm.c (put_thumb2_insn): Change argument type to bfd_byte *.
891 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
893 * Makefile.in: Regenerated with automake 1.11.6.
894 * aclocal.m4: Likewise.
895 * doc/Makefile.in: Likewise.
897 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
899 * reloc.c: Add BFD_RELOC_ARC_NPS_CMEM16 entry.
900 * bfd-in2.h: Regenerate.
901 * libbfd.h: Regenerate.
902 * elf32-arc.c: Add 'opcode/arc.h' include.
903 (struct arc_relocation_data): Add symbol_name.
904 (arc_special_overflow_checks): New function.
905 (arc_do_relocation): Use arc_special_overflow_checks, reindent as
906 required, add an extra comment.
907 (elf_arc_relocate_section): Setup symbol_name in reloc_data.
909 2016-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
911 * elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
913 (elf_arc_relocate_section): Update enum uses.
914 (elf_arc_check_relocs): Likewise.
915 (elf_arc_finish_dynamic_symbol): Likewise.
917 2016-04-14 H.J. Lu <hongjiu.lu@intel.com>
919 * elf.c (_bfd_elf_copy_private_bfd_data): Replace "link" with
922 2016-04-14 Nick Clifton <nickc@redhat.com>
925 * elf-bbfd.h (struct elf_backend_data): New field:
927 New field: elf_backend_set_special_section_info_and_link
928 * elfxx-target.h (elf_backend_strtab_flags): Define if not already
930 (elf_backend_set_special_section_info_and_link): Define if not
932 (elfNN_bed): Use elf_backend_set_special_section_info_and_link and
933 elf_backend_strtab_flags macros to initialise fields in structure.
934 * elf.c (_bfd_elf_make_section_from_shdr): Check for SHF_STRINGS
935 being set even if SHF_MERGE is not set.
936 (elf_fake_sections): Likewise.
937 (section_match): New function. Matches two ELF sections based
938 upon fixed characteristics.
939 (find_link): New function. Locates a section in a BFD that
940 matches a section in a different BFD.
941 (_bfd_elf_copy_private_bfd_data): Copy the sh_info and sh_link
942 fields of reserved sections.
943 (bfd_elf_compute_section_file_positions): Set the flags for the
944 .shstrtab section based upon the elf_strtab_flags field in the
945 elf_backend_data structure.
946 (swap_out_syms): Likewise for the .strtab section.
947 * elflink.c (bfd_elf_final_link): Set the flags for the
948 .strtab section based upon the elf_strtab_flags field in the
949 elf_backend_data structure.
950 * elf32-i386.c (elf32_i386_set_special_info_link): New function.
951 (elf_backend_strtab_flags): Set to SHF_STRINGS for Solaris
953 (elf_backend_set_special_section_info_and_link): Define for
955 * elf32-sparc.c: Likewise.
956 * elf64-x86-64.c: Likewise.
958 2016-04-11 H.J. Lu <hongjiu.lu@intel.com>
961 * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): Add a pointer
963 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
964 Set *readonly_dynrelocs_against_ifunc_p to TRUE if dynamic reloc
965 applies to read-only section.
966 * elf32-i386.c (elf_i386_link_hash_table): Add
967 readonly_dynrelocs_against_ifunc.
968 (elf_i386_allocate_dynrelocs): Updated.
969 (elf_i386_size_dynamic_sections): Issue an error for read-only
970 segment with dynamic IFUNC relocations only if
971 readonly_dynrelocs_against_ifunc is TRUE.
972 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
973 readonly_dynrelocs_against_ifunc.
974 (elf_x86_64_allocate_dynrelocs): Updated.
975 (elf_x86_64_size_dynamic_sections): Issue an error for read-only
976 segment with dynamic IFUNC relocations only if
977 readonly_dynrelocs_against_ifunc is TRUE.
978 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
981 2016-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
983 * elf32-arm.c (elf32_arm_size_stubs): Move error_ret_free_local to be
984 a fall through from error_ret_free_internal. Free local_syms in
985 error_ret_free_local if allocated from bfd_elf_get_elf_syms ().
987 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
989 * elf32-arc.c (plt_do_relocs_for_symbol): Changed.
990 (relocate_plt_for_entry): Likewise.
992 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
994 * elf32-arc.c (elf_arc_check_relocs): Changed
996 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
998 * elf32-arc.c (name_for_global_symbol): Changed assert.
999 (get_replace_function): Created.:
1000 (struct arc_relocation_data): Changed to signed types.
1001 (defines S, L, P, PDATA): Casted to signed type.
1002 (defines SECTSTART, _SDA_BASE_, TLS_REL): Likewise.
1003 (PRINT_DEBUG_RELOC_INFO_BEFORE): Changed.
1004 (arc_do_relocation): Changed.
1006 2016-04-05 Cupertino Miranda <cmiranda@synopsys.com>
1008 * elf32-arc.c (name_for_global_symbol): Added assert to check for
1010 (elf_arc_relocate_section): Added and changed asserts, validating
1011 the synamic symbol index.
1012 (elf_arc_finish_dynamic_symbol): Do not fill the dynamic
1013 relocation if symbol has dynindx set to -1.
1015 2016-04-05 Maciej W. Rozycki <macro@imgtec.com>
1017 * elflink.c (elf_link_add_object_symbols): Always turn hidden
1018 and internal symbols which have a dynamic index into local
1021 2016-04-04 Nick Clifton <nickc@redhat.com>
1024 * dwarf2.c (parse_comp_unit): Skip warning about unrecognised
1025 version number if the version is zero.
1027 2016-04-01 Alan Modra <amodra@gmail.com>
1030 * elflink.c (on_needed_list): Recursively check needed status.
1031 (elf_link_add_object_symbols): Adjust.
1033 2016-03-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1035 * elf32-avr.c (avr_elf32_load_records_from_section): Free
1036 internal_relocs only if they aren't cached.
1038 2016-03-29 Nick Clifton <nickc@redhat.com>
1041 * elf32-bfin.c (elf32_bfinfdpic_finish_dynamic_sections): Relax
1042 assertion on the size of the got section to allow it to be bigger
1043 than the number of relocs.
1045 2016-03-29 Toni Spets <toni.spets@iki.fi>
1048 * coffcode.h (coff_write_object_contents): Revert accidental
1051 2016-03-22 Alan Modra <amodra@gmail.com>
1054 * dwarf2.c (read_attribute_value): Skip info_ptr check for
1055 DW_FORM_flag_present.
1057 2016-03-22 Nick Clifton <nickc@redhat.com>
1059 * cpu-v850_rh850.c (arch_info_struct): Restore v850-rh850 as an
1060 architecture name for backwards compatibility.
1062 * peXXigen.c (_bfd_XXi_write_codeview_record): Fix possible
1063 unbounded stack use.
1065 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wstack-usage if using a
1066 sufficiently recent version of GCC.
1067 * configure: Regenerate.
1069 2016-03-22 Alan Modra <amodra@gmail.com>
1072 * plugin.c (try_load_plugin): Avoid -Wstack-usage warning.
1074 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1076 * archures.c (bfd_mach_arc_nps400): Define.
1077 * bfd-in2.h: Regenerate.
1078 * cpu-arc.c (arch_info_struct): New entry for nps400, renumber
1079 some existing entries to make space.
1080 * elf32-arc.c (arc_elf_object_p): Add nps400 case.
1081 (arc_elf_final_write_processing): Likewise.
1083 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1085 * elf32-arc.c (arc_elf_print_private_bfd_data): Remove use of
1087 (arc_elf_final_write_processing): Don't bother setting cpu field
1088 in e_flags, this will have been set elsewhere.
1090 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
1092 * elf32-arc.c (arc_elf_final_write_processing): Switch to using
1095 2016-03-21 Nick Clifton <nickc@redhat.com>
1097 * warning.m4 (GCC_WARN_CFLAGS): Add -Wstack-usage=262144
1098 * configure: Regenerate.
1099 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Replace use of
1100 alloca with call to xmalloc.
1101 * elf32-nds32.c: Likewise.
1102 * elf64-hppa.c: Likewise.
1103 * elfxx-mips.c: Likewise.
1105 * pei-x86_64.c: Likewise.
1109 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
1112 * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
1114 (elf_i386_relocate_section): Likewise.
1115 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1116 (elf_x86_64_relocate_section): Likewise.
1118 2016-03-15 H.J. Lu <hongjiu.lu@intel.com>
1121 * elf64-x86-64.c (elf_x86_64_relocate_section): Check
1122 no_reloc_overflow_check to diable R_X86_64_32/R_X86_64_32S
1123 relocation overflow check.
1125 2016-03-14 H.J. Lu <hongjiu.lu@intel.com>
1127 * bfd-in2.h: Regenerated.
1129 2016-03-11 Dan Gissel <dgisselq@ieee.org>
1132 * elf.c (_bfd_elf_section_offset): Ensure that the returned offset
1133 uses bytes not octets.
1134 * elflink.c (resolve_section): Likewise.
1135 Add a bfd parameter.
1136 (eval_section): Pass the input_bfd to resolve_section.
1137 (bfd_elf_perform_complex_relocation): Convert byte offset to
1138 octets before read and writing values.
1139 (elf_link_input_bfd): Add byte to octet conversions.
1140 (elf_reloc_link_order): Likewise.
1141 (elf_fixup_link_order): Likewise.
1142 (bfd_elf_final_link): Likewise.
1143 * reloc.c (_bfd_final_link_relocate): Likewise.
1144 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
1146 2016-03-10 Nick Clifton <nickc@redhat.com>
1148 * config.bfd: Mark the i370 target as obsolete.
1150 2016-03-09 Pedro Alves <palves@redhat.com>
1152 * cpu-v850.c (N): Append ":old-gcc-abi" instead of " (using old
1153 gcc ABI)" to printable name.
1154 * cpu-v850_rh850.c (bfd_v850_rh850_arch): Use "v850:rh850" instead
1155 of "v850-rh850" as printable name.
1157 2016-03-09 Leon Winter <winter-gcc@bfw-online.de>
1160 * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
1161 relocations against absolute symbols.
1163 2016-03-09 Alan Modra <amodra@gmail.com>
1166 * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Allow zero
1167 length elements in the archive.
1169 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
1172 * elflink.c (elf_link_add_object_symbols): Create dynamic sections
1173 for -E/--dynamic-list only when not relocatable.
1175 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
1178 * elf32-i386.c (elf_i386_check_relocs): Increment PLT reference
1179 count for locally defined local IFUNC symbols in shared object.
1180 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1182 2016-03-08 H.J. Lu <hongjiu.lu@intel.com>
1185 * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
1188 2016-03-08 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
1189 Andrew Burgess <andrew.burgess@embecosm.com>
1191 * elf32-arc.c (arc_bfd_get_32): Becomes an alias for bfd_get_32.
1192 (arc_bfd_put_32): Becomes an alias for bfd_put_32.
1193 (arc_elf_howto_init): Added assert to validate relocations.
1194 (get_middle_endian_relocation): Delete.
1195 (middle_endian_convert): New function.
1196 (ME): Redefine, now does nothing.
1197 (IS_ME): New define.
1198 (arc_do_relocation): Extend the attached 'ARC_RELOC_HOWTO'
1199 definition to call middle_endian_convert. Add a new local
1200 variable and make use of this throughout. Added call to
1201 arc_bfd_get_8 and arc_bfd_put_8 for 8 bit relocations.
1203 2016-03-07 Nick Clifton <nickc@redhat.com>
1206 * archive.c (bfd_generic_openr_next_archived_file): Allow zero
1207 length elements in the archive.
1209 2016-03-07 Jiong Wang <jiong.wang@arm.com>
1211 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Always create .got
1212 section if the symbol "_GLOBAL_OFFSET_TABLE_" is referenced.
1214 2016-03-04 H.J. Lu <hongjiu.lu@intel.com>
1217 * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
1218 executable as definition if the new definition comes from a
1221 2016-03-02 Alan Modra <amodra@gmail.com>
1223 * Makefile.in: Regenerate.
1224 * po/SRC-POTFILES.in: Regenerate.
1226 2016-02-29 Cupertino Miranda <cmiranda@synopsys.com>
1228 * elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
1229 relocation addend when sections get merged.
1231 2016-02-29 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
1233 * elf32-arc.c (arc_elf_final_write_processing): Add condition to
1235 (elf_arc_relocate_section): Fixes and conditions to support PIE.
1236 Assert for code sections dynamic relocs.
1238 2016-02-26 Renlin Li <renlin.li@arm.com>
1240 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix signed overflow
1241 check for MOVW_SABS_G0, MOVW_SABS_G1, MOVW_SABS_G2.
1243 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1246 * elf32-i386.c (elf_i386_convert_load): Convert to R_386_32 for
1247 load with locally bound symbols if PIC is false or there is no
1248 base register. Optimize branch to 0 if PIC is false.
1249 (elf_i386_relocate_section): Don't generate dynamic relocations
1250 against undefined weak symbols if PIC is false.
1251 * elf64-x86-64.c (elf_x86_64_convert_load): Disable optimization
1252 if we can't estimate relocation overflow with --no-relax.
1253 Convert to R_X86_64_32S/R_X86_64_32 for load with locally bound
1254 symbols if PIC is false. Optimize branch to 0 if PIC is false.
1255 (elf_x86_64_relocate_section): Don't generate dynamic relocations
1256 against undefined weak symbols if PIC is false.
1258 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1261 * bfd.c (bfd): Change flags to 20 bits.
1262 (BFD_CONVERT_ELF_COMMON): New.
1263 (BFD_USE_ELF_STT_COMMON): Likewise.
1264 (BFD_FLAGS_SAVED): Add BFD_CONVERT_ELF_COMMON and
1265 BFD_USE_ELF_STT_COMMON.
1266 (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
1267 * configure.ac: Remove --enable-elf-stt-common.
1268 * elf.c (swap_out_syms): Choose STT_COMMON or STT_OBJECT for
1269 common symbol depending on BFD_CONVERT_ELF_COMMON and
1270 BFD_USE_ELF_STT_COMMON.
1271 * elfcode.h (elf_slurp_symbol_table): Set BSF_ELF_COMMON for
1273 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Also check
1275 (elf_link_convert_common_type): New function.
1276 (elf_link_output_extsym): Choose STT_COMMON or STT_OBJECT for
1277 common symbol depending on BFD_CONVERT_ELF_COMMON and
1278 BFD_USE_ELF_STT_COMMON. Set sym.st_info after sym.st_shndx.
1279 * elfxx-target.h (TARGET_BIG_SYM): Add BFD_CONVERT_ELF_COMMON
1280 and BFD_USE_ELF_STT_COMMON to object_flags.
1281 (TARGET_LITTLE_SYM): Likewise.
1282 * syms.c (BSF_KEEP_G): Renamed to ...
1283 (BSF_ELF_COMMON): This.
1284 * bfd-in2.h: Regenerated.
1285 * config.in: Likewise.
1286 * configure: Likewise.
1288 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
1293 * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
1294 (elf_i386_link_hash_entry): Add has_got_reloc and
1296 (elf_i386_link_hash_table): Add interp.
1297 (elf_i386_link_hash_newfunc): Initialize has_got_reloc and
1299 (elf_i386_copy_indirect_symbol): Copy has_got_reloc and
1301 (elf_i386_check_relocs): Set has_got_reloc and has_non_got_reloc.
1302 (elf_i386_fixup_symbol): New function.
1303 (elf_i386_pie_finish_undefweak_symbol): Likewise.
1304 (elf_i386_allocate_dynrelocs): Don't allocate space for dynamic
1305 relocations and discard relocations against resolved undefined
1306 weak symbols in executable. Don't make resolved undefined weak
1307 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
1308 relocation against undefined weak symbols in PIE.
1309 (elf_i386_size_dynamic_sections): Set interp to .interp section.
1310 (elf_i386_relocate_section): Don't generate dynamic relocations
1311 against resolved undefined weak symbols in PIE, except for
1313 (elf_i386_finish_dynamic_symbol): Keep PLT/GOT entries without
1314 dynamic PLT/GOT relocations for resolved undefined weak symbols.
1315 Don't generate dynamic relocation against resolved undefined weak
1316 symbol in executable.
1317 (elf_i386_finish_dynamic_sections): Call
1318 elf_i386_pie_finish_undefweak_symbol on all symbols in PIE.
1319 (elf_backend_fixup_symbol): New.
1320 * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
1321 (elf_x86_64_link_hash_entry): Add has_got_reloc and
1323 (elf_x86_64_link_hash_table): Add interp.
1324 (elf_x86_64_link_hash_newfunc): Initialize has_got_reloc and
1326 (elf_x86_64_copy_indirect_symbol): Copy has_got_reloc and
1328 (elf_x86_64_check_relocs): Set has_got_reloc and
1330 (elf_x86_64_fixup_symbol): New function.
1331 (elf_x86_64_pie_finish_undefweak_symbol): Likewise.
1332 (elf_x86_64_allocate_dynrelocs): Don't allocate space for dynamic
1333 relocations and discard relocations against resolved undefined
1334 weak symbols in executable. Don't make resolved undefined weak
1335 symbols in executable dynamic.
1336 (elf_x86_64_size_dynamic_sections): Set interp to .interp section.
1337 (elf_x86_64_relocate_section): Check relocation overflow for
1338 dynamic relocations against unresolved weak undefined symbols.
1339 Don't generate dynamic relocations against resolved weak
1340 undefined symbols in PIE.
1341 (elf_x86_64_finish_dynamic_symbol): Keep PLT/GOT entries without
1342 dynamic PLT/GOT relocations for resolved undefined weak symbols.
1343 Don't generate dynamic relocation against resolved undefined weak
1344 symbol in executable.
1345 (elf_x86_64_finish_dynamic_sections): Call
1346 elf_x86_64_pie_finish_undefweak_symbol on all symbols in PIE.
1347 (elf_backend_fixup_symbol): New.
1349 2016-02-26 Alan Modra <amodra@gmail.com>
1351 * elf64-ppc.c (create_linkage_sections): Create sfpr when
1352 save_restore_funcs, rest of sections when not relocatable.
1353 (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
1354 (sfpr_define): Define all symbols on emitted code.
1355 (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
1356 when relocatable. Move sfpr_define loop earlier.
1358 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
1360 * elf64-x86-64.c (elf_x86_64_need_pic): New function.
1361 (elf_x86_64_relocate_section): Use it. Replace
1362 x86_64_elf_howto_table[r_type] with howto.
1364 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
1367 * elflink.c (bfd_elf_record_link_assignment): Set versioned if
1368 symbol version is unknown.
1370 2016-02-24 H.J. Lu <hongjiu.lu@intel.com>
1372 * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
1373 to (bfd_vma) -1 when setting needs_plt to 0.
1374 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
1376 2016-02-23 H.J. Lu <hongjiu.lu@intel.com>
1378 * elflink.c (bfd_elf_record_link_assignment): Check for shared
1379 library, instead of PIC, and don't check PDE when making linker
1380 assigned symbol dynamic.
1382 2016-02-23 Faraz Shahbazker <faraz.shahbazker@imgtec.com>
1384 * bfd/elfxx-mips.c (_bfd_mips_post_process_headers): Increment
1385 ABIVERSION for non-executable stack.
1387 2016-02-23 Rich Felker <bugdal@aerifal.cx>
1390 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol):
1391 Always produce a RELATIVE reloc for a local symbol.
1393 2016-02-23 Hans-Peter Nilsson <hp@axis.com>
1395 Fix test-case ld-elf/pr19617b
1396 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
1397 discard unused non-function symbols when --dynamic-list-data.
1399 2016-02-22 H.J. Lu <hongjiu.lu@intel.com>
1401 * elflink.c (_bfd_elf_link_renumber_dynsyms): Always create the
1402 dynsym section, even if it is empty, with dynamic sections.
1404 2016-02-22 H.J. Lu <hongjiu.lu@intel.com>
1406 * syms.c: Remove BSF_COMMON from comments.
1407 * bfd-in2.h: Regenerated.
1409 2016-02-22 Jiong Wang <jiong.wang@arm.com>
1411 * elfnn-aarch64. (aarch64_type_of_stub): Remove redundation calcuation
1412 for destination. Remove useless function parameters.
1413 (elfNN_aarch64_size_stubs): Update parameters for aarch64_type_of_stub.
1415 2016-02-19 Nick Clifton <nickc@redhat.com>
1418 * aoutx.h (aout_link_add_symbols): Check for out of range string
1422 * reloc.c (bfd_generic_get_relocated_section_contents): Stop
1423 processing if we encounter a reloc without an associated symbol.
1425 2016-02-18 H.J. Lu <hongjiu.lu@intel.com>
1428 * elflink.c (elf_link_add_object_symbols): Always create dynamic
1429 sections for -E/--dynamic-list.
1431 2016-02-17 H.J. Lu <hongjiu.lu@intel.com>
1433 * elf64-x86-64.c (elf_backend_omit_section_dynsym): New. Defined
1436 2016-02-16 Joseph Myers <joseph@codesourcery.com>
1438 * plugin.c (plugin_vec): Set match priority to 255.
1439 * format.c (bfd_check_format_matches) [BFD_SUPPORTS_PLUGINS]: When
1440 matching against the plugin vector, take priority from there not
1443 2016-02-15 Nick Clifton <nickc@redhat.com>
1445 * elf-bfd.h (struct bfd_elf_special_section): Use unsigned values
1446 for length and type fields. Use a signed value for the
1447 suffix_length field.
1449 2016-02-10 H.J. Lu <hongjiu.lu@intel.com>
1452 * elf32-i386.c (elf_i386_relocate_section): Mask off the least
1453 significant bit in GOT offset for R_386_GOT32X.
1455 2016-02-10 Nick Clifton <nickc@redhat.com>
1458 * elf32-nios2.c (nios2_elf32_install_imm16): Allow for signed
1460 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Limit the
1461 number of messages about FDE encoding preventing .eh_frame_hdr
1464 2016-02-09 Nick Clifton <nickc@redhat.com>
1466 * oasys.c (oasys_archive_p): Fix indentation.
1467 * elf32-nds32.c (nds32_elf_relax_section): Use an unsigned
1468 constant for left shifting.
1470 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Add a more
1471 helpful warning message to explain why certain AArch64 relocs
1474 2016-02-05 Simon Marchi <simon.marchi@ericsson.com>
1476 * pe-mips.c (coff_mips_reloc): Fix formatting.
1478 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
1480 * cpu-arc.c: Change default archure from bfd_mach_arc_arcv2
1481 to bfd_mach_arc_arc600.
1483 2016-02-04 Alan Modra <amodra@gmail.com>
1485 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust last patch
1488 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
1491 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
1492 distances in the compressed_size field of the output section.
1494 2016-02-02 Alan Modra <amodra@gmail.com>
1496 * elf64-ppc.c (ppc64_elf_relocate_section): Further restrict
1497 ELFv2 entry optimization.
1499 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
1502 * elf.c (assign_section_numbers): Clear HAS_RELOC if there are
1503 no relocations in relocatable files.
1505 2016-02-01 H.J. Lu <hongjiu.lu@intel.com>
1508 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
1509 if a symbol from a library loaded via DT_NEEDED doesn't match
1510 the symbol referenced by regular object.
1512 2016-02-01 Nathaniel Smith <njs@pobox.com>
1514 * peicode.h (pe_ILF_build_a_bfd): Create an import symbol for both
1517 2016-02-01 Alan Modra <amodra@gmail.com>
1519 * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Don't abort on
1520 an out of range reloc_index.
1521 * elf32-i386.c (elf_i386_get_plt_sym_val): Likewise.
1523 2016-02-01 Kamil Rytarowski <n54@gmx.com>
1525 * Makefile.am (OPTIONAL_BACKENDS): Add netbsd-core.lo.
1526 (OPTIONAL_BACKENDS_CFILES): Add netbsd-core.c.
1527 * Makefile.in: Regenerated.
1529 2016-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1531 * elf64-s390.c (elf_s390_reloc_name_lookup): Fix indentation.
1533 2016-01-31 John David Anglin <danglin@gcc.gnu.org>
1536 * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
1538 * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
1540 2016-01-30 H.J. Lu <hongjiu.lu@intel.com>
1543 * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
1544 against STT_GNU_IFUNC symbol only with dynamic symbols.
1545 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
1547 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1550 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
1551 decompress debug sections.
1553 2016-01-25 Maciej W. Rozycki <macro@imgtec.com>
1555 * elf32-arc.c (elf_arc_finish_dynamic_symbol): Rename `index' to
1558 2016-01-25 Nick Clifton <nickc@redhat.com>
1561 * mach-o.c (bfd_mach_o_close_and_cleanup): Suppress code to free
1562 dsym filename buffer.
1564 2016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1566 * elfxx-mips.c (BZ16_REG_FIELD): Simplify calculation.
1568 2016-01-24 Maciej W. Rozycki <macro@imgtec.com>
1570 * elfxx-mips.c (BZ16_REG): Correct calculation.
1572 2016-01-21 Nick Clifton <nickc@redhat.com>
1574 * elf32-arc.c (ADD_RELA): Fix compile time warning errors by
1575 changing the type of _loc to be bfd_byte *.
1576 (elf_arc_finish_dynamic_symbol): Likewise.
1578 2016-01-21 Nick Clifton <nickc@redhat.com>
1581 * elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
1582 class of the linker stub bfd.
1583 (elf32_arm_check_relocs): Skip check for pic format after
1584 processing a vxWorks R_ARM_ABS12 reloc.
1585 * elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
1586 reporting a class mismatch.
1588 2016-01-21 Jiong Wang <jiong.wang@arm.com>
1590 * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
1591 veneer for sym_sec != input_sec.
1592 (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
1593 (elfNN_aarch64_final_link_relocate): Take rela addend into account when
1594 calculation destination.
1596 2016-01-21 Alan Modra <amodra@gmail.com>
1598 * elf-linux-core.h (swap_linux_prpsinfo32_out): New function.
1599 (swap_linux_prpsinfo64_out): New function.
1600 (LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1601 (LINUX_PRPSINFO64_SWAP_FIELDS): Delete.
1602 * elf.c (elfcore_write_linux_prpsinfo32): Adjust. Don't memset.
1603 (elfcore_write_linux_prpsinfo64): Likewise.
1604 * elf32-ppc.c (swap_ppc_linux_prpsinfo32_out): New function.
1605 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): Delete.
1606 (elfcore_write_ppc_linux_prpsinfo32): Adjust. Don't memset.
1608 2016-01-21 Alan Modra <amodra@gmail.com>
1610 * elf-linux-core.h: Rename from elf-linux-psinfo.h.
1611 * elf.c: Adjust #include.
1612 * elf32-ppc.c: Don't #include elf-linux-psinfo.h
1613 * Makefile.am (SOURCE_HFILES): Update.
1614 * Makefile.in: Regenerate.
1615 * po/SRC-PORFILES.in: Regenerate.
1617 2016-01-21 Alan Modra <amodra@gmail.com>
1619 * configure.ac: Move corefile selection later in file. Move
1620 tdefaults code immediately after other target vector code.
1621 * configure: Regenerate.
1623 2016-01-20 Mickael Guene <mickael.guene@st.com>
1625 * elf32-arm.c (elf32_arm_special_sections): Remove catch of noread
1626 section using '.text.noread' pattern.
1628 2016-01-19 John Baldwin <jhb@FreeBSD.org>
1630 * elf.c (elfcore_grok_note): Recognize NT_FREEBSD_THRMISC notes.
1632 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
1633 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
1635 * arc-plt.def: New file.
1636 * arc-plt.h: Likewise.
1637 * elf32-arc.c (elf_arc_abs_plt0_entry, elf_arc_abs_pltn_entry,
1638 elf_arcV2_abs_plt0_entry, elf_arcV2_abs_pltn_entry,
1639 elf_arc_pic_plt0_entry, elf_arc_pic_pltn_entry,
1640 elf_arcV2_pic_plt0_entry, elf_arcV2_pic_pltn_entry): Remove.
1641 (name_for_global_symbol): Added.
1642 (ADD_RELA): Helper to create dynamic relocs.
1643 (new_got_entry_to_list): Create a new got entry in linked list.
1644 (symbol_has_entry_of_type): Search for specific type of entry in
1646 (is_reloc_for_GOT): return FALSE for any TLS related relocs.
1647 (is_reloc_for_TLS, arc_elf_set_private_flags)
1648 (arc_elf_print_private_bfd_data, arc_elf_copy_private_bfd_data)
1649 (arc_elf_merge_private_bfd_data): New functions.
1650 (debug_arc_reloc): Cleaned debug info printing.
1651 (PDATA reloc): Changed not to perform address alignment.
1652 (reverse_me): Added. Fix for ARC_32 relocs.
1653 (arc_do_relocation): Return bfd_reloc_of when no relocation should
1655 (arc_get_local_got_ents): Renamed from arc_get_local_got_offsets.
1656 Changed function to access an array of list of GOT entries instead
1657 of just an array of offsets.
1658 (elf_arc_relocate_section): Added support for PIC and TLS related relocations.
1659 (elf_arc_check_relocs): Likewise.
1660 (elf_arc_adjust_dynamic_symbol, elf_arc_finish_dynamic_symbol,
1661 (elf_arc_finish_dynamic_sections): Likewise
1662 (arc_create_dynamic_sections): Modified conditions to create
1664 (ADD_SYMBOL_REF_SEC_AND_RELOC): New macro.
1665 (plt_do_relocs_for_symbol, relocate_plt_for_symbol)
1666 (relocate_plt_for_entry): Changed to support new way to define PLT
1668 (add_symbol_to_plt): Likewise.
1669 (arc_elf_link_hash_table_create): New function.
1671 2016-01-18 Nick Clifton <nickc@redhat.com>
1674 * coff-rs6000.c (_bfd_xcoff_swap_sym_in): Sign extend external
1675 section number into internal section number.
1676 * coff64-rs6000.c (_bfd_xcoff64_swap_sym_in): Likewise.
1677 * coffswap.h (coff_swap_sym_in): Likewise.
1678 * peXXigen.c (_bfd_XXi_swap_sym_in): Likewise.
1679 * coffcode.h (_coff_bigobj_swap_sym_in): Make sure that internal
1680 section number field is big enough to hold the external value.
1682 2016-01-17 Alan Modra <amodra@gmail.com>
1684 * configure: Regenerate.
1686 2016-01-12 Yury Usishchev <y.usishchev@samsung.com>
1688 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Insert cantunwind
1689 when address in first unwind entry does not match start of
1692 2016-01-08 Richard Sandiford <richard.sandiford@arm.com>
1693 Jiong Wang <jiong.wang@arm.com>
1696 * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
1699 2016-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
1701 * elf32-arc.c (reloc_type_to_name): Change ARC_RELOC_HOWTO to
1702 place 'R_' before the reloc name returned.
1703 (elf_arc_howto_table): Change ARC_RELOC_HOWTO to place 'R_' before
1704 the relocation string.
1706 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1708 * elfxx-mips.c (mips_elf_merge_obj_abiflags): New function,
1709 factored out from...
1710 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1712 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1714 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Move
1715 attribute check after ELF file header flag check.
1717 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1719 * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
1720 return status from `_bfd_elf_merge_object_attributes'.
1722 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1724 * elfxx-mips.c (mips_elf_merge_obj_e_flags): New function,
1725 factored out from...
1726 (_bfd_mips_elf_merge_private_bfd_data): ... here.
1728 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1730 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Fold the
1731 handling of input MIPS ABI flags together.
1733 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1735 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Suppress
1736 attribute checks for null input.
1738 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1740 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Use local
1741 pointers to target data.
1743 2016-01-04 Maciej W. Rozycki <macro@imgtec.com>
1745 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
1748 2016-01-01 Alan Modra <amodra@gmail.com>
1750 Update year range in copyright notice of all files.
1752 For older changes see ChangeLog-2015 and doc/ChangeLog-0415
1754 Copyright (C) 2016 Free Software Foundation, Inc.
1756 Copying and distribution of this file, with or without modification,
1757 are permitted in any medium without royalty provided the copyright
1758 notice and this notice are preserved.
1764 version-control: never