Automatic date update in version.in
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
1ced1a5f
MR
12018-06-21 Maciej W. Rozycki <macro@mips.com>
2
3 * elfxx-mips.c (_bfd_mips_elf_compact_eh_encoding)
4 (_bfd_mips_elf_cant_unwind_opcode): Correct formatting.
5
334cd8a7
MR
62018-06-21 Maciej W. Rozycki <macro@mips.com>
7
8 * elfxx-mips.c (_bfd_mips_post_process_headers): Keep
9 EI_ABIVERSION setting together.
10
bb29b84d
MR
112018-06-21 Maciej W. Rozycki <macro@mips.com>
12
13 * elfxx-mips.c (MIPS_LIBC_ABI_DEFAULT, MIPS_LIBC_ABI_MIPS_PLT)
14 (MIPS_LIBC_ABI_UNIQUE, MIPS_LIBC_ABI_MIPS_O32_FP64)
15 (MIPS_LIBC_ABI_MAX): New enumeration constants.
16 (_bfd_mips_post_process_headers): Use them in place of magic
17 numbers.
18
25eb8346
JW
192018-06-21 Jim Wilson <jimw@sifive.com>
20
21 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Update comment.
22 Use SYMBOL_REFERENCES_LOCAL. Add asserts for h->got.offset.
23
d388f643
AM
242018-06-21 Alan Modra <amodra@gmail.com>
25
26 * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
27 * doc/Makefile.in: Regenerate.
28
b939d8a0
RL
292018-06-20 Renlin Li <renlin.li@arm.com>
30
31 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use PG_OFFSET
32 to resolve BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
33 BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
34 BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
35 BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC,
36 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
37 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
38 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
39 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
40
6077de06
NC
412018-06-20 Nick Clifton <nickc@redhat.com>
42
43 PR 23316
44 * opncls.c (get_build_id): Check for a negative or excessive data
45 size in the build-id note.
46
c6643fcc
NC
472018-06-20 Nick Clifton <nickc@redhat.com>
48
49 PR 23299
50 * mach-o.c (cputype): New function.
51 (cpusubtype): New function.
52 (bfd_mach_o_bfd_print_private_data): New function. Dispalys the
53 values in the MACH-O file header.
54 (bfd_mach_o_bfd_copy_private_header_data): Copy the cputype and
55 cpusubtype fields from the input bfd's mach-o header to the output
56 bfd.
57 * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data):
58 Redefine to bfd_mach_o_bfd_print_private_data.
59 * mach-o.h (bfd_mach_o_bfd_print_private_bfd_data): Prototype.
60
789ff5b6
MR
612018-06-19 Maciej W. Rozycki <macro@mips.com>
62
63 PR ld/22966
64 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Verify the
65 `.got.plt' entry referred is in range.
66 (mips_finish_exec_plt): Correct the range check for `.got.plt'
67 start. Replace the assertion used for that with a proper error
68 message.
69
6a382bce
MR
702018-06-19 Maciej W. Rozycki <macro@mips.com>
71
72 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Fix
73 formatting.
74
d0ac1c44
SM
752018-06-19 Simon Marchi <simon.marchi@ericsson.com>
76
77 * Makefile.am (AUTOMAKE_OPTIONS): Remove 1.11.
78 (INCLUDES): Rename to ...
79 (AM_CPPFLAGS): ... this.
80 * configure.ac: Remove AC_PREREQ.
81 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove 1.9, cygnus, add
82 info-in-builddir no-texinfo.tex.
83 (info_TEXINFOS): Rename bfd.texinfo to bfd.texi.
84 * doc/bfd.texinfo: Rename to ...
85 * doc/bfd.texi: ... this.
86 * Makefile.in: Re-generate.
87 * aclocal.m4: Re-generate.
88 * config.in: Re-generate.
89 * configure: Re-generate.
90 * doc/Makefile.in: Re-generate.
91
ed1299fe
M
922018-06-18 Mephi <mephi42@gmail.com>
93
94 PR 23297
95 * mach-o-x86-64.c (x86_64_howto_table): Add entry for
96 BFD_RELOC_MACH_O_X86_64_RELOC_TLV.
97 (bfd_mach_o_x86_64_canonicalize_one_reloc): Handle the new reloc.
98 (bfd_mach_o_x86_64_swap_reloc_out): Likewise.
99 * reloc.c (BFD_RELOC_MACH_O_X86_64_TV): New entry.
100 * bfd-in2.h: Regenerate.
101 * libbfd.h: Regenerate.
102
6f20c942
FS
1032018-06-14 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
104
105 * elfxx-mips.c (print_mips_ases): Add GINV extension.
106
1f6f5dba
L
1072018-06-14 H.J. Lu <hongjiu.lu@intel.com>
108
109 PR binutils/23267
110 * elf.c (_bfd_elf_get_symbol_version_string): Check if the first
111 symbol version is base version.
112
7f923b7f
AM
1132018-06-14 Alan Modra <amodra@gmail.com>
114
115 * elf-bfd.h (struct elf_link_hash_table): Add "dynamic_relocs".
116 * elflink.c (_bfd_elf_init_2_index_sections): Comment fix.
117 (_bfd_elf_add_dynamic_entry): Set "dynamic_relocs".
118 (_bfd_elf_link_renumber_dynsyms): Exclude all section symbols when
119 "dynamic_relocs" is not set.
120 * elfxx-mips.c (count_section_dynsyms): Likewise.
121
ff91d2f0
AM
1222018-06-14 Alan Modra <amodra@gmail.com>
123
124 PR 23282
125 * bfdio.c (bfd_seek): Optimize away seeks to current position.
126
730c3174
SE
1272018-06-13 Scott Egerton <scott.egerton@imgtec.com>
128 Faraz Shahbazker <Faraz.Shahbazker@mips.com>
129
130 * elfxx-mips.c (print_mips_ases): Add CRC.
131
ecf99cc0
L
1322018-06-08 H.J. Lu <hongjiu.lu@intel.com>
133
134 PR ld/23161
135 * elfxx-x86.c (elf_x86_hide_linker_defined): New function.
136 (_bfd_x86_elf_link_check_relocs): Use it to hide hidden
137 __bss_start, _end and _edata in shared libraries.
138
527278f3
AM
1392018-06-07 Alan Modra <amodra@gmail.com>
140
141 * elf32-tic6x.c (elf32_tic6x_check_relocs): Reference
142 __c6xabi_DSBT_BASE explicitly for R_C6000_SBR_* relocs.
143
5c4ce239
AM
1442018-06-05 Alan Modra <amodra@gmail.com>
145
146 * bfd.c (struct bfd): Update comment on "where" usage.
147 * bfdio.c (bfd_bwrite, bfd_stat): Use and update "iovec",
148 "iostream", and "where" from containing archive file. Return
149 error on NULL iovec.
150 (bfd_bread): Similarly, and return error attempted out of
151 bounds archive element access.
152 (bfd_tell, bfd_flush): Use and update "iovec", "iostream", and
153 "where" from containing archive file.
154 (bfd_seek): Likewise. Return error on NULL iovec. Don't
155 attempt to optimize away seeks. Don't paper over errors by
156 calling bfd_tell.
157 (bfd_get_mtime): Call bfd_stat rather than iovec->bstat.
158 (bfd_get_size): Likewise.
159 (bfd_mmap): Operate on and use iovec of containing archive
160 file. Return error on NULL iovec.
161 * cache.c (bfd_cache_lookup_worker): Abort if working on
162 archive element bfd.
163 (cache_bread_1): Delete bfd parameter, add FILE* parameter.
164 Don't ignore zero byte reads.
165 (cache_bread): Look up FILE* in cache here. Error on NULL
166 lookup.
167 (cache_bwrite): Rename "where" to "from".
168 (cache_bmmap): Don't handle archive elements.
169 * coffcode.h (coff_slurp_line_table): Exit early on zero
170 lineno count.
171 * bfd-in2.h: Regenerate.
172
27b07675
AM
1732018-06-05 Alan Modra <amodra@gmail.com>
174
175 PR 23254
176 * plugin.c (bfd_plugin_open_input): Allow for possibility of
177 nested archives. Open file again for plugin.
178 (try_claim): Don't save and restore file position. Close file
179 if not claimed.
180 * sysdep.h (O_BINARY): Define.
181
4b8e28c7
MF
1822018-06-04 Max Filippov <jcmvbkbc@gmail.com>
183
184 * elf32-xtensa.c (xtensa_read_table_entries): Make global.
185 (compute_fill_extra_space): Drop declaration. Rename function to
186 xtensa_compute_fill_extra_space.
187 (compute_ebb_actions, remove_dead_literal): Update references to
188 compute_fill_extra_space.
189
8255c61b
MF
1902018-06-04 Volodymyr Arbatov <arbatov@cadence.com>
191
192 * elf32-xtensa.c (elf32xtensa_separate_props): New global
193 variable.
194 (xtensa_add_names): New function.
195 (xtensa_property_section_name): Add new parameter
196 separate_sections, use it to choose property section name.
197 (xtensa_get_separate_property_section): New function.
198 (xtensa_get_property_section): Invoke
199 xtensa_get_separate_property_section to get individual property
200 section if it exists, common property section otherwise.
201 (xtensa_make_property_section): Pass elf32xtensa_separate_props
202 to xtensa_property_section_name.
203
95da9854
L
2042018-06-04 H.J. Lu <hongjiu.lu@intel.com>
205
206 PR binutils/23146
207 * bfd-in.h: Include "diagnostics.h".
208 * bfd-in2.h: Regenerated.
209 * elf32-arm.c (elf32_arm_nabi_write_core_note): Use
210 DIAGNOSTIC_PUSH, DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION and
211 DIAGNOSTIC_POP to silence GCC 8.1 warnings with
212 -Wstringop-truncation.
213 * elf32-ppc.c (ppc_elf_write_core_note): Likewse.
214 * elf32-s390.c (elf_s390_write_core_note): Likewse.
215 * elf64-ppc.c (ppc64_elf_write_core_note): Likewse.
216 * elf64-s390.c (elf_s390_write_core_note): Likewse.
217 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewse.
218
137b5cbd
JW
2192018-06-03 Jim Wilson <jimw@sifive.com>
220
cf7a5066
JW
221 PR ld/23244
222 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Check
223 for and handle an undefined weak with no PLT.
224
137b5cbd
JW
225 PR ld/22756
226 * elfnn-riscv.c (riscv_relax_delete_bytes): Add versioned_hidden check
227 to code that ignores duplicate symbols.
228
55e99962
L
2292018-06-01 H.J. Lu <hongjiu.lu@intel.com>
230
231 * version.m4: Bump version to 2.30.52
232 * configure: Regenerated.
233
030157d8
AM
2342018-06-01 Alan Modra <amodra@gmail.com>
235
236 * bfd.c (_bfd_error_handler): Arrange for this function to be
237 declared in bfd-in2.h.
238 * libbfd-in.h (_bfd_error_handler): Don't declare.
239 * libbfd.h: Regenerate.
240 * bfd-in2.h: Regenerate.
241
421acf18
AC
2422018-05-30 Amaan Cheval <amaan.cheval@gmail.com>
243
244 * config.bfd (x86_64-*-*): Add pei-x86-64 target to x86_64-*-rtems*
245 This is needed to generate UEFI application image files from ELFs.
246
92e68c1d
L
2472018-05-28 H.J. Lu <hongjiu.lu@intel.com>
248
249 * elf32-i386.c (elf_i386_lazy_plt): Add plt_tlsdesc_entry,
250 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
251 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
252 plt_tlsdesc_got2_insn_end for TLSDESC entry.
253 (elf_i386_lazy_ibt_plt): Likewise.
254 (elf_i386_nacl_plt): Likewise.
255 * elf64-x86-64.c (tlsdesc_plt_entry): Moved and renamed to ...
256 (elf_x86_64_tlsdesc_plt_entry): This.
257 (elf_x86_64_lazy_plt): Add plt_tlsdesc_entry,
258 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
259 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
260 plt_tlsdesc_got2_insn_end for TLSDESC entry.
261 (elf_x86_64_lazy_bnd_plt): Likewise.
262 (elf_x86_64_lazy_ibt_plt): Likewise.
263 (elf_x32_lazy_ibt_plt): Likewise.
264 (elf_x86_64_nacl_plt): Likewise.
265 (elf_x86_64_finish_dynamic_sections): Use plt_tlsdesc_entry,
266 plt_tlsdesc_entry_size, plt_tlsdesc_got1_offset,
267 plt_tlsdesc_got2_offset, plt_tlsdesc_got1_insn_end and
268 plt_tlsdesc_got2_insn_end to update TLSDESC entry.
269 * elfxx-x86.h (elf_x86_lazy_plt_layout): Update comments.
270 Add plt_tlsdesc_entry, plt_tlsdesc_entry_size,
271 plt_tlsdesc_got1_offset, plt_tlsdesc_got2_offset,
272 plt_tlsdesc_got1_insn_end and plt_tlsdesc_got2_insn_end.
273 (elf_x86_non_lazy_plt_layout): Update comments.
274 (elf_x86_plt_layout): Likewise.
275
ac98f9e2
L
2762018-05-28 H.J. Lu <hongjiu.lu@intel.com>
277
278 PR ld/23238
279 * elf-s390-common.c (elf_s390_add_symbol_hook): Removed.
280 * elf32-arc.c (elf_arc_add_symbol_hook): Likewise.
281 (elf_backend_add_symbol_hook): Likewise.
282 * elf32-m68k.c (elf_m68k_add_symbol_hook): Likewise.
283 (elf_backend_add_symbol_hook): Likewise.
284 * elf32-s390.c (elf_backend_add_symbol_hook): Likewise.
285 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
286 (elf_backend_add_symbol_hook): Likewise.
287 * elf64-s390.c (elf_backend_add_symbol_hook): Likewise.
288 * elfxx-aarch64.c (_bfd_aarch64_elf_add_symbol_hook): Likewise.
289 * elfxx-aarch64.h (_bfd_aarch64_elf_add_symbol_hook): Likewise.
290 (elf_backend_add_symbol_hook): Likewise.
291 * elf32-arm.c (elf32_arm_add_symbol_hook): Remove STT_GNU_IFUNC
292 handling.
293 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
294 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
295 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
296 * elflink.c (elf_link_add_object_symbols): Set
297 elf_gnu_symbol_ifunc for STT_GNU_IFUNC symbols.
298
099bb8fb
L
2992018-05-26 H.J. Lu <hongjiu.lu@intel.com>
300
301 PR ld/23194
302 * elf-bfd.h (_bfd_elf_link_hide_sym_by_version): New.
303 * elflink.c (_bfd_elf_link_hide_versioned_symbol): New function.
304 Extracted from _bfd_elf_link_assign_sym_version.
305 (_bfd_elf_link_hide_sym_by_version): New function.
306 (_bfd_elf_link_assign_sym_version): Use
307 _bfd_elf_link_hide_versioned_symbol.
308 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Call
309 _bfd_elf_link_hide_sym_by_version instead of
310 bfd_hide_sym_by_version. Don't check unversioned symbol.
311
277eb7f6
AM
3122018-05-25 Alan Modra <amodra@gmail.com>
313
314 * Makefile.in: Regenerate.
315 * po/SRC-POTFILES.in: Regenerate.
316
629dabe3
AM
3172018-05-25 Alan Modra <amodra@gmail.com>
318
319 * configure.ac (bfd_cv_hidden): Run test with -Werror in CFLAGS.
320 * configure: Regenerate.
321
9ef6d1e3
L
3222018-05-23 H.J. Lu <hongjiu.lu@intel.com>
323
324 * elf64-ppc.c (ppc64_elf_write_core_note): Add ATTRIBUTE_NONSTRING
325 to data.
326
215f5271
AM
3272018-05-22 Alan Modra <amodra@gmail.com>
328
329 PR 23207
330 * elf32-hppa.c (hppa_get_stub_entry): Return NULL when link_sec
331 is NULL.
332 (elf32_hppa_size_stubs): Only create stubs for load, alloc, code
333 sections.
334 (final_link_relocate): Revert last change.
335
7455c018
AM
3362018-05-22 Alan Modra <amodra@gmail.com>
337
338 PR 23207
339 * elf32-hppa.c (final_link_relocate): Don't look for plt call
340 stubs in non-alloc sections.
341
34a87bb0
L
3422018-05-21 H.J. Lu <hongjiu.lu@intel.com>
343
344 PR ld/23201
345 * aout-target.h (MY_bfd_link_hide_symbol): New.
346 * aout-tic30.c (MY_bfd_link_hide_symbol): Likewise.
347 * binary.c (binary_bfd_link_hide_symbol): Likewise.
348 * coff-alpha.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
349 * coff-mips.c (_bfd_ecoff_bfd_link_hide_symbol): Likewise.
350 * coff-rs6000.c (_bfd_xcoff_bfd_link_hide_symbol): Likewise.
351 * coffcode.h (coff_bfd_link_hide_symbol): Likewise.
352 * elf-bfd.h (_bfd_elf_link_hide_symbol): Likewise.
353 * elfxx-target.h (bfd_elfNN_bfd_link_hide_symbol): Likewise.
354 * i386msdos.c (msdos_bfd_link_hide_symbol): Likewise.
355 * ihex.c (ihex_bfd_link_hide_symbol): Likewise.
356 * libbfd-in.h (_bfd_nolink_bfd_link_hide_symbol): Likewise.
357 * linker.c (_bfd_generic_link_hide_symbol): Likewise.
358 (bfd_link_hide_symbol): Likewise.
359 * mach-o-target.c (bfd_mach_o_bfd_link_hide_symbol): Likewise.
360 * mmo.c (mmo_bfd_link_hide_symbol): Likewise.
361 * pef.c (bfd_pef_bfd_link_hide_symbol): Likewise.
362 * plugin.c (bfd_plugin_bfd_link_hide_symbol): Likewise.
363 * ppcboot.c (ppcboot_bfd_link_hide_symbol): Likewise.
364 * som.c (som_bfd_link_hide_symbol): Likewise.
365 * srec.c (srec_bfd_link_hide_symbol): Likewise.
366 * tekhex.c (tekhex_bfd_link_hide_symbol): Likewise.
367 * vms-alpha.c (vms_bfd_link_hide_symbol): Likewise.
368 (alpha_vms_bfd_link_hide_symbol): Likewise.
369 * xsym.c (bfd_sym_bfd_link_hide_symbol): Likewise.
370 * coff64-rs6000.c (rs6000_xcoff64_vec): Add
371 _bfd_generic_link_hide_symbol.
372 (rs6000_xcoff64_aix_vec): Likewise.
373 * elflink.c (bfd_elf_record_link_assignment): Don't make forced
374 local symbol dynamic.
375 (_bfd_elf_link_hide_symbol): New function.
376 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
377 check root.ldscript_def.
378 * targets.c (bfd_target): Add _bfd_link_hide_symbol.
379 (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_link_hide_symbol.
380 * bfd-in2.h: Regenerated.
381 * libbfd.h: Likewise.
382
bae363f1
L
3832018-05-21 H.J. Lu <hongjiu.lu@intel.com>
384
385 PR binutils/23199
386 * elf.c (setup_group): Mark section in a section group with
387 SHF_GROUP.
388
97373b2e
L
3892018-05-18 H.J. Lu <hongjiu.lu@intel.com>
390
391 PR ld/23194
392 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
393 set eh->local_ref to 1 if a symbol is versioned and there is a
394 version script.
395
7f999549
JW
3962018-05-18 Kito Cheng <kito.cheng@gmail.com>
397
398 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Handle
399 EF_RISCV_RVE.
400
6487709f
JW
4012018-05-18 Jim Wilson <jimw@sifive.com>
402
403 * elfnn-riscv.c (allocate_dynrelocs): Discard dynamic relocations if
404 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
405 (riscv_elf_relocate_section): Don't generate dynamic relocation if
406 UNDEFWEAK_NO_DYNAMIC_RELOC is true.
407 (riscv_elf_finish_dynamic_symbol): Likewise.
408
7b4ae824
JD
4092018-05-18 John Darrington <john@darrington.wattle.id.au>
410
411 * Makefile.am: Add s12z files.
412 * Makefile.in: Regenerate.
413 * archures.c: Add bfd_s12z_arch.
414 * bfd-in.h: Add exports of bfd_putb24 and bfd_putl24.
415 * bfd-in2.h: Regenerate.
416 * config.bfd: Add s12z target.
417 * configure.ac: Add s12z target.
418 * configure: Regenerate.
419 * cpu-s12z.c: New file.
420 * elf32-s12z.c: New file.
421 * libbfd.c (bfd_putb24): New function.
422 (bfd_putl24): New function.
423 * libbfd.h: Regenerate.
424 * reloc.c: Add s12z relocations.
425 (bfd_get_reloc_size): Handle size 5 relocs.
426 * targets.c: Add s12z_elf32_vec.
427
011b32fd
L
4282018-05-18 H.J. Lu <hongjiu.lu@intel.com>
429
430 PR ld/23189
431 * elf32-i386.c (elf_i386_relocate_section): Handle R_386_GOT32X
432 like R_386_GOT32.
433 * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't
434 set eh->local_ref to 1 for linker defined symbols.
435
4bba0fb1
AM
4362018-05-18 Alan Modra <amodra@gmail.com>
437
438 PR 23199
439 * elf.c (setup_group): Formatting. Check that SHT_GROUP entries
440 don't point at other SHT_GROUP sections. Set shdr corresponding
441 to invalid entry, to NULL rather than section 0. Identify
442 SHT_GROUP section index when reporting an error. Cope with NULL
443 shdr pointer.
444
8722de9c
AM
4452018-05-18 Alan Modra <amodra@gmail.com>
446
447 * libbfd-in.h (ATTRIBUTE_HIDDEN): Define and use throughout.
448 * configure.ac (HAVE_HIDDEN): Check compiler support for hidden
449 visibility.
450 * libbfd.h: Regenerate.
451 * configure: Regenerate.
452 * config.in: Regenerate.
453
0b439543
AM
4542018-05-18 Alan Modra <amodra@gmail.com>
455
456 * libbfd-in.h: Add include guard.
457 * libcoff-in.h: Likewise.
458 * doc/Makefile.am (libbfd.h, libcoff.h): Append another #endif.
459 * doc/Makefile.in: Regenerate.
460 * libbfd.h: Regenerate.
461 * libcoff.h: Regenerate.
462
1624c9ca
MR
4632018-05-16 Maciej W. Rozycki <macro@mips.com>
464
465 * elf32-nds32.c (nds32_convert_32_to_16): Preset `insn_type'.
466
7cf7fcc8
AM
4672018-05-16 Alan Modra <amodra@gmail.com>
468
469 PR 22458
470 * format.c (struct bfd_preserve): Add section_id.
471 (bfd_preserve_save, bfd_preserve_restore): Save and restore
472 _bfd_section_id.
473 (bfd_reinit): Set _bfd_section_id.
474 (bfd_check_format_matches): Put all matches of any priority into
475 matching_vector. Save initial section id and start each attempted
476 match at that section id.
477 * libbfd-in.h (_bfd_section_id): Declare.
478 * section.c (_bfd_section_id): Rename from section_id and make
479 global. Adjust uses.
480 (bfd_get_next_section_id): Delete.
481 * elf64-ppc.c (ppc64_elf_setup_section_lists): Replace use of
482 bfd_get_section_id with _bfd_section_id.
483 * libbfd.h: Regenerate.
484 * bfd-in2.h: Regenerate.
485
810ed4db
CG
4862018-05-15 Christophe Guillon <christophe.guillon@st.com>
487
488 * coffcode.h (coff_bigobj_swap_aux_in): Make sure that all fields
489 of the aux structure are initialised.
490
1678bd35
FT
4912018-05-15 Francois H. Theron <francois.theron@netronome.com>
492
493 * targets.c: Wrap nfp_elf64_vec in BFD64 ifdef.
494
293b4d4f
NC
4952018-05-15 Nick Clifton <nickc@redhat.com>
496
497 * po/pt.po: New Portuguese translation.
498 * configure.ac (ALL_LINGUAS): Add pt.
499 * configure: Regenerate.
500
4ec09950
L
5012018-05-14 H.J. Lu <hongjiu.lu@intel.com>
502
503 PR ld/23169
504 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Don't issue
505 an error on IFUNC pointer defined in PDE.
506 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Call
507 _bfd_x86_elf_link_fixup_ifunc_symbol.
508 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
509 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): New
510 function.
511 * elfxx-x86.h (_bfd_x86_elf_link_fixup_ifunc_symbol): New.
512
9bc935ef
L
5132018-05-14 H.J. Lu <hongjiu.lu@intel.com>
514
515 PR ld/23162
516 * elfxx-x86.c (elf_x86_linker_defined): New function.
517 (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
518 _end and _edata locally defined within executables.
519
9933dc52
AM
5202018-05-12 Alan Modra <amodra@gmail.com>
521
522 PR 20659
523 * elf.c (rewrite_elf_program_header): Use segment_mark only for
524 PT_LOAD headers. Delete first_matching_lma and first_suggested_lma.
525 Instead make matching_lma and suggested_lma pointers to the
526 sections. Align section vma and lma calculated from segment.
527 Don't clear includes_phdrs or includes_filehdr based on p_paddr
528 test. Try to handle alignment padding before first section by
529 adjusting new segment lma down. Adjust PT_PHDR map p_paddr.
530
493ffac5
DD
5312018-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
532
533 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Make LDI32 relocation
534 conformant to TI ABI.
535 (pru_elf32_relax_section): Likewise.
536 (pru_elf_relax_delete_bytes): Fix offsets for new LDI32 code.
537 * elf32-pru.c (pru_elf32_do_ldi32_relocate): Ignore addend.
538 (pru_elf32_pmem_relocate): Trap - should not get here.
539 (pru_elf32_relocate_section): Add support for REL relocations.
540 (elf_info_to_howto_rel): Enable REL.
541 (elf_backend_may_use_rel_p): Likewise.
542 (elf_backend_may_use_rela_p): Likewise.
543 (elf_backend_default_use_rela_p): Likewise.
544
b4560c7d
AM
5452018-05-09 Alan Modra <amodra@gmail.com>
546
547 PR 23148
548 * peXXigen.c (pe_print_edata): Correct minimum size.
549
53db9cf9
AM
5502018-05-09 Alan Modra <amodra@gmail.com>
551
552 PR 23147
553 * peXXigen.c (pe_print_idata): Bound check hint_addr.
554
95a6d235
NC
5552018-05-08 Nick Clifton <nickc@redhat.com>
556
557 PR 22809
558 * elf.c (bfd_elf_get_str_section): Check for an excessively large
559 string section.
560 * elf-attrs.c (_bfd_elf_parse_attributes): Issue an error if the
561 attribute section is larger than the size of the file.
562
7bd8862c
AM
5632018-05-07 Alan Modra <amodra@gmail.com>
564
565 * cofflink.c (_bfd_coff_link_input_bfd): Use memcmp rather than
566 strncmp when checking for ".bf" special symbol.
567 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Make pe_required_section_flags
568 section name a char array, remove sentinal known_sections entry,
569 and adjust loop over known_sections to suit. Use memcmp rather
570 than strncmp.
571
602f1657
AM
5722018-05-04 Alan Modra <amodra@gmail.com>
573
574 * elf-linux-core.h (struct elf_external_linux_prpsinfo32_ugid32),
575 (struct elf_external_linux_prpsinfo32_ugid16),
576 (struct elf_external_linux_prpsinfo64_ugid32),
577 (struct elf_external_linux_prpsinfo64_ugid16): Add ATTRIBUTE_NONSTRING
578 to pr_fname and pr_psargs fields. Remove GCC diagnostic pragmas.
579 Move comment to..
580 * elf.c (elfcore_write_prpsinfo): ..here. Indent nested preprocessor
581 directives.
582 * elf32-arm.c (elf32_arm_nabi_write_core_note): Add ATTRIBUTE_NONSTRING
583 to data.
584 * elf32-ppc.c (ppc_elf_write_core_note): Likewise.
585 * elf32-s390.c (elf_s390_write_core_note): Likewise.
586 * elf64-s390.c (elf_s390_write_core_note): Likewise.
587 * elfxx-aarch64.c (_bfd_aarch64_elf_write_core_note): Likewise.
588 * elf64-x86-64.c (elf_x86_64_write_core_note): Add GCC diagnostic
589 pragmas.
590 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Use strnlen to avoid
591 false positive gcc-8 warning.
7bd8862c 592 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
602f1657 593
a27ca19c
TMQMF
5942018-05-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
595
596 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
597 of arguments when warning about different long double types.
598
3be08ea4
SA
5992018-05-03 Simon Atanasyan <simon@atanasyan.com>
600
601 * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
602 (elf_backend_fixup_symbol): New macro.
603 * elfxx-mips.c: (mips_elf_output_extsym): Discard _gp_disp
604 handling.
605 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
606
fe944acf
FT
6072018-04-30 Francois H. Theron <francois.theron@netronome.com>
608
609 * Makefile.am: Added NFP files to build.
610 * archures.c: Added bfd_arch_nfp
611 * config.bfd: Added NFP support.
612 * configure.ac: Added NFP support.
613 * cpu-nfp.c: New, for NFP support.
614 * elf-bfd.h: Added elf_section_info()
615 * elf64-nfp.c: New, for NFP support.
616 * po/SRC-POTFILES.in: Added NFP source files.
617 * targets.c: Added nfp_elf64_vec
618 * bfd-in2.h: Regenerate.
619 * Makefile.in: Regenerate.
620 * configure: Regenerate.
621
ffa389a3
AM
6222018-04-27 Alan Modra <amodra@gmail.com>
623
624 * bfd-in2.h: Regenerate.
625 * libbfd.h: Regenerate.
626
04383fd1
AM
6272018-04-27 Alan Modra <amodra@gmail.com>
628
629 PR 23123
630 PR 22374
631 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't drop plt
632 relocs for ifuncs.
633 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Comment fixes.
634
bfa5bd2a
PA
6352018-04-26 Pedro Alves <palves@redhat.com>
636
637 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't consider
638 ifunc and non-ifunc symbols duplicates.
639
59029f57
CL
6402018-04-25 Christophe Lyon <christophe.lyon@st.com>
641 Mickaël Guêné <mickael.guene@st.com>
642
643 * elf32-arm.c (elf32_arm_fdpic_thumb_plt_entry): New.
644 (elf32_arm_plt_needs_thumb_stub_p): Handle thumb-only case.
645 (elf32_arm_populate_plt_entry): Likewise.
646 (elf32_arm_output_plt_map_1): Likewise.
647 (elf32_arm_output_arch_local_syms): Likewise.
648
fac7bd64
CL
6492018-04-25 Christophe Lyon <christophe.lyon@st.com>
650 Mickaël Guêné <mickael.guene@st.com>
651
652 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
653 _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
654
29e9b073
CL
6552018-04-25 Christophe Lyon <christophe.lyon@st.com>
656 Mickaël Guêné <mickael.guene@st.com>
657
658 * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
659 for R_ARM_TARGET2.
660
cb10292c
CL
6612018-04-25 Christophe Lyon <christophe.lyon@st.com>
662 Mickaël Guêné <mickael.guene@st.com>
663
664 * elf32-arm.c (DEFAULT_STACK_SIZE): New.
665 (elf32_arm_always_size_sections): Create stack segment.
666
5c5a4843
CL
6672018-04-25 Christophe Lyon <christophe.lyon@st.com>
668 Mickaël Guêné <mickael.guene@st.com>
669
670 * bfd-in2.h (BFD_RELOC_ARM_TLS_GD32_FDPIC)
671 (BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC): New
672 relocations.
673 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_TLS_GD32_FDPIC,
674 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC relocations.
675 (elf32_arm_reloc_map): Add R_ARM_TLS_GD32_FDPIC,
676 R_ARM_TLS_LDM32_FDPIC, R_ARM_TLS_IE32_FDPIC.
677 (struct elf32_arm_link_hash_table): Update comment.
678 (elf32_arm_final_link_relocate): Handle TLS FDPIC relocations.
679 (IS_ARM_TLS_RELOC): Likewise.
680 (elf32_arm_check_relocs): Likewise.
681 (allocate_dynrelocs_for_symbol): Likewise.
682 (elf32_arm_size_dynamic_sections): Update comment.
683 * reloc.c: Add BFD_RELOC_ARM_TLS_GD32_FDPIC,
684 BFD_RELOC_ARM_TLS_LDM32_FDPIC, BFD_RELOC_ARM_TLS_IE32_FDPIC.
685
7801f98f
CL
6862018-04-25 Christophe Lyon <christophe.lyon@st.com>
687 Mickaël Guêné <mickael.guene@st.com>
688
689 * elf32-arm.c (elf32_arm_fdpic_plt_entry): New.
690 (elf32_arm_create_dynamic_sections): Handle FDPIC.
691 (elf32_arm_allocate_plt_entry): Likewise.
692 (elf32_arm_populate_plt_entry): Likewise.
693 (elf32_arm_output_plt_map_1): Likewise.
694
e8b09b87
CL
6952018-04-25 Christophe Lyon <christophe.lyon@st.com>
696 Mickaël Guêné <mickael.guene@st.com>
697
698 * elf32-arm.c (struct fdpic_local): New.
699 (elf_arm_obj_tdata): Add local_fdpic_cnts field.
700 (elf32_arm_local_fdpic_cnts): New.
701 (struct fdpic_global): New.
702 (elf32_arm_link_hash_entry): Add fdpic_cnts field.
703 (elf32_arm_link_hash_table): Add srofixup field.
704 (arm_elf_add_rofixup): New.
705 (arm_elf_fill_funcdesc): New.
706 (elf32_arm_link_hash_newfunc): Handle fdpic_cnts.
707 (elf32_arm_allocate_local_sym_info): Likewise.
708 (create_got_section): Create .rofixup section.
709 (elf32_arm_copy_indirect_symbol): Handle fdpic_cnts.
710 (bfd_elf32_arm_set_target_params): Handle FDPIC.
711 (elf32_arm_final_link_relocate): Likewise.
712 (elf32_arm_check_relocs): Likewise.
713 (allocate_dynrelocs_for_symbol): Likewise.
714 (elf32_arm_size_dynamic_sections): Likewise.
715 (elf32_arm_finish_dynamic_sections): Likewise.
716 (elf32_arm_output_arch_local_syms): Likewise.
717 (elf32_arm_fdpic_omit_section_dynsym): New.
718
188fd7ae
CL
7192018-04-25 Christophe Lyon <christophe.lyon@st.com>
720 Mickaël Guêné <mickael.guene@st.com>
721
722 * bfd-in2.c (BFD_RELOC_ARM_GOTFUNCDESC)
723 (BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC)
724 (BFD_RELOC_ARM_FUNCDESC_VALUE): New.
725 * elf32-arm.c (elf32_arm_howto_table_2): Add R_ARM_GOTFUNCDESC,
726 R_ARM_GOTOFFFUNCDESC, R_ARM_FUNCDESC, R_ARM_FUNCDESC_VALUE.
727 (elf32_arm_howto_from_type): Take new members of
728 elf32_arm_howto_table_2 into account.
729 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_GOTFUNCDESC,
730 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
731 BFD_RELOC_ARM_FUNCDESC_VALUE.
732 * reloc.c: Add BFD_RELOC_ARM_GOTFUNCDESC,
733 BFD_RELOC_ARM_GOTOFFFUNCDESC, BFD_RELOC_ARM_FUNCDESC,
734 BFD_RELOC_ARM_FUNCDESC_VALUE.
735
18a20338
CL
7362018-04-25 Christophe Lyon <christophe.lyon@st.com>
737 Mickaël Guêné <mickael.guene@st.com>
738
739 * elf32-arm.c (elf32_arm_print_private_bfd_data): Support
740 EF_ARM_PIC and ELFOSABI_ARM_FDPIC.
741 (elf32_arm_post_process_headers): Support ELFOSABI_ARM_FDPIC.
742 (ELF_OSABI): Define to ELFOSABI_ARM_FDPIC.
743
617a5ada
CL
7442018-04-25 Christophe Lyon <christophe.lyon@st.com>
745 Mickaël Guêné <mickael.guene@st.com>
746
747 * config.bfd (arm*-*-linux-*): Add arm_elf32_fdpic_be_vec and
748 arm_elf32_fdpic_le_vec to targ_selvecs. Accept
749 arm*-*-uclinuxfdpiceabi.
750 * configure.ac: Add support for arm_elf32_fdpic_be_vec and
751 arm_elf32_fdpic_le_vec.
752 * configure: Regenerate.
753 * elf32-arm.c (struct elf32_arm_link_hash_table): Add fdpic_p.
754 (elf32_arm_link_hash_table_create): Initialize fdpic_p.
755 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM)
756 (TARGET_BIG_NAME, elf_match_priority): Define for FDPIC targets.
757 (elf32_arm_fdpic_link_hash_table_create): New.
758 * targets.c (_bfd_target_vector): Add arm_elf32_fdpic_be_vec and
759 arm_elf32_fdpic_le_vec.
760
d99b4b92
AM
7612018-04-25 Alan Modra <amodra@gmail.com>
762
763 * elf-linux-core.h: Disable gcc-8 string truncation warning.
764 * elf.c (elfcore_write_prpsinfo): Likewise.
765
7662018-04-25 Alan Modra <amodra@gmail.com>
2ac93be7
AM
767
768 * Makefile.am: Remove arm-aout and arm-coff support.
769 * config.bfd: Likewise.
770 * configure.ac: Likewise.
771 * targets.c: Likewise.
772 * aout-arm.c: Delete.
773 * armnetbsd.c: Delete.
774 * riscix.c: Delete.
775 * Makefile.in: Regenerate.
776 * configure: Regenerate.
777 * po/SRC-POTFILES.in: Regenerate.
778
aa4a8c2a
NC
7792018-04-24 Nick Clifton <nickc@redhat.com>
780
db0c309f
NC
781 PR 23113
782 * elf.c (ignore_section_sym): Check for the output_section pointer
783 being NULL before dereferencing it.
784
aa4a8c2a
NC
785 PR 23110
786 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check for
787 a negative PE_DEBUG_DATA size before iterating over the debug data.
788
b9f26d2e
AM
7892018-04-23 Alan Modra <amodra@gmail.com>
790
791 * elf-linux-core.h: Revert last change.
792 * elf.c: Likewise.
793
bf82069d
NC
7942018-04-23 Nick Clifton <nickc@redhat.com>
795
796 PR 23056
797 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
798 the end of the string table, and zero it.
799
5a6312e8
AM
8002018-04-23 Alan Modra <amodra@gmail.com>
801
802 * elf-linux-core.h (swap_linux_prpsinfo32_ugid32_out): Disable
803 gcc-8 string truncation warning.
804 (swap_linux_prpsinfo32_ugid16_out): Likewise.
805 (swap_linux_prpsinfo64_ugid32_out): Likewise.
806 (swap_linux_prpsinfo64_ugid16_out): Likewise.
807 * elf.c (elfcore_write_prpsinfo): Likewise.
808
bf82069d
NC
8092018-04-23 Nick Clifton <nickc@redhat.com>
810
811 PR 23056
812 * aoutx.h (aout_get_external_symbols): Allocate an extra byte at
813 the end of the string table, and zero it.
814
4352556b
AM
8152018-04-20 Alan Modra <amodra@gmail.com>
816
817 PR 22978
818 * elf32-hppa.c (got_relocs_needed): Add extra param to special
819 case both dtprel and tprel relocs.
820 (allocate_dynrelocs): Adjust conditions for got relocs.
821 (elf32_hppa_relocate_section): Likewise for local sym got relocs.
822 Emit dynamic relocs on TLS GOT entries for shared libraries,
823 not when pic. Omit dynamic reloc on dtprel entry when local,
824 and on tprel entry when local and executable.
825
f6a8b8c7
AM
8262018-04-19 Alan Modra <amodra@gmail.com>
827
828 PR 22537
829 * elf32-hppa.c (elf32_hppa_size_stubs): Init "destination" to -1.
830 (hppa_type_of_stub): Don't return a long branch stub for
831 symbols other than those defined statically.
832
8e415ce8
AM
8332018-04-19 Alan Modra <amodra@gmail.com>
834
835 * Makefile.am: Revert 2018-04-18 coff-mips changes.
836 * config.bfd: Add back mips_ecoff_le_vec and mips_ecoff_be_vec
837 to selvecs for mips targets change 2018-04-18.
838 * configure.ac: Reinstate mips_ecoff_le_vec, mips_ecoff_be_vec
839 and mips_ecoff_bele_vec.
840 * targets.c: Likewise.
841 * coff-mips.c: Resurrect.
842 * Makefile.in: Regenerate.
843 * configure: Regenerate.
844 * po/SRC-POTFILES.in: Regenerate.
845
3596d8ce
AM
8462018-04-18 Alan Modra <amodra@gmail.com>
847
848 * Makefile.am: Remove mips aout and coff support.
849 * config.bfd: Likewise.
850 * configure.ac: Likewise.
851 * targets.c: Likewise.
852 * coff-mips.c: Delete
853 * mipsbsd.c: Delete
854 * pe-mips.c: Delete
855 * pei-mips.c: Delete
856 * Makefile.in: Regenerate.
857 * configure: Regenerate.
858 * po/SRC-POTFILES.in: Regenerate.
859
d9dd2045
L
8602018-04-17 H.J. Lu <hongjiu.lu@intel.com>
861
862 * elf32-i386.c (elf32_bed): Define before including
863 "elf32-target.h".
864 * elf64-x86-64.c (elf64_bed): Define before including
865 "elf64-target.h".
866 (elf32_bed): Define before including "elf32-target.h".
867
e4e6a73d
L
8682018-04-17 H.J. Lu <hongjiu.lu@intel.com>
869
870 PR ld/23055
871 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Use a
872 normal input file with compatible relocation.
873
c65c21e1
AM
8742018-04-18 Alan Modra <amodra@gmail.com>
875
876 * Makefile.am: Remove support for assorted i386 aout and coff targets.
877 * config.bfd: Likewise.
878 * configure.ac: Likewise.
879 * doc/bfdint.texi: Likewise.
880 * targets.c: Likewise.
881 * freebsd.h: Delete.
882 * i386dynix.c: Delete.
883 * i386freebsd.c: Delete.
884 * i386linux.c: Delete.
885 * i386mach3.c: Delete.
886 * i386netbsd.c: Delete.
887 * i386os9k.c: Delete.
888 * Makefile.in: Regenerate.
889 * configure: Regenerate.
890 * po/SRC-POTFILES.in: Regenerate.
891
884d4d8a 8922018-04-17 Andrew Sadek <andrew.sadek.se@gmail.com>
3f0a5f17
ME
893
894 Microblaze Target: PIC data text relative
895
896 * bfd/reloc.c (2 new BFD relocations):
897 BFD_RELOC_MICROBLAZE_64_TEXTPCREL &
898 BFD_RELOC_MICROBLAZE_64_TEXTPCREL
899 * bfd/bfd-in2.h: Regenerate
900 * bfd/libbfd.h: Regenerate
901 * bfd/elf32-microblaze.c (Handle new relocs): define 'HOWTO' of 3
902 new relocs and handle them in both relocate and relax functions.
903 (microblaze_elf_reloc_type_lookup): add mapping between for new
904 bfd relocs.
905 (microblaze_elf_relocate_section): Handle new relocs in case of
906 elf relocation.
907 (microblaze_elf_relax_section): Handle new relocs for elf relaxation.
908
6327533b
NC
9092018-04-17 Nick Clifton <nickc@redhat.com>
910
808346fc
NC
911 PR 23055
912 * aoutx.h (find_nearest_line): Check that the symbol name exists
913 and is long enough, before attempting to see if it is for a .o
914 file.
915 * hash.c (bfd_hash_hash): Add an assertion that the string is not
916 NULL.
917 * linker.c (bfd_link_hash_lookup): Fail if the table or string are
918 NULL.
919 (_bfd_generic_link_add_archive_symbols): Fail if an archive entry
920 has no name.
921
6327533b
NC
922 PR 23065
923 * dwarf2.c (concat_filename): Check for a NULL table pointer.
924
e9af4700
NC
9252018-04-16 Nick Clifton <nickc@redhat.com>
926
927 PR 23061
928 * coffgen.c (coff_pointerize_aux): Check for an out of range
929 fixup.
930
ddb00039
AM
9312018-04-16 Alan Modra <amodra@gmail.com>
932
933 * Makefile.am: Remove arm-epoc-pe support.
934 * coff-arm.c: Likewise.
935 * config.bfd: Likewise.
936 * configure.ac: Likewise.
937 * targets.c: Likewise.
938 * epoc-pe-arm.c: Delete.
939 * epoc-pei-arm.c: Delete.
940 * Makefile.in: Regenerate.
941 * configure: Regenerate.
942 * po/SRC-POTFILES.in: Regenerate.
943
c9098af4
AM
9442018-04-16 Alan Modra <amodra@gmail.com>
945
946 * Makefile.am: Remove sparc-aout and sparc-coff support.
947 * config.bfd: Likewise.
948 * configure.ac: Likewise.
949 * targets.c: Likewise.
950 * aout-sparcle.c: Delete.
951 * aoutf1.h: Delete.
952 * cf-sparclynx.c: Delete.
953 * coff-sparc.c: Delete.
954 * demo64.c: Delete.
955 * sparclinux.c: Delete.
956 * sparclynx.c: Delete.
957 * sparcnetbsd.c: Delete.
958 * sunos.c: Delete.
959 * Makefile.in: Regenerate.
960 * configure: Regenerate.
961 * po/SRC-POTFILES.in: Regenerate.
962
dc12032b
AM
9632018-04-16 Alan Modra <amodra@gmail.com>
964
965 * Makefile.am: Remove m68k-aout and m68k-coff support.
966 * aoutf1.h: Likewise.
967 * aoutx.h: Likewise.
968 * archive.c: Likewise.
969 * bfd-in.h: Likewise.
970 * bfd.c: Likewise.
971 * coffcode.h: Likewise.
972 * coffswap.h: Likewise.
973 * config.bfd: Likewise.
974 * configure.ac: Likewise.
975 * configure.host: Likewise.
976 * doc/bfd.texinfo: Likewise.
977 * doc/bfdint.texi: Likewise.
978 * freebsd.h: Likewise.
979 * gen-aout.c: Likewise.
980 * hpux-core.c: Likewise.
981 * libaout.h: Likewise.
982 * libbfd-in.h: Likewise.
983 * pdp11.c: Likewise.
984 * peicode.h: Likewise.
985 * riscix.c: Likewise.
986 * targets.c: Likewise.
987 * aout0.c: Delete.
988 * coff-apollo.c: Delete.
989 * coff-aux.c: Delete.
990 * coff-m68k.c: Delete.
991 * coff-svm68k.c: Delete.
992 * coff-u68k.c: Delete.
993 * hosts/delta68.h: Delete.
994 * hosts/hp300bsd.h: Delete.
995 * hosts/m68kaux.h: Delete.
996 * hosts/news.h: Delete.
997 * hp300bsd.c: Delete.
998 * hp300hpux.c: Delete.
999 * liboasys.h: Delete.
1000 * m68k4knetbsd.c: Delete.
1001 * m68klinux.c: Delete.
1002 * m68knetbsd.c: Delete.
1003 * oasys.c: Delete.
1004 * versados.c: Delete.
1005 * Makefile.in: Regenerate.
1006 * bfd-in2.h: Regenerate.
1007 * configure: Regenerate.
1008 * libbfd.h: Regenerate.
1009 * po/SRC-POTFILES.in: Regenerate.
1010
211dc24b
AM
10112018-04-16 Alan Modra <amodra@gmail.com>
1012
1013 * Makefile.am: Remove sh5 and sh64 support.
1014 * archures.c: Likewise.
1015 * config.bfd: Likewise.
1016 * configure.ac: Likewise.
1017 * cpu-sh.c: Likewise.
1018 * elf32-sh-relocs.h: Likewise.
1019 * elf32-sh.c: Likewise.
1020 * targets.c: Likewise.
1021 * elf32-sh64-com.c: Delete.
1022 * elf32-sh64.c: Delete.
1023 * elf32-sh64.h: Delete.
1024 * elf64-sh64.c: Delete.
1025 * Makefile.in: Regenerate.
1026 * bfd-in2.h: Regenerate.
1027 * configure: Regenerate.
1028 * po/SRC-POTFILES.in: Regenerate.
1029
4db9937a
AM
10302018-04-16 Alan Modra <amodra@gmail.com>
1031
1032 * Makefile.am: Remove sh-symbianelf support.
1033 * config.bfd: Likewise.
1034 * configure.ac: Likewise.
1035 * targets.c: Likewise.
1036 * elf32-sh-symbian.c: Delete.
1037 * Makefile.in: Regenerate.
1038 * configure: Regenerate.
1039 * po/SRC-POTFILES.in: Regenerate.
1040
9f5d1593
AM
10412018-04-16 Alan Modra <amodra@gmail.com>
1042
1043 * Makefile.am: Remove vax-bsd and vax-ultrix support.
1044 * config.bfd: Likewise.
1045 * configure.ac: Likewise.
1046 * targets.c: Likewise.
1047 * vaxbsd.c: Delete.
1048 * Makefile.in: Regenerate.
1049 * configure: Regenerate.
1050 * po/SRC-POTFILES.in: Regenerate.
1051
a9a4b302
AM
10522018-04-16 Alan Modra <amodra@gmail.com>
1053
1054 * Makefile.am: Remove w65 support.
1055 * archures.c: Likewise.
1056 * coffcode.h: Likewise.
1057 * config.bfd: Likewise.
1058 * configure.ac: Likewise.
1059 * targets.c: Likewise.
1060 * coff-w65.c: Delete.
1061 * cpu-w65.c: Delete.
1062 * Makefile.in: Regenerate.
1063 * bfd-in2.h: Regenerate.
1064 * configure: Regenerate.
1065 * po/SRC-POTFILES.in: Regenerate.
1066
04cb01fd
AM
10672018-04-16 Alan Modra <amodra@gmail.com>
1068
1069 * Makefile.am: Remove we32k support.
1070 * archures.c: Likewise.
1071 * coffcode.h: Likewise.
1072 * config.bfd: Likewise.
1073 * configure.ac: Likewise.
1074 * targets.c: Likewise.
1075 * coff-we32k.c: Delete.
1076 * cpu-we32k.c: Delete.
1077 * Makefile.in: Regenerate.
1078 * bfd-in2.h: Regenerate.
1079 * configure: Regenerate.
1080 * po/SRC-POTFILES.in: Regenerate.
1081
c2bf1eec
AM
10822018-04-16 Alan Modra <amodra@gmail.com>
1083
1084 * Makefile.am: Remove m88k support.
1085 * aoutx.h: Likewise.
1086 * archures.c: Likewise.
1087 * coffcode.h: Likewise.
1088 * coffswap.h: Likewise.
1089 * config.bfd: Likewise.
1090 * configure.ac: Likewise.
1091 * cpu-ns32k.c: Likewise.
1092 * elf32-nds32.c: Likewise.
1093 * mach-o.c: Likewise.
1094 * netbsd-core.c: Likewise.
1095 * reloc.c: Likewise.
1096 * targets.c: Likewise.
1097 * coff-m88k.c: Delete.
1098 * cpu-m88k.c: Delete.
1099 * elf32-m88k.c: Delete.
1100 * hosts/m88kmach3.h: Delete.
1101 * m88kmach3.c: Delete.
1102 * m88kopenbsd.c: Delete.
1103 * Makefile.in: Regenerate.
1104 * bfd-in2.h: Regenerate.
1105 * configure: Regenerate.
1106 * po/SRC-POTFILES.in: Regenerate.
1107
6793974d
AM
11082018-04-16 Alan Modra <amodra@gmail.com>
1109
1110 * Makefile.am: Remove i370 support.
1111 * archures.c: Likewise.
1112 * config.bfd: Likewise.
1113 * configure.ac: Likewise.
1114 * targets.c: Likewise.
1115 * cpu-i370.c: Delete.
1116 * elf32-i370.c: Delete.
1117 * Makefile.in: Regenerate.
1118 * bfd-in2.h: Regenerate.
1119 * configure: Regenerate.
1120 * po/SRC-POTFILES.in: Regenerate.
1121
e82aa794
AM
11222018-04-16 Alan Modra <amodra@gmail.com>
1123
1124 * Makefile.am: Remove h8500 support.
1125 * archures.c: Likewise.
1126 * coffcode.h: Likewise.
1127 * config.bfd: Likewise.
1128 * configure.ac: Likewise.
1129 * targets.c: Likewise.
1130 * coff-h8500.c: Delete.
1131 * cpu-h8500.c: Delete.
1132 * Makefile.in: Regenerate.
1133 * bfd-in2.h: Regenerate.
1134 * configure: Regenerate.
1135 * po/SRC-POTFILES.in: Regenerate.
1136
fe0bf0fd
AM
11372018-04-16 Alan Modra <amodra@gmail.com>
1138
1139 * Makefile.am: Remove h8300-coff support.
1140 * coffcode.h: Likewise.
1141 * config.bfd: Likewise.
1142 * configure.ac: Likewise.
1143 * reloc16.c: Likewise.
1144 * targets.c: Likewise.
1145 * coff-h8300.c: Delete.
1146 * Makefile.in: Regenerate.
1147 * configure: Regenerate.
1148 * po/SRC-POTFILES.in: Regenerate.
1149
fdef3943
AM
11502018-04-16 Alan Modra <amodra@gmail.com>
1151
1152 * Makefile.am: Remove IEEE 695 support.
1153 * archures.c: Likewise.
1154 * bfd.c: Likewise.
1155 * config.bfd: Likewise.
1156 * configure.ac: Likewise.
1157 * doc/bfd.texinfo: Likewise.
1158 * doc/bfdint.texi: Likewise.
1159 * doc/bfdsumm.texi: Likewise.
1160 * section.c: Likewise.
1161 * targets.c: Likewise.
1162 * ieee.c: Delete.
1163 * libieee.h: Delete.
1164 * Makefile.in: Regenerate.
1165 * bfd-in2.h: Regenerate.
1166 * configure: Regenerate.
1167 * po/SRC-POTFILES.in: Regenerate.
1168
de96689e
AM
11692018-04-16 Alan Modra <amodra@gmail.com>
1170
1171 * config.bfd: Remove tandem support.
1172
5972ac73
AM
11732018-04-16 Alan Modra <amodra@gmail.com>
1174
1175 * Makefile.am: Remove newsos3 support.
1176 * aoutx.h: Likewise.
1177 * config.bfd: Likewise.
1178 * configure.ac: Likewise.
1179 * targets.c: Likewise.
1180 * newsos3.c: Delete.
1181 * Makefile.in: Regenerate.
1182 * configure: Regenerate.
1183 * po/SRC-POTFILES.in: Regenerate.
1184
b4b594e3
AM
11852018-04-16 Alan Modra <amodra@gmail.com>
1186
1187 * Makefile.am: Remove netware support.
1188 * bfd-in.h: Likewise.
1189 * bfd.c: Likewise.
1190 * config.bfd: Likewise.
1191 * configure.ac: Likewise.
1192 * doc/bfdint.texi: Likewise.
1193 * ecoff.c: Likewise.
1194 * targets.c: Likewise.
1195 * libnlm.h: Delete.
1196 * nlm-target.h: Delete.
1197 * nlm.c: Delete.
1198 * nlm32-alpha.c: Delete.
1199 * nlm32-i386.c: Delete.
1200 * nlm32-ppc.c: Delete.
1201 * nlm32-sparc.c: Delete.
1202 * nlm32.c: Delete.
1203 * nlm64.c: Delete.
1204 * nlmcode.h: Delete.
1205 * nlmswap.h: Delete.
1206 * Makefile.in: Regenerate.
1207 * bfd-in2.h: Regenerate.
1208 * configure: Regenerate.
1209 * po/SRC-POTFILES.in: Regenerate.
1210
fceadf09
AM
12112018-04-16 Alan Modra <amodra@gmail.com>
1212
1213 * archures.c: Remove tahoe support.
1214 * config.bfd: Likewise.
1215 * configure.ac: Likewise.
1216 * hosts/tahoe.h: Delete.
1217 * bfd-in2.h: Regenerate.
1218 * configure: Regenerate.
1219
702d1671
AM
12202018-04-14 Alan Modra <amodra@gmail.com>
1221
1222 * elf-bfd.h (struct elf_backend_data): Add relropagesize.
1223 * elfxx-target.h (ELF_RELROPAGESIZE): Provide default and
1224 sanity test.
1225 (elfNN_bed): Init relropagesize.
1226 * bfd.c (bfd_emul_get_commonpagesize): Add boolean param to
1227 select relropagesize.
1228 * elf32-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1229 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1230 (ELF_MINPAGESIZE): Don't define.
1231 * elf64-ppc.c (ELF_COMMONPAGESIZE): Define as 0x1000.
1232 (ELF_RELROPAGESIZE): Define as ELF_MAXPAGESIZE.
1233 * bfd-in2.h: Regenerate.
1234
03aa9684
AM
12352018-04-14 Alan Modra <amodra@gmail.com>
1236
1237 * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
1238 on __QNXTARGET__ define.
1239
24acfe5e
AM
12402018-04-14 Alan Modra <amodra@gmail.com>
1241
1242 * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
1243 to obsolete list.
1244
a8eb42a8
AM
12452018-04-11 Alan Modra <amodra@gmail.com>
1246
1247 * aout-adobe.c: Delete.
1248 * bout.c: Delete.
1249 * coff-i860.c: Delete.
1250 * coff-i960.c: Delete.
1251 * cpu-i860.c: Delete.
1252 * cpu-i960.c: Delete.
1253 * elf32-i860.c: Delete.
1254 * elf32-i960.c: Delete.
1255 * hosts/i860mach3.h: Delete.
1256 * Makefile.am: Remove i860, i960, bout, and adobe support.
1257 * archures.c: Remove i860 and i960 support.
1258 * coffcode.h: Likewise.
1259 * reloc.c: Likewise.
1260 * aoutx.h: Comment updates.
1261 * archive.c: Remove BOUT and i960 support.
1262 * bfd.c: Remove BOUT support.
1263 * coffswap.h: Remove i960 support.
1264 * config.bfd: Remove i860, i960 and adobe targets.
1265 * configure.ac: Remove adode, bout, i860, i960, icoff targets.
1266 * targets.c: Likewise.
1267 * ieee.c: Remove i960 support.
1268 * mach-o.c: Remove i860 support.
1269 * Makefile.in: Regenerate.
1270 * bfd-in2.h: Regenerate.
1271 * configure: Regenerate.
1272 * libbfd.h: Regenerate.
1273 * po/SRC-POTFILES.in: Regenerate.
1274
aec2e0d2
MR
12752018-04-09 Maciej W. Rozycki <macro@mips.com>
1276
1277 * elf64-mips.c (mips_elf64_write_rel): Handle a NULL BFD pointer
1278 in the BFD symbol referred by the relocation.
1279 (mips_elf64_write_rela): Likewise.
1280
9ccfa98b
MR
12812018-04-09 Maciej W. Rozycki <macro@mips.com>
1282
1283 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Issue an
1284 error for out-of-range `r_sym' values.
1285
3e04d765
AM
12862018-04-09 Alan Modra <amodra@gmail.com>
1287
1288 * elf64-ppc.c (struct _ppc64_elf_section_data): Add has_pltcall field.
1289 (struct ppc_link_hash_table): Add can_convert_all_inline_plt.
1290 (ppc64_elf_check_relocs): Set has_pltcall.
1291 (ppc64_elf_adjust_dynamic_symbol): Discard some PLT entries.
1292 (ppc64_elf_inline_plt): New function.
1293 (ppc64_elf_size_dynamic_sections): Discard some PLT entries for locals.
1294 * elf64-ppc.h (ppc64_elf_inline_plt): Declare.
1295 * elf32-ppc.c (has_pltcall): Define.
1296 (struct ppc_elf_link_hash_table): Add can_convert_all_inline_plt.
1297 (ppc_elf_check_relocs): Set has_pltcall.
1298 (ppc_elf_inline_plt): New function.
1299 (ppc_elf_adjust_dynamic_symbol): Discard some PLT entries.
1300 (ppc_elf_size_dynamic_sections): Likewise.
1301 * elf32-ppc.h (ppc_elf_inline_plt): Declare.
1302
23cedd1d
AM
13032018-04-09 Alan Modra <amodra@gmail.com>
1304
1305 * elf32-ppc.c (ppc_elf_howto_raw): Add PLTSEQ and PLTCALL howtos.
1306 (is_plt_seq_reloc): New function.
1307 (ppc_elf_check_relocs): Handle PLTSEQ and PLTCALL relocs.
1308 (ppc_elf_tls_optimize): Handle inline plt call sequence.
1309 (ppc_elf_relax_section): Handle PLTCALL reloc.
1310 (ppc_elf_relocate_section): Nop out inline plt call sequence when
1311 resolving locally.
1312 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_PLTSEQ and
1313 R_PPC64_PLTCALL entries. Comment R_PPC64_TOCSAVE.
1314 (has_tls_get_addr_call): Correct comment.
1315 (is_branch_reloc): Add PLTCALL.
1316 (is_plt_seq_reloc): New function.
1317 (ppc64_elf_check_relocs): Handle PLT16_LO_DS reloc. Set
1318 has_tls_reloc for R_PPC64_TLSGD and R_PPC64_TLSLD. Create plt
1319 entry for R_PPC64_PLTCALL.
1320 (ppc64_elf_tls_optimize): Handle inline plt call sequence.
1321 (ppc_type_of_stub): Handle PLTCALL reloc.
1322 (toc_adjusting_stub_needed): Likewise.
1323 (ppc64_elf_relocate_section): Set "can_plt_call" for PLTCALL
1324 reloc insn. Nop out inline plt call sequence when resolving
1325 locally. Handle __tls_get_addr inline plt call optimization.
1326
2d7ad24e
AM
13272018-04-09 Alan Modra <amodra@gmail.com>
1328
1329 * elf64-ppc.c (LOCAL_PLT_ENTRY_SIZE): Define.
1330 (struct ppc_stub_hash_entry): Add symtype field.
1331 (PLT_KEEP): Define.
1332 (struct ppc_link_hash_table): Add pltlocal and relpltlocal.
1333 (create_linkage_sections): Create pltlocal and relpltlocal.
1334 (ppc64_elf_check_relocs): Allow PLT relocs on local symbols.
1335 Set PLT_KEEP.
1336 (ppc64_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1337 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1338 (ppc64_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1339 Keep PLT entries for inline calls against locals.
1340 (ppc_build_one_stub): Use pltlocal as appropriate.
1341 (ppc_size_one_stub): Likewise.
1342 (ppc64_elf_size_stubs): Set symtype.
1343 (build_global_entry_stubs_and_plt): Init pltlocal and write
1344 relpltlocal for globals.
1345 (write_plt_relocs_for_local_syms): Likewise for local syms.
1346 (ppc64_elf_relocate_section): Support PLT for local syms.
1347 * elf32-ppc.c (PLT_KEEP): Define.
1348 (struct ppc_elf_link_hash_table): Add pltlocal and relpltlocal.
1349 (ppc_elf_create_glink): Create pltlocal and relpltlocal.
1350 (ppc_elf_check_relocs): Allow PLT relocs on local symbols.
1351 Set PLT_KEEP. Adjust update_local_sym_info call.
1352 (ppc_elf_adjust_dynamic_symbol): Keep PLT entries for inline calls.
1353 (allocate_dynrelocs): Allocate pltlocal and relpltlocal.
1354 (ppc_elf_size_dynamic_sections): Size pltlocal and relpltlocal.
1355 (ppc_elf_relocate_section): Support PLT16 relocs for local syms.
1356 (write_global_sym_plt): Init pltlocal and write relpltlocal.
1357 (ppc_finish_symbols): Likewise for locals.
1358
49c09209
AM
13592018-04-09 Alan Modra <amodra@gmail.com>
1360
1361 * elf64-ppc.c (ppc_build_one_stub): Move output of PLT relocs
1362 for local symbols to..
1363 (write_plt_relocs_for_local_syms): ..here. New function.
1364 (ppc64_elf_finish_dynamic_symbol): Move output of PLT relocs for
1365 global symbols to..
1366 (build_global_entry_stubs_and_plt): ..here. Rename from
1367 build_global_entry_stubs.
1368 (ppc64_elf_build_stubs): Always call build_global_entry_stubs_and_plt.
1369 Call write_plt_relocs_for_local_syms.
1370 * elf32-ppc.c (get_sym_h): New function.
1371 (ppc_elf_relax_section): Use get_sym_h.
1372 (ppc_elf_relocate_section): Move output of PLT relocs and glink
1373 stubs for local symbols to..
1374 (ppc_finish_symbols): ..here. New function.
1375 (ppc_elf_finish_dynamic_symbol): Move output of PLT relocs for
1376 global syms to..
1377 (write_global_sym_plt): ..here. New function.
1378 * elf32-ppc.h (ppc_elf_modify_segment_map): Delete attribute.
1379 (ppc_finish_symbols): Declare.
1380
08be3224
AM
13812018-04-09 Alan Modra <amodra@gmail.com>
1382
1383 * elf32-ppc.c (ppc_elf_check_relocs): Handle PLT16 relocs.
1384 (ppc_elf_relocate_section): Likewise.
1385 * elf64-ppc.c (ppc64_elf_check_relocs): Handle PLT16_LO_DS.
1386 (ppc64_elf_relocate_section): Likewise. Correct PLT16
1387 resolution to plt entry relative to toc pointer.
1388
37da22e5
AM
13892018-04-09 Alan Modra <amodra@gmail.com>
1390
1391 * elf64-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1392 TLS_TPRELGD, TLS_EXPLICIT): Renumber. Test TLS_TLS throughout
1393 file when other TLS flags are tested in a mask.
1394 (TLS_MARK, NON_GOT): Define.
1395 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1396 (update_local_sym_info): Don't create got entry when NON_GOT.
1397 (ppc64_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1398 Set TLS_MARK.
1399 (get_tls_mask): Do toc lookup if tls_mask is just TLS_MARK.
1400 (ppc64_elf_relocate_section): Likewise.
1401 (ppc64_elf_tls_optimize): Don't attempt to optimize indirect
1402 __tls_get_addr calls lacking a marker reloc.
1403 * elf32-ppc.c (TLS_TLS, TLS_GD, TLS_LD, TLS_TPREL, TLS_DTPREL,
1404 TLS_TPRELGD): Renumber. Update comment.
1405 (TLS_MARK, NON_GOT): Define.
1406 (PLT_IFUNC): Redefine, and test TLS_TLS throughout file as well.
1407 (update_local_sym_info): Don't create got entry when NON_GOT.
1408 (ppc_elf_check_relocs): Pass NON_GOT with PLT_IFUNC.
1409 Set TLS_MARK.
1410 (ppc_elf_tls_optimize): Don't attempt to optimize indirect
1411 __tls_get_addr calls lacking a marker reloc.
1412
a6fd92b0
L
14132018-04-06 H.J. Lu <hongjiu.lu@intel.com>
1414
1415 * elf64-x86-64.c (elf_x86_64_info_to_howto): Don't mask out
1416 R_X86_64_converted_reloc_bit.
1417
3cba8b6c
L
14182018-04-05 H.J. Lu <hongjiu.lu@intel.com>
1419
1420 PR gas/22318
1421 * configure: Regenerated.
1422
0e8452bb
AM
14232018-04-05 Alan Modra <amodra@gmail.com>
1424
1425 * elf-hppa.h (elf_hppa_info_to_howto): Init howto to NULL.
1426 (elf_hppa_info_to_howto_rel): Likewise.
1427
8ee55178
MR
14282018-04-04 Maciej W. Rozycki <macro@mips.com>
1429
1430 * elf-hppa.h (elf_hppa_info_to_howto): Also return
1431 unsuccessfully for unimplemented relocations.
1432 (elf_hppa_info_to_howto_rel): Likewise.
1433
5d7c8b80
MR
14342018-04-04 Maciej W. Rozycki <macro@mips.com>
1435
1436 * elf32-i860.c (lookup_howto): Add `abfd' parameter. Set the
1437 `bfd_error_bad_value' error and call `_bfd_error_handler' on a
1438 howto lookup failure.
1439 (elf32_i860_reloc_type_lookup): Adjust `lookup_howto' call
1440 accordingly.
1441 (elf32_i860_info_to_howto_rela): Likewise.
1442 (elf32_i860_relocate_splitn): Likewise.
1443 (elf32_i860_relocate_pc16): Likewise.
1444 (elf32_i860_relocate_pc26): Likewise.
1445 (elf32_i860_relocate_section): Likewise.
1446
707bad1b
MR
14472018-04-04 Maciej W. Rozycki <macro@mips.com>
1448
1449 * elf32-visium.c (visium_info_to_howto_rela): Correct the range
1450 check for `visium_elf_howto_table' table access.
1451
0cc919dc
MR
14522018-04-04 Maciej W. Rozycki <macro@mips.com>
1453
1454 * elf32-iq2000.c (iq2000_info_to_howto_rela): Correct the range
1455 check for `iq2000_elf_howto_table' table access.
1456
f428698e
MR
14572018-04-04 Maciej W. Rozycki <macro@mips.com>
1458
1459 * elf32-frv.c (frv_info_to_howto_rela): Correct the range check
1460 for `elf32_frv_howto_table' table access.
1461
7ed6f92a
MR
14622018-04-04 Maciej W. Rozycki <macro@mips.com>
1463
1464 * elf32-mips.c (mips_elf32_rtype_to_howto): Also return
1465 unsuccessfully for placeholder howtos.
1466 * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
1467 * elfn32-mips.c (mips_elf_n32_rtype_to_howto): Likewise.
1468
75def2ab
MR
14692018-03-29 Maciej W. Rozycki <macro@mips.com>
1470
1471 * elf32-mips.c (mips_info_to_howto_rel): Remove the calls to
1472 `_bfd_error_handler' and to set the `bfd_error_bad_value' error.
1473
8b6a949a
MR
14742018-03-28 Maciej W. Rozycki <macro@mips.com>
1475
1476 * elf-hppa.h (elf_hppa_info_to_howto_rel): Remove
1477 ATTRIBUTE_UNUSED from `abfd'.
1478
d81270c3
MR
14792018-03-28 Maciej W. Rozycki <macro@mips.com>
1480
1481 * elf-hppa.h (elf_hppa_info_to_howto_rel): Correct
1482 `_bfd_error_handler' call formatting.
1483
60dceb8d 14842018-03-28 Maciej W. Rozycki <macro@mips.com>
8205a328
MR
1485
1486 * elf32-mips.c (mips_info_to_howto_rel): Call
1487 `mips_elf32_rtype_to_howto' directly rather than via
1488 `->elf_backend_mips_rtype_to_howto'.
1489
e04ef022
RL
14902018-03-28 Renlin Li <renlin.li@arm.com>
1491
1492 PR ld/22970
1493 * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Add cases for
1494 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1495 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1496 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1497 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1498 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1499 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1500 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1501 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1502 (elfNN_aarch64_final_link_relocate): Support new relocations.
1503 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Support new
1504 relocations.
1505 (_bfd_aarch64_elf_resolve_relocation): Support new relocations.
1506
84f1b9fb
RL
15072018-03-28 Renlin Li <renlin.li@arm.com>
1508
1509 PR ld/22970
1510 * reloc.c: Add BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12
1511 BFD_RELOC_AARCH64_TLSLE_LDST_TPREL_LO12_NC,
1512 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12,
1513 BFD_RELOC_AARCH64_TLSLE_LDST16_TPREL_LO12_NC,
1514 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12,
1515 BFD_RELOC_AARCH64_TLSLE_LDST32_TPREL_LO12_NC,
1516 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12,
1517 BFD_RELOC_AARCH64_TLSLE_LDST64_TPREL_LO12_NC,
1518 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12,
1519 BFD_RELOC_AARCH64_TLSLE_LDST8_TPREL_LO12_NC.
1520 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add table entry for
1521 TLSLE_LDST16_TPREL_LO12,
1522 TLSLE_LDST16_TPREL_LO12_NC,
1523 TLSLE_LDST32_TPREL_LO12,
1524 TLSLE_LDST32_TPREL_LO12_NC,
1525 TLSLE_LDST64_TPREL_LO12,
1526 TLSLE_LDST64_TPREL_LO12_NC,
1527 TLSLE_LDST8_TPREL_LO12,
1528 TLSLE_LDST8_TPREL_LO12_NC.
1529 * bfd-in2.h: Regenerated.
1530 * libbfd.h: Regenerated.
1531
f8745e1c
EB
15322018-03-28 Eric Botcazou <ebotcazou@adacore.com>
1533
1534 PR ld/22972
1535 * elfxx-sparc.c (struct _bfd_sparc_elf_link_hash_entry): Add new flag
1536 has_old_style_got_reloc.
1537 (_bfd_sparc_elf_check_relocs) <GOT relocations>: Set it for old-style
1538 relocations. Fix a couple of long lines.
1539 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: Do not generate
1540 a R_SPARC_NONE for the GOT slot if the symbol is also subject to old-style
1541 GOT relocations.
1542
bf54968b
L
15432018-03-25 H.J. Lu <hongjiu.lu@intel.com>
1544
1545 PR ld/23000
1546 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Add
1547 ENDBR64 to the TLSDESC PLT entry.
1548
0ccf57bd
AM
15492018-03-21 Alan Modra <amodra@gmail.com>
1550
1551 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Trim uninteresting
1552 symbols. Use size_t counts. Delete redundant opd test.
1553
4bad6366
AM
15542018-03-21 Alan Modra <amodra@gmail.com>
1555
1556 * elf32-ppc.c (ppc_elf_tls_optimize): Delete locsyms.
1557
bac3c8c5
AM
15582018-03-21 Alan Modra <amodra@gmail.com>
1559
1560 * elf32-ppc.c (struct ppc_elf_link_hash_entry): Make tls_mask
1561 field unsigned.
1562 (update_local_sym_info): Likewise for local_got_tls_masks.
1563 (ppc_elf_tls_optimize): Likewise for lgot_masks.
1564
6a3858a6
AM
15652018-03-21 Alan Modra <amodra@gmail.com>
1566
1567 * elf64-ppc.c (ppc_size_one_stub): Fix comment typo.
1568 (ppc64_elf_layout_multitoc): Allocate relocs for tprel as we
1569 do in size_dynamic_sections.
1570
675e2809
AM
15712018-03-21 Alan Modra <amodra@gmail.com>
1572
1573 * elf64-ppc.c (ppc64_elf_relocate_section): Don't access rel[1]
1574 without first checking array bounds.
1575 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1576
416c34d6
L
15772018-03-20 H.J. Lu <hongjiu.lu@intel.com>
1578
1579 PR ld/22983
1580 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Set
1581 non_ir_ref_dynamic if a symbol is made dynamic by --dynamic-list.
1582
315aa1cf
NC
15832018-03-19 Nick Clifton <nickc@redhat.com>
1584
1585 * po/es.po: Updated Spanish translation.
1586
0854d504
MF
15872018-03-15 Max Filippov <jcmvbkbc@gmail.com>
1588
1589 * elf32-xtensa.c (xlate_map_entry): Change types of address
1590 fields from 'unsigned' to 'bfd_vma'.
1591 (xlate_offset_with_removed_text): Use struct xlate_map_entry as
1592 the key argument to bsearch. Allow offsets past the end of a
1593 section, use the last map entry for translation of such offsets.
1594
f9671640
KLC
15952018-03-15 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1596
1597 * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Removed.
1598 Not support the target feature.
1599 (nds32_elf_ex9_itb_base): Likewise.
1600 (nds32_elf_ex9_import_table): Likewise.
1601 (nds32_elf_ex9_finish): Likewise.
1602 (nds32_elf_ex9_reloc_jmp): Likewise.
1603 (nds32_elf_get_insn_with_reg): Likewise.
1604 (nds32_get_local_syms): Likewise.
1605 (nds32_elf_ex9_replace_instruction): Likewise.
1606 (nds32_elf_ifc_calc): Likewise.
1607 (nds32_elf_ifc_finish): Likewise.
1608 (nds32_elf_ifc_replace): Likewise.
1609 (nds32_elf_ifc_reloc): Likewise.
1610
7dda8d3c
AM
16112018-03-14 Alan Modra <amodra@gmail.com>
1612
1613 * elf64-ppc.c (sfpr_define): Adjust for stub_sec size having
1614 sfpr size added before defining alias symbols.
1615 (ppc64_elf_build_stubs): Add stub section padding before
1616 copying sfpr contents and defining save/restore alias symbols.
1617
9e223787
L
16182018-03-14 H.J. Lu <hongjiu.lu@intel.com>
1619
1620 PR ld/20882
1621 * elflink.c (elf_gc_mark_debug_section): Also check the local
1622 debug definition section.
1623
3e33b239
NC
16242018-03-13 Nick Clifton <nickc@redhat.com>
1625
1626 PR 22113
1627 * pei-x86_64.c (pex64_get_unwind_info): Change to a boolean
1628 function. Add an end address parameter. Check access of the data
1629 pointer to make sure that they do not extend beyond the end
1630 address. Return FALSE if any check fails. Add the end address
1631 pointer to the ui structure.
1632 (pex64_xdata_print_uwd_codes): Check accesses of the raw unwind
1633 codes to make sure that they do not extend beyond the end address
1634 pointer. Print an error message and return immediately if any
1635 check fails.
1636
f657f8c4
NC
16372018-03-09 Nick Clifton <nickc@redhat.com>
1638
1639 * elf64-s390.c (elf_s390_relocate_section): Move check for
1640 relocations against non-allocated sections to before the code that
1641 handles ifunc relocations.
1642 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1643 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Treat
1644 relocs against IFUNC symbols in non-allocated sections as relocs
1645 against FUNC symbols.
1646 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1647
347a8774
L
16482018-03-08 H.J. Lu <hongjiu.lu@intel.com>
1649
1650 PR ld/22929
1651 * elf32-i386.c (elf_i386_relocate_section): Treat relocation
1652 against IFUNC symbol in SHT_NOTE section without SHF_ALLOC as
1653 relocation against FUNC symbol.
1654 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1655
0c1ded8d
RL
16562018-03-07 Renlin Li <renlin.li@arm.com>
1657
1658 PR ld/20402
1659 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Check absolute
1660 symbol, and don't emit relocation in specific case.
1661
0118219e
AM
16622018-03-07 Alan Modra <amodra@gmail.com>
1663
1664 * elf64-mips.c (mips_elf64_rtype_to_howto): Return NULL on error.
1665 (mips_elf64_slurp_one_reloc_table): Pass on error.
1666
dfb93f11
JC
16672018-03-03 James Cowgill <james.cowgill@mips.com>
1668 Maciej W. Rozycki <macro@mips.com>
1669
1670 PR ld/21900
1671 * elfxx-mips.c (mips_elf_calculate_relocation): Only return
1672 after calling `undefined_symbol' hook if this is an error
1673 condition. Assume the value of 0 for the symbol requested
1674 otherwise.
1675
9a2ebffd
JW
16762018-03-02 Jim Wilson <jimw@sifive.com>
1677
1678 PR 22903
1679 * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch
1680 and nop instead of 4.
1681 (elfNN_arch64_build_stubs): Add nop after branch. Increase size by
1682 8 instead of 4.
1683
788af978
JW
16842018-03-01 Jim Wilson <jimw@sifive.com>
1685
1686 PR 22756
1687 * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use
1688 else if instead of if.
1689
5224fa03
AM
16902018-03-01 Alan Modra <amodra@gmail.com>
1691
1692 * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test.
1693
116acb2c
AM
16942018-02-28 Alan Modra <amodra@gmail.com>
1695
1696 PR 22887
1697 * aoutx.h (swap_std_reloc_in): Correct r_index bound check.
1698
eef10466
NC
16992018-02-28 Nick Clifton <nickc@redhat.com>
1700
12c96342
NC
1701 PR 22895
1702 PR 22893
1703 * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block
1704 pointer. Drop unused abfd parameter. Check the size of the block
1705 before initialising the data field. Return the end pointer if the
1706 size is invalid.
1707 (read_attribute_value): Adjust invocations of read_n_bytes.
1708
eef10466
NC
1709 PR 22894
1710 * dwarf1.c (parse_die): Check the length of form blocks before
1711 advancing the data pointer.
1712
0d329c0a
AM
17132018-02-28 Alan Modra <amodra@gmail.com>
1714
1715 PR 22887
1716 * aoutx.h (translate_symbol_table): Print an error message and set
1717 bfd_error on finding an invalid name string offset.
1718
f6aec96d
L
17192018-02-27 H.J. Lu <hongjiu.lu@intel.com>
1720
1721 * config.in: Regenerated.
1722 * configure: Likewise.
1723 * configure.ac: Add --enable-separate-code.
1724 (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default
1725 to 1 for Linux/x86 targets,
1726 * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if
1727 DEFAULT_LD_Z_SEPARATE_CODE is 1.
1728
f3185997
NC
17292018-02-27 Nick Clifton <nickc@redhat.com>
1730
e8f5af78
NC
1731 * aout-cris.c (swap_ext_reloc_out): Standadize error/warning
1732 message.
1733 * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise.
1734 * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise.
1735 * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise.
1736 * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise.
1737 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1738 * elf64-sh64.c (sh_elf64_info_to_howto): Likewise.
1739 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1740 * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise.
1741 * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
1742
f3185997
NC
1743 PR 22875
1744 * elf-bfd.h (struct elf_backend_data): Change the return type of
1745 the elf_info_to_howto and elf_info_to_howto_rel function pointers
1746 to bfd_boolean.
1747 * elfcode.h (elf_slurp_reloc_table_from_section): Check the return
1748 value from the info_to_howto function and fail if that function
1749 failed.
1750 * elf32-h8300.c (elf32_h8_relocate_section): Check return value
1751 from the info_to_howto function.
1752 (elf32_h8_relax_section): Likewise.
1753 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1754 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1755 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1756 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1757 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1758 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1759 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
1760 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
1761 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1762 * elfnn-riscv.c (riscv_elf_check_relocs): Likewise.
1763 (riscv_elf_relocate_section): Likewise.
1764 * elf-hppa.h (elf_hppa_info_to_howto): Change return type to
1765 bfd_boolean. Issue an error message, set an error value and
1766 return FALSE if the reloc is not recognized.
1767 (elf_hppa_info_to_howto_rel): Likewise.
1768 * elf-m10200.c (mn10200_info_to_howto): Likewise.
1769 * elf-m10300.c (mn10300_info_to_howto): Likewise.
1770 * elf.c (_bfd_elf_no_info_to_howto): Likewise.
1771 * elf32-arc.c (arc_info_to_howto_rel): Likewise.
1772 * elf32-arm.c (elf32_arm_info_to_howto): Likewise.
1773 * elf32-avr.c (avr_info_to_howto_rela): Likewise.
1774 * elf32-bfin.c (bfin_info_to_howto): Likewise.
1775 * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
1776 * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise.
1777 * elf32-cris.c (elf_cr16c_info_to_howto_rel)
1778 (cris_info_to_howto_rela): Likewise.
1779 * elf32-crx.c (elf_crx_info_to_howto): Likewise.
1780 * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
1781 * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela):
1782 Likewise.
1783 * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto)
1784 (elf32_dlx_info_to_howto_rel): Likewise.
1785 * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
1786 * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
1787 * elf32-frv.c (frv_info_to_howto_rela)
1788 (frvfdpic_info_to_howto_rel): Likewise.
1789 * elf32-ft32.c (ft32_info_to_howto_rela): Likewise.
1790 * elf32-gen.c (elf_generic_info_to_howto)
1791 (elf_generic_info_to_howto_rel): Likewise.
1792 * elf32-h8300.c (elf32_h8_info_to_howto)
1793 (elf32_h8_info_to_howto_rel): Likewise.
1794 * elf32-i370.c (i370_elf_info_to_howto): Likewise.
1795 * elf32-i386.c (elf_i386_reloc_type_lookup)
1796 (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise.
1797 * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela):
1798 Likewise.
1799 * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
1800 * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
1801 * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
1802 * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
1803 * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
1804 * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto):
1805 Likewise.
1806 * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
1807 * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
1808 * elf32-m68k.c (rtype_to_howto): Likewise.
1809 * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
1810 * elf32-mep.c (mep_info_to_howto_rela): Likewise.
1811 * elf32-metag.c (metag_info_to_howto_rela): Likewise.
1812 * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
1813 * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1814 Likewise.
1815 * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
1816 * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
1817 * elf32-mt.c (mt_info_to_howto_rela): Likewise.
1818 * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto):
1819 Likewise.
1820 * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise.
1821 * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
1822 * elf32-pj.c (pj_elf_info_to_howto): Likewise.
1823 * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
1824 * elf32-pru.c (pru_elf32_info_to_howto): Likewise.
1825 * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
1826 * elf32-rx.c (rx_info_to_howto_rela): Likewise.
1827 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1828 * elf32-score.c (s3_bfd_score_info_to_howto)
1829 (_bfd_score_info_to_howto): Likewise.
1830 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1831 * elf32-sh.c (sh_elf_info_to_howto): Likewise.
1832 * elf32-spu.c (spu_elf_info_to_howto): Likewise.
1833 * elf32-tic6x.c (elf32_tic6x_info_to_howto)
1834 (elf32_tic6x_info_to_howto_rel): Likewise.
1835 * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise.
1836 * elf32-v850.c (v850_elf_info_to_howto_rel)
1837 (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise.
1838 * elf32-vax.c (rtype_to_howto): Likewise.
1839 * elf32-visium.c (visium_info_to_howto_rela): Likewise.
1840 * elf32-wasm32.c (elf32_wasm32_rtype_to_howto)
1841 (elf32_wasm32_info_to_howto_rela): Likewise.
1842 * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise.
1843 * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
1844 * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise.
1845 * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
1846 * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
1847 * elf64-gen.c (elf_generic_info_to_howto)
1848 (elf_generic_info_to_howto_rel): Likewise.
1849 * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise.
1850 * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise.
1851 * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
1852 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1853 * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise.
1854 * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto):
1855 Likewise.
1856 * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise.
1857 * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela):
1858 Likewise.
1859 * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise.
1860 * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise.
1861 * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise.
1862 * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise.
1863 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise.
1864 * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise.
1865 * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype.
1866 * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype.
1867 * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype.
1868 * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel):
1869 Default to NULL.
1870
1f4bace8
JW
18712018-02-26 Jim Wilson <jimw@sifive.com>
1872 Stephan Schreiber <info@fs-driver.org>
1873
1874 PR 15904
1875 * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
1876 call, set changed_contents and changed_relocs. Likewise after
1877 successful ia64_elf_relax_br call.
1878
6838f2be
AM
18792018-02-26 Alan Modra <amodra@gmail.com>
1880
1881 * elf.c (assign_file_positions_except_relocs): Don't segfault
1882 when actual number of phdrs is less than allocated. Delete
1883 outdated comment. Formatting.
1884
38f14ab8
AM
18852018-02-26 Alan Modra <amodra@gmail.com>
1886
1887 * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
1888 * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
1889 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
1890 * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
1891 * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
1892 * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
1893 * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
1894 * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1895 * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
1896 * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
1897 error/warning messages.
1898
6e05870c
AM
18992018-02-26 Alan Modra <amodra@gmail.com>
1900
1901 * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
1902 * syms.c: Standardize error/warning messages.
1903
59d08d6c
AM
19042018-02-26 Alan Modra <amodra@gmail.com>
1905
1906 * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c,
1907 * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c,
1908 * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c,
1909 * peXXigen.c, * peicode.h: Standardize error/warning messages.
1910
90b6238f
AM
19112018-02-26 Alan Modra <amodra@gmail.com>
1912
1913 * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages.
1914
2c1c9679
AM
19152018-02-26 Alan Modra <amodra@gmail.com>
1916
1917 * elfxx-mips.c: Standardize error/warning messages.
1918
9793eb77
AM
19192018-02-26 Alan Modra <amodra@gmail.com>
1920
1921 * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c,
1922 * elflink.c: Standardize error/warning messages. Replace use of
1923 linker callback einfo with _bfd_error_handler when possible.
1924
0aa13fee
AM
19252018-02-26 Alan Modra <amodra@gmail.com>
1926
1927 * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c,
1928 * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c,
1929 * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c,
1930 * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c,
1931 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c,
1932 * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1933 * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c,
1934 * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c,
1935 * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1936 * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
1937 * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c,
1938 * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c,
1939 * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c,
1940 * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
1941 * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
1942 * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c,
1943 * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c,
1944 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
1945 * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c,
1946 * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h,
1947 * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize
1948 unrecognized/unsupported reloc message.
1949
cf97bcb0
AM
19502018-02-26 Alan Modra <amodra@gmail.com>
1951
1952 * elf32-ppc.c: Standardize error/warning messages. Use
1953 _bfd_error_handler rather than einfo when einfo features not used.
1954 * elf64-ppc.c: Likewise.
1955
01f7e10c
AM
19562018-02-23 Alan Modra <amodra@gmail.com>
1957
1958 PR 22881
1959 * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO
1960 segment if no matching LOAD segment.
1961
e859f655
KLC
19622018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1963
1964 * elf32-nds32.h: Define mask for ict_model.
1965
6e8d06db
JD
19662018-02-20 Jason Duerstock <jason.duerstock@gmail.com>
1967
1968 * elfnn-ia64.c (elf_backend_can_gc_sections): Enable.
1969
b248d650
MR
19702018-02-19 Maciej W. Rozycki <macro@mips.com>
1971
1972 Revert
1973 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
1974
1975 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
1976 .reginfo section has wrong size.
1977
6798f8bf
MR
19782018-02-19 Maciej W. Rozycki <macro@mips.com>
1979
1980 * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set
1981 SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and
1982 `.MIPS.abiflags' sections.
1983 (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo'
1984 section's end.
1985
8772de11
MR
19862018-02-19 Maciej W. Rozycki <macro@mips.com>
1987
1988 * section.c (SEC_FIXED_SIZE): New macro.
1989 * bfd-in2.h: Regenerate.
1990
4f7fd351
MR
19912018-02-19 Maciej W. Rozycki <macro@mips.com>
1992
1993 * section.c (SEC_HAS_GOT_REF): Remove macro.
1994 * bfd-in2.h: Regenerate.
1995
f2b740ac
AM
19962018-02-19 Alan Modra <amodra@gmail.com>
1997
1998 * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler
1999 arguments.
2000 * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise.
2001 * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise.
2002 (_bfd_riscv_relax_pc): Likewise and fix typos.
2003 * libbfd-in.h (_bfd_error_handler): Add attribute printf.
2004 * libbfd.h: Regenerate.
2005
8979927a
AM
20062018-02-19 Alan Modra <amodra@gmail.com>
2007
2008 * dwarf2.c (read_section): Don't use 'll' format modifier.
2009 (find_abstract_instance): Likewise.
2010 * elfcore.h (elf_core_file_p): Likewise.
2011
2dcf00ce
AM
20122018-02-19 Alan Modra <amodra@gmail.com>
2013
2014 * bfd-in.h: Include inttypes.h or if not available define
2015 PRId64, PRIu64 and PRIx64.
2016 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L
2017 modifier to print bfd_vma.
2018 * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c,
2019 * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c,
2020 * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c,
2021 * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c,
2022 * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c,
2023 * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c,
2024 * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
2025 * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c,
2026 * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c,
2027 * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c,
2028 * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c,
2029 * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c,
2030 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c,
2031 * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c,
2032 * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64,
2033 and cast input to uint64_t, and similarly for Ld and Lu.
2034 * bfd-in2.h: Regenerate.
2035
c1c8c1ef
AM
20362018-02-19 Alan Modra <amodra@gmail.com>
2037
2038 * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c,
2039 * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c,
2040 * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c,
2041 * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c,
2042 * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c,
2043 * reloc.c: Replace use of %R and %T in format strings passed to
2044 einfo and friends by %pR and %pT.
2045
871b3ab2
AM
20462018-02-19 Alan Modra <amodra@gmail.com>
2047
2048 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place
2049 of %A and %B.
2050 * aout-adobe.c: Update all messages using %A and %B.
2051 * aout-cris.c: Likewise.
2052 * aoutx.h: Likewise.
2053 * archive.c: Likewise.
2054 * binary.c: Likewise.
2055 * cache.c: Likewise.
2056 * coff-alpha.c: Likewise.
2057 * coff-arm.c: Likewise.
2058 * coff-i860.c: Likewise.
2059 * coff-mcore.c: Likewise.
2060 * coff-ppc.c: Likewise.
2061 * coff-rs6000.c: Likewise.
2062 * coff-sh.c: Likewise.
2063 * coff-tic4x.c: Likewise.
2064 * coff-tic54x.c: Likewise.
2065 * coff-tic80.c: Likewise.
2066 * coff64-rs6000.c: Likewise.
2067 * coffcode.h: Likewise.
2068 * coffgen.c: Likewise.
2069 * cofflink.c: Likewise.
2070 * coffswap.h: Likewise.
2071 * compress.c: Likewise.
2072 * cpu-arm.c: Likewise.
2073 * ecoff.c: Likewise.
2074 * elf-attrs.c: Likewise.
2075 * elf-eh-frame.c: Likewise.
2076 * elf-ifunc.c: Likewise.
2077 * elf-m10300.c: Likewise.
2078 * elf-properties.c: Likewise.
2079 * elf-s390-common.c: Likewise.
2080 * elf.c: Likewise.
2081 * elf32-arc.c: Likewise.
2082 * elf32-arm.c: Likewise.
2083 * elf32-avr.c: Likewise.
2084 * elf32-bfin.c: Likewise.
2085 * elf32-cr16.c: Likewise.
2086 * elf32-cr16c.c: Likewise.
2087 * elf32-cris.c: Likewise.
2088 * elf32-crx.c: Likewise.
2089 * elf32-d10v.c: Likewise.
2090 * elf32-d30v.c: Likewise.
2091 * elf32-epiphany.c: Likewise.
2092 * elf32-fr30.c: Likewise.
2093 * elf32-frv.c: Likewise.
2094 * elf32-gen.c: Likewise.
2095 * elf32-hppa.c: Likewise.
2096 * elf32-i370.c: Likewise.
2097 * elf32-i386.c: Likewise.
2098 * elf32-i960.c: Likewise.
2099 * elf32-ip2k.c: Likewise.
2100 * elf32-iq2000.c: Likewise.
2101 * elf32-lm32.c: Likewise.
2102 * elf32-m32c.c: Likewise.
2103 * elf32-m32r.c: Likewise.
2104 * elf32-m68hc11.c: Likewise.
2105 * elf32-m68hc12.c: Likewise.
2106 * elf32-m68hc1x.c: Likewise.
2107 * elf32-m68k.c: Likewise.
2108 * elf32-mcore.c: Likewise.
2109 * elf32-mep.c: Likewise.
2110 * elf32-metag.c: Likewise.
2111 * elf32-microblaze.c: Likewise.
2112 * elf32-moxie.c: Likewise.
2113 * elf32-msp430.c: Likewise.
2114 * elf32-mt.c: Likewise.
2115 * elf32-nds32.c: Likewise.
2116 * elf32-nios2.c: Likewise.
2117 * elf32-or1k.c: Likewise.
2118 * elf32-pj.c: Likewise.
2119 * elf32-ppc.c: Likewise.
2120 * elf32-rl78.c: Likewise.
2121 * elf32-rx.c: Likewise.
2122 * elf32-s390.c: Likewise.
2123 * elf32-score.c: Likewise.
2124 * elf32-score7.c: Likewise.
2125 * elf32-sh-symbian.c: Likewise.
2126 * elf32-sh.c: Likewise.
2127 * elf32-sh64.c: Likewise.
2128 * elf32-sparc.c: Likewise.
2129 * elf32-spu.c: Likewise.
2130 * elf32-tic6x.c: Likewise.
2131 * elf32-tilepro.c: Likewise.
2132 * elf32-v850.c: Likewise.
2133 * elf32-vax.c: Likewise.
2134 * elf32-visium.c: Likewise.
2135 * elf32-wasm32.c: Likewise.
2136 * elf32-xgate.c: Likewise.
2137 * elf32-xtensa.c: Likewise.
2138 * elf64-alpha.c: Likewise.
2139 * elf64-gen.c: Likewise.
2140 * elf64-hppa.c: Likewise.
2141 * elf64-ia64-vms.c: Likewise.
2142 * elf64-mmix.c: Likewise.
2143 * elf64-ppc.c: Likewise.
2144 * elf64-s390.c: Likewise.
2145 * elf64-sh64.c: Likewise.
2146 * elf64-sparc.c: Likewise.
2147 * elf64-x86-64.c: Likewise.
2148 * elfcode.h: Likewise.
2149 * elfcore.h: Likewise.
2150 * elflink.c: Likewise.
2151 * elfnn-aarch64.c: Likewise.
2152 * elfnn-ia64.c: Likewise.
2153 * elfnn-riscv.c: Likewise.
2154 * elfxx-mips.c: Likewise.
2155 * elfxx-sparc.c: Likewise.
2156 * elfxx-tilegx.c: Likewise.
2157 * elfxx-x86.c: Likewise.
2158 * hpux-core.c: Likewise.
2159 * ieee.c: Likewise.
2160 * ihex.c: Likewise.
2161 * libbfd.c: Likewise.
2162 * linker.c: Likewise.
2163 * mach-o.c: Likewise.
2164 * merge.c: Likewise.
2165 * mmo.c: Likewise.
2166 * oasys.c: Likewise.
2167 * pdp11.c: Likewise.
2168 * pe-mips.c: Likewise.
2169 * peXXigen.c: Likewise.
2170 * peicode.h: Likewise.
2171 * reloc.c: Likewise.
2172 * rs6000-core.c: Likewise.
2173 * srec.c: Likewise.
2174 * stabs.c: Likewise.
2175 * vms-alpha.c: Likewise.
2176 * xcofflink.c: Likewise.
2177
dbc88fc1
AM
21782018-02-19 Alan Modra <amodra@gmail.com>
2179
2180 PR 22845
2181 * elf.c (IS_TBSS): Define.
2182 (_bfd_elf_map_sections_to_segments): Use IS_TBSS.
2183 (assign_file_positions_for_non_load_sections): Revert last change.
2184 Properly calculate load segment limits to compare against relro limits.
2185
325ba6fb
AM
21862018-02-17 Alan Modra <amodra@gmail.com>
2187
2188 PR 22845
2189 * elf.c (assign_file_positions_for_non_load_sections): Ignore
2190 degenerate zero size PT_LOAD segments when finding one overlapping
2191 the PT_GNU_RELRO segment.
2192
d00dd7dc
AM
21932018-02-16 Alan Modra <amodra@gmail.com>
2194
2195 * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false.
2196 (_bfd_bool_bfd_true): Rename from bfd_true.
2197 (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr.
2198 (_bfd_int_bfd_0): Rename from bfd_0.
2199 (_bfd_uint_bfd_0): Rename from bfd_0u.
2200 (_bfd_long_bfd_0): Rename from bfd_0l.
2201 (_bfd_long_bfd_n1_error): Rename from _bfd_n1.
2202 (_bfd_void_bfd): Rename from bfd_void.
2203 (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false),
2204 (_bfd_bool_bfd_link_false_error),
2205 (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true),
2206 (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true),
2207 (_bfd_bool_bfd_asection_bfd_asection_true),
2208 (_bfd_bool_bfd_asymbol_bfd_asymbol_true),
2209 (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions.
2210 * archive.c (_bfd_noarchive_get_elt_at_index),
2211 (_bfd_noarchive_openr_next_archived_file),
2212 (_bfd_noarchive_construct_extended_name_table),
2213 (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname),
2214 (_bfd_noarchive_write_armap): New functions.
2215 * archures.c (_bfd_nowrite_set_arch_mach): New function.
2216 * coff-alpha.c (alpha_ecoff_swap_coff_aux_in),
2217 (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in),
2218 (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out),
2219 (alpha_ecoff_swap_coff_lineno_out),
2220 (alpha_ecoff_swap_coff_reloc_out): New functions.
2221 * coff-mips.c (mips_ecoff_swap_coff_aux_in),
2222 (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in),
2223 (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out),
2224 (mips_ecoff_swap_coff_lineno_out),
2225 (mips_ecoff_swap_coff_reloc_out): New functions.
2226 * coffcode.h (coff_set_alignment_hook): Replace define with
2227 new function.
2228 (symname_in_debug_hook): Likewise.
2229 * ecoff.c (_bfd_ecoff_set_alignment_hook): New function.
2230 * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0.
2231 * elf.c (assign_file_positions_except_relocs): Test
2232 elf_backend_allow_non_load_phdr for NULL.
2233 * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from
2234 _bfd_elf_link_omit_section_dynsym. Update uses.
2235 (_bfd_elf_omit_section_dynsym_all): New function.
2236 * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete.
2237 (_bfd_elf_omit_section_dynsym_default): Declare.
2238 (_bfd_elf_omit_section_dynsym_all): Declare.
2239 * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section),
2240 (_bfd_nolink_bfd_get_relocated_section_contents),
2241 (_bfd_nolink_bfd_lookup_section_flags),
2242 (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group),
2243 (_bfd_nolink_bfd_link_hash_table_create),
2244 (_bfd_nolink_bfd_link_just_syms),
2245 (_bfd_nolink_bfd_copy_link_hash_symbol_type),
2246 (_bfd_nolink_bfd_link_split_section),
2247 (_bfd_nolink_section_already_linked),
2248 (_bfd_nolink_bfd_define_common_symbol),
2249 (_bfd_nolink_bfd_define_start_stop): New functions.
2250 * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup),
2251 (_bfd_norelocs_bfd_reloc_name_lookup),
2252 (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions.
2253 * section.c (_bfd_nowrite_set_section_contents): New function.
2254 * syms.c (_bfd_nosymbols_canonicalize_symtab),
2255 (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info),
2256 (_bfd_nosymbols_get_symbol_version_string),
2257 (_bfd_nosymbols_bfd_is_local_label_name),
2258 (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line),
2259 (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info),
2260 (_bfd_nosymbols_bfd_make_debug_symbol),
2261 ( _bfd_nosymbols_read_minisymbols),
2262 ( _bfd_nosymbols_minisymbol_to_symbol),
2263 (_bfd_nodynamic_get_synthetic_symtab): New functions.
2264 * libbfd-in.h: Declare new functions. Update existing defines,
2265 removing casts.
2266 * aix386-core.c: Update to use new hooks. Formatting.
2267 * aout-adobe.c: Likewise.
2268 * aout-arm.c: Likewise.
2269 * aout-target.h: Likewise.
2270 * aout-tic30.c: Likewise.
2271 * aoutf1.h: Likewise.
2272 * binary.c: Likewise.
2273 * bout.c: Likewise.
2274 * cisco-core.c: Likewise.
2275 * coff-alpha.c: Likewise.
2276 * coff-i386.c: Likewise.
2277 * coff-i860.c: Likewise.
2278 * coff-i960.c: Likewise.
2279 * coff-ia64.c: Likewise.
2280 * coff-mips.c: Likewise.
2281 * coff-ppc.c: Likewise.
2282 * coff-rs6000.c: Likewise.
2283 * coff-sh.c: Likewise.
2284 * coff-tic30.c: Likewise.
2285 * coff-tic54x.c: Likewise.
2286 * coff-x86_64.c: Likewise.
2287 * coff64-rs6000.c: Likewise.
2288 * coffcode.h: Likewise.
2289 * elf-m10300.c: Likewise.
2290 * elf32-cr16.c: Likewise.
2291 * elf32-lm32.c: Likewise.
2292 * elf32-m32r.c: Likewise.
2293 * elf32-metag.c: Likewise.
2294 * elf32-score.c: Likewise.
2295 * elf32-score7.c: Likewise.
2296 * elf32-tilepro.c: Likewise.
2297 * elf32-xstormy16.c: Likewise.
2298 * elf32-xtensa.c: Likewise.
2299 * elf64-alpha.c: Likewise.
2300 * elf64-hppa.c: Likewise.
2301 * elf64-ia64-vms.c: Likewise.
2302 * elf64-mmix.c: Likewise.
2303 * elf64-sh64.c: Likewise.
2304 * elfnn-ia64.c: Likewise.
2305 * elfxx-sparc.c: Likewise.
2306 * elfxx-target.h: Likewise.
2307 * elfxx-tilegx.c: Likewise.
2308 * elfxx-x86.h: Likewise.
2309 * hp300hpux.c: Likewise.
2310 * hppabsd-core.c: Likewise.
2311 * hpux-core.c: Likewise.
2312 * i386msdos.c: Likewise.
2313 * i386os9k.c: Likewise.
2314 * ieee.c: Likewise.
2315 * ihex.c: Likewise.
2316 * irix-core.c: Likewise.
2317 * libaout.h: Likewise.
2318 * libecoff.h: Likewise.
2319 * mach-o-target.c: Likewise.
2320 * mach-o.c: Likewise.
2321 * mipsbsd.c: Likewise.
2322 * mmo.c: Likewise.
2323 * netbsd-core.c: Likewise.
2324 * nlm-target.h: Likewise.
2325 * oasys.c: Likewise.
2326 * osf-core.c: Likewise.
2327 * pdp11.c: Likewise.
2328 * pe-mips.c: Likewise.
2329 * pe-x86_64.c: Likewise.
2330 * pef.c: Likewise.
2331 * plugin.c: Likewise.
2332 * ppcboot.c: Likewise.
2333 * ptrace-core.c: Likewise.
2334 * sco5-core.c: Likewise.
2335 * som.c: Likewise.
2336 * sparclynx.c: Likewise.
2337 * srec.c: Likewise.
2338 * tekhex.c: Likewise.
2339 * trad-core.c: Likewise.
2340 * verilog.c: Likewise.
2341 * versados.c: Likewise.
2342 * vms-alpha.c: Likewise.
2343 * vms-lib.c: Likewise.
2344 * wasm-module.c: Likewise.
2345 * xsym.c: Likewise.
2346 * libbfd.h: Regenerate.
2347
2a0d9853
JW
23482018-02-15 Jim Wilson <jimw@sifive.com>
2349
09ca4b9d
JW
2350 * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore
2351 symbols whose section address is zero.
2352
2a0d9853
JW
2353 * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous
2354 when pcrel_lo reloc has an addend. Use reloc_dangerous callback for
2355 bfd_reloc_dangerous. Use einfo instead of warning callback for errors.
2356 Add %X%P to error messages.
2357
e513bd38
EB
23582018-02-15 Eric Botcazou <ebotcazou@adacore.com>
2359
2360 PR ld/22832
2361 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2362 Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup
2363 and assert that the result of the call is not NULL.
2364
12ef3f5a
NC
23652018-02-14 Nick Clifton <nickc@redhat.com>
2366
2367 PR 22823
2368 Revert previous delta. Add extra casts to avoid compile time
2369 warnings instead.
2370 * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra
2371 cast to avoid warning from gcc v8 compiler.
2372 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2373 (_bfd_generic_bfd_set_private_flags): Likewise.
2374 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2375 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2376 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2377 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2378 (_bfd_noarchive_construct_extended_name_table): Likewise.
2379 (_bfd_noarchive_truncate_arname): Likewise.
2380 (_bfd_noarchive_write_ar_hdr): Likewise.
2381 (_bfd_noarchive_get_elt_at_index): Likewise.
2382 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2383 (_bfd_nosymbols_print_symbol): Likewise.
2384 (_bfd_nosymbols_get_symbol_info): Likewise.
2385 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2386 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2387 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2388 (_bfd_nosymbols_get_lineno): Likewise.
2389 (_bfd_nosymbols_find_nearest_line): Likewise.
2390 (_bfd_nosymbols_find_line): Likewise.
2391 (_bfd_nosymbols_find_inliner_info): Likewise.
2392 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2393 (_bfd_nosymbols_read_minisymbols): Likewise.
2394 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2395 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2396 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2397 (_bfd_nowrite_set_arch_mach): Likewise.
2398 (_bfd_nowrite_set_section_contents): Likewise.
2399 (_bfd_nolink_sizeof_headers): Likewise.
2400 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2401 (_bfd_nolink_bfd_relax_section): Likewise.
2402 (_bfd_nolink_bfd_gc_sections): Likewise.
2403 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2404 (_bfd_nolink_bfd_merge_sections): Likewise.
2405 (_bfd_nolink_bfd_is_group_section): Likewise.
2406 (_bfd_nolink_bfd_discard_group): Likewise.
2407 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2408 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2409 (_bfd_nolink_bfd_link_just_syms): Likewise.
2410 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2411 (_bfd_nolink_bfd_final_link): Likewise.
2412 (_bfd_nolink_bfd_link_split_section): Likewise.
2413 (_bfd_nolink_section_already_linked): Likewise.
2414 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2415 (_bfd_nolink_bfd_define_start_stop): Likewise.
2416 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2417 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2418 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2419 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2420 * libbfd.c (bfd_false_any): Delete.
2421 (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete.
2422 (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete.
2423 * libbfd.h (extern): Regenerate
2424 * aout-target.h (MY_bfd_is_target_special_symbol): Add extra
2425 cast to avoid warning from gcc v8 compiler.
2426 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2427 * binary.c (binary_get_symbol_info): Likewise.
2428 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2429 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2430 * coffcode.h (coff_set_alignment_hook): Likewise.
2431 (symname_in_debug_hook): Likewise.
2432 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2433 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2434 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2435 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2436 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2437 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2438 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2439 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2440 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2441 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2442 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2443 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2444 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2445 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2446 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2447 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2448 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2449 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2450 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2451 (bfd_elfNN_bfd_set_private_flags): Likewise.
2452 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2453 (elf_backend_init_index_section): Likewise.
2454 (elf_backend_allow_non_load_phdr): Likewise.
2455 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2456 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2457 * ieee.c (ieee_construct_extended_name_table): Likewise.
2458 (ieee_write_armap): Likewise.
2459 (ieee_write_ar_hdr): Likewise.
2460 (ieee_bfd_is_target_special_symbol): Likewise.
2461 * ihex.c (ihex_canonicalize_symtab): Likewise.
2462 (ihex_bfd_is_target_special_symbol): Likewise.
2463 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2464 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2465 (_bfd_ecoff_set_alignment_hook): Likewise.
2466 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2467 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2468 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2469 * oasys.c (oasys_construct_extended_name_table): Likewise.
2470 (oasys_write_armap): Likewise.
2471 (oasys_write_ar_hdr): Likewise.
2472 (oasys_bfd_is_target_special_symbol): Likewise.
2473 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2474 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2475 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2476 * som.c (som_bfd_is_target_special_symbol): Likewise.
2477 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2478 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2479 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2480 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2481 (versados_bfd_reloc_name_lookup): Likewise.
2482 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2483 (vms_bfd_define_start_stop): Likewise.
2484 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2485 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2486 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2487
451875b4
L
24882018-02-14 H.J. Lu <hongjiu.lu@intel.com>
2489
2490 PR ld/22842
2491 * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non
2492 PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2493 * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for
2494 R_X86_64_PC32 reloc against dynamic function in data section.
2495 Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P.
2496 (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc
2497 against dynamic function in data section.
2498 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as
2499 function address only if pcrel_plt is true.
2500 (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt.
2501 * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for
2502 PC-relative PLT. If PLT is PC-relative, don't generate dynamic
2503 PC-relative relocation against a function definition in data
2504 secton in PIE. Remove the obsolete comments.
2505 (elf_x86_link_hash_table): Add pcrel_plt.
2506
1031c264
L
25072018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2508
2509 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll,
2510 instead of bfd_link_pic, for building shared library.
2511
bd7ab16b
L
25122018-02-13 H.J. Lu <hongjiu.lu@intel.com>
2513
2514 PR gas/22791
2515 * elf64-x86-64.c (is_32bit_relative_branch): Removed.
2516 (elf_x86_64_relocate_section): Check PIC relocations in PIE.
2517 Remove is_32bit_relative_branch usage. Disallow PC32 reloc
2518 against protected function in shared object.
2519
80c96350
ST
25202018-02-13 Sergei Trofimovich <slyfox@inbox.ru>
2521
2522 PR 22828
2523 * po/ru.po: Fix typo in Russian translation.
2524
87993319
MR
25252018-02-13 Maciej W. Rozycki <macro@mips.com>
2526
2527 * wasm-module.c (wasm_scan_name_function_section): Rename
2528 `index' local variable to `idx'.
2529
68d20676
NC
25302018-02-13 Nick Clifton <nickc@redhat.com>
2531
2532 PR 22823
2533 Fix compile time warnings generated by gcc version 8.
2534 * libbfd-in.h: Remove extraneous text from prototypes.
2535 Add prototypes for bfd_false_any, bfd_true_any,
2536 bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any,
2537 bfd_n1_any, bfd_void_any.
2538 (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy
2539 function.
2540 (_bfd_generic_bfd_merge_private_bfd_data): Likewise.
2541 (_bfd_generic_bfd_set_private_flags): Likewise.
2542 (_bfd_generic_bfd_copy_private_section_data): Likewise.
2543 (_bfd_generic_bfd_copy_private_symbol_data): Likewise.
2544 (_bfd_generic_bfd_copy_private_header_data): Likewise.
2545 (_bfd_generic_bfd_print_private_bfd_data): Likewise.
2546 (_bfd_noarchive_construct_extended_name_table): Likewise.
2547 (_bfd_noarchive_truncate_arname): Likewise.
2548 (_bfd_noarchive_write_ar_hdr): Likewise.
2549 (_bfd_noarchive_get_elt_at_index): Likewise.
2550 (_bfd_nosymbols_canonicalize_symtab): Likewise.
2551 (_bfd_nosymbols_print_symbol): Likewise.
2552 (_bfd_nosymbols_get_symbol_info): Likewise.
2553 (_bfd_nosymbols_get_symbol_version_string): Likewise.
2554 (_bfd_nosymbols_bfd_is_local_label_name): Likewise.
2555 (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise.
2556 (_bfd_nosymbols_get_lineno): Likewise.
2557 (_bfd_nosymbols_find_nearest_line): Likewise.
2558 (_bfd_nosymbols_find_line): Likewise.
2559 (_bfd_nosymbols_find_inliner_info): Likewise.
2560 (_bfd_nosymbols_bfd_make_debug_symbol): Likewise.
2561 (_bfd_nosymbols_read_minisymbols): Likewise.
2562 (_bfd_nosymbols_minisymbol_to_symbol): Likewise.
2563 (_bfd_norelocs_bfd_reloc_type_lookup): Likewise.
2564 (_bfd_norelocs_bfd_reloc_name_lookup): Likewise.
2565 (_bfd_nowrite_set_arch_mach): Likewise.
2566 (_bfd_nowrite_set_section_contents): Likewise.
2567 (_bfd_nolink_sizeof_headers): Likewise.
2568 (_bfd_nolink_bfd_get_relocated_section_contents): Likewise.
2569 (_bfd_nolink_bfd_relax_section): Likewise.
2570 (_bfd_nolink_bfd_gc_sections): Likewise.
2571 (_bfd_nolink_bfd_lookup_section_flags): Likewise.
2572 (_bfd_nolink_bfd_merge_sections): Likewise.
2573 (_bfd_nolink_bfd_is_group_section): Likewise.
2574 (_bfd_nolink_bfd_discard_group): Likewise.
2575 (_bfd_nolink_bfd_link_hash_table_create): Likewise.
2576 (_bfd_nolink_bfd_link_add_symbols): Likewise.
2577 (_bfd_nolink_bfd_link_just_syms): Likewise.
2578 (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise.
2579 (_bfd_nolink_bfd_final_link): Likewise.
2580 (_bfd_nolink_bfd_link_split_section): Likewise.
2581 (_bfd_nolink_section_already_linked): Likewise.
2582 (_bfd_nolink_bfd_define_common_symbol): Likewise.
2583 (_bfd_nolink_bfd_define_start_stop): Likewise.
2584 (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise.
2585 (_bfd_nodynamic_get_synthetic_symtab): Likewise.
2586 (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise.
2587 (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise.
2588 * libbfd.c (bfd_false_any): New function. Like bfd_false but
2589 accepts one or more arguments.
2590 (bfd_true_any): Likewise.
2591 (bfd_nullvoidptr_any): Likewise.
2592 (bfd_0_any): Likewise.
2593 (bfd_0u_any): Likewise.
2594 (bfd_0l_any): Likewise.
2595 (_bfd_n1_any): Likewise.
2596 (bfd_void_any): Likewise.
2597 * libbfd.h (extern): Regenerate
2598 * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg
2599 based dummy function.
2600 * aout-tic30.c (tic30_aout_set_arch_mach): Likewise.
2601 * binary.c (binary_get_symbol_info): Likewise.
2602 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
2603 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2604 * coffcode.h (coff_set_alignment_hook): Likewise.
2605 (symname_in_debug_hook): Likewise.
2606 (bfd_coff_backend_data bigobj_swap_table): Likewise.
2607 * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise.
2608 * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise.
2609 * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise.
2610 * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise.
2611 * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise.
2612 * elf32-score.c (elf_backend_omit_section_dynsym): Likewise.
2613 * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise.
2614 * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise.
2615 * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise.
2616 * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise.
2617 * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise.
2618 * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise.
2619 * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise.
2620 * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise.
2621 * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise.
2622 * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise.
2623 (bfd_elfNN_bfd_make_debug_symbol): Likewise.
2624 (bfd_elfNN_bfd_merge_private_bfd_data): Likewise.
2625 (bfd_elfNN_bfd_set_private_flags): Likewise.
2626 (bfd_elfNN_bfd_is_target_special_symbol): Likewise.
2627 (elf_backend_init_index_section): Likewise.
2628 (elf_backend_allow_non_load_phdr): Likewise.
2629 * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise.
2630 * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise.
2631 * ieee.c (ieee_construct_extended_name_table): Likewise.
2632 (ieee_write_armap): Likewise.
2633 (ieee_write_ar_hdr): Likewise.
2634 (ieee_bfd_is_target_special_symbol): Likewise.
2635 * ihex.c (ihex_canonicalize_symtab): Likewise.
2636 (ihex_bfd_is_target_special_symbol): Likewise.
2637 * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise.
2638 * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise.
2639 (_bfd_ecoff_set_alignment_hook): Likewise.
2640 * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise.
2641 * mmo.c (mmo_bfd_is_target_special_symbol): Likewise.
2642 * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise.
2643 * oasys.c (oasys_construct_extended_name_table): Likewise.
2644 (oasys_write_armap): Likewise.
2645 (oasys_write_ar_hdr): Likewise.
2646 (oasys_bfd_is_target_special_symbol): Likewise.
2647 * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise.
2648 * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise.
2649 * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise.
2650 * som.c (som_bfd_is_target_special_symbol): Likewise.
2651 * srec.c (srec_bfd_is_target_special_symbol): Likewise.
2652 * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise.
2653 * verilog.c (verilog_bfd_is_target_special_symbol): Likewise.
2654 * versados.c (versados_bfd_is_target_special_symbol): Likewise.
2655 (versados_bfd_reloc_name_lookup): Likewise.
2656 * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise.
2657 (vms_bfd_define_start_stop): Likewise.
2658 (alpha_vms_bfd_is_target_special_symbol): Likewise.
2659 * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise.
2660 * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise.
2661 * elf32-arc.c (get_replace_function): Assign replacement function
2662 to func pointer.
2663 * elf32-i370.c (i370_noop): Update prototype.
2664
6e5e9d58
AM
26652018-02-13 Alan Modra <amodra@gmail.com>
2666
2667 PR 22836
2668 * elf.c (_bfd_elf_fixup_group_sections): Account for removed
2669 relocation sections. If size reduces to just the flag word,
2670 remove that too and mark with SEC_EXCLUDE.
2671 * elflink.c (bfd_elf_final_link): Strip empty group sections.
2672
f2731e0c
AM
26732018-02-13 Alan Modra <amodra@gmail.com>
2674
2675 PR 22829
2676 * elf.c (assign_file_positions_for_non_load_sections): Rewrite
2677 PT_GNU_RELRO setup.
2678
830db048
ZF
26792018-02-12 Zebediah Figura <z.figura12@gmail.com>
2680
2681 * i386msdos.c (msdos_mkobject); New function.
2682 (msdos_object_p): New function.
2683 (i386_msdos_vec): Use msdos_object_p as the check_format
2684 function.
2685 * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and
2686 NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and
2687 IMAGE_NT_SIGNATURE.
2688 * peXXigen.c: Likewise.
2689 * coff-ia64.c: Likewise.
2690
94fe5757
NC
26912018-02-12 Nick Clifton <nickc@redhat.com>
2692
2693 * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant
2694 assignment.
0b8683b7 2695 * elf32-arc.c (elf_arc_relocate_section): Likewise.
94fe5757 2696
d805612e 26972018-02-09 Eric Botcazou <ebotcazou@adacore.com>
a8735c82
EB
2698
2699 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions.
2700 (sparc_elf_append_rela): Assert that there is enough room in section.
2701 (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting.
2702 (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak.
2703 (allocate_dynrelocs): Remove outdated comments and reorder conditions.
2704 For a symbol subject to a GOT relocation, reserve a slot in the
2705 relocation section if the symbol isn't dynamic and we are in PIC mode.
2706 (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation
2707 is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation.
2708 <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments.
2709 <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion.
2710 (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into
2711 resolved_to_zero. Do not generate a dynamic GOT relocation for an
2712 undefined weak symbol with non-default visibility. Remove superfluous
2713 'else' and fix formatting.
2714
3b4c3844
L
27152018-02-09 H.J. Lu <hongjiu.lu@intel.com>
2716
2717 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
2718 is_solaris.
2719 (i386_elf32_sol2_vec): Don't declare.
2720 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
2721 Don't set need_global_offset_table.
2722 (elf_i386_solaris_arch_bed): New.
2723 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
2724 Solaris.
2725 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
2726 target_os != is_nacl instead of target_os == is_normal.
2727 (x86_64_elf64_sol2_vec): Don't declare.
2728 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
2729 is_nacl instead of target_os == is_normal. Don't set
2730 need_global_offset_table.
2731 (elf_x86_64_solaris_arch_bed): New.
2732 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
2733 Solaris.
2734 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
2735 _GLOBAL_OFFSET_TABLE_ for Solaris.
2736 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
2737 need_global_offset_table.
2738 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
2739 (elf_x86_link_hash_table): Remove need_global_offset_table.
2740 (elf_x86_init_table): Likewise.
2741
15b23f36
L
27422018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2743
2744 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2745 Remove prototype.
2746 (i386_elf32_sol2_vec): Declared.
2747 (elf_i386_link_setup_gnu_properties): Set
2748 need_global_offset_table with info->output_bfd->xvec.
2749 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2750 Remove prototype.
2751 (x86_64_elf64_sol2_vec): Declared.
2752 (elf_x86_64_link_setup_gnu_properties): Set
2753 need_global_offset_table with info->output_bfd->xvec.
2754
dc11dea2
L
27552018-02-08 H.J. Lu <hongjiu.lu@intel.com>
2756
2757 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
2758 New prototype.
2759 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
2760 for Solaris.
2761 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
2762 New prototype.
2763 (elf_x86_64_link_setup_gnu_properties): Set
2764 need_global_offset_table for Solaris.
2765 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
2766 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
2767 (_bfd_x86_elf_link_setup_gnu_properties): Copy
2768 need_global_offset_table.
2769 * elfxx-x86.h (elf_x86_link_hash_table): Add
2770 need_global_offset_table.
2771 (elf_x86_init_table): Likewise.
2772
3f48fe4a
JW
27732018-02-08 Jim Wilson <jimw@sifive.com>
2774
2775 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
2776 change.
2777
ef135d43
NC
27782018-02-08 Nick Clifton <nickc@redhat.com>
2779
2780 PR 22788
2781 * elf.c (elf_parse_notes): Reject notes with excessuively large
2782 alignments.
2783
407aa07c
AM
27842018-02-07 Alan Modra <amodra@gmail.com>
2785
2786 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
2787 * elf32-ppc.c: Remove speculation barrier support.
2788 * elf32-ppc.h: Likewise.
2789 * elf64-ppc.c: Likewise.
2790 * elf64-ppc.h: Likewise.
2791
ed01220c
JW
27922018-02-06 Jim Wilson <jimw@sifive.com>
2793
2794 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
2795 callback to report an error.
2796
c20c30f6
EB
27972018-02-06 Eric Botcazou <ebotcazou@adacore.com>
2798
2799 PR ld/22263
2800 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
2801 into call to !bfd_link_executable and tidy up.
2802 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
2803 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
2804 !bfd_link_executable.
2805 <R_SPARC_TLS_IE_HI22>: Likewise.
2806 <GOT relocations>: Remove useless code, tidy and merge related blocks.
2807 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
2808 !bfd_link_executable.
2809 <R_SPARC_WPLT30>: Tidy up.
2810 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
2811 !bfd_link_executable.
2812 (allocate_dynrelocs): Likewise.
2813 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
2814 <R_SPARC_TLS_GD_HI22>: Merge into...
2815 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
2816 sparc_elf_tls_transition and remove redundant code.
2817 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
2818 !bfd_link_executable.
2819 <R_SPARC_TLS_LDO_HIX22>: Likewise.
2820 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
2821 <R_SPARC_TLS_LDM_CALL>: Likewise.
2822 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
2823 <R_SPARC_TLS_GD_ADD>: Likewise.
2824 <R_SPARC_TLS_LDM_ADD>: Likewise.
2825 <R_SPARC_TLS_LDO_ADD>: Likewise.
2826 <R_SPARC_TLS_IE_LD>: Likewise.
2827
46d09186
NC
28282018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
2829
2830 PR 22789
2831 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
2832 functions failed to find the function name, try the generic elf
2833 find function instead.
2834
8278e7ce
SDJ
28352018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
2836
2837 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
2838 'memcpy' instead of 'strncpy' when writing the magic number.
2839
64e234d4
NC
28402018-02-06 Nick Clifton <nickc@redhat.com>
2841
2842 PR 22794
2843 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
2844 section before attempting to read it in.
2845 (bfd_get_alt_debug_link_info): Likewise.
2846
422f3d3d
PC
28472018-02-06 Paul Carroll <pcarroll@codesourcery.com>
2848
2849 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
2850 line information in addition to name, if they can be found.
2851
279b2f94
RL
28522018-02-05 Renlin Li <renlin.li@arm.com>
2853
2854 PR ld/22764
2855 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
2856 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
2857 check for writeable section as well.
2858
cd048363
L
28592018-02-05 H.J. Lu <hongjiu.lu@intel.com>
2860
2861 PR ld/22782
2862 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
2863 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
2864 undefined weak symbol to 0.
2865 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
2866 if _GLOBAL_OFFSET_TABLE_ is referenced.
2867 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
2868 got_referenced instead of ref_regular_nonweak. Remove the
2869 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
2870 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
2871
e65b1a78
MR
28722018-02-05 Maciej W. Rozycki <macro@mips.com>
2873
2874 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
2875 initialize `hi_reloc'.
2876
2d6dda71
MR
28772018-02-05 Maciej W. Rozycki <macro@mips.com>
2878
2879 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
2880 SHT_MIPS_REGINFO sections don't assert the correct size and
2881 report an error instead.
2882
75506100
MR
28832018-02-05 Maciej W. Rozycki <macro@mips.com>
2884
2885 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
2886 status from `->elf_backend_section_processing'.
2887
7f02625e
JW
28882018-02-02 Jim Wilson <jimw@sifive.com>
2889
2890 PR ld/22756
2891 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
2892 If link_info->wrap_hash, check for a duplicate symbol and ignore.
2893 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
2894 Pass new argument to riscv_relax_delete_bytes.
2895 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
2896 ATTRIBUTE_UNUSED from link_info parameter.
2897
d830549d
AM
28982018-02-02 Alan Modra <amodra@gmail.com>
2899
2900 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
2901 emitted for toc sequence optimization. Set and use "howto" later.
2902
e99955cd
SM
29032018-02-01 Simon Marchi <simon.marchi@ericsson.com>
2904
2905 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
2906 arithmetic on NULL pointer.
2907 * elflink.c (_bfd_elf_archive_symbol_lookup,
2908 elf_link_add_archive_symbols): Likewise.
2909
bf3077a6
MM
29102018-01-31 Michael Matz <matz@suse.de>
2911
2912 * elflink.c (bfd_elf_define_start_stop): Fix check of
2913 def_dynamic.
2914
823143c6
L
29152018-01-31 H.J. Lu <hongjiu.lu@intel.com>
2916
2917 PR ld/21964
2918 * elflink.c (bfd_elf_define_start_stop): Check if __start and
2919 __stop symbols are referenced by shared objects.
2920
76cb3a89
AM
29212018-01-30 Alan Modra <amodra@gmail.com>
2922
2923 PR 22758
2924 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
2925 segment when demand paged with lma on the same page. Test this
2926 before load/non-load, executable/non-executable,
2927 writable/non-writable tests and simplify. Delete bogus relro
2928 condition in writable/non-writable test. Delete outdated
2929 comment. Formatting.
2930
36b8fda5
AM
29312018-01-30 Alan Modra <amodra@gmail.com>
2932
2933 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
2934 symbols dynamic.
2935
eb77f6a4
AM
29362018-01-29 Alan Modra <amodra@gmail.com>
2937
2938 PR 22741
2939 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
2940 range before converting to a symbol table pointer.
2941
7d73b4c8
NC
29422018-01-27 Nick Clifton <nickc@redhat.com>
2943
2944 * po/ru.po: Updated Russian translation.
2945
32253bb7
AM
29462018-01-26 Alan Modra <amodra@gmail.com>
2947
2948 * elflink.c (bfd_elf_define_start_stop): Override symbols when
2949 they are defined dynamically.
2950
ba21f564
AM
29512018-01-26 Alan Modra <amodra@gmail.com>
2952
2953 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
2954 .branch_lt changes size.
2955
38e64b0e
AM
29562018-01-25 Alan Modra <amodra@gmail.com>
2957
2958 PR 22746
2959 * elfcode.h (elf_object_p): Avoid integer overflow.
2960
bb363086
EB
29612018-01-25 Eric Botcazou <ebotcazou@adacore.com>
2962
2963 PR ld/22727
2964 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
2965 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
2966
2967 Revert
2968 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
2969
2970 PR ld/22263
2971 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
2972 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
2973 bfd_link_executable for TLS check.
2974 (_bfd_sparc_elf_check_relocs): Likewise.
2975 (allocate_dynrelocs): Likewise.
2976 (_bfd_sparc_elf_relocate_section): Likewise.
2977
1daf502a
RL
29782018-01-24 Renlin Li <renlin.li@arm.com>
2979
2980 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
2981 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2982 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2983 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2984 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2985 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
2986 (_bfd_aarch64_elf_resolve_relocation): Likewise.
2987
32247401
RL
29882018-01-24 Renlin Li <renlin.li@arm.com>
2989
2990 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
2991 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
2992 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
2993 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
2994 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
2995 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
2996 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
2997 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
2998 BFD_RELOC_AARCH64_MOVW_PREL_G3.
2999 * bfd-in2.h: Regenerate.
3000 * libbfd.h: Regenerate.
3001
1c5e4ee9
MR
30022018-01-23 Maciej W. Rozycki <macro@mips.com>
3003
3004 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
3005 `mips_elf32_section_processing' comment reference.
3006
8a1b824a
L
30072018-01-20 H.J. Lu <hongjiu.lu@intel.com>
3008
3009 PR ld/22721
3010 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
3011 versioned __tls_get_addr symbol.
3012
ee3fbc1e
NC
30132018-01-19 Nick Clifton <nickc@redhat.com>
3014
3015 * po/fr.po: Updated French translation.
3016
691d2e9a
AM
30172018-01-18 Alan Modra <amodra@gmail.com>
3018
3019 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
3020 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
3021 (ppc64_elf_build_stubs): Likewise.
3022
4bfce128
NC
30232018-01-17 Nick Clifton <nickc@redhat.com>
3024
3025 * po/ru.po: Updated Russian translation.
3026 * po/uk/po: Updated Ukranian translation.
3027
c75bc4f7
AM
30282018-01-17 Alan Modra <amodra@gmail.com>
3029
3030 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
3031
1be5d8d3
AM
30322018-01-17 Alan Modra <amodra@gmail.com>
3033
3034 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
3035 (CRSETEQ, BEQCTRM): Define.
3036 (is_nonpic_glink_stub): Don't check bctr.
3037 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3038 (ppc_elf_relax_section): Size speculation barrier.
3039 (output_bctr): New function.
3040 (write_glink_stub): Use output_bctr.
3041 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
3042 (ppc_elf_finish_dynamic_symbol): Likewise.
3043 (ppc_elf_finish_dynamic_sections): Use output_bctr.
3044 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
3045 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
3046 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
3047 (size_global_entry_stubs): Handle speculation barrier sizing.
3048 (plt_stub_size): Likewise.
3049 (output_bctr): New function.
3050 (build_plt_stub, build_tls_get_addr_stub): Output speculation
3051 barrier.
3052 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
3053 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
3054 (build_global_entry_stubs): Output speculation barrier.
3055 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
3056 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
3057
9e390558
AM
30582018-01-17 Alan Modra <amodra@gmail.com>
3059
3060 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
3061 __tls_get_addr_opt, and alignment sizing.
3062 (TLS_GET_ADDR_GLINK_SIZE): Delete.
3063 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
3064 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
3065 or 8 insns.
3066 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
3067 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
3068 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
3069 by PLT reloc count.
3070 (write_glink_stub): Handle __tls_get_addr_opt stub.
3071 Pad out to size given by GLINK_ENTRY_SIZE.
3072 (ppc_elf_relocate_section): Adjust write_glink_stub call.
3073 (ppc_elf_finish_dynamic_symbol): Likewise.
3074 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
3075 insn array since so many need rewriting.
3076 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
3077 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
3078 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
3079 nops. Adjust all uses.
3080 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
3081 in glink_vma calculation.
3082 (struct ppc_link_hash_table): Add global_entry section pointer.
3083 (create_linkage_sections): Create separate section for global
3084 entry stubs.
3085 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
3086 (size_global_entry_stubs): Handle sizing for aligned stubs.
3087 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
3088 and don't stash end of glink branch table in rawsize.
3089 (ppc_build_one_stub): Rewrite stub size calculations.
3090 (build_global_entry_stubs): Use new section.
3091 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
3092 Build lazy link stubs out to end of section. Build global entry
3093 stubs in new section.
3094
616dcb87
NC
30952018-01-15 Nick Clifton <nickc@redhat.com>
3096
3097 * po/uk.po: Updated Ukranian translation.
3098
3957a496
NC
30992018-01-13 Nick Clifton <nickc@redhat.com>
3100
3101 * po/bfd.pot: Regenerated.
3102
769c7ea5
NC
31032018-01-13 Nick Clifton <nickc@redhat.com>
3104
3105 * version.m4: Bump version to 2.30.51
3106 * configure: Regenerate.
3107
faf766e3
NC
31082018-01-13 Nick Clifton <nickc@redhat.com>
3109
3110 2.30 branch created.
3111
564e11c9
JW
31122018-01-12 Jens Widell <jl@opera.com>
3113
3114 * elf.c (setup_group): Optimize search for group by remembering
3115 last found group and restarting search at that index.
3116 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
3117
a78eea16
AM
31182018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
3119
3120 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
3121 bfd_link_common_skip_none in switch.
3122
87e79a65
AM
31232018-01-12 Alan Modra <amodra@gmail.com>
3124
3125 PR ld/22649
3126 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
3127 references on forced local symbols.
3128
58807c48
VI
31292018-01-12 Vlad Ivanov <vlad@ivanov.email>
3130
3131 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
3132 .reginfo section has wrong size.
3133
2888249f
L
31342018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3135
3136 PR ld/22393
3137 * elf.c (_bfd_elf_map_sections_to_segments): When generating
3138 separate code and read-only data LOAD segments, create a new
3139 LOAD segment if the previous section contains text and the
3140 current section doesn't or vice versa. Don't put a writable
3141 section in a read-only segment if there is a RELRO segment.
3142
d664fd41
L
31432018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3144
3145 PR ld/22649
3146 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
3147 references on forced local symbols.
3148
8b6f4cd3
L
31492018-01-11 H.J. Lu <hongjiu.lu@intel.com>
3150
3151 PR ld/22677
3152 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
3153 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
3154
9c70c522 31552018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com>
6cef73f9
KLC
3156
3157 PR 22662
3158 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
3159
ddb2bbcf
JB
31602018-01-03 John Baldwin <jhb@FreeBSD.org>
3161
3162 * elf.c (elfcore_grok_freebsd_note): Handle
3163 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
3164 NT_FREEBSD_PROCSTAT_VMMAP.
3165
219d1afa
AM
31662018-01-03 Alan Modra <amodra@gmail.com>
3167
3168 Update year range in copyright notice of all files.
3169
1e563868 3170For older changes see ChangeLog-2017
3499769a 3171\f
1e563868 3172Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
3173
3174Copying and distribution of this file, with or without modification,
3175are permitted in any medium without royalty provided the copyright
3176notice and this notice are preserved.
3177
3178Local Variables:
3179mode: change-log
3180left-margin: 8
3181fill-column: 74
3182version-control: never
3183End:
This page took 0.292736 seconds and 4 git commands to generate.