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