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