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