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