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