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