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