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