info-shared.exp: Replace libs=-ldl with shlib_load
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
b9f26d2e
AM
12018-04-23 Alan Modra <amodra@gmail.com>
2
3 * elf-linux-core.h: Revert last change.
4 * elf.c: Likewise.
5
bf82069d
NC
62018-04-23 Nick Clifton <nickc@redhat.com>
7
8 PR 23056
9 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
10 the end of the string table, and zero it.
11
5a6312e8
AM
122018-04-23 Alan Modra <amodra@gmail.com>
13
14 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
15 gcc-8 string truncation warning.
16 (swap_linux_prpsinfo32_ugid16_out): Likewise.
17 (swap_linux_prpsinfo64_ugid32_out): Likewise.
18 (swap_linux_prpsinfo64_ugid16_out): Likewise.
19 * elf.c (elfcore_write_prpsinfo): Likewise.
20
bf82069d
NC
212018-04-23 Nick Clifton <nickc@redhat.com>
22
23 PR 23056
24 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
25 the end of the string table, and zero it.
26
4352556b
AM
272018-04-20 Alan Modra <amodra@gmail.com>
28
29 PR 22978
30 * elf32-hppa.c (got_relocs_needed): Add extra param to special
31 case both dtprel and tprel relocs.
32 (allocate_dynrelocs): Adjust conditions for got relocs.
33 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
34 Emit dynamic relocs on TLS GOT entries for shared libraries,
35 not when pic. Omit dynamic reloc on dtprel entry when local,
36 and on tprel entry when local and executable.
37
f6a8b8c7
AM
382018-04-19 Alan Modra <amodra@gmail.com>
39
40 PR 22537
41 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
42 (hppa_type_of_stub): Don't return a long branch stub for
43 symbols other than those defined statically.
44
8e415ce8
AM
452018-04-19 Alan Modra <amodra@gmail.com>
46
47 * Makefile.am: Revert 2018-04-18 coff-mips changes.
48 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
49 to selvecs for mips targets change 2018-04-18.
50 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
51 and mips_ecoff_bele_vec.
52 * targets.c: Likewise.
53 * coff-mips.c: Resurrect.
54 * Makefile.in: Regenerate.
55 * configure: Regenerate.
56 * po/SRC-POTFILES.in: Regenerate.
57
3596d8ce
AM
582018-04-18 Alan Modra <amodra@gmail.com>
59
60 * Makefile.am: Remove mips aout and coff support.
61 * config.bfd: Likewise.
62 * configure.ac: Likewise.
63 * targets.c: Likewise.
64 * coff-mips.c: Delete
65 * mipsbsd.c: Delete
66 * pe-mips.c: Delete
67 * pei-mips.c: Delete
68 * Makefile.in: Regenerate.
69 * configure: Regenerate.
70 * po/SRC-POTFILES.in: Regenerate.
71
d9dd2045
L
722018-04-17 H.J. Lu <hongjiu.lu@intel.com>
73
74 * elf32-i386.c (elf32_bed): Define before including
75 "elf32-target.h".
76 * elf64-x86-64.c (elf64_bed): Define before including
77 "elf64-target.h".
78 (elf32_bed): Define before including "elf32-target.h".
79
e4e6a73d
L
802018-04-17 H.J. Lu <hongjiu.lu@intel.com>
81
82 PR ld/23055
83 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
84 normal input file with compatible relocation.
85
c65c21e1
AM
862018-04-18 Alan Modra <amodra@gmail.com>
87
88 * Makefile.am: Remove support for assorted i386 aout and coff targets.
89 * config.bfd: Likewise.
90 * configure.ac: Likewise.
91 * doc/bfdint.texi: Likewise.
92 * targets.c: Likewise.
93 * freebsd.h: Delete.
94 * i386dynix.c: Delete.
95 * i386freebsd.c: Delete.
96 * i386linux.c: Delete.
97 * i386mach3.c: Delete.
98 * i386netbsd.c: Delete.
99 * i386os9k.c: Delete.
100 * Makefile.in: Regenerate.
101 * configure: Regenerate.
102 * po/SRC-POTFILES.in: Regenerate.
103
884d4d8a 1042018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
3f0a5f17
ME
105
106 Microblaze Target: PIC data text relative
107
108 * bfd/reloc.c (2 new BFD relocations):
109 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
110 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
111 * bfd/bfd-in2.h: Regenerate
112 * bfd/libbfd.h: Regenerate
113 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
114 new relocs and handle them in both relocate and relax functions.
115 (microblaze_elf_reloc_type_lookup): add mapping between for new
116 bfd relocs.
117 (microblaze_elf_relocate_section): Handle new relocs in case of
118 elf relocation.
119 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
120
6327533b
NC
1212018-04-17 Nick Clifton <nickc@redhat.com>
122
808346fc
NC
123 PR 23055
124 * aoutx.h (find_nearest_line): Check that the symbol name exists
125 and is long enough, before attempting to see if it is for a .o
126 file.
127 * hash.c (bfd_hash_hash): Add an assertion that the string is not
128 NULL.
129 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
130 NULL.
131 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
132 has no name.
133
6327533b
NC
134 PR 23065
135 * dwarf2.c (concat_filename): Check for a NULL table pointer.
136
e9af4700
NC
1372018-04-16 Nick Clifton <nickc@redhat.com>
138
139 PR 23061
140 * coffgen.c (coff_pointerize_aux): Check for an out of range
141 fixup.
142
ddb00039
AM
1432018-04-16 Alan Modra <amodra@gmail.com>
144
145 * Makefile.am: Remove arm-epoc-pe support.
146 * coff-arm.c: Likewise.
147 * config.bfd: Likewise.
148 * configure.ac: Likewise.
149 * targets.c: Likewise.
150 * epoc-pe-arm.c: Delete.
151 * epoc-pei-arm.c: Delete.
152 * Makefile.in: Regenerate.
153 * configure: Regenerate.
154 * po/SRC-POTFILES.in: Regenerate.
155
c9098af4
AM
1562018-04-16 Alan Modra <amodra@gmail.com>
157
158 * Makefile.am: Remove sparc-aout and sparc-coff support.
159 * config.bfd: Likewise.
160 * configure.ac: Likewise.
161 * targets.c: Likewise.
162 * aout-sparcle.c: Delete.
163 * aoutf1.h: Delete.
164 * cf-sparclynx.c: Delete.
165 * coff-sparc.c: Delete.
166 * demo64.c: Delete.
167 * sparclinux.c: Delete.
168 * sparclynx.c: Delete.
169 * sparcnetbsd.c: Delete.
170 * sunos.c: Delete.
171 * Makefile.in: Regenerate.
172 * configure: Regenerate.
173 * po/SRC-POTFILES.in: Regenerate.
174
dc12032b
AM
1752018-04-16 Alan Modra <amodra@gmail.com>
176
177 * Makefile.am: Remove m68k-aout and m68k-coff support.
178 * aoutf1.h: Likewise.
179 * aoutx.h: Likewise.
180 * archive.c: Likewise.
181 * bfd-in.h: Likewise.
182 * bfd.c: Likewise.
183 * coffcode.h: Likewise.
184 * coffswap.h: Likewise.
185 * config.bfd: Likewise.
186 * configure.ac: Likewise.
187 * configure.host: Likewise.
188 * doc/bfd.texinfo: Likewise.
189 * doc/bfdint.texi: Likewise.
190 * freebsd.h: Likewise.
191 * gen-aout.c: Likewise.
192 * hpux-core.c: Likewise.
193 * libaout.h: Likewise.
194 * libbfd-in.h: Likewise.
195 * pdp11.c: Likewise.
196 * peicode.h: Likewise.
197 * riscix.c: Likewise.
198 * targets.c: Likewise.
199 * aout0.c: Delete.
200 * coff-apollo.c: Delete.
201 * coff-aux.c: Delete.
202 * coff-m68k.c: Delete.
203 * coff-svm68k.c: Delete.
204 * coff-u68k.c: Delete.
205 * hosts/delta68.h: Delete.
206 * hosts/hp300bsd.h: Delete.
207 * hosts/m68kaux.h: Delete.
208 * hosts/news.h: Delete.
209 * hp300bsd.c: Delete.
210 * hp300hpux.c: Delete.
211 * liboasys.h: Delete.
212 * m68k4knetbsd.c: Delete.
213 * m68klinux.c: Delete.
214 * m68knetbsd.c: Delete.
215 * oasys.c: Delete.
216 * versados.c: Delete.
217 * Makefile.in: Regenerate.
218 * bfd-in2.h: Regenerate.
219 * configure: Regenerate.
220 * libbfd.h: Regenerate.
221 * po/SRC-POTFILES.in: Regenerate.
222
211dc24b
AM
2232018-04-16 Alan Modra <amodra@gmail.com>
224
225 * Makefile.am: Remove sh5 and sh64 support.
226 * archures.c: Likewise.
227 * config.bfd: Likewise.
228 * configure.ac: Likewise.
229 * cpu-sh.c: Likewise.
230 * elf32-sh-relocs.h: Likewise.
231 * elf32-sh.c: Likewise.
232 * targets.c: Likewise.
233 * elf32-sh64-com.c: Delete.
234 * elf32-sh64.c: Delete.
235 * elf32-sh64.h: Delete.
236 * elf64-sh64.c: Delete.
237 * Makefile.in: Regenerate.
238 * bfd-in2.h: Regenerate.
239 * configure: Regenerate.
240 * po/SRC-POTFILES.in: Regenerate.
241
4db9937a
AM
2422018-04-16 Alan Modra <amodra@gmail.com>
243
244 * Makefile.am: Remove sh-symbianelf support.
245 * config.bfd: Likewise.
246 * configure.ac: Likewise.
247 * targets.c: Likewise.
248 * elf32-sh-symbian.c: Delete.
249 * Makefile.in: Regenerate.
250 * configure: Regenerate.
251 * po/SRC-POTFILES.in: Regenerate.
252
9f5d1593
AM
2532018-04-16 Alan Modra <amodra@gmail.com>
254
255 * Makefile.am: Remove vax-bsd and vax-ultrix support.
256 * config.bfd: Likewise.
257 * configure.ac: Likewise.
258 * targets.c: Likewise.
259 * vaxbsd.c: Delete.
260 * Makefile.in: Regenerate.
261 * configure: Regenerate.
262 * po/SRC-POTFILES.in: Regenerate.
263
a9a4b302
AM
2642018-04-16 Alan Modra <amodra@gmail.com>
265
266 * Makefile.am: Remove w65 support.
267 * archures.c: Likewise.
268 * coffcode.h: Likewise.
269 * config.bfd: Likewise.
270 * configure.ac: Likewise.
271 * targets.c: Likewise.
272 * coff-w65.c: Delete.
273 * cpu-w65.c: Delete.
274 * Makefile.in: Regenerate.
275 * bfd-in2.h: Regenerate.
276 * configure: Regenerate.
277 * po/SRC-POTFILES.in: Regenerate.
278
04cb01fd
AM
2792018-04-16 Alan Modra <amodra@gmail.com>
280
281 * Makefile.am: Remove we32k support.
282 * archures.c: Likewise.
283 * coffcode.h: Likewise.
284 * config.bfd: Likewise.
285 * configure.ac: Likewise.
286 * targets.c: Likewise.
287 * coff-we32k.c: Delete.
288 * cpu-we32k.c: Delete.
289 * Makefile.in: Regenerate.
290 * bfd-in2.h: Regenerate.
291 * configure: Regenerate.
292 * po/SRC-POTFILES.in: Regenerate.
293
c2bf1eec
AM
2942018-04-16 Alan Modra <amodra@gmail.com>
295
296 * Makefile.am: Remove m88k support.
297 * aoutx.h: Likewise.
298 * archures.c: Likewise.
299 * coffcode.h: Likewise.
300 * coffswap.h: Likewise.
301 * config.bfd: Likewise.
302 * configure.ac: Likewise.
303 * cpu-ns32k.c: Likewise.
304 * elf32-nds32.c: Likewise.
305 * mach-o.c: Likewise.
306 * netbsd-core.c: Likewise.
307 * reloc.c: Likewise.
308 * targets.c: Likewise.
309 * coff-m88k.c: Delete.
310 * cpu-m88k.c: Delete.
311 * elf32-m88k.c: Delete.
312 * hosts/m88kmach3.h: Delete.
313 * m88kmach3.c: Delete.
314 * m88kopenbsd.c: Delete.
315 * Makefile.in: Regenerate.
316 * bfd-in2.h: Regenerate.
317 * configure: Regenerate.
318 * po/SRC-POTFILES.in: Regenerate.
319
6793974d
AM
3202018-04-16 Alan Modra <amodra@gmail.com>
321
322 * Makefile.am: Remove i370 support.
323 * archures.c: Likewise.
324 * config.bfd: Likewise.
325 * configure.ac: Likewise.
326 * targets.c: Likewise.
327 * cpu-i370.c: Delete.
328 * elf32-i370.c: Delete.
329 * Makefile.in: Regenerate.
330 * bfd-in2.h: Regenerate.
331 * configure: Regenerate.
332 * po/SRC-POTFILES.in: Regenerate.
333
e82aa794
AM
3342018-04-16 Alan Modra <amodra@gmail.com>
335
336 * Makefile.am: Remove h8500 support.
337 * archures.c: Likewise.
338 * coffcode.h: Likewise.
339 * config.bfd: Likewise.
340 * configure.ac: Likewise.
341 * targets.c: Likewise.
342 * coff-h8500.c: Delete.
343 * cpu-h8500.c: Delete.
344 * Makefile.in: Regenerate.
345 * bfd-in2.h: Regenerate.
346 * configure: Regenerate.
347 * po/SRC-POTFILES.in: Regenerate.
348
fe0bf0fd
AM
3492018-04-16 Alan Modra <amodra@gmail.com>
350
351 * Makefile.am: Remove h8300-coff support.
352 * coffcode.h: Likewise.
353 * config.bfd: Likewise.
354 * configure.ac: Likewise.
355 * reloc16.c: Likewise.
356 * targets.c: Likewise.
357 * coff-h8300.c: Delete.
358 * Makefile.in: Regenerate.
359 * configure: Regenerate.
360 * po/SRC-POTFILES.in: Regenerate.
361
fdef3943
AM
3622018-04-16 Alan Modra <amodra@gmail.com>
363
364 * Makefile.am: Remove IEEE 695 support.
365 * archures.c: Likewise.
366 * bfd.c: Likewise.
367 * config.bfd: Likewise.
368 * configure.ac: Likewise.
369 * doc/bfd.texinfo: Likewise.
370 * doc/bfdint.texi: Likewise.
371 * doc/bfdsumm.texi: Likewise.
372 * section.c: Likewise.
373 * targets.c: Likewise.
374 * ieee.c: Delete.
375 * libieee.h: Delete.
376 * Makefile.in: Regenerate.
377 * bfd-in2.h: Regenerate.
378 * configure: Regenerate.
379 * po/SRC-POTFILES.in: Regenerate.
380
de96689e
AM
3812018-04-16 Alan Modra <amodra@gmail.com>
382
383 * config.bfd: Remove tandem support.
384
5972ac73
AM
3852018-04-16 Alan Modra <amodra@gmail.com>
386
387 * Makefile.am: Remove newsos3 support.
388 * aoutx.h: Likewise.
389 * config.bfd: Likewise.
390 * configure.ac: Likewise.
391 * targets.c: Likewise.
392 * newsos3.c: Delete.
393 * Makefile.in: Regenerate.
394 * configure: Regenerate.
395 * po/SRC-POTFILES.in: Regenerate.
396
b4b594e3
AM
3972018-04-16 Alan Modra <amodra@gmail.com>
398
399 * Makefile.am: Remove netware support.
400 * bfd-in.h: Likewise.
401 * bfd.c: Likewise.
402 * config.bfd: Likewise.
403 * configure.ac: Likewise.
404 * doc/bfdint.texi: Likewise.
405 * ecoff.c: Likewise.
406 * targets.c: Likewise.
407 * libnlm.h: Delete.
408 * nlm-target.h: Delete.
409 * nlm.c: Delete.
410 * nlm32-alpha.c: Delete.
411 * nlm32-i386.c: Delete.
412 * nlm32-ppc.c: Delete.
413 * nlm32-sparc.c: Delete.
414 * nlm32.c: Delete.
415 * nlm64.c: Delete.
416 * nlmcode.h: Delete.
417 * nlmswap.h: Delete.
418 * Makefile.in: Regenerate.
419 * bfd-in2.h: Regenerate.
420 * configure: Regenerate.
421 * po/SRC-POTFILES.in: Regenerate.
422
fceadf09
AM
4232018-04-16 Alan Modra <amodra@gmail.com>
424
425 * archures.c: Remove tahoe support.
426 * config.bfd: Likewise.
427 * configure.ac: Likewise.
428 * hosts/tahoe.h: Delete.
429 * bfd-in2.h: Regenerate.
430 * configure: Regenerate.
431
702d1671
AM
4322018-04-14 Alan Modra <amodra@gmail.com>
433
434 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
435 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
436 sanity test.
437 (elfNN_bed): Init relropagesize.
438 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
439 select relropagesize.
440 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
441 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
442 (ELF_MINPAGESIZE): Don't define.
443 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
444 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
445 * bfd-in2.h: Regenerate.
446
03aa9684
AM
4472018-04-14 Alan Modra <amodra@gmail.com>
448
449 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
450 on __QNXTARGET__ define.
451
24acfe5e
AM
4522018-04-14 Alan Modra <amodra@gmail.com>
453
454 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
455 to obsolete list.
456
a8eb42a8
AM
4572018-04-11 Alan Modra <amodra@gmail.com>
458
459 * aout-adobe.c: Delete.
460 * bout.c: Delete.
461 * coff-i860.c: Delete.
462 * coff-i960.c: Delete.
463 * cpu-i860.c: Delete.
464 * cpu-i960.c: Delete.
465 * elf32-i860.c: Delete.
466 * elf32-i960.c: Delete.
467 * hosts/i860mach3.h: Delete.
468 * Makefile.am: Remove i860, i960, bout, and adobe support.
469 * archures.c: Remove i860 and i960 support.
470 * coffcode.h: Likewise.
471 * reloc.c: Likewise.
472 * aoutx.h: Comment updates.
473 * archive.c: Remove BOUT and i960 support.
474 * bfd.c: Remove BOUT support.
475 * coffswap.h: Remove i960 support.
476 * config.bfd: Remove i860, i960 and adobe targets.
477 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
478 * targets.c: Likewise.
479 * ieee.c: Remove i960 support.
480 * mach-o.c: Remove i860 support.
481 * Makefile.in: Regenerate.
482 * bfd-in2.h: Regenerate.
483 * configure: Regenerate.
484 * libbfd.h: Regenerate.
485 * po/SRC-POTFILES.in: Regenerate.
486
aec2e0d2
MR
4872018-04-09 Maciej W. Rozycki <macro@mips.com>
488
489 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
490 in the BFD symbol referred by the relocation.
491 (mips_elf64_write_rela): Likewise.
492
9ccfa98b
MR
4932018-04-09 Maciej W. Rozycki <macro@mips.com>
494
495 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
496 error for out-of-range `r_sym' values.
497
3e04d765
AM
4982018-04-09 Alan Modra <amodra@gmail.com>
499
500 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
501 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
502 (ppc64_elf_check_relocs): Set has_pltcall.
503 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
504 (ppc64_elf_inline_plt): New function.
505 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
506 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
507 * elf32-ppc.c (has_pltcall): Define.
508 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
509 (ppc_elf_check_relocs): Set has_pltcall.
510 (ppc_elf_inline_plt): New function.
511 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
512 (ppc_elf_size_dynamic_sections): Likewise.
513 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
514
23cedd1d
AM
5152018-04-09 Alan Modra <amodra@gmail.com>
516
517 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
518 (is_plt_seq_reloc): New function.
519 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
520 (ppc_elf_tls_optimize): Handle inline plt call sequence.
521 (ppc_elf_relax_section): Handle PLTCALL reloc.
522 (ppc_elf_relocate_section): Nop out inline plt call sequence when
523 resolving locally.
524 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
525 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
526 (has_tls_get_addr_call): Correct comment.
527 (is_branch_reloc): Add PLTCALL.
528 (is_plt_seq_reloc): New function.
529 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
530 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
531 entry for R_PPC64_PLTCALL.
532 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
533 (ppc_type_of_stub): Handle PLTCALL reloc.
534 (toc_adjusting_stub_needed): Likewise.
535 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
536 reloc insn. Nop out inline plt call sequence when resolving
537 locally. Handle __tls_get_addr inline plt call optimization.
538
2d7ad24e
AM
5392018-04-09 Alan Modra <amodra@gmail.com>
540
541 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
542 (struct ppc_stub_hash_entry): Add symtype field.
543 (PLT_KEEP): Define.
544 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
545 (create_linkage_sections): Create pltlocal and relpltlocal.
546 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
547 Set PLT_KEEP.
548 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
549 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
550 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
551 Keep PLT entries for inline calls against locals.
552 (ppc_build_one_stub): Use pltlocal as appropriate.
553 (ppc_size_one_stub): Likewise.
554 (ppc64_elf_size_stubs): Set symtype.
555 (build_global_entry_stubs_and_plt): Init pltlocal and write
556 relpltlocal for globals.
557 (write_plt_relocs_for_local_syms): Likewise for local syms.
558 (ppc64_elf_relocate_section): Support PLT for local syms.
559 * elf32-ppc.c (PLT_KEEP): Define.
560 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
561 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
562 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
563 Set PLT_KEEP. Adjust update_local_sym_info call.
564 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
565 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
566 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
567 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
568 (write_global_sym_plt): Init pltlocal and write relpltlocal.
569 (ppc_finish_symbols): Likewise for locals.
570
49c09209
AM
5712018-04-09 Alan Modra <amodra@gmail.com>
572
573 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
574 for local symbols to..
575 (write_plt_relocs_for_local_syms): ..here. New function.
576 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
577 global symbols to..
578 (build_global_entry_stubs_and_plt): ..here. Rename from
579 build_global_entry_stubs.
580 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
581 Call write_plt_relocs_for_local_syms.
582 * elf32-ppc.c (get_sym_h): New function.
583 (ppc_elf_relax_section): Use get_sym_h.
584 (ppc_elf_relocate_section): Move output of PLT relocs and glink
585 stubs for local symbols to..
586 (ppc_finish_symbols): ..here. New function.
587 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
588 global syms to..
589 (write_global_sym_plt): ..here. New function.
590 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
591 (ppc_finish_symbols): Declare.
592
08be3224
AM
5932018-04-09 Alan Modra <amodra@gmail.com>
594
595 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
596 (ppc_elf_relocate_section): Likewise.
597 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
598 (ppc64_elf_relocate_section): Likewise. Correct PLT16
599 resolution to plt entry relative to toc pointer.
600
37da22e5
AM
6012018-04-09 Alan Modra <amodra@gmail.com>
602
603 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
604 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
605 file when other TLS flags are tested in a mask.
606 (TLS_MARK, NON_GOT): Define.
607 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
608 (update_local_sym_info): Don't create got entry when NON_GOT.
609 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
610 Set TLS_MARK.
611 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
612 (ppc64_elf_relocate_section): Likewise.
613 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
614 __tls_get_addr calls lacking a marker reloc.
615 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
616 TLS_TPRELGD): Renumber. Update comment.
617 (TLS_MARK, NON_GOT): Define.
618 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
619 (update_local_sym_info): Don't create got entry when NON_GOT.
620 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
621 Set TLS_MARK.
622 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
623 __tls_get_addr calls lacking a marker reloc.
624
a6fd92b0
L
6252018-04-06 H.J. Lu <hongjiu.lu@intel.com>
626
627 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
628 R_X86_64_converted_reloc_bit.
629
3cba8b6c
L
6302018-04-05 H.J. Lu <hongjiu.lu@intel.com>
631
632 PR gas/22318
633 * configure: Regenerated.
634
0e8452bb
AM
6352018-04-05 Alan Modra <amodra@gmail.com>
636
637 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
638 (elf_hppa_info_to_howto_rel): Likewise.
639
8ee55178
MR
6402018-04-04 Maciej W. Rozycki <macro@mips.com>
641
642 * elf-hppa.h (elf_hppa_info_to_howto): Also return
643 unsuccessfully for unimplemented relocations.
644 (elf_hppa_info_to_howto_rel): Likewise.
645
5d7c8b80
MR
6462018-04-04 Maciej W. Rozycki <macro@mips.com>
647
648 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
649 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
650 howto lookup failure.
651 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
652 accordingly.
653 (elf32_i860_info_to_howto_rela): Likewise.
654 (elf32_i860_relocate_splitn): Likewise.
655 (elf32_i860_relocate_pc16): Likewise.
656 (elf32_i860_relocate_pc26): Likewise.
657 (elf32_i860_relocate_section): Likewise.
658
707bad1b
MR
6592018-04-04 Maciej W. Rozycki <macro@mips.com>
660
661 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
662 check for `visium_elf_howto_table' table access.
663
0cc919dc
MR
6642018-04-04 Maciej W. Rozycki <macro@mips.com>
665
666 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
667 check for `iq2000_elf_howto_table' table access.
668
f428698e
MR
6692018-04-04 Maciej W. Rozycki <macro@mips.com>
670
671 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
672 for `elf32_frv_howto_table' table access.
673
7ed6f92a
MR
6742018-04-04 Maciej W. Rozycki <macro@mips.com>
675
676 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
677 unsuccessfully for placeholder howtos.
678 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
679 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
680
75def2ab
MR
6812018-03-29 Maciej W. Rozycki <macro@mips.com>
682
683 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
684 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
685
8b6a949a
MR
6862018-03-28 Maciej W. Rozycki <macro@mips.com>
687
688 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
689 ATTRIBUTE_UNUSED from `abfd'.
690
d81270c3
MR
6912018-03-28 Maciej W. Rozycki <macro@mips.com>
692
693 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
694 `_bfd_error_handler' call formatting.
695
60dceb8d 6962018-03-28 Maciej W. Rozycki <macro@mips.com>
8205a328
MR
697
698 * elf32-mips.c (mips_info_to_howto_rel): Call
699 `mips_elf32_rtype_to_howto' directly rather than via
700 `->elf_backend_mips_rtype_to_howto'.
701
e04ef022
RL
7022018-03-28 Renlin Li <renlin.li@arm.com>
703
704 PR ld/22970
705 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
706 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
707 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
708 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
709 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
710 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
711 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
712 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
713 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
714 (elfNN_aarch64_final_link_relocate): Support new relocations.
715 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
716 relocations.
717 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
718
84f1b9fb
RL
7192018-03-28 Renlin Li <renlin.li@arm.com>
720
721 PR ld/22970
722 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
723 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
724 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
725 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
726 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
727 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
728 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
729 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
730 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
731 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
732 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
733 TLSLE_LDST16_TPREL_LO12,
734 TLSLE_LDST16_TPREL_LO12_NC,
735 TLSLE_LDST32_TPREL_LO12,
736 TLSLE_LDST32_TPREL_LO12_NC,
737 TLSLE_LDST64_TPREL_LO12,
738 TLSLE_LDST64_TPREL_LO12_NC,
739 TLSLE_LDST8_TPREL_LO12,
740 TLSLE_LDST8_TPREL_LO12_NC.
741 * bfd-in2.h: Regenerated.
742 * libbfd.h: Regenerated.
743
f8745e1c
EB
7442018-03-28 Eric Botcazou <ebotcazou@adacore.com>
745
746 PR ld/22972
747 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
748 has_old_style_got_reloc.
749 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
750 relocations. Fix a couple of long lines.
751 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
752 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
753 GOT relocations.
754
bf54968b
L
7552018-03-25 H.J. Lu <hongjiu.lu@intel.com>
756
757 PR ld/23000
758 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
759 ENDBR64 to the TLSDESC PLT entry.
760
0ccf57bd
AM
7612018-03-21 Alan Modra <amodra@gmail.com>
762
763 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
764 symbols. Use size_t counts. Delete redundant opd test.
765
4bad6366
AM
7662018-03-21 Alan Modra <amodra@gmail.com>
767
768 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
769
bac3c8c5
AM
7702018-03-21 Alan Modra <amodra@gmail.com>
771
772 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
773 field unsigned.
774 (update_local_sym_info): Likewise for local_got_tls_masks.
775 (ppc_elf_tls_optimize): Likewise for lgot_masks.
776
6a3858a6
AM
7772018-03-21 Alan Modra <amodra@gmail.com>
778
779 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
780 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
781 do in size_dynamic_sections.
782
675e2809
AM
7832018-03-21 Alan Modra <amodra@gmail.com>
784
785 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
786 without first checking array bounds.
787 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
788
416c34d6
L
7892018-03-20 H.J. Lu <hongjiu.lu@intel.com>
790
791 PR ld/22983
792 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
793 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
794
315aa1cf
NC
7952018-03-19 Nick Clifton <nickc@redhat.com>
796
797 * po/es.po: Updated Spanish translation.
798
0854d504
MF
7992018-03-15 Max Filippov <jcmvbkbc@gmail.com>
800
801 * elf32-xtensa.c (xlate_map_entry): Change types of address
802 fields from 'unsigned' to 'bfd_vma'.
803 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
804 the key argument to bsearch. Allow offsets past the end of a
805 section, use the last map entry for translation of such offsets.
806
f9671640
KLC
8072018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
808
809 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
810 Not support the target feature.
811 (nds32_elf_ex9_itb_base): Likewise.
812 (nds32_elf_ex9_import_table): Likewise.
813 (nds32_elf_ex9_finish): Likewise.
814 (nds32_elf_ex9_reloc_jmp): Likewise.
815 (nds32_elf_get_insn_with_reg): Likewise.
816 (nds32_get_local_syms): Likewise.
817 (nds32_elf_ex9_replace_instruction): Likewise.
818 (nds32_elf_ifc_calc): Likewise.
819 (nds32_elf_ifc_finish): Likewise.
820 (nds32_elf_ifc_replace): Likewise.
821 (nds32_elf_ifc_reloc): Likewise.
822
7dda8d3c
AM
8232018-03-14 Alan Modra <amodra@gmail.com>
824
825 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
826 sfpr size added before defining alias symbols.
827 (ppc64_elf_build_stubs): Add stub section padding before
828 copying sfpr contents and defining save/restore alias symbols.
829
9e223787
L
8302018-03-14 H.J. Lu <hongjiu.lu@intel.com>
831
832 PR ld/20882
833 * elflink.c (elf_gc_mark_debug_section): Also check the local
834 debug definition section.
835
3e33b239
NC
8362018-03-13 Nick Clifton <nickc@redhat.com>
837
838 PR 22113
839 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
840 function. Add an end address parameter. Check access of the data
841 pointer to make sure that they do not extend beyond the end
842 address. Return FALSE if any check fails. Add the end address
843 pointer to the ui structure.
844 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
845 codes to make sure that they do not extend beyond the end address
846 pointer. Print an error message and return immediately if any
847 check fails.
848
f657f8c4
NC
8492018-03-09 Nick Clifton <nickc@redhat.com>
850
851 * elf64-s390.c (elf_s390_relocate_section): Move check for
852 relocations against non-allocated sections to before the code that
853 handles ifunc relocations.
854 * elf32-s390.c (elf_s390_relocate_section): Likewise.
855 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
856 relocs against IFUNC symbols in non-allocated sections as relocs
857 against FUNC symbols.
858 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
859
347a8774
L
8602018-03-08 H.J. Lu <hongjiu.lu@intel.com>
861
862 PR ld/22929
863 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
864 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
865 relocation against FUNC symbol.
866 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
867
0c1ded8d
RL
8682018-03-07 Renlin Li <renlin.li@arm.com>
869
870 PR ld/20402
871 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
872 symbol, and don't emit relocation in specific case.
873
0118219e
AM
8742018-03-07 Alan Modra <amodra@gmail.com>
875
876 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
877 (mips_elf64_slurp_one_reloc_table): Pass on error.
878
dfb93f11
JC
8792018-03-03 James Cowgill <james.cowgill@mips.com>
880 Maciej W. Rozycki <macro@mips.com>
881
882 PR ld/21900
883 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
884 after calling `undefined_symbol' hook if this is an error
885 condition. Assume the value of 0 for the symbol requested
886 otherwise.
887
9a2ebffd
JW
8882018-03-02 Jim Wilson <jimw@sifive.com>
889
890 PR 22903
891 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
892 and nop instead of 4.
893 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
894 8 instead of 4.
895
788af978
JW
8962018-03-01 Jim Wilson <jimw@sifive.com>
897
898 PR 22756
899 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
900 else if instead of if.
901
5224fa03
AM
9022018-03-01 Alan Modra <amodra@gmail.com>
903
904 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
905
116acb2c
AM
9062018-02-28 Alan Modra <amodra@gmail.com>
907
908 PR 22887
909 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
910
eef10466
NC
9112018-02-28 Nick Clifton <nickc@redhat.com>
912
12c96342
NC
913 PR 22895
914 PR 22893
915 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
916 pointer. Drop unused abfd parameter. Check the size of the block
917 before initialising the data field. Return the end pointer if the
918 size is invalid.
919 (read_attribute_value): Adjust invocations of read_n_bytes.
920
eef10466
NC
921 PR 22894
922 * dwarf1.c (parse_die): Check the length of form blocks before
923 advancing the data pointer.
924
0d329c0a
AM
9252018-02-28 Alan Modra <amodra@gmail.com>
926
927 PR 22887
928 * aoutx.h (translate_symbol_table): Print an error message and set
929 bfd_error on finding an invalid name string offset.
930
f6aec96d
L
9312018-02-27 H.J. Lu <hongjiu.lu@intel.com>
932
933 * config.in: Regenerated.
934 * configure: Likewise.
935 * configure.ac: Add --enable-separate-code.
936 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
937 to 1 for Linux/x86 targets,
938 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
939 DEFAULT_LD_Z_SEPARATE_CODE is 1.
940
f3185997
NC
9412018-02-27 Nick Clifton <nickc@redhat.com>
942
e8f5af78
NC
943 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
944 message.
945 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
946 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
947 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
948 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
949 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
950 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
951 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
952 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
953 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
954
f3185997
NC
955 PR 22875
956 * elf-bfd.h (struct elf_backend_data): Change the return type of
957 the elf_info_to_howto and elf_info_to_howto_rel function pointers
958 to bfd_boolean.
959 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
960 value from the info_to_howto function and fail if that function
961 failed.
962 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
963 from the info_to_howto function.
964 (elf32_h8_relax_section): Likewise.
965 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
966 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
967 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
968 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
969 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
970 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
971 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
972 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
973 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
974 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
975 (riscv_elf_relocate_section): Likewise.
976 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
977 bfd_boolean. Issue an error message, set an error value and
978 return FALSE if the reloc is not recognized.
979 (elf_hppa_info_to_howto_rel): Likewise.
980 * elf-m10200.c (mn10200_info_to_howto): Likewise.
981 * elf-m10300.c (mn10300_info_to_howto): Likewise.
982 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
983 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
984 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
985 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
986 * elf32-bfin.c (bfin_info_to_howto): Likewise.
987 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
988 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
989 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
990 (cris_info_to_howto_rela): Likewise.
991 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
992 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
993 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
994 Likewise.
995 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
996 (elf32_dlx_info_to_howto_rel): Likewise.
997 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
998 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
999 * elf32-frv.c (frv_info_to_howto_rela)
1000 (frvfdpic_info_to_howto_rel): Likewise.
1001 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
1002 * elf32-gen.c (elf_generic_info_to_howto)
1003 (elf_generic_info_to_howto_rel): Likewise.
1004 * elf32-h8300.c (elf32_h8_info_to_howto)
1005 (elf32_h8_info_to_howto_rel): Likewise.
1006 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1007 * elf32-i386.c (elf_i386_reloc_type_lookup)
1008 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
1009 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
1010 Likewise.
1011 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1012 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1013 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1014 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1015 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1016 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
1017 Likewise.
1018 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1019 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1020 * elf32-m68k.c (rtype_to_howto): Likewise.
1021 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1022 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1023 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1024 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1025 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1026 Likewise.
1027 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1028 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1029 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1030 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
1031 Likewise.
1032 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
1033 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1034 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1035 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1036 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
1037 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
1038 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
1039 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1040 * elf32-score.c (s3_bfd_score_info_to_howto)
1041 (_bfd_score_info_to_howto): Likewise.
1042 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1043 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1044 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1045 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
1046 (elf32_tic6x_info_to_howto_rel): Likewise.
1047 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
1048 * elf32-v850.c (v850_elf_info_to_howto_rel)
1049 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
1050 * elf32-vax.c (rtype_to_howto): Likewise.
1051 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
1052 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
1053 (elf32_wasm32_info_to_howto_rela): Likewise.
1054 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
1055 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
1056 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
1057 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
1058 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1059 * elf64-gen.c (elf_generic_info_to_howto)
1060 (elf_generic_info_to_howto_rel): Likewise.
1061 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
1062 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
1063 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
1064 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1065 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1066 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
1067 Likewise.
1068 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
1069 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1070 Likewise.
1071 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
1072 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
1073 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
1074 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1075 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
1076 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
1077 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
1078 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
1079 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
1080 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
1081 Default to NULL.
1082
1f4bace8
JW
10832018-02-26 Jim Wilson <jimw@sifive.com>
1084 Stephan Schreiber <info@fs-driver.org>
1085
1086 PR 15904
1087 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
1088 call, set changed_contents and changed_relocs. Likewise after
1089 successful ia64_elf_relax_br call.
1090
6838f2be
AM
10912018-02-26 Alan Modra <amodra@gmail.com>
1092
1093 * elf.c (assign_file_positions_except_relocs): Don't segfault
1094 when actual number of phdrs is less than allocated. Delete
1095 outdated comment. Formatting.
1096
38f14ab8
AM
10972018-02-26 Alan Modra <amodra@gmail.com>
1098
1099 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
1100 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
1101 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
1102 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
1103 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
1104 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
1105 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
1106 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1107 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
1108 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
1109 error/warning messages.
1110
6e05870c
AM
11112018-02-26 Alan Modra <amodra@gmail.com>
1112
1113 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
1114 * syms.c: Standardize error/warning messages.
1115
59d08d6c
AM
11162018-02-26 Alan Modra <amodra@gmail.com>
1117
1118 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
1119 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
1120 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
1121 * peXXigen.c, * peicode.h: Standardize error/warning messages.
1122
90b6238f
AM
11232018-02-26 Alan Modra <amodra@gmail.com>
1124
1125 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
1126
2c1c9679
AM
11272018-02-26 Alan Modra <amodra@gmail.com>
1128
1129 * elfxx-mips.c: Standardize error/warning messages.
1130
9793eb77
AM
11312018-02-26 Alan Modra <amodra@gmail.com>
1132
1133 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
1134 * elflink.c: Standardize error/warning messages. Replace use of
1135 linker callback einfo with _bfd_error_handler when possible.
1136
0aa13fee
AM
11372018-02-26 Alan Modra <amodra@gmail.com>
1138
1139 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
1140 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
1141 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
1142 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
1143 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
1144 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1145 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
1146 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
1147 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1148 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
1149 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
1150 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
1151 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
1152 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
1153 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
1154 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
1155 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
1156 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
1157 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
1158 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
1159 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
1160 unrecognized/unsupported reloc message.
1161
cf97bcb0
AM
11622018-02-26 Alan Modra <amodra@gmail.com>
1163
1164 * elf32-ppc.c: Standardize error/warning messages. Use
1165 _bfd_error_handler rather than einfo when einfo features not used.
1166 * elf64-ppc.c: Likewise.
1167
01f7e10c
AM
11682018-02-23 Alan Modra <amodra@gmail.com>
1169
1170 PR 22881
1171 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
1172 segment if no matching LOAD segment.
1173
e859f655
KLC
11742018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1175
1176 * elf32-nds32.h: Define mask for ict_model.
1177
6e8d06db
JD
11782018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
1179
1180 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
1181
b248d650
MR
11822018-02-19 Maciej W. Rozycki <macro@mips.com>
1183
1184 Revert
1185 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
1186
1187 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
1188 .reginfo section has wrong size.
1189
6798f8bf
MR
11902018-02-19 Maciej W. Rozycki <macro@mips.com>
1191
1192 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
1193 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
1194 `.MIPS.abiflags' sections.
1195 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
1196 section's end.
1197
8772de11
MR
11982018-02-19 Maciej W. Rozycki <macro@mips.com>
1199
1200 * section.c (SEC_FIXED_SIZE): New macro.
1201 * bfd-in2.h: Regenerate.
1202
4f7fd351
MR
12032018-02-19 Maciej W. Rozycki <macro@mips.com>
1204
1205 * section.c (SEC_HAS_GOT_REF): Remove macro.
1206 * bfd-in2.h: Regenerate.
1207
f2b740ac
AM
12082018-02-19 Alan Modra <amodra@gmail.com>
1209
1210 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
1211 arguments.
1212 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
1213 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
1214 (_bfd_riscv_relax_pc): Likewise and fix typos.
1215 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
1216 * libbfd.h: Regenerate.
1217
8979927a
AM
12182018-02-19 Alan Modra <amodra@gmail.com>
1219
1220 * dwarf2.c (read_section): Don't use 'll' format modifier.
1221 (find_abstract_instance): Likewise.
1222 * elfcore.h (elf_core_file_p): Likewise.
1223
2dcf00ce
AM
12242018-02-19 Alan Modra <amodra@gmail.com>
1225
1226 * bfd-in.h: Include inttypes.h or if not available define
1227 PRId64, PRIu64 and PRIx64.
1228 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
1229 modifier to print bfd_vma.
1230 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
1231 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
1232 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
1233 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
1234 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
1235 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
1236 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
1237 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
1238 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
1239 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
1240 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
1241 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
1242 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
1243 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
1244 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
1245 and cast input to uint64_t, and similarly for Ld and Lu.
1246 * bfd-in2.h: Regenerate.
1247
c1c8c1ef
AM
12482018-02-19 Alan Modra <amodra@gmail.com>
1249
1250 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
1251 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
1252 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
1253 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
1254 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
1255 * reloc.c: Replace use of %R and %T in format strings passed to
1256 einfo and friends by %pR and %pT.
1257
871b3ab2
AM
12582018-02-19 Alan Modra <amodra@gmail.com>
1259
1260 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
1261 of %A and %B.
1262 * aout-adobe.c: Update all messages using %A and %B.
1263 * aout-cris.c: Likewise.
1264 * aoutx.h: Likewise.
1265 * archive.c: Likewise.
1266 * binary.c: Likewise.
1267 * cache.c: Likewise.
1268 * coff-alpha.c: Likewise.
1269 * coff-arm.c: Likewise.
1270 * coff-i860.c: Likewise.
1271 * coff-mcore.c: Likewise.
1272 * coff-ppc.c: Likewise.
1273 * coff-rs6000.c: Likewise.
1274 * coff-sh.c: Likewise.
1275 * coff-tic4x.c: Likewise.
1276 * coff-tic54x.c: Likewise.
1277 * coff-tic80.c: Likewise.
1278 * coff64-rs6000.c: Likewise.
1279 * coffcode.h: Likewise.
1280 * coffgen.c: Likewise.
1281 * cofflink.c: Likewise.
1282 * coffswap.h: Likewise.
1283 * compress.c: Likewise.
1284 * cpu-arm.c: Likewise.
1285 * ecoff.c: Likewise.
1286 * elf-attrs.c: Likewise.
1287 * elf-eh-frame.c: Likewise.
1288 * elf-ifunc.c: Likewise.
1289 * elf-m10300.c: Likewise.
1290 * elf-properties.c: Likewise.
1291 * elf-s390-common.c: Likewise.
1292 * elf.c: Likewise.
1293 * elf32-arc.c: Likewise.
1294 * elf32-arm.c: Likewise.
1295 * elf32-avr.c: Likewise.
1296 * elf32-bfin.c: Likewise.
1297 * elf32-cr16.c: Likewise.
1298 * elf32-cr16c.c: Likewise.
1299 * elf32-cris.c: Likewise.
1300 * elf32-crx.c: Likewise.
1301 * elf32-d10v.c: Likewise.
1302 * elf32-d30v.c: Likewise.
1303 * elf32-epiphany.c: Likewise.
1304 * elf32-fr30.c: Likewise.
1305 * elf32-frv.c: Likewise.
1306 * elf32-gen.c: Likewise.
1307 * elf32-hppa.c: Likewise.
1308 * elf32-i370.c: Likewise.
1309 * elf32-i386.c: Likewise.
1310 * elf32-i960.c: Likewise.
1311 * elf32-ip2k.c: Likewise.
1312 * elf32-iq2000.c: Likewise.
1313 * elf32-lm32.c: Likewise.
1314 * elf32-m32c.c: Likewise.
1315 * elf32-m32r.c: Likewise.
1316 * elf32-m68hc11.c: Likewise.
1317 * elf32-m68hc12.c: Likewise.
1318 * elf32-m68hc1x.c: Likewise.
1319 * elf32-m68k.c: Likewise.
1320 * elf32-mcore.c: Likewise.
1321 * elf32-mep.c: Likewise.
1322 * elf32-metag.c: Likewise.
1323 * elf32-microblaze.c: Likewise.
1324 * elf32-moxie.c: Likewise.
1325 * elf32-msp430.c: Likewise.
1326 * elf32-mt.c: Likewise.
1327 * elf32-nds32.c: Likewise.
1328 * elf32-nios2.c: Likewise.
1329 * elf32-or1k.c: Likewise.
1330 * elf32-pj.c: Likewise.
1331 * elf32-ppc.c: Likewise.
1332 * elf32-rl78.c: Likewise.
1333 * elf32-rx.c: Likewise.
1334 * elf32-s390.c: Likewise.
1335 * elf32-score.c: Likewise.
1336 * elf32-score7.c: Likewise.
1337 * elf32-sh-symbian.c: Likewise.
1338 * elf32-sh.c: Likewise.
1339 * elf32-sh64.c: Likewise.
1340 * elf32-sparc.c: Likewise.
1341 * elf32-spu.c: Likewise.
1342 * elf32-tic6x.c: Likewise.
1343 * elf32-tilepro.c: Likewise.
1344 * elf32-v850.c: Likewise.
1345 * elf32-vax.c: Likewise.
1346 * elf32-visium.c: Likewise.
1347 * elf32-wasm32.c: Likewise.
1348 * elf32-xgate.c: Likewise.
1349 * elf32-xtensa.c: Likewise.
1350 * elf64-alpha.c: Likewise.
1351 * elf64-gen.c: Likewise.
1352 * elf64-hppa.c: Likewise.
1353 * elf64-ia64-vms.c: Likewise.
1354 * elf64-mmix.c: Likewise.
1355 * elf64-ppc.c: Likewise.
1356 * elf64-s390.c: Likewise.
1357 * elf64-sh64.c: Likewise.
1358 * elf64-sparc.c: Likewise.
1359 * elf64-x86-64.c: Likewise.
1360 * elfcode.h: Likewise.
1361 * elfcore.h: Likewise.
1362 * elflink.c: Likewise.
1363 * elfnn-aarch64.c: Likewise.
1364 * elfnn-ia64.c: Likewise.
1365 * elfnn-riscv.c: Likewise.
1366 * elfxx-mips.c: Likewise.
1367 * elfxx-sparc.c: Likewise.
1368 * elfxx-tilegx.c: Likewise.
1369 * elfxx-x86.c: Likewise.
1370 * hpux-core.c: Likewise.
1371 * ieee.c: Likewise.
1372 * ihex.c: Likewise.
1373 * libbfd.c: Likewise.
1374 * linker.c: Likewise.
1375 * mach-o.c: Likewise.
1376 * merge.c: Likewise.
1377 * mmo.c: Likewise.
1378 * oasys.c: Likewise.
1379 * pdp11.c: Likewise.
1380 * pe-mips.c: Likewise.
1381 * peXXigen.c: Likewise.
1382 * peicode.h: Likewise.
1383 * reloc.c: Likewise.
1384 * rs6000-core.c: Likewise.
1385 * srec.c: Likewise.
1386 * stabs.c: Likewise.
1387 * vms-alpha.c: Likewise.
1388 * xcofflink.c: Likewise.
1389
dbc88fc1
AM
13902018-02-19 Alan Modra <amodra@gmail.com>
1391
1392 PR 22845
1393 * elf.c (IS_TBSS): Define.
1394 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
1395 (assign_file_positions_for_non_load_sections): Revert last change.
1396 Properly calculate load segment limits to compare against relro limits.
1397
325ba6fb
AM
13982018-02-17 Alan Modra <amodra@gmail.com>
1399
1400 PR 22845
1401 * elf.c (assign_file_positions_for_non_load_sections): Ignore
1402 degenerate zero size PT_LOAD segments when finding one overlapping
1403 the PT_GNU_RELRO segment.
1404
d00dd7dc
AM
14052018-02-16 Alan Modra <amodra@gmail.com>
1406
1407 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
1408 (_bfd_bool_bfd_true): Rename from bfd_true.
1409 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
1410 (_bfd_int_bfd_0): Rename from bfd_0.
1411 (_bfd_uint_bfd_0): Rename from bfd_0u.
1412 (_bfd_long_bfd_0): Rename from bfd_0l.
1413 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
1414 (_bfd_void_bfd): Rename from bfd_void.
1415 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
1416 (_bfd_bool_bfd_link_false_error),
1417 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
1418 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
1419 (_bfd_bool_bfd_asection_bfd_asection_true),
1420 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
1421 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
1422 * archive.c (_bfd_noarchive_get_elt_at_index),
1423 (_bfd_noarchive_openr_next_archived_file),
1424 (_bfd_noarchive_construct_extended_name_table),
1425 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
1426 (_bfd_noarchive_write_armap): New functions.
1427 * archures.c (_bfd_nowrite_set_arch_mach): New function.
1428 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
1429 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
1430 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
1431 (alpha_ecoff_swap_coff_lineno_out),
1432 (alpha_ecoff_swap_coff_reloc_out): New functions.
1433 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
1434 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
1435 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
1436 (mips_ecoff_swap_coff_lineno_out),
1437 (mips_ecoff_swap_coff_reloc_out): New functions.
1438 * coffcode.h (coff_set_alignment_hook): Replace define with
1439 new function.
1440 (symname_in_debug_hook): Likewise.
1441 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
1442 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
1443 * elf.c (assign_file_positions_except_relocs): Test
1444 elf_backend_allow_non_load_phdr for NULL.
1445 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
1446 _bfd_elf_link_omit_section_dynsym. Update uses.
1447 (_bfd_elf_omit_section_dynsym_all): New function.
1448 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
1449 (_bfd_elf_omit_section_dynsym_default): Declare.
1450 (_bfd_elf_omit_section_dynsym_all): Declare.
1451 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
1452 (_bfd_nolink_bfd_get_relocated_section_contents),
1453 (_bfd_nolink_bfd_lookup_section_flags),
1454 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
1455 (_bfd_nolink_bfd_link_hash_table_create),
1456 (_bfd_nolink_bfd_link_just_syms),
1457 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
1458 (_bfd_nolink_bfd_link_split_section),
1459 (_bfd_nolink_section_already_linked),
1460 (_bfd_nolink_bfd_define_common_symbol),
1461 (_bfd_nolink_bfd_define_start_stop): New functions.
1462 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
1463 (_bfd_norelocs_bfd_reloc_name_lookup),
1464 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
1465 * section.c (_bfd_nowrite_set_section_contents): New function.
1466 * syms.c (_bfd_nosymbols_canonicalize_symtab),
1467 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
1468 (_bfd_nosymbols_get_symbol_version_string),
1469 (_bfd_nosymbols_bfd_is_local_label_name),
1470 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
1471 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
1472 (_bfd_nosymbols_bfd_make_debug_symbol),
1473 ( _bfd_nosymbols_read_minisymbols),
1474 ( _bfd_nosymbols_minisymbol_to_symbol),
1475 (_bfd_nodynamic_get_synthetic_symtab): New functions.
1476 * libbfd-in.h: Declare new functions. Update existing defines,
1477 removing casts.
1478 * aix386-core.c: Update to use new hooks. Formatting.
1479 * aout-adobe.c: Likewise.
1480 * aout-arm.c: Likewise.
1481 * aout-target.h: Likewise.
1482 * aout-tic30.c: Likewise.
1483 * aoutf1.h: Likewise.
1484 * binary.c: Likewise.
1485 * bout.c: Likewise.
1486 * cisco-core.c: Likewise.
1487 * coff-alpha.c: Likewise.
1488 * coff-i386.c: Likewise.
1489 * coff-i860.c: Likewise.
1490 * coff-i960.c: Likewise.
1491 * coff-ia64.c: Likewise.
1492 * coff-mips.c: Likewise.
1493 * coff-ppc.c: Likewise.
1494 * coff-rs6000.c: Likewise.
1495 * coff-sh.c: Likewise.
1496 * coff-tic30.c: Likewise.
1497 * coff-tic54x.c: Likewise.
1498 * coff-x86_64.c: Likewise.
1499 * coff64-rs6000.c: Likewise.
1500 * coffcode.h: Likewise.
1501 * elf-m10300.c: Likewise.
1502 * elf32-cr16.c: Likewise.
1503 * elf32-lm32.c: Likewise.
1504 * elf32-m32r.c: Likewise.
1505 * elf32-metag.c: Likewise.
1506 * elf32-score.c: Likewise.
1507 * elf32-score7.c: Likewise.
1508 * elf32-tilepro.c: Likewise.
1509 * elf32-xstormy16.c: Likewise.
1510 * elf32-xtensa.c: Likewise.
1511 * elf64-alpha.c: Likewise.
1512 * elf64-hppa.c: Likewise.
1513 * elf64-ia64-vms.c: Likewise.
1514 * elf64-mmix.c: Likewise.
1515 * elf64-sh64.c: Likewise.
1516 * elfnn-ia64.c: Likewise.
1517 * elfxx-sparc.c: Likewise.
1518 * elfxx-target.h: Likewise.
1519 * elfxx-tilegx.c: Likewise.
1520 * elfxx-x86.h: Likewise.
1521 * hp300hpux.c: Likewise.
1522 * hppabsd-core.c: Likewise.
1523 * hpux-core.c: Likewise.
1524 * i386msdos.c: Likewise.
1525 * i386os9k.c: Likewise.
1526 * ieee.c: Likewise.
1527 * ihex.c: Likewise.
1528 * irix-core.c: Likewise.
1529 * libaout.h: Likewise.
1530 * libecoff.h: Likewise.
1531 * mach-o-target.c: Likewise.
1532 * mach-o.c: Likewise.
1533 * mipsbsd.c: Likewise.
1534 * mmo.c: Likewise.
1535 * netbsd-core.c: Likewise.
1536 * nlm-target.h: Likewise.
1537 * oasys.c: Likewise.
1538 * osf-core.c: Likewise.
1539 * pdp11.c: Likewise.
1540 * pe-mips.c: Likewise.
1541 * pe-x86_64.c: Likewise.
1542 * pef.c: Likewise.
1543 * plugin.c: Likewise.
1544 * ppcboot.c: Likewise.
1545 * ptrace-core.c: Likewise.
1546 * sco5-core.c: Likewise.
1547 * som.c: Likewise.
1548 * sparclynx.c: Likewise.
1549 * srec.c: Likewise.
1550 * tekhex.c: Likewise.
1551 * trad-core.c: Likewise.
1552 * verilog.c: Likewise.
1553 * versados.c: Likewise.
1554 * vms-alpha.c: Likewise.
1555 * vms-lib.c: Likewise.
1556 * wasm-module.c: Likewise.
1557 * xsym.c: Likewise.
1558 * libbfd.h: Regenerate.
1559
2a0d9853
JW
15602018-02-15 Jim Wilson <jimw@sifive.com>
1561
09ca4b9d
JW
1562 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
1563 symbols whose section address is zero.
1564
2a0d9853
JW
1565 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
1566 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
1567 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
1568 Add %X%P to error messages.
1569
e513bd38
EB
15702018-02-15 Eric Botcazou <ebotcazou@adacore.com>
1571
1572 PR ld/22832
1573 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
1574 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
1575 and assert that the result of the call is not NULL.
1576
12ef3f5a
NC
15772018-02-14 Nick Clifton <nickc@redhat.com>
1578
1579 PR 22823
1580 Revert previous delta. Add extra casts to avoid compile time
1581 warnings instead.
1582 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
1583 cast to avoid warning from gcc v8 compiler.
1584 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
1585 (_bfd_generic_bfd_set_private_flags): Likewise.
1586 (_bfd_generic_bfd_copy_private_section_data): Likewise.
1587 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
1588 (_bfd_generic_bfd_copy_private_header_data): Likewise.
1589 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
1590 (_bfd_noarchive_construct_extended_name_table): Likewise.
1591 (_bfd_noarchive_truncate_arname): Likewise.
1592 (_bfd_noarchive_write_ar_hdr): Likewise.
1593 (_bfd_noarchive_get_elt_at_index): Likewise.
1594 (_bfd_nosymbols_canonicalize_symtab): Likewise.
1595 (_bfd_nosymbols_print_symbol): Likewise.
1596 (_bfd_nosymbols_get_symbol_info): Likewise.
1597 (_bfd_nosymbols_get_symbol_version_string): Likewise.
1598 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
1599 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
1600 (_bfd_nosymbols_get_lineno): Likewise.
1601 (_bfd_nosymbols_find_nearest_line): Likewise.
1602 (_bfd_nosymbols_find_line): Likewise.
1603 (_bfd_nosymbols_find_inliner_info): Likewise.
1604 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
1605 (_bfd_nosymbols_read_minisymbols): Likewise.
1606 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
1607 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
1608 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
1609 (_bfd_nowrite_set_arch_mach): Likewise.
1610 (_bfd_nowrite_set_section_contents): Likewise.
1611 (_bfd_nolink_sizeof_headers): Likewise.
1612 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
1613 (_bfd_nolink_bfd_relax_section): Likewise.
1614 (_bfd_nolink_bfd_gc_sections): Likewise.
1615 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
1616 (_bfd_nolink_bfd_merge_sections): Likewise.
1617 (_bfd_nolink_bfd_is_group_section): Likewise.
1618 (_bfd_nolink_bfd_discard_group): Likewise.
1619 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
1620 (_bfd_nolink_bfd_link_add_symbols): Likewise.
1621 (_bfd_nolink_bfd_link_just_syms): Likewise.
1622 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
1623 (_bfd_nolink_bfd_final_link): Likewise.
1624 (_bfd_nolink_bfd_link_split_section): Likewise.
1625 (_bfd_nolink_section_already_linked): Likewise.
1626 (_bfd_nolink_bfd_define_common_symbol): Likewise.
1627 (_bfd_nolink_bfd_define_start_stop): Likewise.
1628 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
1629 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
1630 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
1631 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
1632 * libbfd.c (bfd_false_any): Delete.
1633 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
1634 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
1635 * libbfd.h (extern): Regenerate
1636 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
1637 cast to avoid warning from gcc v8 compiler.
1638 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
1639 * binary.c (binary_get_symbol_info): Likewise.
1640 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
1641 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1642 * coffcode.h (coff_set_alignment_hook): Likewise.
1643 (symname_in_debug_hook): Likewise.
1644 (bfd_coff_backend_data bigobj_swap_table): Likewise.
1645 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
1646 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
1647 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
1648 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
1649 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
1650 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
1651 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
1652 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
1653 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
1654 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
1655 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
1656 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
1657 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
1658 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
1659 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
1660 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
1661 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
1662 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
1663 (bfd_elfNN_bfd_set_private_flags): Likewise.
1664 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
1665 (elf_backend_init_index_section): Likewise.
1666 (elf_backend_allow_non_load_phdr): Likewise.
1667 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
1668 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
1669 * ieee.c (ieee_construct_extended_name_table): Likewise.
1670 (ieee_write_armap): Likewise.
1671 (ieee_write_ar_hdr): Likewise.
1672 (ieee_bfd_is_target_special_symbol): Likewise.
1673 * ihex.c (ihex_canonicalize_symtab): Likewise.
1674 (ihex_bfd_is_target_special_symbol): Likewise.
1675 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
1676 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
1677 (_bfd_ecoff_set_alignment_hook): Likewise.
1678 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
1679 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
1680 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
1681 * oasys.c (oasys_construct_extended_name_table): Likewise.
1682 (oasys_write_armap): Likewise.
1683 (oasys_write_ar_hdr): Likewise.
1684 (oasys_bfd_is_target_special_symbol): Likewise.
1685 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
1686 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
1687 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
1688 * som.c (som_bfd_is_target_special_symbol): Likewise.
1689 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
1690 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
1691 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
1692 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
1693 (versados_bfd_reloc_name_lookup): Likewise.
1694 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
1695 (vms_bfd_define_start_stop): Likewise.
1696 (alpha_vms_bfd_is_target_special_symbol): Likewise.
1697 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
1698 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
1699
451875b4
L
17002018-02-14 H.J. Lu <hongjiu.lu@intel.com>
1701
1702 PR ld/22842
1703 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
1704 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
1705 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
1706 R_X86_64_PC32 reloc against dynamic function in data section.
1707 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
1708 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
1709 against dynamic function in data section.
1710 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
1711 function address only if pcrel_plt is true.
1712 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
1713 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
1714 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
1715 PC-relative relocation against a function definition in data
1716 secton in PIE. Remove the obsolete comments.
1717 (elf_x86_link_hash_table): Add pcrel_plt.
1718
1031c264
L
17192018-02-13 H.J. Lu <hongjiu.lu@intel.com>
1720
1721 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
1722 instead of bfd_link_pic, for building shared library.
1723
bd7ab16b
L
17242018-02-13 H.J. Lu <hongjiu.lu@intel.com>
1725
1726 PR gas/22791
1727 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
1728 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
1729 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
1730 against protected function in shared object.
1731
80c96350
ST
17322018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
1733
1734 PR 22828
1735 * po/ru.po: Fix typo in Russian translation.
1736
87993319
MR
17372018-02-13 Maciej W. Rozycki <macro@mips.com>
1738
1739 * wasm-module.c (wasm_scan_name_function_section): Rename
1740 `index' local variable to `idx'.
1741
68d20676
NC
17422018-02-13 Nick Clifton <nickc@redhat.com>
1743
1744 PR 22823
1745 Fix compile time warnings generated by gcc version 8.
1746 * libbfd-in.h: Remove extraneous text from prototypes.
1747 Add prototypes for bfd_false_any, bfd_true_any,
1748 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
1749 bfd_n1_any, bfd_void_any.
1750 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
1751 function.
1752 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
1753 (_bfd_generic_bfd_set_private_flags): Likewise.
1754 (_bfd_generic_bfd_copy_private_section_data): Likewise.
1755 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
1756 (_bfd_generic_bfd_copy_private_header_data): Likewise.
1757 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
1758 (_bfd_noarchive_construct_extended_name_table): Likewise.
1759 (_bfd_noarchive_truncate_arname): Likewise.
1760 (_bfd_noarchive_write_ar_hdr): Likewise.
1761 (_bfd_noarchive_get_elt_at_index): Likewise.
1762 (_bfd_nosymbols_canonicalize_symtab): Likewise.
1763 (_bfd_nosymbols_print_symbol): Likewise.
1764 (_bfd_nosymbols_get_symbol_info): Likewise.
1765 (_bfd_nosymbols_get_symbol_version_string): Likewise.
1766 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
1767 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
1768 (_bfd_nosymbols_get_lineno): Likewise.
1769 (_bfd_nosymbols_find_nearest_line): Likewise.
1770 (_bfd_nosymbols_find_line): Likewise.
1771 (_bfd_nosymbols_find_inliner_info): Likewise.
1772 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
1773 (_bfd_nosymbols_read_minisymbols): Likewise.
1774 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
1775 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
1776 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
1777 (_bfd_nowrite_set_arch_mach): Likewise.
1778 (_bfd_nowrite_set_section_contents): Likewise.
1779 (_bfd_nolink_sizeof_headers): Likewise.
1780 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
1781 (_bfd_nolink_bfd_relax_section): Likewise.
1782 (_bfd_nolink_bfd_gc_sections): Likewise.
1783 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
1784 (_bfd_nolink_bfd_merge_sections): Likewise.
1785 (_bfd_nolink_bfd_is_group_section): Likewise.
1786 (_bfd_nolink_bfd_discard_group): Likewise.
1787 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
1788 (_bfd_nolink_bfd_link_add_symbols): Likewise.
1789 (_bfd_nolink_bfd_link_just_syms): Likewise.
1790 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
1791 (_bfd_nolink_bfd_final_link): Likewise.
1792 (_bfd_nolink_bfd_link_split_section): Likewise.
1793 (_bfd_nolink_section_already_linked): Likewise.
1794 (_bfd_nolink_bfd_define_common_symbol): Likewise.
1795 (_bfd_nolink_bfd_define_start_stop): Likewise.
1796 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
1797 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
1798 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
1799 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
1800 * libbfd.c (bfd_false_any): New function. Like bfd_false but
1801 accepts one or more arguments.
1802 (bfd_true_any): Likewise.
1803 (bfd_nullvoidptr_any): Likewise.
1804 (bfd_0_any): Likewise.
1805 (bfd_0u_any): Likewise.
1806 (bfd_0l_any): Likewise.
1807 (_bfd_n1_any): Likewise.
1808 (bfd_void_any): Likewise.
1809 * libbfd.h (extern): Regenerate
1810 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
1811 based dummy function.
1812 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
1813 * binary.c (binary_get_symbol_info): Likewise.
1814 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
1815 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1816 * coffcode.h (coff_set_alignment_hook): Likewise.
1817 (symname_in_debug_hook): Likewise.
1818 (bfd_coff_backend_data bigobj_swap_table): Likewise.
1819 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
1820 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
1821 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
1822 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
1823 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
1824 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
1825 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
1826 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
1827 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
1828 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
1829 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
1830 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
1831 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
1832 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
1833 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
1834 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
1835 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
1836 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
1837 (bfd_elfNN_bfd_set_private_flags): Likewise.
1838 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
1839 (elf_backend_init_index_section): Likewise.
1840 (elf_backend_allow_non_load_phdr): Likewise.
1841 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
1842 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
1843 * ieee.c (ieee_construct_extended_name_table): Likewise.
1844 (ieee_write_armap): Likewise.
1845 (ieee_write_ar_hdr): Likewise.
1846 (ieee_bfd_is_target_special_symbol): Likewise.
1847 * ihex.c (ihex_canonicalize_symtab): Likewise.
1848 (ihex_bfd_is_target_special_symbol): Likewise.
1849 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
1850 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
1851 (_bfd_ecoff_set_alignment_hook): Likewise.
1852 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
1853 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
1854 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
1855 * oasys.c (oasys_construct_extended_name_table): Likewise.
1856 (oasys_write_armap): Likewise.
1857 (oasys_write_ar_hdr): Likewise.
1858 (oasys_bfd_is_target_special_symbol): Likewise.
1859 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
1860 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
1861 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
1862 * som.c (som_bfd_is_target_special_symbol): Likewise.
1863 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
1864 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
1865 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
1866 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
1867 (versados_bfd_reloc_name_lookup): Likewise.
1868 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
1869 (vms_bfd_define_start_stop): Likewise.
1870 (alpha_vms_bfd_is_target_special_symbol): Likewise.
1871 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
1872 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
1873 * elf32-arc.c (get_replace_function): Assign replacement function
1874 to func pointer.
1875 * elf32-i370.c (i370_noop): Update prototype.
1876
6e5e9d58
AM
18772018-02-13 Alan Modra <amodra@gmail.com>
1878
1879 PR 22836
1880 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
1881 relocation sections. If size reduces to just the flag word,
1882 remove that too and mark with SEC_EXCLUDE.
1883 * elflink.c (bfd_elf_final_link): Strip empty group sections.
1884
f2731e0c
AM
18852018-02-13 Alan Modra <amodra@gmail.com>
1886
1887 PR 22829
1888 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
1889 PT_GNU_RELRO setup.
1890
830db048
ZF
18912018-02-12 Zebediah Figura <z.figura12@gmail.com>
1892
1893 * i386msdos.c (msdos_mkobject); New function.
1894 (msdos_object_p): New function.
1895 (i386_msdos_vec): Use msdos_object_p as the check_format
1896 function.
1897 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
1898 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
1899 IMAGE_NT_SIGNATURE.
1900 * peXXigen.c: Likewise.
1901 * coff-ia64.c: Likewise.
1902
94fe5757
NC
19032018-02-12 Nick Clifton <nickc@redhat.com>
1904
1905 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
1906 assignment.
0b8683b7 1907 * elf32-arc.c (elf_arc_relocate_section): Likewise.
94fe5757 1908
d805612e 19092018-02-09 Eric Botcazou <ebotcazou@adacore.com>
a8735c82
EB
1910
1911 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
1912 (sparc_elf_append_rela): Assert that there is enough room in section.
1913 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
1914 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
1915 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
1916 For a symbol subject to a GOT relocation, reserve a slot in the
1917 relocation section if the symbol isn't dynamic and we are in PIC mode.
1918 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
1919 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
1920 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
1921 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
1922 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
1923 resolved_to_zero. Do not generate a dynamic GOT relocation for an
1924 undefined weak symbol with non-default visibility. Remove superfluous
1925 'else' and fix formatting.
1926
3b4c3844
L
19272018-02-09 H.J. Lu <hongjiu.lu@intel.com>
1928
1929 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
1930 is_solaris.
1931 (i386_elf32_sol2_vec): Don't declare.
1932 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
1933 Don't set need_global_offset_table.
1934 (elf_i386_solaris_arch_bed): New.
1935 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
1936 Solaris.
1937 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
1938 target_os != is_nacl instead of target_os == is_normal.
1939 (x86_64_elf64_sol2_vec): Don't declare.
1940 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
1941 is_nacl instead of target_os == is_normal. Don't set
1942 need_global_offset_table.
1943 (elf_x86_64_solaris_arch_bed): New.
1944 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
1945 Solaris.
1946 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
1947 _GLOBAL_OFFSET_TABLE_ for Solaris.
1948 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
1949 need_global_offset_table.
1950 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
1951 (elf_x86_link_hash_table): Remove need_global_offset_table.
1952 (elf_x86_init_table): Likewise.
1953
15b23f36
L
19542018-02-08 H.J. Lu <hongjiu.lu@intel.com>
1955
1956 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
1957 Remove prototype.
1958 (i386_elf32_sol2_vec): Declared.
1959 (elf_i386_link_setup_gnu_properties): Set
1960 need_global_offset_table with info->output_bfd->xvec.
1961 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
1962 Remove prototype.
1963 (x86_64_elf64_sol2_vec): Declared.
1964 (elf_x86_64_link_setup_gnu_properties): Set
1965 need_global_offset_table with info->output_bfd->xvec.
1966
dc11dea2
L
19672018-02-08 H.J. Lu <hongjiu.lu@intel.com>
1968
1969 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
1970 New prototype.
1971 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
1972 for Solaris.
1973 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
1974 New prototype.
1975 (elf_x86_64_link_setup_gnu_properties): Set
1976 need_global_offset_table for Solaris.
1977 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
1978 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
1979 (_bfd_x86_elf_link_setup_gnu_properties): Copy
1980 need_global_offset_table.
1981 * elfxx-x86.h (elf_x86_link_hash_table): Add
1982 need_global_offset_table.
1983 (elf_x86_init_table): Likewise.
1984
3f48fe4a
JW
19852018-02-08 Jim Wilson <jimw@sifive.com>
1986
1987 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
1988 change.
1989
ef135d43
NC
19902018-02-08 Nick Clifton <nickc@redhat.com>
1991
1992 PR 22788
1993 * elf.c (elf_parse_notes): Reject notes with excessuively large
1994 alignments.
1995
407aa07c
AM
19962018-02-07 Alan Modra <amodra@gmail.com>
1997
1998 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
1999 * elf32-ppc.c: Remove speculation barrier support.
2000 * elf32-ppc.h: Likewise.
2001 * elf64-ppc.c: Likewise.
2002 * elf64-ppc.h: Likewise.
2003
ed01220c
JW
20042018-02-06 Jim Wilson <jimw@sifive.com>
2005
2006 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
2007 callback to report an error.
2008
c20c30f6
EB
20092018-02-06 Eric Botcazou <ebotcazou@adacore.com>
2010
2011 PR ld/22263
2012 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
2013 into call to !bfd_link_executable and tidy up.
2014 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
2015 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
2016 !bfd_link_executable.
2017 <R_SPARC_TLS_IE_HI22>: Likewise.
2018 <GOT relocations>: Remove useless code, tidy and merge related blocks.
2019 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
2020 !bfd_link_executable.
2021 <R_SPARC_WPLT30>: Tidy up.
2022 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
2023 !bfd_link_executable.
2024 (allocate_dynrelocs): Likewise.
2025 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
2026 <R_SPARC_TLS_GD_HI22>: Merge into...
2027 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
2028 sparc_elf_tls_transition and remove redundant code.
2029 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
2030 !bfd_link_executable.
2031 <R_SPARC_TLS_LDO_HIX22>: Likewise.
2032 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
2033 <R_SPARC_TLS_LDM_CALL>: Likewise.
2034 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
2035 <R_SPARC_TLS_GD_ADD>: Likewise.
2036 <R_SPARC_TLS_LDM_ADD>: Likewise.
2037 <R_SPARC_TLS_LDO_ADD>: Likewise.
2038 <R_SPARC_TLS_IE_LD>: Likewise.
2039
46d09186
NC
20402018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
2041
2042 PR 22789
2043 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
2044 functions failed to find the function name, try the generic elf
2045 find function instead.
2046
8278e7ce
SDJ
20472018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
2048
2049 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
2050 'memcpy' instead of 'strncpy' when writing the magic number.
2051
64e234d4
NC
20522018-02-06 Nick Clifton <nickc@redhat.com>
2053
2054 PR 22794
2055 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
2056 section before attempting to read it in.
2057 (bfd_get_alt_debug_link_info): Likewise.
2058
422f3d3d
PC
20592018-02-06 Paul Carroll <pcarroll@codesourcery.com>
2060
2061 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
2062 line information in addition to name, if they can be found.
2063
279b2f94
RL
20642018-02-05 Renlin Li <renlin.li@arm.com>
2065
2066 PR ld/22764
2067 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
2068 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
2069 check for writeable section as well.
2070
cd048363
L
20712018-02-05 H.J. Lu <hongjiu.lu@intel.com>
2072
2073 PR ld/22782
2074 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
2075 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
2076 undefined weak symbol to 0.
2077 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
2078 if _GLOBAL_OFFSET_TABLE_ is referenced.
2079 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
2080 got_referenced instead of ref_regular_nonweak. Remove the
2081 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
2082 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
2083
e65b1a78
MR
20842018-02-05 Maciej W. Rozycki <macro@mips.com>
2085
2086 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
2087 initialize `hi_reloc'.
2088
2d6dda71
MR
20892018-02-05 Maciej W. Rozycki <macro@mips.com>
2090
2091 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
2092 SHT_MIPS_REGINFO sections don't assert the correct size and
2093 report an error instead.
2094
75506100
MR
20952018-02-05 Maciej W. Rozycki <macro@mips.com>
2096
2097 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
2098 status from `->elf_backend_section_processing'.
2099
7f02625e
JW
21002018-02-02 Jim Wilson <jimw@sifive.com>
2101
2102 PR ld/22756
2103 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
2104 If link_info->wrap_hash, check for a duplicate symbol and ignore.
2105 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
2106 Pass new argument to riscv_relax_delete_bytes.
2107 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
2108 ATTRIBUTE_UNUSED from link_info parameter.
2109
d830549d
AM
21102018-02-02 Alan Modra <amodra@gmail.com>
2111
2112 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
2113 emitted for toc sequence optimization. Set and use "howto" later.
2114
e99955cd
SM
21152018-02-01 Simon Marchi <simon.marchi@ericsson.com>
2116
2117 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
2118 arithmetic on NULL pointer.
2119 * elflink.c (_bfd_elf_archive_symbol_lookup,
2120 elf_link_add_archive_symbols): Likewise.
2121
bf3077a6
MM
21222018-01-31 Michael Matz <matz@suse.de>
2123
2124 * elflink.c (bfd_elf_define_start_stop): Fix check of
2125 def_dynamic.
2126
823143c6
L
21272018-01-31 H.J. Lu <hongjiu.lu@intel.com>
2128
2129 PR ld/21964
2130 * elflink.c (bfd_elf_define_start_stop): Check if __start and
2131 __stop symbols are referenced by shared objects.
2132
76cb3a89
AM
21332018-01-30 Alan Modra <amodra@gmail.com>
2134
2135 PR 22758
2136 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
2137 segment when demand paged with lma on the same page. Test this
2138 before load/non-load, executable/non-executable,
2139 writable/non-writable tests and simplify. Delete bogus relro
2140 condition in writable/non-writable test. Delete outdated
2141 comment. Formatting.
2142
36b8fda5
AM
21432018-01-30 Alan Modra <amodra@gmail.com>
2144
2145 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
2146 symbols dynamic.
2147
eb77f6a4
AM
21482018-01-29 Alan Modra <amodra@gmail.com>
2149
2150 PR 22741
2151 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
2152 range before converting to a symbol table pointer.
2153
7d73b4c8
NC
21542018-01-27 Nick Clifton <nickc@redhat.com>
2155
2156 * po/ru.po: Updated Russian translation.
2157
32253bb7
AM
21582018-01-26 Alan Modra <amodra@gmail.com>
2159
2160 * elflink.c (bfd_elf_define_start_stop): Override symbols when
2161 they are defined dynamically.
2162
ba21f564
AM
21632018-01-26 Alan Modra <amodra@gmail.com>
2164
2165 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
2166 .branch_lt changes size.
2167
38e64b0e
AM
21682018-01-25 Alan Modra <amodra@gmail.com>
2169
2170 PR 22746
2171 * elfcode.h (elf_object_p): Avoid integer overflow.
2172
bb363086
EB
21732018-01-25 Eric Botcazou <ebotcazou@adacore.com>
2174
2175 PR ld/22727
2176 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2177 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
2178
2179 Revert
2180 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
2181
2182 PR ld/22263
2183 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
2184 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
2185 bfd_link_executable for TLS check.
2186 (_bfd_sparc_elf_check_relocs): Likewise.
2187 (allocate_dynrelocs): Likewise.
2188 (_bfd_sparc_elf_relocate_section): Likewise.
2189
1daf502a
RL
21902018-01-24 Renlin Li <renlin.li@arm.com>
2191
2192 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
2193 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2194 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2195 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2196 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2197 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
2198 (_bfd_aarch64_elf_resolve_relocation): Likewise.
2199
32247401
RL
22002018-01-24 Renlin Li <renlin.li@arm.com>
2201
2202 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
2203 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
2204 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
2205 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
2206 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
2207 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2208 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2209 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2210 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2211 * bfd-in2.h: Regenerate.
2212 * libbfd.h: Regenerate.
2213
1c5e4ee9
MR
22142018-01-23 Maciej W. Rozycki <macro@mips.com>
2215
2216 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
2217 `mips_elf32_section_processing' comment reference.
2218
8a1b824a
L
22192018-01-20 H.J. Lu <hongjiu.lu@intel.com>
2220
2221 PR ld/22721
2222 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
2223 versioned __tls_get_addr symbol.
2224
ee3fbc1e
NC
22252018-01-19 Nick Clifton <nickc@redhat.com>
2226
2227 * po/fr.po: Updated French translation.
2228
691d2e9a
AM
22292018-01-18 Alan Modra <amodra@gmail.com>
2230
2231 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
2232 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
2233 (ppc64_elf_build_stubs): Likewise.
2234
4bfce128
NC
22352018-01-17 Nick Clifton <nickc@redhat.com>
2236
2237 * po/ru.po: Updated Russian translation.
2238 * po/uk/po: Updated Ukranian translation.
2239
c75bc4f7
AM
22402018-01-17 Alan Modra <amodra@gmail.com>
2241
2242 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
2243
1be5d8d3
AM
22442018-01-17 Alan Modra <amodra@gmail.com>
2245
2246 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
2247 (CRSETEQ, BEQCTRM): Define.
2248 (is_nonpic_glink_stub): Don't check bctr.
2249 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2250 (ppc_elf_relax_section): Size speculation barrier.
2251 (output_bctr): New function.
2252 (write_glink_stub): Use output_bctr.
2253 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
2254 (ppc_elf_finish_dynamic_symbol): Likewise.
2255 (ppc_elf_finish_dynamic_sections): Use output_bctr.
2256 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
2257 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
2258 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
2259 (size_global_entry_stubs): Handle speculation barrier sizing.
2260 (plt_stub_size): Likewise.
2261 (output_bctr): New function.
2262 (build_plt_stub, build_tls_get_addr_stub): Output speculation
2263 barrier.
2264 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
2265 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
2266 (build_global_entry_stubs): Output speculation barrier.
2267 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
2268 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
2269
9e390558
AM
22702018-01-17 Alan Modra <amodra@gmail.com>
2271
2272 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
2273 __tls_get_addr_opt, and alignment sizing.
2274 (TLS_GET_ADDR_GLINK_SIZE): Delete.
2275 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
2276 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
2277 or 8 insns.
2278 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
2279 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
2280 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
2281 by PLT reloc count.
2282 (write_glink_stub): Handle __tls_get_addr_opt stub.
2283 Pad out to size given by GLINK_ENTRY_SIZE.
2284 (ppc_elf_relocate_section): Adjust write_glink_stub call.
2285 (ppc_elf_finish_dynamic_symbol): Likewise.
2286 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
2287 insn array since so many need rewriting.
2288 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
2289 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
2290 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
2291 nops. Adjust all uses.
2292 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
2293 in glink_vma calculation.
2294 (struct ppc_link_hash_table): Add global_entry section pointer.
2295 (create_linkage_sections): Create separate section for global
2296 entry stubs.
2297 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
2298 (size_global_entry_stubs): Handle sizing for aligned stubs.
2299 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
2300 and don't stash end of glink branch table in rawsize.
2301 (ppc_build_one_stub): Rewrite stub size calculations.
2302 (build_global_entry_stubs): Use new section.
2303 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
2304 Build lazy link stubs out to end of section. Build global entry
2305 stubs in new section.
2306
616dcb87
NC
23072018-01-15 Nick Clifton <nickc@redhat.com>
2308
2309 * po/uk.po: Updated Ukranian translation.
2310
3957a496
NC
23112018-01-13 Nick Clifton <nickc@redhat.com>
2312
2313 * po/bfd.pot: Regenerated.
2314
769c7ea5
NC
23152018-01-13 Nick Clifton <nickc@redhat.com>
2316
2317 * version.m4: Bump version to 2.30.51
2318 * configure: Regenerate.
2319
faf766e3
NC
23202018-01-13 Nick Clifton <nickc@redhat.com>
2321
2322 2.30 branch created.
2323
564e11c9
JW
23242018-01-12 Jens Widell <jl@opera.com>
2325
2326 * elf.c (setup_group): Optimize search for group by remembering
2327 last found group and restarting search at that index.
2328 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
2329
a78eea16
AM
23302018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
2331
2332 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
2333 bfd_link_common_skip_none in switch.
2334
87e79a65
AM
23352018-01-12 Alan Modra <amodra@gmail.com>
2336
2337 PR ld/22649
2338 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
2339 references on forced local symbols.
2340
58807c48
VI
23412018-01-12 Vlad Ivanov <vlad@ivanov.email>
2342
2343 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
2344 .reginfo section has wrong size.
2345
2888249f
L
23462018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2347
2348 PR ld/22393
2349 * elf.c (_bfd_elf_map_sections_to_segments): When generating
2350 separate code and read-only data LOAD segments, create a new
2351 LOAD segment if the previous section contains text and the
2352 current section doesn't or vice versa. Don't put a writable
2353 section in a read-only segment if there is a RELRO segment.
2354
d664fd41
L
23552018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2356
2357 PR ld/22649
2358 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
2359 references on forced local symbols.
2360
8b6f4cd3
L
23612018-01-11 H.J. Lu <hongjiu.lu@intel.com>
2362
2363 PR ld/22677
2364 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
2365 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
2366
9c70c522 23672018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
6cef73f9
KLC
2368
2369 PR 22662
2370 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
2371
ddb2bbcf
JB
23722018-01-03 John Baldwin <jhb@FreeBSD.org>
2373
2374 * elf.c (elfcore_grok_freebsd_note): Handle
2375 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
2376 NT_FREEBSD_PROCSTAT_VMMAP.
2377
219d1afa
AM
23782018-01-03 Alan Modra <amodra@gmail.com>
2379
2380 Update year range in copyright notice of all files.
2381
1e563868 2382For older changes see ChangeLog-2017
3499769a 2383\f
1e563868 2384Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
2385
2386Copying and distribution of this file, with or without modification,
2387are permitted in any medium without royalty provided the copyright
2388notice and this notice are preserved.
2389
2390Local Variables:
2391mode: change-log
2392left-margin: 8
2393fill-column: 74
2394version-control: never
2395End:
This page took 0.448553 seconds and 4 git commands to generate.