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