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