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