Automatic date update in version.in
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
2
3 * elf32-xtensa.c (elf_xtensa_be_plt_entry,
4 elf_xtensa_le_plt_entry): Add dimension for the ABI to arrays,
5 keep both windowed and call0 ABI PLT definitions.
6 (elf_xtensa_create_plt_entry): Use selected ABI to choose upper
7 elf_xtensa_*_plt_entry endex.
8 (ELF_MAXPAGESIZE): Fix at minimal supported MMU page size.
9
10 2017-06-14 Nick Clifton <nickc@redhat.com>
11
12 PR binutils/21578
13 * elf32-sh.c (sh_elf_set_mach_from_flags): Fix check for invalid
14 flag value.
15
16 2017-06-14 Nick Clifton <nickc@redhat.com>
17
18 PR binutils/21589
19 * vms-alpha.c (_bfd_vms_get_value): Add an extra parameter - the
20 maximum value for the ascic pointer. Check that name processing
21 does not read beyond this value.
22 (_bfd_vms_slurp_etir): Add checks for attempts to read beyond the
23 end of etir record.
24
25 2017-06-14 Nick Clifton <nickc@redhat.com>
26
27 PR binutils/21591
28 * versados.c (versados_mkobject): Zero the allocated tdata structure.
29 (process_otr): Check for an invalid offset in the otr structure.
30
31 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
32
33 * config.bfd (epiphany-*-elf): Accept epiphany-*-*.
34
35 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR ld/20022
38 PR ld/21557
39 PR ld/21562
40 PR ld/21571
41 * elf-bfd.h (elf_link_hash_entry): Add start_stop. Change the
42 vtable field to a union.
43 (_bfd_elf_is_start_stop): Removed.
44 * elf32-i386.c (elf_i386_convert_load_reloc): Also check for
45 __start_SECNAME and __stop_SECNAME symbols.
46 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
47 * elflink.c (_bfd_elf_is_start_stop): Removed.
48 (_bfd_elf_gc_mark_rsec): Check start_stop instead of calling
49 _bfd_elf_is_start_stop.
50 (elf_gc_propagate_vtable_entries_used): Skip __start_SECNAME and
51 __stop_SECNAME symbols. Updated.
52 (elf_gc_smash_unused_vtentry_relocs): Likewise.
53 (bfd_elf_gc_record_vtinherit): Likewise.
54 (bfd_elf_gc_record_vtentry): Likewise.
55
56 2017-06-13 Nick Clifton <nickc@redhat.com>
57
58 PR ld/21524
59 * elflink.c (elf_link_adjust_relocs): Generate an error when
60 encountering a reloc against a symbol removed by garbage
61 collection.
62
63 2017-06-12 H.J. Lu <hongjiu.lu@intel.com>
64
65 * elf-bfd.h (elf_backend_data): Add struct bfd_link_info *
66 to merge_gnu_properties.
67 * elf-properties.c (elf_merge_gnu_properties): Add struct
68 bfd_link_info * and pass it to merge_gnu_properties.
69 (elf_merge_gnu_property_list): Add struct bfd_link_info *
70 and pass it to elf_merge_gnu_properties.
71 (_bfd_elf_link_setup_gnu_properties): Pass info to
72 elf_merge_gnu_property_list.
73 * elf32-i386.c (elf_i386_merge_gnu_properties): Add struct
74 bfd_link_info *.
75 * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): Likewise.
76
77 2017-06-11 Joe Zbiciak <joe.zbiciak@leftturnonly.info>
78
79 PR 21564
80 * binary.c (binary_set_section_contents): Scale lma by octets
81 per byte to set filepos.
82
83 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
84
85 * elf32-arc.c (elf_arc_check_relocs): Fixed conditions to generate
86 dynamic sections.
87
88 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
89
90 * elf32-arc.c (elf_arc_size_dynamic_sections): Changed condition to
91 require TEXTREL.
92
93 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
94
95 * arc-got.h (relocate_fix_got_relocs_for_got_info): Added TCB_SIZE to
96 patched section contents for TLS IE reloc.
97 * elf32-arc.c: Remove TCB_SIZE preprocessor macro.
98
99 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
100
101 * elf32-arc.c (elf_arc_relocate_section): Added "call" to
102 RELOC_FOR_GLOBAL_SYMBOL macro.
103
104 2018-06-08 Cupertino Miranda <cmiranda@synopsys.com>
105
106 * elf32-arc.c (elf_arc_relocate_section): Small refactor and condition
107 changes.
108
109 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
110
111 * config/tc-arc.c (md_undefined_symbol): Changed.
112 * config/tc-arc.h (DYNAMIC_STRUCT_NAME): Removed.
113
114 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
115
116 * elf32-arc.c (elf_arc_relocate_section): Fixed reassign of indirect
117 symbols.
118
119 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
120
121 * elf32-arc.c (elf_arc_check_relocs): Added condition to disable
122 warning and "Bad value" for local symbols ARC_32 or ARC_32_ME relocs.
123
124 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
125
126 * elf32-arc.c (ADD_RELA): Changed to only work when dynamic
127 object is created.
128
129 2017-06-08 Richard Earnshaw <rearnsha@arm.com>
130
131 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove assertion
132 that the input bfd has Tag_FP_ARCH non-zero if Tag_ABI_HardFP_use
133 is non-zero. Add clarifying comments.
134
135 2017-06-08 H.J. Lu <hongjiu.lu@intel.com>
136
137 * elf32-i386.c (elf_i386_check_relocs): Set local IFUNC symbol
138 name. Use local IFUNC symbol name string to report unsupported
139 non-PIC call to IFUNC function.
140 (elf_i386_relocate_section): Dump local IFUNC name with minfo
141 when generating R_386_IRELATIVE relocation.
142 (elf_i386_finish_dynamic_symbol): Likewise.
143 * elf_x86_64_check_relocs (elf_x86_64_check_relocs): Set local
144 IFUNC symbol name.
145 (elf_x86_64_relocate_section): Dump local IFUNC name with minfo
146 when generating R_X86_64_IRELATIVE relocation.
147 (elf_x86_64_finish_dynamic_symbol): Likewise.
148
149 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
150
151 * elf.c (setup_group): Make sure BFD sections are created for all
152 group sections in the input file when processing SHF_GROUP
153 sections.
154 (bfd_section_from_shdr): Avoid duplicating logic already
155 implemented in `setup_group'.
156
157 2017-06-06 Daniel Bonniot de Ruisselet <bonniot@gmail.com>
158
159 PR binutils/21546
160 * peXXigen.c (pe_print_idata): Use the address of the first thunk
161 if the hint address is zero.
162
163 2017-06-06 James Clarke <jrtc27@jrtc27.com>
164
165 PR ld/19579
166 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check
167 ELF_COMMON_DEF_P for common symbols.
168
169 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
170
171 * elf.c (_bfd_elf_make_section_from_shdr): Don't initially mark
172 SEC_GROUP sections as SEC_EXCLUDE.
173 (bfd_elf_set_group_contents): Replace use of abort with an assert.
174 (assign_section_numbers): Use resolve_section_groups flag instead
175 of relocatable link type.
176 (_bfd_elf_init_private_section_data): Use resolve_section_groups
177 flag instead of checking the final_link flag for part of the
178 checks in here. Fix white space as a result.
179 * elflink.c (elf_link_input_bfd): Use resolve_section_groups flag
180 instead of relocatable link type.
181 (bfd_elf_final_link): Likewise.
182
183 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
184
185 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Remove unused
186 variable `bed'.
187 * elf32-score.c (score_elf_final_link_relocate): Likewise.
188 (s3_bfd_score_elf_check_relocs): Likewise.
189 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
190 (score_elf_final_link_relocate): Likewise.
191 (s7_bfd_score_elf_check_relocs): Likewise.
192
193 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
194
195 * elflink.c (init_reloc_cookie_rels): Remove unused variable
196 `bed'.
197
198 2017-06-06 Maciej W. Rozycki <macro@imgtec.com>
199
200 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Subtract `count'
201 from `reloc_count' rather than decrementing it.
202 * elf.c (bfd_section_from_shdr): Multiply the adjustment to
203 `reloc_count' by `int_rels_per_ext_rel'.
204 * elf32-score.c (score_elf_final_link_relocate): Do not multiply
205 `reloc_count' by `int_rels_per_ext_rel' for last relocation
206 entry determination.
207 (s3_bfd_score_elf_check_relocs): Likewise.
208 * elf32-score7.c (score_elf_final_link_relocate): Likewise.
209 (s7_bfd_score_elf_relocate_section): Likewise.
210 (s7_bfd_score_elf_check_relocs): Likewise.
211 * elf64-mips.c (mips_elf64_get_reloc_upper_bound): Remove
212 prototype and function.
213 (mips_elf64_slurp_one_reloc_table): Do not update `reloc_count'.
214 (mips_elf64_slurp_reloc_table): Assert that `reloc_count' is
215 triple rather than once the sum of REL and RELA relocation entry
216 counts.
217 (bfd_elf64_get_reloc_upper_bound): Remove macro.
218 * elflink.c (_bfd_elf_link_read_relocs): Do not multiply
219 `reloc_count' by `int_rels_per_ext_rel' for internal relocation
220 storage allocation size determination.
221 (elf_link_input_bfd): Multiply `.ctors' and `.dtors' section's
222 size by `int_rels_per_ext_rel'. Do not multiply `reloc_count'
223 by `int_rels_per_ext_rel' for last relocation entry
224 determination.
225 (bfd_elf_final_link): Do not multiply `reloc_count' by
226 `int_rels_per_ext_rel' for internal relocation storage
227 allocation size determination.
228 (init_reloc_cookie_rels): Do not multiply `reloc_count' by
229 `int_rels_per_ext_rel' for last relocation entry determination.
230 (elf_gc_smash_unused_vtentry_relocs): Likewise.
231 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
232 (_bfd_mips_elf_relocate_section): Likewise.
233
234 2017-06-05 Alan Modra <amodra@gmail.com>
235
236 PR 21529
237 * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE.
238
239 2017-06-01 John Baldwin <jhb@FreeBSD.org>
240
241 * elf.c (elfcore_grok_freebsd_psinfo): Use ELF header class to
242 determine structure sizes.
243 (elfcore_grok_freebsd_prstatus): Likewise.
244
245 2017-06-01 Alan Modra <amodra@gmail.com>
246
247 * elf64-ppc.c (struct ppc_link_hash_table): Add has_plt_localentry0.
248 (ppc64_elf_merge_symbol_attribute): Merge localentry bits from
249 dynamic objects.
250 (is_elfv2_localentry0): New function.
251 (ppc64_elf_tls_setup): Default params->plt_localentry0.
252 (plt_stub_size): Adjust size for tls_get_addr_opt stub.
253 (build_tls_get_addr_stub): Use a simpler stub when r2 is not saved.
254 (ppc64_elf_size_stubs): Leave stub_type as ppc_stub_plt_call for
255 optimized localentry:0 stubs.
256 (ppc64_elf_build_stubs): Save r2 in ELFv2 __glink_PLTresolve.
257 (ppc64_elf_relocate_section): Leave nop unchanged for optimized
258 localentry:0 stubs.
259 (ppc64_elf_finish_dynamic_sections): Set PPC64_OPT_LOCALENTRY in
260 DT_PPC64_OPT.
261 * elf64-ppc.h (struct ppc64_elf_params): Add plt_localentry0.
262
263 2017-05-30 Casey Smith <clegg89@gmail.com>
264
265 PR ld/21523
266 * elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute
267 value when processing the R_ARM_THM_ALU_PREL_11_0 reloc.
268
269 2017-05-30 Anton Kolesov Anton.Kolesov@synopsys.com
270
271 * cpu-arc.c (arc_compatible): New function.
272
273 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
274
275 * cpu-arc.c (arch_info_struct): Remove duplicate ARC600 entry.
276
277 2017-05-30 H.J. Lu <hongjiu.lu@intel.com>
278
279 PR binutils/21519
280 * bfdio.c (bfd_get_file_size): New function.
281 * bfd-in2.h: Regenerated.
282
283 2017-05-23 Dilian Palauzov <git-dpa@aegee.org>
284
285 * elf32-arc.c (arc_elf_merge_attributes): Add fall through
286 comments.
287
288 2017-05-22 H.J. Lu <hongjiu.lu@intel.com>
289
290 * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Use
291 dynobj instead of htab->elf.dynobj.
292
293 2017-05-19 Maciej W. Rozycki <macro@imgtec.com>
294
295 * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype
296 and function.
297 (mips_elf64_canonicalize_dynamic_reloc): Likewise.
298 (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the
299 actual number of internal relocations retrieved. Adjust
300 function description.
301 (bfd_elf64_canonicalize_reloc): Remove macro.
302 (bfd_elf64_canonicalize_dynamic_reloc): Likewise.
303
304 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
305
306 * archures.c (bfd_mach_sparc_v9m8): Define.
307 (bfd_mach_sparc_v8plusm8): Likewise.
308 (bfd_mach_sparc_v9_p): Adjust to M8.
309 (bfd_mach_sparc_64bit_p): Likewise.
310 * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and
311 bfd_mach_sparc_v8plusm8.
312 * bfd-in2.h: Regenerated.
313 * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and
314 sparc:v8plusm8.
315 * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle
316 bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw
317 capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and
318 SHA3.
319 * elf32-sparc.c (elf32_sparc_final_write_processing): Handle
320 bfd_mach_sparc_v8plusm8.
321
322 2017-05-19 Alan Modra <amodra@gmail.com>
323
324 * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep
325 debug and special sections when no non-note alloc sections in an
326 object are kept.
327
328 2017-05-18 Alan Modra <amodra@gmail.com>
329
330 * arc-got.h: Don't compare boolean values against TRUE or FALSE.
331 * elf-m10300.c: Likewise.
332 * elf.c: Likewise.
333 * elf32-arc.c: Likewise.
334 * elf32-bfin.c: Likewise.
335 * elf32-m68k.c: Likewise.
336 * elf32-nds32.c: Likewise.
337 * elf32-tilepro.c: Likewise.
338 * elflink.c: Likewise.
339 * elfnn-aarch64.c: Likewise.
340 * elfnn-riscv.c: Likewise.
341 * elfxx-tilegx.c: Likewise.
342 * mach-o.c: Likewise.
343 * peXXigen.c: Likewise.
344 * vms-alpha.c: Likewise.
345 * vms-lib.c: Likewise.
346
347 2017-05-17 H.J. Lu <hongjiu.lu@intel.com>
348
349 PR ld/20882
350 * elflink.c (elf_gc_mark_debug_section): New function.
351 (_bfd_elf_gc_mark_extra_sections): Mark any debug sections
352 referenced by kept debug sections.
353
354 2017-05-16 Alan Modra <amodra@gmail.com>
355
356 * elf-m10300.c: Rename occurrences of non_ir_ref.
357 * elf32-arm.c: Likewise.
358 * elf32-bfin.c: Likewise.
359 * elf32-cr16.c: Likewise.
360 * elf32-cris.c: Likewise.
361 * elf32-d10v.c: Likewise.
362 * elf32-dlx.c: Likewise.
363 * elf32-fr30.c: Likewise.
364 * elf32-frv.c: Likewise.
365 * elf32-hppa.c: Likewise.
366 * elf32-i370.c: Likewise.
367 * elf32-i386.c: Likewise.
368 * elf32-iq2000.c: Likewise.
369 * elf32-lm32.c: Likewise.
370 * elf32-m32c.c: Likewise.
371 * elf32-m32r.c: Likewise.
372 * elf32-m68hc1x.c: Likewise.
373 * elf32-m68k.c: Likewise.
374 * elf32-mcore.c: Likewise.
375 * elf32-metag.c: Likewise.
376 * elf32-microblaze.c: Likewise.
377 * elf32-moxie.c: Likewise.
378 * elf32-msp430.c: Likewise.
379 * elf32-mt.c: Likewise.
380 * elf32-nios2.c: Likewise.
381 * elf32-or1k.c: Likewise.
382 * elf32-ppc.c: Likewise.
383 * elf32-rl78.c: Likewise.
384 * elf32-s390.c: Likewise.
385 * elf32-score.c: Likewise.
386 * elf32-score7.c: Likewise.
387 * elf32-sh.c: Likewise.
388 * elf32-tic6x.c: Likewise.
389 * elf32-tilepro.c: Likewise.
390 * elf32-v850.c: Likewise.
391 * elf32-vax.c: Likewise.
392 * elf32-xstormy16.c: Likewise.
393 * elf32-xtensa.c: Likewise.
394 * elf64-alpha.c: Likewise.
395 * elf64-hppa.c: Likewise.
396 * elf64-ia64-vms.c: Likewise.
397 * elf64-mmix.c: Likewise.
398 * elf64-ppc.c: Likewise.
399 * elf64-s390.c: Likewise.
400 * elf64-sh64.c: Likewise.
401 * elf64-x86-64.c: Likewise.
402 * elflink.c: Likewise.
403 * elfnn-aarch64.c: Likewise.
404 * elfnn-ia64.c: Likewise.
405 * elfnn-riscv.c: Likewise.
406 * elfxx-mips.c: Likewise.
407 * elfxx-sparc.c: Likewise.
408 * elfxx-tilegx.c: Likewise.
409 * linker.c: Likewise.
410
411 2017-05-16 Alan Modra <amodra@gmail.com>
412
413 * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic.
414 * elflink.c (elf_link_add_object_symbols): Update to use
415 non_ir_ref_dynamic.
416 (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to
417 non_ir_ref.
418 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
419
420 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
421
422 * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE.
423
424 2017-05-12 H.J. Lu <hongjiu.lu@intel.com>
425
426 * elf32-i386.c (elf_i386_parse_gnu_properties): Merge
427 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
428 properties.
429 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
430
431 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
432
433 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd
434 to plt_second.
435 (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame
436 to plt_second/plt_second_eh_frame.
437 (elf_x86_64_link_hash_newfunc): Updated.
438 (elf_x86_64_allocate_dynrelocs): Likewise.
439 (elf_x86_64_size_dynamic_sections): Likewise.
440 (elf_x86_64_relocate_section): Likewise.
441 (elf_x86_64_finish_dynamic_symbol): Likewise.
442 (elf_x86_64_finish_dynamic_sections): Likewise.
443 (elf_x86_64_plt_type): Rename plt_bnd to plt_second.
444 (elf_x86_64_get_synthetic_symtab): Updated. Also scan the
445 .plt.sec section.
446 (elf_backend_setup_gnu_properties): Updated. Create the
447 .plt.sec section instead of the .plt.sec section.
448
449 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
450
451 * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert
452 commit 25070364b0ce33eed46aa5d78ebebbec6accec7e.
453 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse.
454
455 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com>
456
457 * elf64-sparc.c (elf64_sparc_set_reloc): New function.
458 (bfd_elf64_set_reloc): Define.
459 (elf64_sparc_write_relocs): Use `canon_reloc_count'.
460
461 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com>
462
463 * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc.
464 (struct bfd_target): New field _bfd_set_reloc.
465 * bfd.c (bfd_set_reloc): Call backend _set_bfd.
466 * reloc.c (_bfd_generic_set_reloc): New function.
467 * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc.
468 * nlm-target.h (nlm_set_reloc): Likewise.
469 * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise.
470 * aout-tic30.c (MY_set_reloc): Likewise.
471 * aout-target.h (MY_set_reloc): Likewise.
472 * elfxx-target.h (bfd_elfNN_set_reloc): Likewise.
473 * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise.
474 * mach-o-target.c (bfd_mach_o_set_reloc): Likewise.
475 * vms-alpha.c (alpha_vms_set_reloc): Likewise.
476 * aout-adobe.c (aout_32_set_reloc): Likewise.
477 * bout.c (b_out_set_reloc): Likewise.
478 * coff-mips.c (_bfd_ecoff_set_reloc): Likewise.
479 * i386os9k.c (aout_32_set_reloc): Likewise.
480 * ieee.c (ieee_set_reloc): Likewise.
481 * oasys.c (oasys_set_reloc): Likewise.
482 * som.c (som_set_reloc): Likewise.
483 * versados.c (versados_set_reloc): Likewise.
484 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
485 _bfd_generic_set_reloc.
486 (rs6000_xcoff64_aix_vec): LIkewise.
487 * libbfd.c (_bfd_norelocs_set_reloc): New function.
488 * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc.
489 * i386msdos.c (msdos_set_reloc): Define to
490 _bfd_norelocs_set_reloc.
491 * elfcode.h (elf_set_reloc): Define.
492 * bfd-in2.h: Regenerated.
493
494 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
495
496 PR ld/21481
497 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd
498 for IFUNC function address.
499
500 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
501
502 * elf32-arc.c (FEATURE_LIST_NAME): Define.
503 (CONFLICT_LIST): Likewise.
504 (opcode/arc-attrs.h): Include.
505 (arc_elf_print_private_bfd_data): Print OSABI v4 flag.
506 (arc_extract_features): New file.
507 (arc_stralloc): Likewise.
508 (arc_elf_merge_attributes): Likewise.
509 (arc_elf_merge_private_bfd_data): Use object attributes.
510 (bfd_arc_get_mach_from_attributes): New function.
511 (arc_elf_object_p): Use object attributes.
512 (arc_elf_final_write_processing): Likewise.
513 (elf32_arc_obj_attrs_arg_type): New function.
514 (elf32_arc_obj_attrs_handle_unknown): Likewise.
515 (elf32_arc_section_from_shdr): Likewise.
516 (elf_backend_obj_attrs_vendor): Define.
517 (elf_backend_obj_attrs_section): Likewise.
518 (elf_backend_obj_attrs_arg_type): Likewise.
519 (elf_backend_obj_attrs_section_type): Likewise.
520 (elf_backend_obj_attrs_handle_unknown): Likewise.
521 (elf_backend_section_from_shdr): Likewise.
522
523 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za>
524
525 PR ld/21458
526 * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit
527 of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation
528 and the destination is a Thumb symbol.
529
530 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
531
532 * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing
533 initializer to silence GCC 4.2.
534 * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise.
535
536 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
537
538 * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ...
539 (LAZY_PLT_ENTRY_SIZE): This.
540 (NON_LAZY_PLT_ENTRY_SIZE): New.
541 (elf_x86_64_plt0_entry): Renamed to ...
542 (elf_x86_64_lazy_plt0_entry): This.
543 (elf_x86_64_plt_entry): Renamed to ...
544 (elf_x86_64_lazy_plt_entry): This.
545 (elf_x86_64_bnd_plt0_entry): Renamed to ...
546 (elf_x86_64_lazy_bnd_plt0_entry): This.
547 (elf_x86_64_legacy_plt_entry): Removed.
548 (elf_x86_64_bnd_plt_entry): Renamed to ...
549 (elf_x86_64_lazy_bnd_plt_entry): This.
550 (elf_x86_64_legacy_plt2_entry): Renamed to ...
551 (elf_x86_64_non_lazy_plt_entry): This.
552 (elf_x86_64_bnd_plt2_entry): Renamed to ...
553 (elf_x86_64_non_lazy_bnd_plt_entry): This.
554 (elf_x86_64_eh_frame_plt): Renamed to ...
555 (elf_x86_64_eh_frame_lazy_plt): This.
556 (elf_x86_64_eh_frame_bnd_plt): Renamed to ...
557 (elf_x86_64_eh_frame_lazy_bnd_plt): This.
558 (elf_x86_64_eh_frame_plt_got): Renamed to ...
559 (elf_x86_64_eh_frame_non_lazy_plt): This.
560 (elf_x86_64_lazy_plt_layout): New.
561 (elf_x86_64_non_lazy_plt_layout): Likewise.
562 (elf_x86_64_plt_layout): Likewise.
563 (elf_x86_64_backend_data): Remove PLT layout information. Add
564 os for target system.
565 (GET_PLT_ENTRY_SIZE): Removed.
566 (elf_x86_64_lazy_plt): New.
567 (elf_x86_64_non_lazy_plt): Likewise.
568 (elf_x86_64_lazy_bnd_plt): Likewise.
569 (elf_x86_64_non_lazy_bnd_plt): Likewise.
570 (elf_x86-64_arch_bed): Updated.
571 (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
572 (elf_x86_64_create_dynamic_sections): Removed.
573 (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call
574 _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
575 (elf_x86-64_adjust_dynamic_symbol): Updated.
576 (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header
577 size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
578 size for PLT0 if there is no PLT0. Get plt_entry_size from
579 non_lazy_plt for non-lazy PLT entries.
580 (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size
581 from non_lazy_plt for non-lazy PLT entries.
582 (elf_x86-64_relocate_section): Updated. Properly get PLT index
583 if there is no PLT0.
584 (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot
585 in the PLT entry with generic PLT layout. Fill the non-lazy PLT
586 entries with non-lazy PLT layout. Don't fill the second and third
587 slots in the PLT entry if there is no PLT0.
588 (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0
589 if there is no PLT0. Set sh_entsize on the .plt.got section.
590 (compare_relocs): New.
591 (elf_x86_64_plt_type): Likewise.
592 (elf_x86_64_plt): Likewise.
593 (elf_x86_64_nacl_plt): New. Forward declaration.
594 (elf_x86_64_get_plt_sym_val): Removed.
595 (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections
596 against all dynamic relocations.
597 (elf_x86_64_link_setup_gnu_properties): New function.
598 (elf_backend_create_dynamic_sections): Updated.
599 (elf_backend_setup_gnu_properties): New.
600 (elf_x86_64_nacl_plt): New.
601 (elf_x86_64_nacl_arch_bed): Updated.
602
603 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
604
605 * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ...
606 (LAZY_PLT_ENTRY_SIZE): This.
607 (NON_LAZY_PLT_ENTRY_SIZE): New.
608 (elf_i386_plt0_entry): Renamed to ...
609 (elf_i386_lazy_plt0_entry): This.
610 (elf_i386_plt_entry): Renamed to ...
611 (elf_i386_lazy_plt_entry): This.
612 (elf_i386_pic_plt0_entry): Renamed to ...
613 (elf_i386_pic_lazy_plt0_entry): This.
614 (elf_i386_pic_plt_entry): Renamed to ...
615 (elf_i386_pic_lazy_plt_entry): This.
616 (elf_i386_got_plt_entry): Renamed to ...
617 (elf_i386_non_lazy_plt_entry): This.
618 (elf_i386_pic_got_plt_entry): Renamed to ...
619 (elf_i386_pic_non_lazy_plt_entry): This.
620 (elf_i386_eh_frame_plt): Renamed to ...
621 (elf_i386_eh_frame_lazy_plt): This.
622 (elf_i386_eh_frame_plt_got): Renamed to ...
623 (elf_i386_eh_frame_non_lazy_plt): This.
624 (elf_i386_plt_layout): Renamed to ...
625 (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and
626 eh_frame_plt_got_size.
627 (elf_i386_non_lazy_plt_layout): New.
628 (elf_i386_plt_layout): Likewise.
629 (elf_i386_non_lazy_plt): Likewise.
630 (GET_PLT_ENTRY_SIZE): Removed.
631 (elf_i386_plt): Renamed to ...
632 (elf_i386_lazy_plt): This.
633 (elf_i386_backend_data): Remove plt. Rename is_vxworks to os.
634 (elf_i386_arch_bed): Updated.
635 (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
636 (elf_i386_create_dynamic_sections): Removed.
637 (elf_i386_check_relocs): Don't check elf.dynobj. Don't call
638 _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
639 (elf_i386_adjust_dynamic_symbol): Updated.
640 (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header
641 size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
642 size for PLT0 if there is no PLT0.
643 (elf_i386_size_dynamic_sections): Updated. Check whether GOT
644 output section is discarded only if GOT isn't empty.
645 (elf_i386_relocate_section): Updated. Properly get PLT index
646 if there is no PLT0.
647 (elf_i386_finish_dynamic_symbol): Updated. Don't fill the
648 second and third slots in the PLT entry if there is no PLT0.
649 (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0
650 if there is no PLT0. Set sh_entsize on the .plt.got section.
651 (elf_i386_nacl_plt): Forward declaration.
652 (elf_i386_get_plt_sym_val): Removed.
653 (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections
654 against all dynamic relocations.
655 (elf_i386_link_setup_gnu_properties): New function.
656 (elf_backend_create_dynamic_sections): Updated.
657 (elf_backend_setup_gnu_properties): New.
658 (elf_i386_nacl_plt): Updated.
659 (elf_i386_nacl_arch_bed): Likewise.
660 (elf_i386_vxworks_arch_bed): Likewise.
661
662 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
663
664 * elflink.c (elf_output_implib): Remove executable flag from import
665 library bfd.
666 * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import
667 library is a relocatable object file.
668
669 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
670
671 PR ld/21404
672 * elf32-avr.c (avr_should_move_sym): New function.
673 (avr_should_reduce_sym_size): Likewise.
674 (avr_should_increase_sym_size): Likewise.
675 (elf32_avr_relax_delete_bytes): Adjust symbol values
676 and sizes by calling new functions.
677
678 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com>
679
680 * config.bfd (riscv32-*): Enable rv64.
681
682 2017-05-02 Alan Modra <amodra@gmail.com>
683
684 PR 21384
685 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf
686 rather than h->root.type == bfd_link_hash_new.
687 (bfd_elf_record_link_assignment): Similarly, call
688 bfd_elf_link_mark_dynamic_symbol when h->non_elf.
689
690 2017-04-29 Alan Modra <amodra@gmail.com>
691
692 PR 21432
693 * reloc.c (reloc_offset_in_range): New function.
694 (bfd_perform_relocation, bfd_install_relocation): Use it.
695 (_bfd_final_link_relocate): Likewise.
696
697 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
698
699 * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got
700 before using .plt.got.
701 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
702
703 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
704
705 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "="
706 instead of "+=" to update 0.
707
708 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
709
710 * elf32-i386.c (elf_i386_create_dynamic_sections): Create the
711 .plt.got section here.
712 (elf_i386_check_relocs): Don't create the .plt.got section.
713 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create
714 the .plt.got and .plt.bnd sections here.
715 (elf_x86_64_check_relocs): Don't create the .plt.got nor
716 .plt.bnd sections.
717
718 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
719
720 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove
721 has_bnd_reloc.
722 (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc.
723 (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc.
724 (elf_x86_64_check_relocs): Don't set has_bnd_reloc.
725 (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of
726 has_bnd_reloc.
727
728 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
729
730 * elf-bfd.h (elf_backend_data): Change setup_gnu_properties
731 to return bfd *.
732 (_bfd_elf_link_setup_gnu_properties): Return bfd *.
733 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return
734 the first relocatable ELF input with GNU properties.
735
736 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
737
738 * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify
739 VxWorks for non-PIC.
740
741 2017-04-27 Alan Modra <amodra@gmail.com>
742
743 * elf-bfd.h (struct elf_backend_data): Make asection param of
744 elf_backend_eh_frame_address_size const.
745 (_bfd_elf_eh_frame_address_size): Likewise.
746 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise.
747 * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise.
748 * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise.
749 * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise.
750 * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise.
751 (next_cie_fde_offset): Constify params.
752 (offset_adjust, adjust_eh_frame_local_symbols): Likewise.
753
754 2017-04-27 Alan Modra <amodra@gmail.com>
755
756 * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len.
757 (_bfd_elf_adjust_eh_frame_global_symbol): Declare.
758 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and
759 aug_data_len.
760 (offset_adjust): New function.
761 (_bfd_elf_adjust_eh_frame_global_symbol): Likewise.
762 (adjust_eh_frame_local_symbols): Likewise.
763 (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols
764 after changing anything. Return true if anything changed.
765 * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call
766 _bfd_elf_adjust_eh_frame_global_symbol for globals.
767
768 2017-04-27 Alan Modra <amodra@gmail.com>
769
770 * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index
771 when force_local.
772
773 2017-04-27 Alan Modra <amodra@gmail.com>
774
775 * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
776 (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it.
777 (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise.
778 (ppc_elf_relocate_section): Likewise. Delete silly optimisation
779 for undef and undefweak dyn_relocs.
780 * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
781 (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it.
782 (allocate_got, allocate_dynrelocs): Likewise.
783 (ppc64_elf_relocate_section): Likewise.
784
785 2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
786
787 * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add
788 DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section.
789 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys
790 add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section.
791
792 2017-04-26 Nick Clifton <nickc@redhat.com>
793
794 PR binutils/21434
795 * reloc.c (bfd_perform_relocation): Check for a negative address
796 in the reloc.
797
798 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
799
800 PR ld/21334
801 * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms'
802 member.
803 * elfxx-target.h [!elf_backend_always_renumber_dynsyms]
804 (elf_backend_always_renumber_dynsyms): Define.
805 (elfNN_bed): Initialize `always_renumber_dynsyms' member.
806 * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define.
807 * elflink.c (bfd_elf_size_dynamic_sections): Also call
808 `_bfd_elf_link_renumber_dynsyms' if the backend has requested
809 it.
810 (bfd_elf_size_dynsym_hash_dynstr): Likewise.
811
812 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
813
814 * elflink.c (bfd_elf_size_dynamic_sections): Only call
815 `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic
816 sections have been created.
817
818 2017-04-26 Nick Clifton <nickc@redhat.com>
819
820 PR binutils/21431
821 * compress.c (bfd_init_section_compress_status): Check the return
822 value from bfd_malloc.
823
824 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
825
826 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add
827 no_finish_dynamic_symbol.
828 (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to
829 0.
830 (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined
831 weak symbol, don't make it dynamic.
832 (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC,
833 set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE
834 relocation for GOT reference.
835 (elf_x86_64_finish_dynamic_symbol): Abort if
836 no_finish_dynamic_symbol isn't 0.
837
838 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
839
840 PR ld/21402
841 * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't
842 undefined weak symbol, don't make it dynamic.
843 (elf_i386_relocate_section): If a symbol isn't dynamic in PIC,
844 set no_finish_dynamic_symbol and generate R_386_RELATIVE
845 relocation for R_386_GOT32.
846
847 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
848
849 PR ld/21425
850 * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks.
851
852 2017-04-23 Alan Modra <amodra@gmail.com>
853
854 PR 21414
855 * section.c (GLOBAL_SYM_INIT): Make available in bfd.h.
856 * elf.c (lcomm_sym): New.
857 (_bfd_elf_large_com_section): Use lcomm_sym section symbol.
858 * bfd-in2.h: Regenerate.
859
860 2017-04-23 Alan Modra <amodra@gmail.com>
861
862 PR 21412
863 * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change
864 parameters and comment.
865 (_bfd_elf_get_reloc_section): Delete.
866 (_bfd_elf_plt_get_reloc_section): Declare.
867 * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section):
868 New functions. Don't blindly skip over assumed .rel/.rela prefix.
869 Extracted from..
870 (_bfd_elf_get_reloc_section): ..here. Delete.
871 (assign_section_numbers): Call elf_get_reloc_section.
872 * elf64-ppc.c (elf_backend_get_reloc_section): Define.
873 * elfxx-target.h (elf_backend_get_reloc_section): Update.
874
875 2017-04-23 Alan Modra <amodra@gmail.com>
876
877 PR 21409
878 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when
879 no symbols.
880
881 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
882
883 PR ld/21402
884 * elf32-i386.c (elf_i386_link_hash_entry): Add
885 no_finish_dynamic_symbol.
886 (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0.
887 (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak
888 symbol, don't make it dynamic in PIE.
889 (elf_i386_relocate_section): If a symbol isn't dynamic in PIE,
890 set no_finish_dynamic_symbol and generate R_386_RELATIVE
891 relocation for R_386_GOT32
892 (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol
893 isn't 0.
894
895 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
896
897 PR ld/19617
898 PR ld/21086
899 * elflink.c (elf_link_add_object_symbols): Require
900 --no-dynamic-linker with -E/--dynamic-list when creating
901 dynamic sections.
902
903 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
904
905 * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE
906 if forced local.
907
908 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
909
910 * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about
911 dynamic symbol sorting.
912
913 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
914
915 PR ld/21382
916 * elflink.c (elf_link_add_object_symbols): Preserve
917 dynamic_ref_after_ir_def when restoring the symbol table for
918 unneeded dynamic object.
919
920 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
921
922 PR ld/21401
923 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort
924 on on undefined IFUNC symbol in the second PLT.
925
926 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com>
927
928 * peXXigen.c (pe_print_reloc): Correct chunk_end.
929
930 2017-04-19 Alan Modra <amodra@gmail.com>
931
932 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak
933 or make dynamic for info->dynamic_undefined_weak 0 and 1.
934 * elf32-ppc.c:Formatting.
935 (ensure_undefweak_dynamic): Don't make dynamic when
936 info->dynamic_undefined_weak is zero.
937 (allocate_dynrelocs): Discard undefweak dyn_relocs for
938 info->dynamic_undefined_weak. Discard undef dyn_relocs when
939 not default visibility. Discard undef and undefweak
940 dyn_relocs earlier.
941 (ppc_elf_relocate_section): Adjust to suit.
942 * elf64-ppc.c: Formatting.
943 (ensure_undefweak_dynamic): Don't make dynamic when
944 info->dynamic_undefined_weak is zero.
945 (allocate_dynrelocs): Discard undefweak dyn_relocs for
946 info->dynamic_undefined_weak. Discard them earlier.
947
948 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
949
950 PR ld/21389
951 * elflink.c (bfd_elf_size_dynamic_sections): Get soname index
952 before generating the version definition section.
953
954 2017-04-17 Alan Modra <amodra@gmail.com>
955
956 * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking
957 state when a regular object file defines a symbol with
958 incompatible type to that defined by an earlier shared lib.
959
960 2017-04-13 Alan Modra <amodra@gmail.com>
961
962 * coffcode.h: Wrap some overly long _bfd_error_handler args.
963 * elf.c: Likewise.
964 * elf32-arm.c: Likewise.
965 * elf32-i386.c: Likewise.
966 * elf32-mep.c: Likewise.
967 * elf64-ia64-vms.c: Likewise.
968 * elf64-x86-64.c: Likewise.
969 * elflink.c: Likewise.
970 * elfnn-ia64.c: Likewise.
971 * elfxx-mips.c: Likewise.
972
973 2017-04-13 Alan Modra <amodra@gmail.com>
974
975 * aoutx.h: Use %B and %A in error messages throughout file.
976 * aout-cris.c: Likewise.
977 * archive.c: Likewise.
978 * binary.c: Likewise.
979 * coff-rs6000.c: Likewise.
980 * coff-tic4x.c: Likewise.
981 * coffcode.h: Likewise.
982 * coffgen.c: Likewise.
983 * cofflink.c: Likewise.
984 * coffswap.h: Likewise.
985 * cpu-arm.c: Likewise.
986 * elf-eh-frame.c: Likewise.
987 * elf-m10300.c: Likewise.
988 * elf.c: Likewise.
989 * elf32-arc.c: Likewise.
990 * elf32-arm.c: Likewise.
991 * elf32-bfin.c: Likewise.
992 * elf32-frv.c: Likewise.
993 * elf32-iq2000.c: Likewise.
994 * elf32-m32c.c: Likewise.
995 * elf32-microblaze.c: Likewise.
996 * elf32-nds32.c: Likewise.
997 * elf32-rl78.c: Likewise.
998 * elf32-rx.c: Likewise.
999 * elf32-score.c: Likewise.
1000 * elf32-score7.c: Likewise.
1001 * elf32-sh64.c: Likewise.
1002 * elf32-v850.c: Likewise.
1003 * elf32-vax.c: Likewise.
1004 * elf32-visium.c: Likewise.
1005 * elf64-ia64-vms.c: Likewise.
1006 * elf64-mmix.c: Likewise.
1007 * elf64-sh64.c: Likewise.
1008 * elfcode.h: Likewise.
1009 * elfnn-aarch64.c: Likewise.
1010 * elfnn-ia64.c: Likewise.
1011 * elfxx-mips.c: Likewise.
1012 * hpux-core.c: Likewise.
1013 * ieee.c: Likewise.
1014 * ihex.c: Likewise.
1015 * linker.c: Likewise.
1016 * merge.c: Likewise.
1017 * mmo.c: Likewise.
1018 * oasys.c: Likewise.
1019 * pdp11.c: Likewise.
1020 * peXXigen.c: Likewise.
1021 * rs6000-core.c: Likewise.
1022 * vms-alpha.c: Likewise.
1023 * xcofflink.c: Likewise.
1024
1025 2017-04-13 Alan Modra <amodra@gmail.com>
1026
1027 * bfd.c (PRINT_TYPE): Define.
1028 (_doprnt): New function.
1029 (error_handler_internal): Use _doprnt.
1030 * coff-arm.c: Put %A and %B arguments to _bfd_error_handler
1031 calls in their natural order, throughout file.
1032 * coff-mcore.c: Likewise.
1033 * coff-ppc.c: Likewise.
1034 * coff-tic80.c: Likewise.
1035 * cofflink.c: Likewise.
1036 * elf-s390-common.c: Likewise.
1037 * elf.c: Likewise.
1038 * elf32-arm.c: Likewise.
1039 * elf32-i386.c: Likewise.
1040 * elf32-m32r.c: Likewise.
1041 * elf32-msp430.c: Likewise.
1042 * elf32-spu.c: Likewise.
1043 * elf64-ia64-vms.c: Likewise.
1044 * elf64-sparc.c: Likewise.
1045 * elf64-x86-64.c: Likewise.
1046 * elflink.c: Likewise.
1047 * elfnn-aarch64.c: Likewise.
1048 * elfnn-ia64.c: Likewise.
1049 * elfxx-mips.c: Likewise.
1050
1051 2017-04-13 Alan Modra <amodra@gmail.com>
1052
1053 * elf32-arm.c (arm_type_of_stub): Supply missing args to "long
1054 branch veneers" error. Fix double space and format message.
1055 * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg.
1056 * elf64-ppc.c (tocsave_find): Supply missing %B arg.
1057
1058 2017-04-13 Alan Modra <amodra@gmail.com>
1059
1060 * bfd-in2.h: Regenerate.
1061
1062 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
1063
1064 * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
1065 extra `\n' in warning/error messages.
1066 * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
1067 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
1068
1069 2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
1070
1071 * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
1072 processor-specific properties with generic ELF target vector.
1073
1074 2017-04-10 Qing Zhao <qing.zhao@oracle.com>
1075
1076 * elf32-sparc.c (elf_backend_fixup_symbol): New.
1077 * elf64-sparc.c (elf_backend_fixup_symbol): New.
1078 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
1079 (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and
1080 has_non_got_reloc.
1081 (link_hash_newfunc): Initialize has_got_reloc and
1082 has_non_got_reloc.
1083 (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp
1084 section.
1085 (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and
1086 has_non_got_reloc.
1087 (_bfd_sparc_elf_check_relocs): Set has_got_reloc and
1088 has_non_got_reloc.
1089 (_bfd_sparc_elf_fixup_symbol): New function.
1090 (allocate_dynrelocs): Don't allocate space for dynamic
1091 relocations and discard relocations against resolved undefined
1092 weak symbols in executable. Don't make resolved undefined weak
1093 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
1094 relocation against undefined weak symbols in PIE.
1095 (_bfd_sparc_elf_relocate_section): Don't generate dynamic
1096 relocations against resolved undefined weak symbols in PIE
1097 (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries
1098 without ynamic PLT/GOT relocations for resolved undefined weak
1099 symbols.
1100 Don't generate dynamic relocation against resolved undefined
1101 weak symbol in executable.
1102 (pie_finish_undefweak_symbol): New function.
1103 (_bfd_sparc_elf_finish_dynamic_sections): Call
1104 pie_finish_undefweak_symbol on all symbols in PIE.
1105 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp.
1106 (_bfd_sparc_elf_fixup_symbol): New function.
1107
1108 2017-04-10 Nick Clifton <nickc@redhat.com>
1109
1110 * config.bfd: Remove ns32k from obsolete list.
1111
1112 2017-04-10 Alan Modra <amodra@gmail.com>
1113
1114 PR 21287
1115 * elf.c (special_sections_f): Match .fini_array and .fini_array.*.
1116 (special_sections_i): Likewise for .init_array.
1117 (special_sections_p): Likewise for .preinit_array.
1118
1119 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
1120
1121 PR ld/19579
1122 PR ld/21306
1123 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check
1124 ELF_COMMON_DEF_P for common symbols.
1125 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
1126 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1127 * elflink.c (_bfd_elf_merge_symbol): Revert commits
1128 202ac193bbbecc96a4978d1ac3d17148253f9b01 and
1129 07492f668d2173da7a2bda3707ff0985e0f460b6.
1130
1131 2017-04-07 Pedro Alves <palves@redhat.com>
1132
1133 * opncls.c (bfd_get_debug_link_info): Rename to...
1134 (bfd_get_debug_link_info_1): ... this. Change type of second
1135 parameter to void pointer. Adjust.
1136 (bfd_get_debug_link_info): Reimplement on top of
1137 bfd_get_debug_link_info_1.
1138 (separate_debug_file_exists, separate_alt_debug_file_exists):
1139 Change type of second parameter to void pointer. Adjust.
1140 (get_func_type, check_func_type): Change type of second parameter
1141 to void pointer.
1142 (find_separate_debug_file): Add 'func_data' parameter. Pass it to
1143 the callback functions instead of passing the address of a local.
1144 (bfd_follow_gnu_debuglink): Pass address of unsigned long local to
1145 find_separate_debug_file.
1146 (get_alt_debug_link_info_shim): Change type of second parameter to
1147 void pointer. Adjust.
1148 (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to
1149 find_separate_debug_file.
1150 (get_build_id_name, bfd_boolean check_build_id_file): Change type
1151 of second parameter to void pointer. Adjust.
1152 (bfd_follow_build_id_debuglink): Pass address of bfd_build_id
1153 pointer local to find_separate_debug_file.
1154
1155 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510>
1156
1157 * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
1158 external symbols with a definition.
1159 (_bfd_coff_gc_mark_extra_sections): Fix typo.
1160
1161 2017-04-07 Alan Modra <amodra@gmail.com>
1162
1163 * po/SRC-POTFILES.in: Regenerate.
1164
1165 2017-04-05 Alan Modra <amodra@gmail.com>
1166
1167 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
1168 reference counting.
1169
1170 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk>
1171
1172 (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
1173 numbers for DataDirectory entry indicies passed to
1174 add_data_entry().
1175
1176 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
1177
1178 * elf.c (get_program_header_size): Add a GNU_MBIND segment for
1179 each GNU_MBIND section and align GNU_MBIND section to page size.
1180 (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
1181 segment for each GNU_MBIND section.
1182 (_bfd_elf_init_private_section_data): Copy sh_info from input
1183 for GNU_MBIND section.
1184
1185 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
1186
1187 * elfnn-riscv.c (GP_NAME): Delete.
1188 (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
1189 (_bfd_riscv_relax_lui): Likewise.
1190
1191 2017-04-04 Nick Clifton <nickc@redhat.com>
1192
1193 PR binutils/21342
1194 * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
1195 dereference.
1196 (bfd_elf_final_link): Only initialize the extended symbol index
1197 section if there are extended symbol tables to list.
1198
1199 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
1200
1201 * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
1202 (BFD32_BACKENDS_CFILES): Add elf-properties.c.
1203 * configure.ac (elf): Add elf-properties.lo.
1204 * Makefile.in: Regenerated.
1205 * configure: Likewise.
1206 * elf-bfd.h (elf_property_kind): New.
1207 (elf_property): Likewise.
1208 (elf_property_list): Likewise.
1209 (elf_properties): Likewise.
1210 (_bfd_elf_parse_gnu_properties): Likewise.
1211 (_bfd_elf_get_property): Likewise.
1212 (_bfd_elf_link_setup_gnu_properties): Likewise.
1213 (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
1214 and setup_gnu_properties.
1215 (elf_obj_tdata): Add properties.
1216 * elf-properties.c: New file.
1217 * elf32-i386.c (elf_i386_parse_gnu_properties): New.
1218 (elf_i386_merge_gnu_properties): Likewise.
1219 (elf_backend_parse_gnu_properties): Likewise.
1220 (elf_backend_merge_gnu_properties): Likewise.
1221 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
1222 (elf_x86_64_merge_gnu_properties): Likewise.
1223 (elf_backend_parse_gnu_properties): Likewise.
1224 (elf_backend_merge_gnu_properties): Likewise.
1225 * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
1226 (elf_backend_parse_gnu_properties): Likewise.
1227 (elf_backend_setup_gnu_properties): Likewise.
1228 (elfNN_bed): Add elf_backend_parse_gnu_properties,
1229 elf_backend_merge_gnu_properties and
1230 elf_backend_setup_gnu_properties.
1231
1232 2017-03-30 Pip Cet <pipcet@gmail.com>
1233
1234 * elf32-wasm32.c: Add relocation code, two relocs.
1235 * reloc.c: Add wasm32 relocations.
1236 * libbfd.h: Regenerate.
1237 * bfd-in2.h: Regenerate.
1238 * bfd/po/bfd.pot: Regenerate.
1239
1240 2017-03-29 Nick Clifton <nickc@redhat.com>
1241
1242 PR binutils/18025
1243 * coff-bfd.h (struct coff_section_data): Add new fields:
1244 saved_bias and bias.
1245 * coffgen.c (coff_find_nearest_line_with_names): Cache the bias
1246 computed for PE binaries.
1247 * dwarf2.c (scan_unit_for_symbols): Only warn once about each
1248 missing abbrev.
1249
1250 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
1251
1252 PR ld/16044
1253 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
1254 to handle a local symbol with a hash-symbol-entry; without PLT.
1255 Add BFD_ASSERT for an incidental case with GOT entry present.
1256 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
1257 isn't forced-or-set local.
1258
1259 2017-03-27 Pip Cet <pipcet@gmail.com>
1260
1261 * wasm-module.c: New file to support WebAssembly modules.
1262 * wasm-module.h: New file to support WebAssembly modules.
1263 * doc/webassembly.texi: Start documenting wasm-module.c.
1264 * config.bfd: Add wasm_vec.
1265 * targets.c: Likewise.
1266 * configure.ac: Likewise.
1267 * Makefile.am: Add entries for wasm-module.c.
1268 * Makefile.in: Regenerate.
1269 * configure: Regenerate.
1270 * po/SRC-POTFILES.in: Regenerate.
1271
1272 2017-03-27 Pip Cet <pipcet@gmail.com>
1273
1274 * cpu-wasm32.c: New file to support wasm32 architecture.
1275 * elf32-wasm32.c: New file to support wasm32 architecture.
1276 * Makefile.am: Add wasm32 architecture.
1277 * archures.c: Likewise.
1278 * config.bfd: Likewise.
1279 * configure.ac: Likewise.
1280 * targets.c: Likewise.
1281 * Makefile.in: Regenerate.
1282 * bfd-in2.h: Regenerate.
1283 * configure: Regenerate.
1284 * po/SRC-POTFILES.in: Regenerate.
1285
1286 2017-03-20 Alan Modra <amodra@gmail.com>
1287
1288 PR 21266
1289 * elf64-ppc.c (compare_symbols): Stabilize sort.
1290
1291 2017-03-18 Alan Modra <amodra@gmail.com>
1292
1293 * elf64-ppc.c (struct ppc_link_hash_table): Add
1294 local_ifunc_resolver and maybe_local_ifunc_resolver.
1295 (ppc_build_one_stub): Set flags on emitting dynamic
1296 relocation to ifunc.
1297 (ppc64_elf_relocate_section): Likewise.
1298 (ppc64_elf_finish_dynamic_symbol): Likewise.
1299 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
1300 local dynamic relocs to ifuncs.
1301 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
1302 local_ifunc_resolver and maybe_local_ifunc_resolver.
1303 (ppc_elf_relocate_section): Set flag on emitting dynamic
1304 relocation to ifuncs.
1305 (ppc_elf_finish_dynamic_symbol): Likewise.
1306 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
1307 dynamic relocs to ifuncs.
1308
1309 2017-03-13 Nick Clifton <nickc@redhat.com>
1310
1311 PR binutils/21202
1312 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
1313 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
1314 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
1315 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
1316 * bfd-in2.h: Regenerate.
1317 * libbfd.h: Regenerate.
1318 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
1319 names.
1320 (IS_AARCH64_TLSDESC_RELOC): Likewise.
1321 (elfNN_aarch64_howto_table): Likewise.
1322 (aarch64_tls_transition_without_check): Likewise.
1323 (aarch64_reloc_got_type): Likewise.
1324 (elfNN_aarch64_final_link_relocate): Likewise.
1325 (elfNN_aarch64_tls_relax): Likewise.
1326 (elfNN_aarch64_relocate_section): Likewise.
1327 (elfNN_aarch64_gc_sweep_hook): Likewise.
1328 (elfNN_aarch64_check_relocs): Likewise.
1329 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1330 (_bfd_aarch64_elf_resolve_relocation): Likewise.
1331
1332 2017-03-11 Alan Modra <amodra@gmail.com>
1333
1334 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
1335 parameter is in fact used. Whitespace fixes.
1336 * elf64-ppc.c: Likewise.
1337
1338 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
1339
1340 * rs6000-core.c (CORE_NEW): Simplify macro when
1341 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
1342
1343 2017-03-07 Alan Modra <amodra@gmail.com>
1344
1345 PR 21224
1346 PR 20519
1347 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
1348 dyn_relocs check.
1349
1350 2017-03-05 Alan Modra <amodra@gmail.com>
1351
1352 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
1353 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
1354 (next_cie_fde_offset): New function.
1355 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
1356 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
1357 four bytes. Align CIEs to four or eight bytes depending on
1358 per_encoding_aligned8. Align FDEs according to their encoding.
1359 Pad last FDE to output section alignment.
1360 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
1361 assertion.
1362 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
1363 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
1364 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
1365
1366 2017-03-02 Martin Bickel <binutils@ineranves.de>
1367
1368 PR ld/21212
1369 * elf.c (rewrite_elf_program_header): Do not issue a warning for
1370 empty segments which have a zero filesz, but a non-zero memsz.
1371
1372 2017-03-02 Alan Modra <amodra@gmail.com>
1373
1374 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
1375
1376 2017-02-28 Alan Modra <amodra@gmail.com>
1377
1378 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
1379 (ppc64_elf_relocate_section): Likewise.
1380
1381 2017-02-28 Alan Modra <amodra@gmail.com>
1382
1383 PR 20995
1384 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
1385 rather than elf32_nios2_hash_table or elf_hash_table.
1386 (create_got_section): Likewise.
1387 (nios2_elf32_finish_dynamic_symbol): Likewise.
1388 (nios2_elf32_adjust_dynamic_symbol): Likewise.
1389 (nios2_elf32_size_dynamic_sections): Likewise.
1390 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
1391 vars. Use htab equivalents directly instead. Don't create
1392 all dynamic sections on needing just the GOT. Use a goto
1393 rather than a fall-through with reloc test. Ensure
1394 htab->dynobj is set when making dynamic sreloc section.
1395 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
1396 equivalent directly instead. Don't segfault on looking for
1397 .dynamic when dynamic sections have not been created. Don't
1398 segfault on .got.plt being discarded.
1399 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
1400 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
1401 fixme and another not so relevant comment.
1402 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
1403 already set, set hash table dynobj on creating .sbss.
1404
1405 2017-02-28 Alan Modra <amodra@gmail.com>
1406
1407 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
1408 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
1409 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
1410 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
1411 (ppc64_elf_relocate_section): Likewise.
1412 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
1413 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
1414 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
1415 * libbfd.h: Regenerate.
1416 * bfd-in2.h: Regenerate.
1417
1418 2017-02-28 Alan Modra <amodra@gmail.com>
1419
1420 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
1421 dynamic .data.rel.ro read-only.
1422 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
1423 rather than section flags when deciding where copy reloc goes.
1424 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
1425 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
1426 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
1427 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
1428 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
1429 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
1430 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
1431 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
1432 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
1433 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
1434 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
1435 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
1436 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
1437 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
1438 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
1439 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
1440 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
1441 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
1442 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
1443
1444 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
1445
1446 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
1447 `jalr $0, $25' instruction encoding.
1448
1449 2017-02-27 Nick Clifton <nickc@redhat.com>
1450
1451 PR ld/21180
1452 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
1453 generating a seg-fault when encountering a symbol that has been
1454 deleted by garbage collection.
1455
1456 2017-02-25 Alan Modra <amodra@gmail.com>
1457
1458 * elf32-arc.c (struct dynamic_sections): Delete.
1459 (enum dyn_section_types): Delete.
1460 (dyn_section_names): Delete.
1461 (arc_create_dynamic_sections): Delete.
1462 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
1463 segfault on discarded .rela.plt section.
1464 (elf_arc_size_dynamic_sections): Formatting. Don't call
1465 arc_create_dynamic_sections. Don't allocate memory for sections
1466 handled by the generic linker. Correct code finding relocs in
1467 read-only sections. Set SEC_EXCLUDE on zero size .got,
1468 .got.plt, and .dynbss sections. Do set .interp for pies.
1469
1470 2017-02-24 Andrew Waterman <andrew@sifive.com>
1471
1472 * elfnn-riscv.c (GP_NAME): New macro.
1473 (riscv_global_pointer_value): Use it.
1474 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
1475 output section, consider only that section's alignment.
1476
1477 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
1478
1479 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
1480 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
1481 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
1482 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
1483
1484 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
1485
1486 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
1487 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
1488 or misaligned.
1489
1490 2017-02-23 Alan Modra <amodra@gmail.com>
1491
1492 PR 20744
1493 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
1494 16D relocations.
1495 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
1496 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
1497 relocs.
1498
1499 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1500
1501 PR ld/20828
1502 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
1503 processing ahead of the call to `elf_gc_sweep_symbol'.
1504
1505 2017-02-22 Nick Clifton <nickc@redhat.com>
1506
1507 PR binutils/21193
1508 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
1509 created section 4-byte alignment.
1510
1511 2017-02-22 Alan Modra <amodra@gmail.com>
1512
1513 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
1514 on .got or .plt output section being discarded by script.
1515 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
1516 vxworks splt temp.
1517
1518 2017-02-21 Alan Modra <amodra@gmail.com>
1519
1520 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
1521 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
1522
1523 2017-02-20 Alan Modra <amodra@gmail.com>
1524
1525 PR 21181
1526 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
1527 if DT_RELSZ/DT_RELASZ is zero.
1528
1529 2017-02-17 Nick Clifton <nickc@redhat.com>
1530
1531 * compress.c (bfd_get_full_section_contents): Remember to reduce
1532 compressed size by the sizeof the compression header when
1533 decompressing the contents.
1534
1535 2017-02-17 Pedro Alves <palves@redhat.com>
1536
1537 * srec.c (Chunk): Rename to ...
1538 (_bfd_srec_len): ... this.
1539 (S3Forced): Rename to ...
1540 (_bfd_srec_forceS3): ... this.
1541 * objcopy.c: Adjust all references.
1542
1543 2017-02-17 Pedro Alves <palves@redhat.com>
1544
1545 * archive.c (bsd_write_armap): Rename to ...
1546 (_bfd_bsd_write_armap): ... this.
1547 (coff_write_armap): Rename to ...
1548 (_bfd_coff_write_armap): ... this.
1549 * libbfd-in.h (bsd_write_armap): Rename to ...
1550 (_bfd_bsd_write_armap): ... this.
1551 (coff_write_armap): Rename to ...
1552 (_bfd_coff_write_armap): ... this.
1553 * aout-target.h, aout-tic30.c: Adjust all users.
1554 * libbfd.h: Regenerate.
1555
1556 2017-02-17 Pedro Alves <palves@redhat.com>
1557
1558 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
1559 (warn_deprecated): Rename to ...
1560 (_bfd_warn_deprecated): ... this.
1561 * libbfd.c (warn_deprecated): Rename to ...
1562 (_bfd_warn_deprecated): ... this.
1563 * bfd-in2.h: Regenerate.
1564
1565 2017-02-17 Pedro Alves <palves@redhat.com>
1566
1567 * bfdio.c (real_ftell): Rename to ...
1568 (_bfd_real_ftell): ... this.
1569 (real_fseek): Rename to ...
1570 (_bfd_real_fseek): ... this.
1571 (real_fopen): Rename to ...
1572 (_bfd_real_fopen): ... this.
1573 * libbfd-in.h (real_ftell): Rename to ...
1574 (_bfd_real_ftell): ... this.
1575 (real_fseek): Rename to ...
1576 (_bfd_real_fseek): ... this.
1577 (real_fopen): Rename to ...
1578 (_bfd_real_fopen): ... this.
1579 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
1580 * libbfd.h: Regenerate.
1581
1582 2017-02-17 Pedro Alves <palves@redhat.com>
1583
1584 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
1585 * libbfd.c (read_unsigned_leb128): Rename to ...
1586 (_bfd_read_unsigned_leb128): ... this.
1587 (read_signed_leb128): Rename to ...
1588 (_bfd_read_signed_leb128): ... this.
1589 (safe_read_leb128): Rename to ...
1590 (_bfd_safe_read_leb128): ... this.
1591 * libbfd-in.h (read_unsigned_leb128): Rename to ...
1592 (_bfd_read_unsigned_leb128): ... this.
1593 (read_signed_leb128): Rename to ...
1594 (_bfd_read_signed_leb128): ... this.
1595 (safe_read_leb128): Rename to ...
1596 (_bfd_safe_read_leb128): ... this.
1597 * libbfd.h: Renegerate.
1598
1599 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1600
1601 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
1602 before trying to fine matching file and line information.
1603
1604 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1605
1606 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
1607 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
1608 not match current bfd, then reload debug information. Record bfd
1609 we're loading debug info for in the stash. If we have debug
1610 informatin in the cache then perform section placement before
1611 returning.
1612
1613 2017-02-16 Alan Modra <amodra@gmail.com>
1614
1615 PR 21000
1616 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
1617 * elfxx-target.h (elf_backend_no_page_alias): Define.
1618 (elfNN_bed): Init new field.
1619 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
1620 ensure PT_LOAD segment starts on a new page.
1621 * elf32-hppa.c (elf_backend_no_page_alias): Define.
1622
1623 2017-02-16 Alan Modra <amodra@gmail.com>
1624
1625 PR 21132
1626 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
1627 if pic.
1628
1629 2017-02-16 Jiong Wang <jiong.wang@arm.com>
1630
1631 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
1632 * bfd-in2.h: Regenerated.
1633
1634 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
1635
1636 PR ld/21168
1637 * elf32-i386.c (elf_i386_relocate_section): Allow
1638 "lea foo@GOT, %reg" in PIC.
1639
1640 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
1641
1642 PR ld/20244
1643 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
1644 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
1645 error against local IFUNC symbol without a base register for
1646 PIC.
1647
1648 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
1649
1650 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
1651 `%P: %H:' with `info->callbacks->einfo'.
1652 (ppc_elf_relocate_section): Likewise.
1653 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1654 (ppc64_elf_edit_toc): Likewise.
1655 (ppc64_elf_relocate_section): Likewise.
1656
1657 2017-02-14 Alan Modra <amodra@gmail.com>
1658
1659 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
1660 --gc-keep-exported, and test versioned field of sym rather than
1661 looking for @ in name.
1662
1663 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
1664
1665 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
1666 __global_pointer$.
1667
1668 2017-02-13 Nick Clifton <nickc@redhat.com>
1669
1670 PR binutils/21151
1671 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
1672 unit length field.
1673
1674 2017-02-07 Andrew Waterman <andrew@sifive.com>
1675
1676 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
1677 entry size if PLT header is written.
1678
1679 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
1680
1681 Fix sparc64 dynamic relocation processing to use the dynamic
1682 symbol count.
1683 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
1684 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
1685 should be used.
1686
1687 2017-02-03 Nick Clifton <nickc@redhat.com>
1688
1689 PR 21096
1690 * coffcode.h (coff_write_object_contents): Enlarge size of
1691 s_name_buf in order to avoid compile time warning about possible
1692 integer truncation.
1693 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
1694 32-bits of insn value before printing into buffer.
1695
1696 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1697
1698 * elfxx-mips.c (mips_elf_hash_sort_data): Add
1699 `max_local_dynindx'.
1700 (mips_elf_sort_hash_table): Handle it.
1701 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
1702 symbols bump up `max_local_dynindx' rather than
1703 `max_non_got_dynindx'.
1704
1705 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1706
1707 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
1708 `min_got_dynindx', `max_unref_got_dynindx' and
1709 `max_non_got_dynindx' members to the `bfd_size_type' data type.
1710 (mips_elf_sort_hash_table): Adjust accordingly.
1711
1712 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1713
1714 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
1715 to access the hash table.
1716
1717 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1718
1719 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
1720 non-NULL `htab' to the beginning.
1721
1722 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1723
1724 * elflink.c (elf_gc_sweep): Wrap overlong line.
1725
1726 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
1727
1728 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
1729 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
1730 * elfxx-mips.c (mips_elf_link_hash_table): Add
1731 `ignore_branch_isa' member.
1732 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
1733 in branch relocation calculation as an error if
1734 `ignore_branch_isa' has been set.
1735 (_bfd_mips_elf_insn32): Rename to...
1736 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
1737 parameter to `insn32' and add an `ignore_branch_isa' parameter.
1738 Handle the new parameter.
1739
1740 2017-01-27 Hans-Peter Nilsson <hp@axis.com>
1741
1742 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
1743 local variable dynobj.
1744
1745 PR ld/20995
1746 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
1747 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
1748 executable from read-only sections into sdynrelro.
1749 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
1750 dynamic relocs in sdynrelro.
1751 (elf_backend_want_dynrelro): Define.
1752
1753 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1754
1755 * config.bfd (*-*-rtemsaout*): Mark as removed.
1756
1757 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1758
1759 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
1760 (arm-*-rtems*): Move to (arm*-*-eabi*).
1761 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
1762 (m68-*-rtems*): Move to (m68*-*-elf*).
1763
1764 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1765
1766 * config.bfd (*-*-rtemscoff*): Mark as removed.
1767
1768 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
1769
1770 PR ld/20828
1771 * elflink.c (bfd_elf_record_link_assignment): Revert last
1772 change and don't ever clear `forced_local'. Set `mark'
1773 unconditionally.
1774 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
1775 file.
1776 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
1777 (bfd_elf_size_dynamic_sections): ... here.
1778 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
1779 and set `mark' instead in `__tls_get_addr_opt' processing.
1780 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
1781
1782 2017-01-24 Alan Modra <amodra@gmail.com>
1783
1784 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
1785 where dynamic relocs are preferable. Allow ifunc too.
1786 (ensure_undefweak_dynamic): New function.
1787 (allocate_dynrelocs): Use it here. Move plt handling last and
1788 don't make symbols dynamic, simplifying loop. Only make undef
1789 weak symbols with GOT entries dynamic. Correct condition
1790 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
1791 comments. Remove goto.
1792 (ppc_elf_relocate_section): Correct test for using dynamic
1793 symbol on GOT relocs. Rearrange test for emitting GOT relocs
1794 to suit. Set up explicit tls_index entries and implicit GOT
1795 tls_index entries resolvable at link time for
1796 __tls_get_addr_opt. Simplify test to clear mem for prelink.
1797 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
1798 (ensure_undefweak_dynamic): New function.
1799 (allocate_dynrelocs): Use it here. Only make undef weak symbols
1800 with GOT entries dynamic. Remove unnecessary test of
1801 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
1802 (ppc64_elf_relocate_section): Correct test for using dynamic
1803 symbol on GOT relocs. Rearrange test for emitting GOT relocs
1804 to suit. Set up explicit tls_index entries and implicit GOT
1805 tls_index entries resolvable at link time for __tls_get_addr_opt.
1806 Simplify expression to clear mem for prelink.
1807
1808 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
1809
1810 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
1811
1812 2017-01-20 Jiong Wang <jiong.wang@arm.com>
1813
1814 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
1815 (elf_backend_hash_symbol): Define.
1816
1817 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1818
1819 PR ld/20828
1820 * elflink.c (bfd_elf_record_link_assignment): Clear any
1821 `forced_local' marking for DSO symbols that are not being
1822 provided.
1823
1824 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1825
1826 * elfnn-riscv.c (riscv_elf_object_p): New function.
1827
1828 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
1829
1830 PR ld/21038
1831 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
1832 plt_bnd_eh_frame.
1833 (elf_x86_64_check_relocs): Create .eh_frame section for the
1834 .plt.bnd section.
1835 (elf_x86_64_size_dynamic_sections): Allocate and initialize
1836 .eh_frame section for the .plt.bnd section.
1837 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
1838 for the .plt.bnd section.
1839
1840 2017-01-12 Nick Clifton <nickc@redhat.com>
1841
1842 PR binutils/20876
1843 * opncls.c (find_separate_debug_file): Add include_dirs
1844 parameter. Only include the directory part of the bfd's filename
1845 in search paths if include_dirs is true. Add a couple of extra
1846 locations for looking for debug files.
1847 ( bfd_follow_gnu_debuglink): Update invocation of
1848 find_separate_debug_file.
1849 (bfd_follow_gnu_debugaltlink): Likewise.
1850 (get_build_id): New function: Finds the build-id of the given bfd.
1851 (get_build_id_name): New function: Computes the name of the
1852 separate debug info file for a bfd, based upon its build-id.
1853 (check_build_id_file): New function: Checks to see if a separate
1854 debug info file exists at the given location, and that its
1855 build-id matches that of the original bfd.
1856 (bfd_follow_build_id_debuglink): New function: Finds a separate
1857 debug info file for a given bfd by using the build-id method.
1858 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
1859 method of locating a separate debug info file before using the
1860 debuglink method.
1861 * bfd-in2.h: Regenerate.
1862
1863 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
1864
1865 PR ld/21038
1866 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
1867 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
1868 elf_x86_64_eh_frame_plt_got.
1869 (elf_x86_64_size_dynamic_sections): Get unwind info from
1870 elf_x86_64_bnd_arch_bed for the BND PLT.
1871
1872 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
1873
1874 * config.bfd: Add entries for i686-redox and x86_64-redox.
1875
1876 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1877
1878 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
1879 to 4 bytes.
1880 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
1881 .eh_frame section to 4 bytes for x32.
1882 (elf_x86_64_check_relocs): Likewise.
1883
1884 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1885
1886 PR ld/20830
1887 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
1888 (PLT_GOT_FDE_LENGTH): Likewise.
1889 (elf_i386_plt_layout): Add eh_frame_plt_got and
1890 eh_frame_plt_got_size.
1891 (elf_i386_plt): Updated.
1892 (elf_i386_link_hash_table): Add plt_got_eh_frame.
1893 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
1894 (elf_i386_size_dynamic_sections): Allocate and initialize
1895 .eh_frame section for .plt.got.
1896 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
1897 .plt.got.
1898 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
1899 eh_frame_plt_got_size.
1900 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
1901 (PLT_GOT_FDE_LENGTH): Likewise.
1902 (elf_x86_64_backend_data): Add eh_frame_plt_got and
1903 eh_frame_plt_got_size.
1904 (elf_x86_64_arch_bed): Updated.
1905 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
1906 eh_frame_plt_got_size.
1907 (elf_x86_64_nacl_arch_bed): Likewise.
1908 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
1909 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
1910 (elf_x86_64_size_dynamic_sections): Allocate and initialize
1911 .eh_frame section for .plt.got.
1912 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
1913 for .plt.got.
1914
1915 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1916
1917 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
1918 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
1919
1920 2017-01-09 Nick Clifton <nickc@redhat.com>
1921
1922 * dwarf2.c (lookup_address_in_function_table): Return early if
1923 there are no functions in the given comp unit, or if the high
1924 address of the last function in the comp unit is less than the
1925 desired address.
1926
1927 2017-01-09 Nick Clifton <nickc@redhat.com>
1928
1929 PR binutils/21013
1930 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
1931 message if there are too many symbols to load.
1932
1933 2017-01-04 James Clarke <jrtc27@jrtc27.com>
1934
1935 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
1936 if relocs are cached.
1937
1938 2017-01-03 Rich Felker <bugdal@aerifal.cx>
1939
1940 PR ld/21017
1941 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
1942 for R_MICROBLAZE_GOTOFF_64.
1943
1944 2017-01-03 Nick Clifton <nickc@redhat.com>
1945
1946 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
1947 warning about using a possibly uninitialised variable.
1948
1949 2017-01-02 Alan Modra <amodra@gmail.com>
1950
1951 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
1952 (allocate_plt_static, allocate_dynrelocs): Use it.
1953
1954 2017-01-02 Alan Modra <amodra@gmail.com>
1955
1956 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
1957 .PARISC.unwind section.
1958
1959 2017-01-02 Alan Modra <amodra@gmail.com>
1960
1961 PR ld/20989
1962 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
1963 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
1964 indirect to GOT pointer relative code edit.
1965
1966 2017-01-02 Alan Modra <amodra@gmail.com>
1967
1968 Update year range in copyright notice of all files.
1969
1970 For older changes see ChangeLog-2016
1971 \f
1972 Copyright (C) 2017 Free Software Foundation, Inc.
1973
1974 Copying and distribution of this file, with or without modification,
1975 are permitted in any medium without royalty provided the copyright
1976 notice and this notice are preserved.
1977
1978 Local Variables:
1979 mode: change-log
1980 left-margin: 8
1981 fill-column: 74
1982 version-control: never
1983 End:
This page took 0.114797 seconds and 4 git commands to generate.