fcb645b16967a35b2eb0e62f097eeed06bb3f8c2
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
2
3 * elf-bfd.h (bfd_section_is_ctf): New inline function.
4 * elf.c (special_sections_c): Add ".ctf".
5 (assign_file_positions_for_non_load_sections): Note that
6 compressed debugging sections etc are not assigned here. Treat
7 CTF sections like SEC_ELF_COMPRESS sections when is_linker_output:
8 sh_offset -1.
9 (assign_file_positions_except_relocs): Likewise.
10 (find_section_in_list): Note that debugging and CTF sections, as
11 well as reloc sections, are assigned later.
12 (_bfd_elf_assign_file_positions_for_non_load): CTF sections get
13 their size and contents updated.
14 (_bfd_elf_set_section_contents): Skip CTF sections: unlike
15 compressed sections, they have no uncompressed content to copy at
16 this stage.
17 * elflink.c (elf_link_swap_symbols_out): Call the examine_strtab
18 callback right before the strtab is written out.
19 (bfd_elf_final_link): Don't cache the section contents of CTF
20 sections: they are not populated yet. Call the emit_ctf callback
21 right at the end, after all the symbols and strings are flushed
22 out.
23
24 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
25
26 * elf-strtab.c (_bfd_elf_strtab_len): New.
27 (_bfd_elf_strtab_str): Likewise.
28 * bfd-elf.h: Declare them.
29
30 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
31
32 * elf-bfd.h (bfd_elf_get_str_section): Add.
33 * elf.c (bfd_elf_get_str_section): No longer static.
34
35 2019-09-26 Alan Modra <amodra@gmail.com>
36
37 PR 24262
38 * Makefile.am (AM_CPPFLAGS): Add -DLIBDIR.
39 * plugin.c (load_plugin): Search both ${libdir}/bfd-plugins and
40 ${bindir}/../lib/bfd-plugins if different.
41 * Makefile.in: Regenerate.
42
43 2019-09-23 Alan Modra <amodra@gmail.com>
44
45 * elf64-ppc.c (ppc64_elf_check_relocs): Use bfd_link_executable
46 in choosing between different actions for shared library and
47 non-shared library cases. Delete ELIMINATE_COPY_RELOCS test.
48 (dec_dynrel_count): Likewise. Account for ifunc special case.
49 (ppc64_elf_adjust_dynamic_symbol): Copy relocs are for executables,
50 not non-pic.
51 (allocate_dynrelocs): Comment fixes. Delete ELIMINATE_COPY_RELOCS
52 test.
53
54 2019-09-23 Alan Modra <amodra@gmail.com>
55
56 * Makefile.am (SOURCE_HFILES): Add many missing .h files.
57 * Makefile.in: Regenerate.
58 * po/SRC-POTFILES.in: Regenerate.
59
60 2019-09-23 Alan Modra <amodra@gmail.com>
61
62 * bfd-in.h (bfd_symbol, bfd_section_already_linked),
63 (bfd_elf_version_tree): Delete forward declarations.
64 Move other forward decls and remaining elf function decl later.
65 (bfd_section_already_linked_table_init),
66 (bfd_section_already_linked_table_free),
67 (_bfd_handle_already_linked, _bfd_nearby_section),
68 (_bfd_fix_excluded_sec_syms): Move to bfdlink.h.
69
70 2019-09-23 Alan Modra <amodra@gmail.com>
71
72 * bfd-in.h: Move ecoff function declarations..
73 * ecoff-bfd.h: ..to here, new file.
74 * ecoff.c: Include ecoff-bfd.h.
75 * ecofflink.c: Likewise.
76 * elf64-alpha.c: Likewise.
77 * elfxx-mips.c: Likewise.
78 * bfd-in2.h: Regenerate.
79
80 2019-09-23 Alan Modra <amodra@gmail.com>
81
82 * bfd-in.h (enum notice_asneeded_action): Move to bfdlink.h.
83 Move most other elf declarations..
84 * elf-bfd.h: ..to here.
85 * bfd-in2.h: Regenerate.
86
87 2019-09-23 Alan Modra <amodra@gmail.com>
88
89 * bfd-in.h: Move m68k function declaration..
90 * cpu-m68k.h: ..to here, new file..
91 * elf32-m68k.h: ..and here, new file.
92 * elf32-m68k.c: Include cpu-m68k.h and elf32-m68k.h.
93 * bfd-in2.h: Regenerate.
94
95 2019-09-23 Alan Modra <amodra@gmail.com>
96
97 * bfd-in.h: Move bfin function declaration..
98 * elf32-bfin.h: ..to here, new file.
99 * elf32-bfin.c: Include elf32-bfin.h.
100 * bfd-in2.h: Regenerate.
101
102 2019-09-23 Alan Modra <amodra@gmail.com>
103
104 * bfd-in.h: Move cr16 function declaration..
105 * elf32-cr16.h: ..to here, new file.
106 * elf32-cr16.c: Include elf32-cr16.h.
107 * bfd-in2.h: Regenerate.
108
109 2019-09-23 Alan Modra <amodra@gmail.com>
110
111 * bfd-in.h (bfd_sunos_get_needed_list),
112 (bfd_sunos_record_link_assignment),
113 (bfd_sunos_size_dynamic_sections),
114 (bfd_i386linux_size_dynamic_sections),
115 (bfd_sparclinux_size_dynamic_sections): Delete obsolete decls.
116 * bfd-in2.h: Regenerate.
117
118 2019-09-23 Alan Modra <amodra@gmail.com>
119
120 * bfd-in.h: Move xcoff function declarations..
121 * xcofflink.h: ..to here, new file.
122 * xcofflink.c: Include xcofflink.h.
123 * coff-rs6000.c (bfd_xcoff_ar_archive_set_magic): Delete unused func.
124 * bfd-in2.h: Regenerate.
125
126 2019-09-23 Alan Modra <amodra@gmail.com>
127
128 * bfd-in.h: Delete coff forward refs and move coff declaration..
129 * coff-bfd.h: ..to here.
130 * bfd-in2.h: Regenerate.
131
132 2019-09-23 Alan Modra <amodra@gmail.com>
133
134 * bfd-in.h: Move arm declaraions..
135 * cpu-arm.h: ..to here, new file..
136 * coff-arm.h: ..and here, new file..
137 * elf32-arm.h: ..and here, new file.
138 * cpu-arm.c: Include cpu-arm.h.
139 * coff-arm.c: Include cpu-arm.h and coff-arm.h.
140 * elf32-arm.c: Include cpu-arm.h and elf32-arm.h.
141 * pe-arm.c: Move function rename defines later.
142 * pe-arm-wince.c: Likewise and include sysdep.h and bfd.h early.
143 * bfd-in2.h: Regenerate.
144
145 2019-09-23 Alan Modra <amodra@gmail.com>
146
147 * bfd-in.h: Move tic6x function declaration..
148 * elf32-tic6x.h: ..to here.
149 * bfd-in2.h: Regenerate.
150
151 2019-09-23 Alan Modra <amodra@gmail.com>
152
153 * bfd-in.h: Move aarch64 declarations and defines..
154 * cpu-aarch64.h: ..to here, new file..
155 * elfxx-aarch64.h: ..and here.
156 * cpu-aarch64.c: Include cpu-aarch64.h.
157 * elfnn-aarch64.c: Likewise.
158 * bfd-in2.h: Regenerate.
159
160 2019-09-23 Alan Modra <amodra@gmail.com>
161
162 * bfd-in.h: Delete ticoff function declarations.
163 * coff-tic54x.c (bfd_ticoff_set_section_load_page),
164 (bfd_ticoff_get_section_load_page): Make static.
165 * bfd-in2.h: Regenerate.
166
167 2019-09-23 Alan Modra <amodra@gmail.com>
168
169 * bfd-in.h: Move h8300 function declaration to..
170 * cpu-h8300.h: ..here, new file.
171 * cpu-h8300.c: Include cpu-h8300.h.
172 * elf32-h8300.c: Likewise.
173 * bfd-in2.h: Regenerate.
174
175 2019-09-23 Alan Modra <amodra@gmail.com>
176
177 * bfd-in.h: Move ia64 function declarations..
178 * elfxx-ia64.h: ..to here.
179 * bfd-in2.h: Regenerate.
180
181 2019-09-23 Alan Modra <amodra@gmail.com>
182
183 * bfd-in.h: Move v850 function declarations..
184 * elf32-v850.h: ..to here, new file.
185 * elf32-v850.c: Include elf32-v850.h.
186 * bfd-in2.h: Regenerate.
187
188 2019-09-23 Alan Modra <amodra@gmail.com>
189
190 * bfd-in.h: Move mips function declaration to..
191 * elfxx-mips.h: ..here.
192 * bfd-in2.h: Regenerate.
193
194 2019-09-23 Alan Modra <amodra@gmail.com>
195
196 * bfd-in.h: Move csky function declarations to..
197 * elf32-csky.h: ..here, new file.
198 * elf32-csky.c: Include elf32-csky.h.
199 * bfd-in2.h: Regenerate.
200
201 2019-09-20 Nelson Chu <nelson.chu@sifive.com>
202
203 * elfnn-riscv.c (riscv_pcgp_hi_reloc): Add new field undefined_weak.
204 (riscv_record_pcgp_hi_reloc): New parameter undefined_weak.
205 Set undefined_weak field from it.
206 (relax_func_t): New parameter undefined_weak.
207 (_bfd_riscv_relax_call): New ignored parameter undefined_weak.
208 (_bfd_riscv_relax_tls_le): Likewise.
209 (_bfd_riscv_relax_align): Likewise.
210 (_bfd_riscv_relax_delete): Likewise.
211 (_bfd_riscv_relax_lui): New parameter undefined_weak. If true,
212 allow relaxing. For LO12* relocs, set rs1 to x0 when undefined_weak.
213 (_bfd_riscv_relax_pc): New parameter undefined_weak. For LO12* relocs,
214 set undefined_weak from hi_reloc. If true, allow relaxing. For LO12*
215 relocs, set rs1 to x0 when undefined_weak and change to non-pcrel
216 reloc.
217 (_bfd_riscv_relax_section): New local undefined_weak. Set for
218 undef weak relocs that can be relaxed. Pass to relax_func call.
219
220 2019-09-20 Alan Modra <amodra@gmail.com>
221
222 * bfd-in.h (bfd_section_name, bfd_section_size, bfd_section_vma),
223 (bfd_section_lma, bfd_section_alignment, bfd_section_flags),
224 (bfd_section_userdata, bfd_is_com_section, discarded_section),
225 (bfd_get_section_limit_octets, bfd_get_section_limit): Delete macros.
226 * bfd.c (bfd_get_section_limit_octets, bfd_get_section_limit),
227 (bfd_section_list_remove, bfd_section_list_append),
228 (bfd_section_list_prepend, bfd_section_list_insert_after),
229 (bfd_section_list_insert_before, bfd_section_removed_from_list):
230 New inline functions.
231 * section.c (bfd_is_und_section, bfd_is_abs_section),
232 (bfd_is_ind_section, bfd_is_const_section, bfd_section_list_remove),
233 (bfd_section_list_append, bfd_section_list_prepend),
234 (bfd_section_list_insert_after, bfd_section_list_insert_before),
235 (bfd_section_removed_from_list): Delete macros.
236 (bfd_section_name, bfd_section_size, bfd_section_vma),
237 (bfd_section_lma, bfd_section_alignment, bfd_section_flags),
238 (bfd_section_userdata, bfd_is_com_section, bfd_is_und_section),
239 (bfd_is_abs_section, bfd_is_ind_section, bfd_is_const_section),
240 (discarded_section): New inline functions.
241 * bfd-in2.h: Regenerate.
242
243 2019-09-20 Alan Modra <amodra@gmail.com>
244
245 * bfd-in.h (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
246 (bfd_asymbol_bfd, bfd_asymbol_flavour, bfd_set_asymbol_name): Delete.
247 * bfd.c (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
248 (bfd_asymbol_bfd, bfd_set_asymbol_name): New inline functions.
249 * targets.c (bfd_asymbol_flavour): Likewise.
250 * bfd-in2.h: Regenerate.
251
252 2019-09-20 Alan Modra <amodra@gmail.com>
253
254 * archive.c (bfd_generic_archive_p): Use bfd_set_thin_archive.
255 * bfd-in.h (bfd_get_filename, bfd_get_cacheable, bfd_get_format),
256 (bfd_get_target, bfd_get_flavour, bfd_family_coff, bfd_big_endian),
257 (bfd_little_endian, bfd_header_big_endian, bfd_header_little_endian),
258 (bfd_get_file_flags, bfd_applicable_file_flags),
259 (bfd_applicable_section_flags, bfd_has_map, bfd_is_thin_archive),
260 (bfd_valid_reloc_types, bfd_usrdata, bfd_get_start_address),
261 (bfd_get_symcount, bfd_get_outsymbols, bfd_count_sections),
262 (bfd_get_dynamic_symcount, bfd_get_symbol_leading_char): Delete.
263 * bfd/bfd.c (bfd_get_filename, bfd_get_cacheable, bfd_get_format),
264 (bfd_get_file_flags, bfd_get_start_address, bfd_get_symcount),
265 (bfd_get_dynamic_symcount, bfd_get_outsymbols, bfd_count_sections),
266 (bfd_has_map, bfd_is_thin_archive, bfd_set_thin_archive),
267 (bfd_usrdata, bfd_set_usrdata): New inline functions.
268 * targets.c (bfd_get_target, bfd_get_flavour),
269 (bfd_applicable_file_flags, bfd_family_coff, bfd_big_endian),
270 (bfd_little_endian, bfd_header_big_endian),
271 (bfd_header_little_endian, bfd_applicable_section_flags),
272 (bfd_get_symbol_leading_char): New inline functions.
273 * bfd-in2.h: Regenerate.
274
275 2019-09-20 Alan Modra <amodra@gmail.com>
276
277 * elf64-ppc.c (ppc64_glibc_dynamic_reloc): New function.
278 (ppc64_elf_relocate_section): Warn if emitting unsupported dynamic
279 relocations.
280
281 2019-09-18 Alan Modra <amodra@gmail.com>
282
283 * bfd-in.h (bfd_get_section_name, bfd_get_section_vma),
284 (bfd_get_section_lma, bfd_get_section_alignment),
285 (bfd_get_section_size, bfd_get_section_flags),
286 (bfd_get_section_userdata): Delete.
287 (bfd_section_name, bfd_section_size, bfd_section_vma),
288 (bfd_section_lma, bfd_section_alignment): Lose bfd parameter.
289 (bfd_section_flags, bfd_section_userdata): New.
290 (bfd_is_com_section): Rename parameter.
291 * section.c (bfd_set_section_userdata, bfd_set_section_vma),
292 (bfd_set_section_alignment, bfd_set_section_flags, bfd_rename_section),
293 (bfd_set_section_size): Delete bfd parameter, rename section parameter.
294 (bfd_set_section_lma): New.
295 * bfd-in2.h: Regenerate.
296 * mach-o.c (bfd_mach_o_init_section_from_mach_o): Delete bfd param,
297 update callers.
298 * aoutx.h, * bfd.c, * coff-alpha.c, * coff-arm.c, * coff-mips.c,
299 * coff64-rs6000.c, * coffcode.h, * coffgen.c, * cofflink.c,
300 * compress.c, * ecoff.c, * elf-eh-frame.c, * elf-hppa.h,
301 * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-properties.c,
302 * elf-s390-common.c, * elf-vxworks.c, * elf.c, * elf32-arc.c,
303 * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c, * elf32-cr16.c,
304 * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c, * elf32-csky.c,
305 * elf32-d10v.c, * elf32-epiphany.c, * elf32-fr30.c, * elf32-frv.c,
306 * elf32-ft32.c, * elf32-h8300.c, * elf32-hppa.c, * elf32-i386.c,
307 * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
308 * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c,
309 * elf32-mep.c, * elf32-metag.c, * elf32-microblaze.c,
310 * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
311 * elf32-nios2.c, * elf32-or1k.c, * elf32-ppc.c, * elf32-pru.c,
312 * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c,
313 * elf32-score7.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c,
314 * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c, * elf32-visium.c,
315 * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
316 * elf64-bpf.c, * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c,
317 * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c,
318 * elflink.c, * elfnn-aarch64.c, * elfnn-ia64.c, * elfnn-riscv.c,
319 * elfxx-aarch64.c, * elfxx-mips.c, * elfxx-sparc.c,
320 * elfxx-tilegx.c, * elfxx-x86.c, * i386msdos.c, * linker.c,
321 * mach-o.c, * mmo.c, * opncls.c, * pdp11.c, * pei-x86_64.c,
322 * peicode.h, * reloc.c, * section.c, * syms.c, * vms-alpha.c,
323 * xcofflink.c: Update throughout for bfd section macro and function
324 changes.
325
326 2019-09-18 Alan Modra <amodra@gmail.com>
327
328 * bfd-in.h (bfd_asymbol_section): Rename from bfd_get_section.
329 (bfd_get_output_section): Delete.
330 (bfd_asymbol_base): Delete.
331 (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name),
332 (bfd_asymbol_bfd, bfd_asymbol_flavour): Tidy.
333 (bfd_set_asymbol_name): New macro.
334 * bfd-in2.h: Regenerate.
335 * aout-cris.c: Update throughout to use bfd_asymbol_section.
336 * aoutx.h: Likewise.
337 * cofflink.c: Likewise.
338 * dwarf2.c: Likewise.
339 * ecoff.c: Likewise.
340 * elf.c: Likewise.
341 * elf32-arm.c: Likewise.
342 * elf32-mips.c: Likewise.
343 * elf32-score.c: Likewise.
344 * elf32-score7.c: Likewise.
345 * elfn32-mips.c: Likewise.
346 * elfnn-aarch64.c: Likewise.
347 * elfxx-mips.c: Likewise.
348 * linker.c: Likewise.
349 * pdp11.c: Likewise.
350 * elf64-mmix.c (mmix_elf_reloc): Part expand bfd_get_output_section.
351
352 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
353
354 * Makefile.in: Re-generate.
355 * configure: Re-generate.
356 * doc/Makefile.in: Re-generate.
357
358 2019-09-18 Alan Modra <amodra@gmail.com>
359
360 * aoutx.h (slurp_symbol_table): Don't set symcount using bfd_get
361 macros.
362 * pdp11.c (slurp_symbol_table): Likewise.
363 * som.c (som_slurp_symbol_table): Likewise.
364 * coff-ppc.c (ppc_bfd_coff_final_link): Likewise.
365 * coffcode.h (coff_slurp_symbol_table): Likewise.
366 * cofflink.c (_bfd_coff_final_link): Likewise.
367 * ecoff.c (ecoff_slurp_symbolic_header): Likewise.
368 (_bfd_ecoff_slurp_symbolic_info): Likewise.
369 (_bfd_ecoff_slurp_symbol_table): Likewise.
370 (_bfd_ecoff_bfd_final_link): Likewise.
371 * elf.c (_bfd_elf_canonicalize_symtab): Likewise.
372 * elflink.c (elf_link_output_symstrtab): Likewise.
373 (bfd_elf_final_link): Likewise.
374 * peicode.h (pe_ILF_build_a_bfd): Likewise.
375 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
376 * aoutx.h (some_aout_object_p, slurp_symbol_table): Don't set
377 start_address or symcount using bfd_get macros.
378 * coffgen.c (coff_real_object_p): Likewise.
379 * pdp11.c (some_aout_object_p, slurp_symbol_table): Likewise.
380 * som.c (som_object_setup, som_slurp_symbol_table): Likewise.
381 * elfcore.h (elf_core_file_p): Don't set start_address using
382 bfd_get macro.
383 * elf.c (_bfd_elf_canonicalize_dynamic_symtab): Don't set dynsymcount
384 using bfd_get macro.
385 * bfd.c (bfd_set_file_flags): Don't set flags using bfd_get macro.
386 * linker.c (bfd_generic_link_read_symbols): Don't set outsymbols
387 or symcount using bfd_get macros.
388 (_bfd_generic_final_link, generic_add_output_symbol): Likewise.
389 * syms.c (bfd_set_symtab): Likewise.
390 * vms-alpha.c (alpha_vms_bfd_final_link): Likewise.
391 * archive.c (do_slurp_bsd_armap): Don't set has_armap using
392 bfd_has_map macro.
393 (do_slurp_coff_armap, bfd_slurp_armap): Likewise.
394 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
395 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Likewise.
396 * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
397 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
398 * som.c (som_slurp_armap): Likewise.
399
400 2019-09-18 Alan Modra <amodra@gmail.com>
401
402 * archures.c (bfd_get_arch): Make param const.
403 (bfd_get_mach, bfd_arch_bits_per_byte): Likewise.
404 (bfd_arch_bits_per_address, bfd_octets_per_byte): Likewise.
405 * bfd-in2.h: Regenerate.
406
407 2019-09-18 Alan Modra <amodra@gmail.com>
408
409 * bfd-in.h (carsym.name): Make const.
410 * reloc.c (struct reloc_howto_struct.name): Likewise.
411 * targets.c (bfd_target.name): Likewise.!
412 * bfd.c (bfd_get_sign_extend_vma): Make variable const.
413 * som.c (som_bfd_fill_in_ar_symbols): Use an intermediary variable
414 when setting carsym.name.
415 * bfd-in2.h: Regenerate.
416
417 2019-09-18 Alan Modra <amodra@gmail.com>
418
419 * mach-o.c (bfd_mach_o_fat_member_init): Likewise. Replace
420 xstrdup and xmalloc with bfd_strdup and bfd_malloc. Return an
421 error status. Adjust calls.
422 * vms-lib.c (_bfd_vms_lib_get_module): Test mhd->id earlier.
423 Close bfd on failure. Replace xstrdup/bfd_alloc use with
424 bfd_malloc. Use bfd_set_filename.
425
426 2019-09-18 Alan Modra <amodra@gmail.com>
427
428 * elf64-ppc.c (must_be_dyn_reloc): Return 0 for TOC16 relocs.
429 (ppc64_elf_check_relocs): Support dynamic/copy relocs for TOC16.
430 (ppc64_elf_adjust_dynamic_symbol): Don't keep dynamic reloc when
431 needs_copy even if all relocs are in rw sections.
432 (dec_dynrel_count): Handle TOC16 relocs.
433 (ppc64_elf_relocate_section): Support dynamic relocs for TOC16.
434 (ppc64_elf_finish_dynamic_symbol): Adjust to handle needs_copy
435 semantic change.
436
437 2019-09-16 Phil Blundell <pb@pbcl.net>
438
439 * version.m4: Set version to 2.33.50.
440 * Makefile.in, configure, doc/Makefile.in: Regenerated.
441
442 2019-09-11 Tom Tromey <tom@tromey.com>
443
444 * opncls.c (bfd_set_filename): New function.
445 * bfd-in2.h: Regenerate.
446
447 2019-09-11 Alan Modra <amodra@gmail.com>
448
449 * targets.c (struct bfd_target): Add _bfd_group_name.
450 (BFD_JUMP_TABLE): Likewise.
451 * coffgen.c (bfd_coff_group_name): New function.
452 * elf.c (bfd_elf_group_name): New function.
453 * linker.c (_bfd_nolink_bfd_group_name): New function.
454 * section.c (bfd_generic_group_name): New function.
455 * elf-bfd.h (bfd_elf_group_name): Declare.
456 * libbfd-in.h (_bfd_nolink_bfd_group_name): Declare.
457 * libcoff-in.h (bfd_coff_group_name): Declare.
458 * aout-target.h (MY_bfd_group_name): Define.
459 * aout-tic30.c (MY_bfd_group_name): Define.
460 * bfd.c (bfd_group_name): Define.
461 * binary.c (binary_bfd_group_name): Define.
462 * coff-alpha.c (_bfd_ecoff_bfd_group_name): Define.
463 * coff-mips.c (_bfd_ecoff_bfd_group_name): Define.
464 * coff-rs6000.c (_bfd_xcoff_bfd_group_name): Define.
465 * coffcode.h (coff_bfd_group_name): Define.
466 * elfxx-target.h (bfd_elfNN_bfd_group_name): Define.
467 * i386msdos.c (msdos_bfd_group_name): Define.
468 * ihex.c (ihex_bfd_group_name): Define.
469 * mach-o-target.c (bfd_mach_o_bfd_group_name): Define.
470 * mmo.c (mmo_bfd_group_name): Define.
471 * pef.c (bfd_pef_bfd_group_name): Define.
472 * plugin.c (bfd_plugin_bfd_group_name): Define.
473 * ppcboot.c (ppcboot_bfd_group_name): Define.
474 * som.c (som_bfd_group_name): Define.
475 * srec.c (srec_bfd_group_name): Define.
476 * tekhex.c (tekhex_bfd_group_name): Define.
477 * verilog.c (verilog_bfd_group_name): Define.
478 * vms-alpha.c (vms_bfd_group_name, alpha_vms_bfd_group_name): Define.
479 * xsym.c (bfd_sym_bfd_group_name): Define.
480 * coff64-rs6000.c (rs6000_xcoff64_vec): Init new field.
481 (rs6000_xcoff64_aix_vec): Likewise.
482 * bfd-in2.h: Regenerate.
483 * libbfd.h: Regenerate.
484 * libcoff.h: Regenerate.
485
486 2019-09-10 Nick Clifton <nickc@redhat.com>
487
488 PR 24907
489 * archures.c (bfd_arch_info_type): Add max_reloc_offset_into_insn
490 field.
491 (bfd_default_arch_struct): Initialise the new field.
492 * bfd-in2.h: Regenerate.
493 * cpu-aarch64.c: Initialise the new field.
494 * cpu-alpha.c: Likewise.
495 * cpu-arc.c: Likewise.
496 * cpu-arm.c: Likewise.
497 * cpu-avr.c: Likewise.
498 * cpu-bfin.c: Likewise.
499 * cpu-bpf.c: Likewise.
500 * cpu-cr16.c: Likewise.
501 * cpu-cr16c.c: Likewise.
502 * cpu-cris.c: Likewise.
503 * cpu-crx.c: Likewise.
504 * cpu-csky.c: Likewise.
505 * cpu-d10v.c: Likewise.
506 * cpu-d30v.c: Likewise.
507 * cpu-dlx.c: Likewise.
508 * cpu-epiphany.c: Likewise.
509 * cpu-fr30.c: Likewise.
510 * cpu-frv.c: Likewise.
511 * cpu-ft32.c: Likewise.
512 * cpu-h8300.c: Likewise.
513 * cpu-hppa.c: Likewise.
514 * cpu-i386.c: Likewise.
515 * cpu-ia64.c: Likewise.
516 * cpu-iamcu.c: Likewise.
517 * cpu-ip2k.c: Likewise.
518 * cpu-iq2000.c: Likewise.
519 * cpu-k1om.c: Likewise.
520 * cpu-l1om.c: Likewise.
521 * cpu-lm32.c: Likewise.
522 * cpu-m10200.c: Likewise.
523 * cpu-m10300.c: Likewise.
524 * cpu-m32c.c: Likewise.
525 * cpu-m32r.c: Likewise.
526 * cpu-m68hc11.c: Likewise.
527 * cpu-m68hc12.c: Likewise.
528 * cpu-m68k.c: Likewise.
529 * cpu-m9s12x.c: Likewise.
530 * cpu-m9s12xg.c: Likewise.
531 * cpu-mcore.c: Likewise.
532 * cpu-mep.c: Likewise.
533 * cpu-metag.c: Likewise.
534 * cpu-microblaze.c: Likewise.
535 * cpu-mips.c: Likewise.
536 * cpu-mmix.c: Likewise.
537 * cpu-moxie.c: Likewise.
538 * cpu-msp430.c: Likewise.
539 * cpu-mt.c: Likewise.
540 * cpu-nds32.c: Likewise.
541 * cpu-nfp.c: Likewise.
542 * cpu-nios2.c: Likewise.
543 * cpu-ns32k.c: Likewise.
544 * cpu-or1k.c: Likewise.
545 * cpu-pdp11.c: Likewise.
546 * cpu-pj.c: Likewise.
547 * cpu-plugin.c: Likewise.
548 * cpu-powerpc.c: Likewise.
549 * cpu-pru.c: Likewise.
550 * cpu-riscv.c: Likewise.
551 * cpu-rl78.c: Likewise.
552 * cpu-rs6000.c: Likewise.
553 * cpu-rx.c: Likewise.
554 * cpu-s12z.c: Likewise.
555 * cpu-s390.c: Likewise.
556 * cpu-score.c: Likewise.
557 * cpu-sh.c: Likewise.
558 * cpu-sparc.c: Likewise.
559 * cpu-spu.c: Likewise.
560 * cpu-tic30.c: Likewise.
561 * cpu-tic4x.c: Likewise.
562 * cpu-tic54x.c: Likewise.
563 * cpu-tic6x.c: Likewise.
564 * cpu-tic80.c: Likewise.
565 * cpu-tilegx.c: Likewise.
566 * cpu-tilepro.c: Likewise.
567 * cpu-v850.c: Likewise.
568 * cpu-v850_rh850.c: Likewise.
569 * cpu-vax.c: Likewise.
570 * cpu-visium.c: Likewise.
571 * cpu-wasm32.c: Likewise.
572 * cpu-xc16x.c: Likewise.
573 * cpu-xgate.c: Likewise.
574 * cpu-xstormy16.c: Likewise.
575 * cpu-xtensa.c: Likewise.
576 * cpu-z80.c: Likewise.
577 * cpu-z8k.c: Likewise.
578
579 2019-09-09 Phil Blundell <pb@pbcl.net>
580
581 binutils 2.33 branch created.
582
583 2019-09-06 Alan Modra <amodra@gmail.com>
584
585 * aout-target.h (object_p): Formatting.
586 * bfd-in.h (bfd_get_filename): Don't cast to char*.
587 * corefile.c (generic_core_file_matches_executable_p): Constify
588 variables and remove cast.
589 * bfd-in2.h: Regenerate.
590
591 2019-09-05 Alan Modra <amodra@gmail.com>
592
593 * elf64-ppc.c (ppc64_elf_check_relocs): Interpret an addend in
594 GOT_PCREL and PLT_PCREL relocs as affecting the value stored
595 in the GOT/PLT entry rather than affecting the offset to that
596 GOI/PLT entry.
597 (ppc64_elf_edit_toc, ppc64_elf_relocate_section): Likewise.
598
599 2019-09-05 Alan Modra <amodra@gmail.com>
600
601 * elf64-ppc.c (xlate_pcrel_opt): Handle prefix loads and stores
602 in second instruction.
603 (ppc64_elf_relocate_section): Likewise.
604
605 2019-09-05 Alan Modra <amodra@gmail.com>
606
607 PR 24955
608 * libbfd-in.h (bfd_strdup): New inline function.
609 * archive.c (_bfd_get_elt_at_filepos): Use bfd_strdup. Close
610 bfd on error.
611 * elfcode.h (_bfd_elf_bfd_from_remote_memory): Use bfd_strdup.
612 * opncls.c (bfd_fopen): Use bfd_strdup. Close fd and stream
613 on error.
614 (bfd_openstreamr): Use bfd_strdup.
615 (bfd_openr_iovec, bfd_openw, bfd_create): Likewise.
616 * plugin.c (try_load_plugin): Use bfd_malloc.
617 * libbfd.h: Regenerate.
618
619 2019-09-02 Alan Modra <amodra@gmail.com>
620
621 PR 11983
622 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Free debug_filename
623 on success. Tidy.
624 (read_alt_indirect_string): Likewise.
625 (read_alt_indirect_ref): Likewise.
626
627 2019-08-31 Jim Wilson <jimw@sifive.com>
628
629 PR 23825
630 * elfnn-riscv.c (riscv_elf_create_dynamic_sections): Add SEC_LOAD,
631 SEC_DATA, and SEC_HAS_CONTENTS to .tdata.dyn section.
632
633 2019-08-30 Jim Wilson <jimw@sifive.com>
634
635 * elfnn-riscv.c (riscv_elf_relocate_section): For unresolvable reloc
636 error, call bfd_set_error, set ret to FALSE, and goto out label.
637
638 2019-08-30 H.J. Lu <hongjiu.lu@intel.com>
639
640 PR ld/24951
641 * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS,
642 BFD_DECOMPRESS and BFD_COMPRESS_GABI flags for thin archive.
643
644 2019-08-29 Alan Modra <amodra@gmail.com>
645
646 PR 24697
647 * elf32-ppc.c (ppc_elf_check_relocs): Call bad_shared_reloc
648 when !bfd_link_executable for R_PPC_EMB_SDA2I16 and
649 R_PPC_EMB_SDA2REL. Don't call bad_shared_reloc for any other
650 reloc.
651
652 2019-08-29 Alan Modra <amodra@gmail.com>
653
654 * elf64-ppc.c (xlate_pcrel_opt): Add poff parameter. Allow offset
655 on second insn, return it in poff.
656 (ppc64_elf_relocate_section): Add offset to paddi addend for
657 PCREL_OPT.
658
659 2019-08-28 Jim Wilson <jimw@sifive.com>
660
661 * elfnn-riscv.c (_bfd_riscv_relax_lui): Add check to exclude abs
662 section when setting max_alignment. Update comment.
663 (_bfd_riscv_relax_pc): Likewise.
664
665 2019-08-29 Alan Modra <amodra@gmail.com>
666
667 PR 24891
668 * bfd.c (struct bfd): Add no_element_cache.
669 * archive.c (_bfd_get_elt_at_filepos): Don't add element to
670 archive cache when no_element_cache.
671 (bfd_generic_archive_p): Set no_element_cache when opening first
672 element to check format. Close first element too.
673 (do_slurp_bsd_armap): Don't zero ardata->cache here.
674 * bfd-in2.h: Regenerate.
675
676 2019-08-24 Alan Modra <amodra@gmail.com>
677
678 * elf64-ppc.c (ppc64_elf_edit_toc): Exclude undefined weak
679 symbols from GOT optimisation.
680
681 2019-08-23 Stafford Horne <shorne@gmail.com>
682
683 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Use correct value for
684 PLT GOT entries.
685
686 2019-08-23 Nick Clifton <nickc@redhat.com>
687
688 PR 24456
689 * elf.c (bfd_section_from_shdr): Issue an informative warning
690 message and continue processing other sections after encountering
691 a reloc section for a section which already has other relocs
692 associated with it.
693
694 2019-08-23 Alan Modra <amodra@gmail.com>
695
696 PR 24933
697 * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Don't exit
698 on error without freeing plts[] contents.
699
700 2019-08-22 Dennis Zhang <dennis.zhang@arm.com>
701
702 * cpu-arm.c: New entries for Cortex-M35P, Cortex-A77, Cortex-A76AE.
703
704 2019-08-22 Nick Clifton <nickc@redhat.com>
705
706 PR 24922
707 * pei-x86_64.c (pex64_xdata_print_uwd_codes): Add checks before
708 reading data from extra records.
709
710 2019-08-22 Tamar Christina <tamar.christina@arm.com>
711
712 PR ld/24601
713 * elfnn-aarch64.c (aarch64_relocate): Handle weak TLS and undefined TLS.
714 Also Pass input_bfd to _bfd_aarch64_elf_resolve_relocation.
715 * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use it.
716 * elfxx-aarch64.h (_bfd_aarch64_elf_resolve_relocation): Emit warning
717 for weak TLS.
718
719 2019-08-22 Alan Modra <amodra@gmail.com>
720
721 * elf32-arm.c (cmse_scan): Don't use ARM_GET_SYM_CMSE_SPCL,
722 instead recognize CMSE_PREFIX in symbol name.
723 (elf32_arm_gc_mark_extra_sections): Likewise.
724 (elf32_arm_filter_cmse_symbols): Don't test ARM_GET_SYM_CMSE_SPCL.
725 (elf32_arm_swap_symbol_in): Don't invoke ARM_SET_SYM_CMSE_SPCL.
726
727 2019-08-20 Dennis Zhang <dennis.zhang@arm.com>
728
729 * cpu-aarch64.c: New entries for Cortex-A34, Cortex-A65,
730 Cortex-A77, cortex-A65AE, and Cortex-A76AE.
731
732 2019-08-20 Tamar Christina <tamar.christina@arm.com>
733
734 * elf32-arm.c (elf32_thumb2_plt_entry, elf32_arm_plt_thumb_stub,
735 elf32_arm_stub_long_branch_v4t_thumb_thumb,
736 elf32_arm_stub_long_branch_v4t_thumb_arm,
737 elf32_arm_stub_short_branch_v4t_thumb_arm,
738 elf32_arm_stub_long_branch_v4t_thumb_arm_pic,
739 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic,
740 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): Change nop to branch to
741 previous instruction.
742
743 2019-08-19 Tom Tromey <tromey@adacore.com>
744
745 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Create hash table
746 holding symbols.
747
748 2019-08-19 Alan Modra <amodra@gmail.com>
749
750 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename has_gotrel
751 to has_optrel.
752 (struct _ppc64_elf_section_data): Likewise.
753 (ppc64_elf_check_relocs): Set has_optrel for more relocs.
754 (ppc64_elf_edit_toc): Do ha/lo insn checks in GOT loop rather
755 than TOC loop. Check PLT16 insns too.
756
757 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
758
759 PR ld/24905
760 * elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for
761 PC-relative relocations back to ...
762 (elf_x86_64_relocate_section): Here.
763
764 2019-08-16 Martin Liska <mliska@suse.cz>
765
766 PR ld/24912
767 * elflink.c: Report error only for not relocatable.
768 * linker.c (_bfd_generic_link_add_one_symbol): Do not handle
769 here lto_slim_object as it's handled in caller.
770
771 2019-08-16 Alan Modra <amodra@gmail.com>
772
773 * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs.
774
775 2019-08-15 Jim Wilson <jimw@sifive.com>
776
777 * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If
778 RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction
779 to c.li instruction, and use ENCODE_RVC_IMM to set value.
780
781 2019-08-15 Tom Tromey <tromey@adacore.com>
782
783 * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end
784 of section.
785
786 2019-08-14 Alan Modra <amodra@gmail.com>
787
788 PR 24623
789 * dwarf2.c (stash_comp_unit): New function, extracted from..
790 (_bfd_dwarf2_find_nearest_line): ..here.
791 (find_abstract_instance): Parse comp units and decode line info
792 as needed.
793
794 2019-08-14 Alan Modra <amodra@gmail.com>
795
796 * dwarf2.c (comp_unit_maybe_decode_line_info): Declare.
797 (comp_unit_find_nearest_line): Use it here..
798 (_bfd_dwarf2_find_symbol_bias): ..and here.
799
800 2019-08-14 Alan Modra <amodra@gmail.com>
801
802 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter.
803 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
804 * coffgen.c (coff_find_nearest_line_with_names): Adjust
805 _bfd_dwarf2_find_nearest_line calls.
806 * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise.
807 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
808 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
809 * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise.
810 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
811 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
812 * libbfd.h: Regenerate.
813
814 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
815
816 * elf-bfd.h (struct elf_backend_data): New members.
817 * elflink.c (_bfd_elf_link_create_dynamic_sections): Create
818 .gnu.hash section if necessary.
819 (struct collect_gnu_hash_codes): New member.
820 (elf_gnu_hash_process_symidx): New function name.
821 (elf_renumber_gnu_hash_syms): Ignore local and undefined
822 symbols. Record xlat location for every symbol which should have
823 a .MIPS.xhash entry.
824 (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to
825 dynamic section if necessary.
826 (GNU_HASH_SECTION_NAME): New define.
827 (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section.
828 Update the section size info.
829 * elfxx-mips.c (struct mips_elf_hash_sort_data): New members.
830 (struct mips_elf_link_hash_entry): New member.
831 (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation
832 table location.
833 (mips_elf_sort_hash_table): Initialize the pointer to the
834 .MIPS.xhash section.
835 (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash
836 translation table entry with the symbol dynindx.
837 (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH.
838 (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section
839 info.
840 (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash
841 section.
842 (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to
843 dynamic section.
844 (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH.
845 (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section
846 sh_link info.
847 (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag.
848 (MIPS_LIBC_ABI_XHASH): New ABI version enum value.
849 (_bfd_mips_post_process_headers): Mark the ABI version as
850 MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section,
851 but not a .hash section.
852 (_bfd_mips_elf_record_xhash_symbol): New function. Record a
853 position in the translation table, associated with the hash
854 entry.
855 * elfxx-mips.h (literal_reloc_p): Define
856 elf_backend_record_xhash_symbol backend hook.
857 * elfxx-target.h: Initialize elf_backend_record_xhash_symbol
858 backend hook.
859
860 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
861
862 * elf64-bpf.c (bpf_elf_relocate_section): New function.
863 (bpf_elf_insn_disp_reloc): Delete function.
864 (elf_backend_relocate_section): Define.
865
866 2019-08-07 Alan Modra <amodra@gmail.com>
867
868 PR 24644
869 * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check
870 for overflow in expressions involving nsymz.
871
872 2019-08-01 Ilia Diachkov <ilia.diachkov@optimitech.com>
873
874 * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to
875 two pages in relro presence.
876
877 2019-08-01 Max Filippov <jcmvbkbc@gmail.com>
878
879 * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode)
880 (get_wsr_lbeg_opcode): New functions.
881 (check_loop_aligned): Detect relaxed loops and adjust loop_len
882 and insn_len for the first actual instruction of the loop.
883
884 2019-07-30 Alan Modra <amodra@gmail.com>
885
886 PR 24768
887 * bfd.c (struct bfd): Add lto_slim_object flag.
888 * bfd-in2.h: Regenerate.
889
890 2019-07-29 Martin Liska <mliska@suse.cz>
891
892 PR 24768
893 * archive.c (_bfd_compute_and_write_armap): Come up with
894 report_plugin_err variable.
895 * bfd-in2.h (struct bfd): Add lto_slim_object flag.
896 * elf.c (struct lto_section): New.
897 (_bfd_elf_make_section_from_shdr): Parse content of
898 .gnu_lto_.lto section.
899 * elflink.c: Report error for a missing LTO plugin.
900 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
901
902 2019-07-28 Alan Modra <amodra@gmail.com>
903
904 PR 24857
905 PR 24339
906 * elflink.c (elf_link_add_object_symbols): Report an informative
907 error on finding local symbols with index equal or greater than
908 symbol table sh_info. Correct comment. Allow such symbols in
909 dynamic objects. Abort on NULL section for symbol.
910
911 2019-07-26 Alan Modra <amodra@gmail.com>
912
913 * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field.
914 (elf_linker): Don't define.
915 * elflink.c (bfd_elf_final_link): Don't set elf_linker.
916
917 2019-07-25 YunQiang Su <syq@debian.org>
918
919 PR 24832
920 * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit
921 mips inputs.
922
923 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
924
925 * elf32-arc.c (bfd_get_32_me): Add a small description, fix
926 formating.
927 (reloc_type_to_name): Fix formating.
928 (arc_elf_object_p): Likewise.
929 (debug_arc_reloc): Likewise.
930 (arc_do_relocation): Likewise.
931
932 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
933
934 * elf32-arc.c (bfd_get_32_me): New function.
935 (bfd_put_32_me): Likewise.
936 (arc_elf_relax_section): Likewise.
937 (bfd_elf32_bfd_relax_section): Define.
938
939 2019-07-24 Alan Modra <amodra@gmail.com>
940
941 * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from
942 elf_backend_final_write_processing, don't pass linker arg.
943 (_bfd_elf_final_write_processing): Update prototype.
944 * elf.c (_bfd_elf_write_object_contents): Adjust call.
945 (_bfd_elf_final_write_processing): Return error on incompatible
946 OSABI and has_gnu_osabi. Remove linker arg.
947 * elf-nacl.h (nacl_final_write_processing): Update prototype.
948 * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise.
949 * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise.
950 (_bfd_mips_elf_final_write_processing): Likewise.
951 * elf-hppa.h (elf_hppa_final_write_processing): Return status
952 and remove linker arg.
953 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
954 * elf-nacl.c (nacl_final_write_processing): Likewise.
955 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
956 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
957 * elf32-arm.c (arm_final_write_processing): Likewise.
958 (elf32_arm_final_write_processing): Likewise.
959 (elf32_arm_nacl_final_write_processing): Likewise.
960 (elf32_arm_vxworks_final_write_processing): Likewise.
961 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
962 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
963 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
964 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
965 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
966 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
967 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
968 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
969 * elf32-mips.c (mips_vxworks_final_write_processing): Likewise.
970 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
971 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
972 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
973 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
974 * elf32-ppc.c (ppc_final_write_processing): Likewise.
975 (ppc_elf_final_write_processing): Likewise.
976 (ppc_elf_vxworks_final_write_processing): Likewise.
977 * elf32-sparc.c (sparc_final_write_processing): Likewise.
978 (elf32_sparc_final_write_processing): Likewise.
979 (elf32_sparc_vxworks_final_write_processing): Likewise.
980 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
981 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
982 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
983 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
984 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
985 * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise.
986 (_bfd_mips_elf_final_write_processing): Likewise.
987
988 2019-07-24 Alan Modra <amodra@gmail.com>
989
990 * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return
991 early.
992 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
993 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
994
995 2019-07-24 Alan Modra <amodra@gmail.com>
996
997 * elf32-visium.c (visium_elf_post_process_headers): Don't set
998 EI_OSABI header byte here.
999 (ELF_OSABI): Define.
1000
1001 2019-07-23 Alan Modra <amodra@gmail.com>
1002
1003 * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind.
1004 * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind.
1005 (get_program_header_size): Formatting. Only test SH_GNU_MBIND
1006 when elf_gnu_osabi_mbind is set.
1007 (_bfd_elf_map_sections_to_segments): Likewise.
1008 (_bfd_elf_init_private_section_data): Likewise.
1009 (_bfd_elf_final_write_processing): Update comment.
1010 * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry.
1011 (elf_backend_special_sections): Define without .tbss for linux.
1012
1013 2019-07-23 Alan Modra <amodra@gmail.com>
1014
1015 * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols.
1016 Remove none, any, all enums.
1017 (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi.
1018 (_bfd_elf_final_write_processing): Declare.
1019 * elf.c (_bfd_elf_write_object_contents): Unconditionally call
1020 elf_backend_final_write_processing.
1021 (_bfd_elf_post_process_headers): Move body of function to..
1022 (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte
1023 only when not already set. Adjust for rename.
1024 * elfxx-target.h (elf_backend_final_write_processing): Default to
1025 _bfd_elf_final_write_processing.
1026 * elf-hppa.h (elf_hppa_final_write_processing): Call
1027 _bfd_elf_final_write_processing.
1028 * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise.
1029 * elf-nacl.c (nacl_final_write_processing): Likewise.
1030 * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise.
1031 * elf32-arc.c (arc_elf_final_write_processing): Likewise.
1032 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
1033 * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise.
1034 * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise.
1035 * elf32-cris.c (cris_elf_final_write_processing): Likewise.
1036 * elf32-h8300.c (elf32_h8_final_write_processing): Likewise.
1037 * elf32-lm32.c (lm32_elf_final_write_processing): Likewise.
1038 * elf32-m32r.c (m32r_elf_final_write_processing): Likewise.
1039 * elf32-m68k.c (elf_m68k_final_write_processing): Likewise.
1040 * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise.
1041 * elf32-nds32.c (nds32_elf_final_write_processing): Likewise.
1042 * elf32-or1k.c (or1k_elf_final_write_processing): Likewise.
1043 * elf32-pj.c (pj_elf_final_write_processing): Likewise.
1044 * elf32-v850.c (v850_elf_final_write_processing): Likewise.
1045 * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise.
1046 * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise.
1047 * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise.
1048 * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise.
1049 * elf32-arm.c (arm_final_write_processing): Split out from..
1050 (elf32_arm_final_write_processing): ..here. Call
1051 _bfd_elf_final_write_processing.
1052 (elf32_arm_nacl_final_write_processing): Adjust.
1053 * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from..
1054 (_bfd_mips_elf_final_write_processing): ..here. Call
1055 _bfd_elf_final_write_processing.
1056 * elfxx-mips.h (_bfd_mips_final_write_processing): Declare.
1057 * elf32-mips.c (mips_vxworks_final_write_processing): Adjust.
1058 * elf32-ppc.c (ppc_final_write_processing): Split out from..
1059 (ppc_elf_final_write_processing): ..here. Call
1060 _bfd_elf_final_write_processing.
1061 (ppc_elf_vxworks_final_write_processing): Adjust.
1062 * elf32-sparc.c (sparc_final_write_processing): Split out from..
1063 (elf32_sparc_final_write_processing): ..here. Call
1064 _bfd_elf_final_write_processing.
1065 (elf32_sparc_vxworks_final_write_processing): Adjust.
1066 * elf32-d10v.c (elf_backend_final_write_processing): Don't define.
1067 * elf32-d30v.c (elf_backend_final_write_processing): Don't define.
1068 * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define.
1069 * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define.
1070 * elf32-s12z.c (elf_backend_final_write_processing): Don't define.
1071 * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols.
1072 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1073 * elflink.c (elf_link_add_object_symbols): Likewise.
1074 (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here
1075 instead.
1076
1077 2019-07-23 Omar Majid <omajid@redhat.com>
1078
1079 * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC,
1080 I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC,
1081 AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC,
1082 AMD64_NETBSD_MAGIC.
1083 * peXXigen.c: Add comment about source of .NET magic numbers.
1084
1085 2019-07-19 Alan Modra <amodra@gmail.com>
1086
1087 * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34),
1088 (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34),
1089 (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34),
1090 (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs.
1091 * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs.
1092 (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs.
1093 (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64.
1094 (ppc64_elf_check_relocs): Support pcrel tls relocs.
1095 (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise.
1096 * bfd-in2.h: Regenerate.
1097 * libbfd.h: Regenerate.
1098
1099 2019-07-18 Alan Modra <amodra@gmail.com>
1100
1101 * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting
1102 a TLS section symbol for edited relocs. Tighten TLS symbol/reloc
1103 match test.
1104
1105 2019-07-18 Alan Modra <amodra@gmail.com>
1106
1107 * elf64-ppc.c (TLS_EXPLICIT): Define as 256.
1108 (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char
1109 is more than 8 bits.
1110 (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and
1111 tls_type vars unsigned int.
1112 (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT
1113 to select r_type edit.
1114
1115 2019-07-18 Alan Modra <amodra@gmail.com>
1116
1117 * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file.
1118 Correct comment.
1119 * elf64-ppc.c (TLS_GDIE): Likewise.
1120
1121 2019-07-18 Alan Modra <amodra@gmail.com>
1122
1123 * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed
1124 range of tp-relative offsets.
1125
1126 2019-07-15 Alan Modra <amodra@gmail.com>
1127
1128 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
1129 alias is no longer bfd_link_hash_defined, clear the alias.
1130
1131 2019-07-13 Alan Modra <amodra@gmail.com>
1132
1133 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
1134 tls_sec.
1135 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
1136 (_bfd_elf_init_2_index_sections): Likewise.
1137 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
1138 relocations for local TLS symbols, use STN_UNDEF as the relocation
1139 symbol.
1140 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
1141 leave TLS symbol value in the addend.
1142
1143 2019-07-08 Alan Modra <amodra@gmail.com>
1144
1145 PR 24785
1146 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
1147 size before reading first word.
1148
1149 2019-07-02 Nick Clifton <nickc@redhat.com>
1150
1151 PR 24717
1152 * elf.c (is_debuginfo_file): New function.
1153 (assign_file_positions_for_non_load_sections): Do not warn about
1154 allocated sections outside of loadable segments if they are found
1155 in a debuginfo file.
1156 * elf-bfd.h (is_debuginfo_file): Prototype.
1157
1158 2019-07-02 Nick Clifton <nickc@redhat.com>
1159
1160 PR 24753
1161 * compress.c (bfd_get_full_section_contents): Do not complain
1162 about linker created sections that are larger than the file size.
1163
1164 2019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
1165
1166 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
1167 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
1168 for CMSE stubs.
1169 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
1170
1171 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1172
1173 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
1174 sections when .text section contain secure entry functions
1175 is marked.
1176
1177 2019-07-01 Nick Clifton <nickc@redhat.com>
1178
1179 PR 23839
1180 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
1181 section VMA in the offset used to update exidx relocs.
1182
1183 2019-06-28 Nick Clifton <nickc@redhat.com>
1184
1185 PR 24708
1186 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
1187 large version reference section.
1188 * compress.c (bfd_get_full_section_contents): Check for an
1189 uncompressed section whose size is larger than the file size.
1190
1191 2019-06-28 Alan Modra <amodra@gmail.com>
1192
1193 * format.c (bfd_check_format_matches): Don't match plugin target
1194 if another target matches. Expand comment.
1195 * targets.c (_bfd_target_vector): Move plugin_vec after all other
1196 non-corefile targets, outside !SELECT_VECS.
1197 * config.bfd: Don't handle targ=plugin here.
1198 * configure.ac: Don't add plugin to enable_targets or handle in
1199 target loop setting selvecs and other target vars.
1200 * configure: Regenerate.
1201
1202 2019-06-26 Nick Clifton <nickc@redhat.com>
1203
1204 PR 24703
1205 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
1206 messages for failures.
1207 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
1208 if returning an error value.
1209
1210 2019-06-25 Jan Beulich <jbeulich@suse.com>
1211
1212 * elf-properties.c (elf_find_and_remove_property): Rename last
1213 parameter. Mention it in comment.
1214
1215 2019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
1216
1217 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
1218 SEC_MERGE or SEC_CODE flags are set.
1219 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
1220 symtype consistently. Don't include sec_addr (sym_sec) in symval.
1221 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
1222 Add sec_addr (sym_sec) after handling merge sections.
1223
1224 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
1225
1226 PR ld/24721
1227 * elf-properties.c (elf_merge_gnu_property_list): Remove the
1228 property after reporting property removal.
1229
1230 2019-06-23 Alan Modra <amodra@gmail.com>
1231
1232 PR 24704
1233 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
1234 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
1235 Reduce range of offsets allowed for other GOT relocs.
1236
1237 2019-06-23 Alan Modra <amodra@gmail.com>
1238
1239 PR 24689
1240 * elfcode.h (elf_object_p): Warning fix.
1241
1242 2019-06-21 Alan Modra <amodra@gmail.com>
1243
1244 PR 24689
1245 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
1246
1247 2019-06-19 Alan Modra <amodra@gmail.com>
1248
1249 PR 24697
1250 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
1251 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
1252
1253 2019-06-19 Alan Modra <amodra@gmail.com>
1254
1255 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
1256 functions that require r2 valid to use local entry.
1257 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
1258
1259 2019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
1260
1261 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
1262 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
1263 with elfNN_aarch64_allocate_local_dynrelocs.
1264
1265 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
1266
1267 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
1268
1269 2019-06-14 Alan Modra <amodra@gmail.com>
1270
1271 * Makefile.in: Regenerate.
1272 * configure: Regenerate.
1273
1274 2019-06-14 Alan Modra <amodra@gmail.com>
1275
1276 * elf64-ppc.c: Fix comments involving paddi.
1277
1278 2019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
1279
1280 PR 24643
1281 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
1282 absent, or the bfd is not in the ELF formart.
1283 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
1284
1285 2019-06-10 Christos Zoulas <christos@zoulas.com>
1286
1287 PR 24650
1288 * elf.c (elfcore_make_auxv_note_section): New function.
1289 (elfcore_grok_note): Use it.
1290 (elfcore_grok_freebsd_note): Likewise.
1291 (elfcore_grok_openbsd_note): Likewise.
1292 (elfcore_grok_netbsd_note): Likewise. Plus add support for
1293 NT_NETBSDCORE_AUXV notes.
1294
1295 2019-06-06 Sudakshina Das <sudi.das@arm.com>
1296
1297 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
1298 alignment of the new gnu property section.
1299
1300 2019-06-06 Sudakshina Das <sudi.das@arm.com>
1301
1302 * bfd-in.h: Change comment.
1303 * bfd-in2.h: Regenerate.
1304 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
1305 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
1306 Likwise.
1307
1308 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
1309
1310 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
1311 Remove overflow check.
1312
1313 2019-05-28 Alan Modra <amodra@gmail.com>
1314
1315 PR 24596
1316 * cofflink.c (coff_link_check_archive_element): Don't assume
1317 element is a coff object file after calling add_archive_element.
1318
1319 2019-05-28 Alan Modra <amodra@gmail.com>
1320
1321 PR 24596
1322 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
1323 attempt to set sh_entsize for excluded PLT section.
1324
1325 2019-05-28 Alan Modra <amodra@gmail.com>
1326
1327 PR 24596
1328 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
1329 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
1330 allocated in alpha_dynamic_entries_for_reloc.
1331
1332 2019-05-28 Alan Modra <amodra@gmail.com>
1333
1334 PR 24596
1335 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
1336 on NULL output_section.
1337 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
1338
1339 2019-05-28 Alan Modra <amodra@gmail.com>
1340
1341 PR 24596
1342 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
1343 entry when MUST_FIND. Abort when MUST_FIND not found.
1344 (elf_m68k_get_bfd2got_entry): Likewise.
1345 (elf_m68k_relocate_section): Remove now useless assert.
1346
1347 2019-05-28 Alan Modra <amodra@gmail.com>
1348
1349 PR 24596
1350 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
1351 from bfd_link_info, not an output section owner.
1352 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
1353 (elf_hppa_final_link_relocate): Likewise.
1354
1355 2019-05-28 Alan Modra <amodra@gmail.com>
1356
1357 PR 24596
1358 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
1359 create_object_symbols_section, obj_textsec, obj_datasec or
1360 obj_bsssec. Fix other errors in placement.
1361 * config.bfd: Obsolete tic30-aout.
1362
1363 2019-05-28 Alan Modra <amodra@gmail.com>
1364
1365 PR 24596
1366 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
1367 end of section list as well as section_count.
1368 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
1369 section list before returning error.
1370
1371 2019-05-27 Alan Modra <amodra@gmail.com>
1372
1373 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
1374
1375 2019-05-27 Alan Modra <amodra@gmail.com>
1376
1377 PR 24596
1378 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
1379
1380 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1381
1382 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
1383 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
1384 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
1385 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
1386 (elf_backend_merge_symbol_attribute): Define.
1387
1388 2019-05-24 Alan Modra <amodra@gmail.com>
1389
1390 * po/SRC-POTFILES.in: Regenerate.
1391
1392 2019-05-24 Alan Modra <amodra@gmail.com>
1393
1394 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
1395 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
1396 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
1397 (struct ppc_link_hash_table): Add powerxx_stubs.
1398 (ppc64_elf_check_relocs): Set powerxx_stubs.
1399 (build_powerxx_offset, size_powerxx_offset),
1400 (num_relocs_for_powerxx_offset),
1401 (emit_relocs_for_powerxx_offset): New functions.
1402 (plt_stub_size): Size powerxx stubs.
1403 (ppc_build_one_stub): Emit powerxx stubs.
1404 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
1405 powerxx stubs.
1406
1407 2019-05-24 Alan Modra <amodra@gmail.com>
1408
1409 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
1410 R_PPC64_GOT_PCREL34.
1411 (xlate_pcrel_opt): New function.
1412 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
1413 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1414 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
1415
1416 2019-05-24 Alan Modra <amodra@gmail.com>
1417
1418 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
1419 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
1420 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
1421 (BFD_RELOC_PPC64_PLT_PCREL34),
1422 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
1423 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
1424 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
1425 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
1426 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
1427 * elf64-ppc.c (PNOP): Define.
1428 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
1429 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
1430 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
1431 relocs.
1432 (ppc64_elf_prefix_reloc): New function.
1433 (struct ppc_link_hash_table): Add notoc_plt.
1434 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
1435 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
1436 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
1437 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
1438 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
1439 possible need for dynamic relocs on non-pcrel powerxx relocs.
1440 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
1441 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
1442 (toc_adjusting_stub_needed): Likewise.
1443 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
1444 (ppc64_elf_relocate_section): Handle new powerxx relocs.
1445 * bfd-in2.h: Regenerate.
1446 * libbfd.h: Regenerate.
1447
1448 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1449
1450 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
1451 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
1452 bpf_elf64_be_vec.
1453 * configure: Regenerate.
1454
1455 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1456
1457 * configure: Regenerated.
1458 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
1459 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
1460 (BFD64_BACKENDS): Add elf64-bpf.lo.
1461 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
1462 * Makefile.in (SOURCE_HFILES): Regenerate.
1463 * config.bfd (targ_cpu): Handle bpf-*-* targets.
1464 * cpu-bpf.c: New file.
1465 * elf64-bpf.c: Likewise.
1466 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
1467 bpf_elf64_le_vec.
1468 * archures.c: Define architecture bfd_arch_bpf and machine
1469 bfd_arch_bpf.
1470 * reloc.c: Define BFD relocations used by the BPF target.
1471 * bfd-in2.h: Regenerated.
1472 * libbfd.h: Likewise.
1473
1474 2019-05-22 Alan Modra <amodra@gmail.com>
1475
1476 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
1477 contents.
1478
1479 2019-05-22 Alan Modra <amodra@gmail.com>
1480
1481 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
1482 processing on "size error in section".
1483
1484 2019-05-22 Alan Modra <amodra@gmail.com>
1485
1486 * som.c (som_bfd_free_cached_info): Call
1487 _bfd_generic_close_and_cleanup.
1488
1489 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1490
1491 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
1492 for TLS_TPREL_HI16(/LO16) relocations in shared library.
1493
1494 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1495
1496 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
1497 checks. Search the RELA table for n64 relocations.
1498
1499 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
1500 Faraz Shahbazker <fshahbazker@wavecomp.com>
1501
1502 * elfxx-mips.c (LA25_BC): New macro.
1503 (mips_elf_link_hash_table)<compact_branches>: New field.
1504 (STUB_JALRC): New macro.
1505 (mipsr6_o32_exec_plt0_entry_compact): New array.
1506 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
1507 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
1508 (mipsr6_exec_plt_entry_compact): Likewise.
1509 (mips_elf_create_la25_stub): Use BC instead of J for stubs
1510 when compact_branches is true.
1511 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
1512 PLT for MIPSR6 with compact_branches. Do not reorder the
1513 compact branches PLT. Switch the lazy stub for MIPSR6
1514 with compact_branches to use JALRC.
1515 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
1516 when compact_branches is true.
1517 (_bfd_mips_elf_compact_branches): New function.
1518 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
1519
1520 2019-05-21 Tamar Christina <tamar.christina@arm.com>
1521
1522 PR ld/24373
1523 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
1524 Fix print formatter.
1525
1526 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
1527
1528 PR 24460
1529 * elf32-arm.c (get_value_helper): Remove.
1530 (elf32_arm_final_link_relocate): Fix branch future relocations.
1531
1532 2019-05-21 Tamar Christina <tamar.christina@arm.com>
1533
1534 PR ld/24373
1535 * bfd-in.h (enum erratum_84319_opts): New
1536 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
1537 int to enum erratum_84319_opts.
1538 * bfd-in2.h: Regenerate.
1539 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
1540 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
1541 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
1542 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
1543 (_bfd_aarch64_resize_stubs): Amend comment.
1544 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
1545 requested.
1546 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
1547 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
1548 erratum workaround.
1549 (clear_erratum_843419_entry): Update erratum conditional.
1550
1551 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1552
1553 PR ld/24571
1554 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
1555 when computing distance_short_enough.
1556
1557 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1558
1559 PR ld/24564
1560 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
1561 Wrap around even if distance equals avr_pc_wrap_around.
1562
1563 2019-05-20 Nick Clifton <nickc@redhat.com>
1564
1565 * po/fr.po: Updated French translation.
1566
1567 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
1568
1569 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
1570
1571 2019-05-16 Alan Modra <amodra@gmail.com>
1572
1573 * elf32-arm.c (elf32_arm_write_section): Revert last change.
1574
1575 2019-05-15 Alan Modra <amodra@gmail.com>
1576
1577 * elf32-arm.c (elf32_arm_write_section): Don't leave
1578 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
1579 unitialised section contents.
1580
1581 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
1582
1583 PR 19921
1584 * verilog.c: (VerilogDataWidth): New variable.
1585 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
1586
1587 2019-05-08 Nick Clifton <nickc@redhat.com>
1588
1589 PR 24523
1590 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
1591 rather than FALSE if encountering a non-ELF file.
1592
1593 2019-05-06 Alan Modra <amodra@gmail.com>
1594
1595 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
1596
1597 2019-05-06 Alan Modra <amodra@gmail.com>
1598
1599 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
1600 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
1601 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
1602 * libbfd.h: Regenerate.
1603 * bfd-in2.h: Regenerate.
1604
1605 2019-05-04 Alan Modra <amodra@gmail.com>
1606
1607 PR 24511
1608 * syms.c (coff_section_type): Only allow '.', '$' and numeric
1609 following the standard section names.
1610 (bfd_decode_symclass): Prioritize section flag tests in
1611 decode_section_type before name tests in coff_section_type.
1612 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
1613 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
1614 their names and choose standard .text section flags for
1615 fake_section.
1616
1617 2019-05-02 Nick Clifton <nickc@redhat.com>
1618
1619 PR 24493
1620 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
1621 .gnu.debugaltlink sections as debugging sections.
1622
1623 2019-04-30 Alan Modra <amodra@gmail.com>
1624
1625 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
1626 (struct _ppc64_elf_section_data): Likewise.
1627 (ppc64_elf_check_relocs): Set above fields.
1628 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
1629 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
1630 when possible.
1631
1632 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
1633
1634 PR ld/24486
1635 * elflink.c (elf_link_output_extsym): Don't complain undefined
1636 weak dynamic reference.
1637
1638 2019-04-25 Sudakshina Das <sudi.das@arm.com>
1639
1640 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
1641 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
1642 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
1643 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
1644 (elfNN_aarch64_small_plt0_pac_entry): Remove.
1645 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
1646 (elfNN_aarch64_small_plt0_bti_entry): Update.
1647 (elfNN_aarch64_small_plt_bti_entry): Update.
1648 (elfNN_aarch64_small_plt_pac_entry): Update.
1649 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
1650 (setup_plt_values): Setup new entries.
1651 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
1652 (elfNN_aarch64_plt_sym_val): Likewise.
1653
1654 2019-04-22 Jim Wilson <jimw@sifive.com>
1655
1656 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
1657
1658 2019-04-19 Alan Modra <amodra@gmail.com>
1659
1660 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
1661
1662 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1663
1664 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
1665 building shared object.
1666 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
1667
1668 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1669
1670 PR ld/24458
1671 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
1672 linker_def.
1673
1674 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1675
1676 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
1677 relocation.
1678 * bfd-in2.h: Regenerate.
1679 * libbfd.h: Likewise.
1680
1681 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1682
1683 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
1684 * bfd-in2.h: Regenerated.
1685 * libbfd.h: Regenerated.
1686
1687 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1688
1689 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
1690 * bfd-in2.h: Regenerated.
1691 * libbfd.h: Likewise.
1692
1693 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1694
1695 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
1696 * bfd-in2.h: Regenerated.
1697 * libbfd.h: Regenerated.
1698 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
1699 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
1700 and R_ARM_THM_BF12 together.
1701 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
1702
1703 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1704
1705 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
1706 * libbfd.h: Regenerated.
1707 * bfd-in2.h: Regenerated.
1708 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
1709 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
1710 and R_ARM_THM_BF18 together.
1711 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
1712
1713 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1714
1715 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
1716 * bfd-in2.h: Regenerated.
1717 * libbfd.h: Regenerated.
1718 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
1719 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
1720 and R_ARM_THM_BF16 together.
1721 (get_value_helper): New reloc helper.
1722 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
1723
1724 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1725
1726 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
1727 * bfd-in2.h: Regenerate.
1728 * libbfd.h: Regenerate.
1729
1730 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1731
1732 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
1733 * bfd-in2.h: Regenerate.
1734 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
1735 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
1736 and update assert.
1737 (using_thumb2): Likewise.
1738 (using_thumb2_bl): Update assert.
1739 (arch_has_arm_nop): Likewise.
1740 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
1741 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
1742
1743 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1744
1745 * elf-linker-x86.h (elf_x86_cet_report): New.
1746 (elf_linker_x86_params): Add cet_report.
1747 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
1748 missing IBT and SHSTK properties if needed.
1749
1750 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1751
1752 PR ld/24436
1753 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
1754 "h != NULL". Don't check "h != NULL" before calling.
1755 bfd_elf_gc_record_vtentry.
1756 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1757 * elf32-bfin.c (bfin_check_relocs): Likewise.
1758 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1759 * elf32-csky.c (csky_elf_check_relocs): Likewise.
1760 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1761 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1762 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1763 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1764 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
1765 * elf32-i386.c (elf_i386_check_relocs): Likewise.
1766 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1767 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1768 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1769 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1770 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1771 * elf32-metag.c (elf_metag_check_relocs): Likewise.
1772 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1773 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1774 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1775 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1776 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1777 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1778 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1779 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1780 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1781 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1782 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1783 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
1784 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1785 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1786 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
1787 VTENTRY entry.
1788
1789 2019-04-11 Alan Modra <amodra@gmail.com>
1790
1791 PR 24435
1792 * elflink.c (elf_link_add_object_symbols): Don't read partial
1793 dynamic entries from fuzzed objects.
1794
1795 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1796
1797 PR ld/24302
1798 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
1799 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
1800 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
1801
1802 2019-04-10 Michael Forney <mforney@mforney.org>
1803
1804 PR 24427
1805 * doc/chew.c (free_words): Correctly free "push_text" strings.
1806
1807 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1808
1809 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
1810
1811 2019-04-08 Alan Modra <amodra@gmail.com>
1812
1813 * configure.ac (elfxx_x86): Define and use.
1814 * configure: Regenerate.
1815
1816 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1817
1818 * elf-linker-x86.h: New file.
1819 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
1820 to get x86-specific linker options.
1821 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
1822 (elf_x86_64_check_relocs): Likewise.
1823 (elf_x86_64_relocate_section): Likewise.
1824 (elf_x86_64_link_setup_gnu_properties): Likewise.
1825 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
1826 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
1827 (_bfd_elf_linker_x86_set_options): New function.
1828 * elfxx-x86.h: Include "elf-linker-x86.h".
1829 (elf_x86_link_hash_table): Add params.
1830
1831 2019-04-03 Alan Modra <amodra@gmail.com>
1832
1833 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
1834 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
1835 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
1836 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
1837 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
1838 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
1839
1840 2019-04-02 Jim Wilson <jimw@sifive.com>
1841
1842 PR 24389
1843 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
1844 ELF header flags to after check for ELF object file. Loop through
1845 sections looking for code sections, if none, then skip ABI checks.
1846
1847 2019-03-30 Andrew Waterman <andrew@sifive.com>
1848
1849 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
1850 rd == X_RA case.
1851
1852 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1853
1854 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
1855 info->export_dynamic to the conditional.
1856
1857 2019-03-28 Alan Modra <amodra@gmail.com>
1858
1859 PR 24392
1860 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
1861 * configure: Regenerate.
1862 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
1863 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
1864 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
1865 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
1866 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
1867
1868 2019-03-21 Jim Wilson <jimw@sifive.com>
1869
1870 PR 24365
1871 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
1872 verify sym non-NULL before using. Add identical check using h.
1873
1874 2019-03-21 Sudakshina Das <sudi.das@arm.com>
1875
1876 * elf-bfd.h (struct elf_backend_data): Add argument to
1877 merge_gnu_properties.
1878 * elf-properties.c (elf_merge_gnu_properties): Add argument to
1879 itself and while calling bed->merge_gnu_properties.
1880 (elf_merge_gnu_property_list): Update the calls for
1881 elf_merge_gnu_properties.
1882 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
1883 of --force-bti warning and add argument.
1884 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
1885 warning.
1886 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
1887 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
1888 declaration.
1889
1890 2019-03-20 Sudakshina Das <sudi.das@arm.com>
1891
1892 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
1893 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
1894 (elf_backend_fixup_gnu_properties): Define for AArch64.
1895
1896 2019-03-18 Alan Modra <amodra@gmail.com>
1897
1898 PR 24355
1899 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
1900 for local iplt syms with ent->plt.offset == -1. Remove ineffective
1901 attempt at writing glink stubs only once.
1902
1903 2019-03-16 Alan Modra <amodra@gmail.com>
1904
1905 PR 24337
1906 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
1907 (_bfd_elf_rel_local_sym): Likewise.
1908 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
1909 section of symbols with unrecognized shndx.
1910
1911 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1912
1913 PR ld/24267
1914 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
1915 section.
1916 * cofflink.c (coff_link_add_symbols): Check for symbols defined
1917 in discarded section.
1918
1919 2019-03-15 Alan Modra <amodra@gmail.com>
1920
1921 PR 24339
1922 * elflink.c (elf_link_add_object_symbols): Bail out on a local
1923 symbol after globals if elf_bad_symtab is not set.
1924
1925 2019-03-15 Alan Modra <amodra@gmail.com>
1926
1927 PR 24337
1928 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
1929 (_bfd_elf_rel_local_sym): Likewise.
1930
1931 2019-03-15 Alan Modra <amodra@gmail.com>
1932
1933 PR 24336
1934 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
1935 object files with sh_size not a multiple of sh_entsize.
1936
1937 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1938
1939 PR ld/24338
1940 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
1941 input with bad relocation.
1942
1943 22019-03-15 H.J. Lu <hongjiu.lu@intel.com>
1944
1945 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
1946
1947 2019-03-14 Nick Clifton <nickc@redhat.com>
1948
1949 PR 24334
1950 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
1951 (save_section_vma): Initialise field to the number of entries in
1952 the sec_vma table.
1953 (section_vma_same): Check that the number of entries in the
1954 sec_vma table matches the number of sections in the bfd.
1955
1956 2019-03-14 Nick Clifton <nickc@redhat.com>
1957
1958 PR 24333
1959 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
1960 section owner pointer when adding the default symbol.
1961
1962 2019-03-14 Nick Clifton <nickc@redhat.com>
1963
1964 PR 24332
1965 * elflink.c (elf_link_add_object_symbols): Add new local variable
1966 extversym_end. Initialise it to point to the end of the version
1967 symbol table, if present. Check it when initialising and updating
1968 the ever pointer.
1969
1970 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1971
1972 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
1973 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
1974 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
1975 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
1976 and PLT_PAC_PLT.
1977 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
1978 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
1979 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
1980
1981 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1982 Szabolcs Nagy <szabolcs.nagy@arm.com>
1983
1984 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
1985 (aarch64_bti_pac_info): New.
1986 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
1987 (bfd_elf32_aarch64_set_options): Likewise.
1988 * bfd-in2.h: Regenerate
1989 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
1990 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
1991 (elfNN_aarch64_small_plt0_bti_entry): New.
1992 (elfNN_aarch64_small_plt_bti_entry): New.
1993 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
1994 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
1995 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
1996 tlsdesc_plt_entry_size fields.
1997 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
1998 (setup_plt_values): New helper function.
1999 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
2000 bti enable type.
2001 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
2002 fixed macros.
2003 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
2004 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
2005 to plt stubs instead of fixed ones and update filling them according
2006 to the need for bti.
2007 (elfNN_aarch64_init_small_plt0_entry): Likewise.
2008 (elfNN_aarch64_finish_dynamic_sections): Likewise.
2009 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
2010 (elfNN_aarch64_plt_sym_val): Update size accordingly.
2011 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
2012 is set.
2013 (bfd_elfNN_get_synthetic_symtab): Define.
2014 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
2015 and mising BTI NOTE SECTION.
2016
2017
2018 2019-03-13 Sudakshina Das <sudi.das@arm.com>
2019
2020 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
2021 linker created inputs from merge.
2022 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
2023 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
2024 (elfNN_aarch64_link_setup_gnu_properties): New.
2025 (elfNN_aarch64_merge_gnu_properties): New.
2026 (elf_backend_setup_gnu_properties): Define for AArch64.
2027 (elf_backend_merge_gnu_properties): Likewise.
2028 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
2029 (_bfd_aarch64_elf_parse_gnu_properties): Define.
2030 (_bfd_aarch64_elf_merge_gnu_properties): Define.
2031 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
2032 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
2033 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
2034 (elf_backend_parse_gnu_properties): Define for AArch64.
2035
2036 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
2037
2038 PR ld/24322
2039 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
2040 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
2041
2042 2019-03-12 Alan Modra <amodra@gmail.com>
2043
2044 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
2045 nmemb parameter. Use bfd_alloc2.
2046 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
2047 Delete assertion.
2048 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
2049 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
2050 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
2051 doesn't overflow.
2052 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
2053 (assign_section_numbers): Style fix.
2054 (swap_out_syms): Use bfd_malloc2.
2055 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
2056 overflow.
2057 (_bfd_elf_make_empty_symbol): Style fix.
2058 (elfobj_grok_stapsdt_note_1): Formatting.
2059 * elfcode.h (elf_object_p): Use bfd_alloc2.
2060 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
2061 (elf_slurp_symbol_table): Use bfd_zalloc2.
2062 (elf_slurp_reloc_table): Use bfd_alloc2.
2063 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
2064 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
2065 size calculation doesn't overflow.
2066 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
2067 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
2068 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
2069
2070 2019-03-08 Alan Modra <amodra@gmail.com>
2071
2072 PR 24311
2073 * merge.c (merge_strings): Return secinfo. Don't pad section
2074 to alignment here.
2075 (_bfd_merge_sections): Pad section to alignment here, if input
2076 sections contributing to merged output all pad to alignment.
2077 Formatting.
2078
2079 2019-03-06 Nick Clifton <nickc@redhat.com>
2080
2081 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
2082 table pointer.
2083 * coffgen.c (coff_find_nearest_line_with_names): Do not call
2084 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
2085
2086 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
2087
2088 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
2089 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2090
2091 PR 20113
2092 * elf32-s390.c (allocate_dynrelocs): Update comment.
2093
2094 2019-02-28 Tamar Christina <tamar.christina@arm.com>
2095
2096 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
2097
2098 2019-02-28 Nick Clifton <nickc@redhat.com>
2099
2100 PR 24273
2101 * elf.c (bfd_elf_string_from_elf_section): Check for a string
2102 section that is not NUL terminated.
2103
2104 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2105
2106 PR ld/24276
2107 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
2108 by linker when checking copy reloc on protected symbol.
2109
2110 2019-02-24 Alan Modra <amodra@gmail.com>
2111
2112 PR 24144
2113 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
2114
2115 2019-02-20 Eric Tsai <erictsai@cadence.com>
2116
2117 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
2118 sections between the call site and call destination and adjust
2119 call distance by the largest alignment.
2120
2121 2019-02-20 Alan Hayward <alan.hayward@arm.com>
2122
2123 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
2124 * elf.c (elfcore_grok_aarch_pauth): New function.
2125 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
2126 (elfcore_write_aarch_pauth): New function.
2127 (elfcore_write_register_note): Check for AArch64 pauth section.
2128
2129 2019-02-20 Alan Modra <amodra@gmail.com>
2130
2131 PR 24225
2132 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
2133 return value.
2134
2135 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
2136
2137 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
2138 Darwin hosts, not just or1k.
2139 * configure: Regenerate.
2140
2141 2019-02-20 Alan Modra <amodra@gmail.com>
2142
2143 PR 24236
2144 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
2145 sentinel NUL to string buffer nearer to loop where it is used.
2146 Don't go past sentinel when scanning strings, and don't write
2147 NUL again.
2148 * archive.c (do_slurp_coff_armap): Simplify string handling to
2149 archive64.c style.
2150
2151 2019-02-19 Alan Modra <amodra@gmail.com>
2152
2153 PR 24235
2154 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
2155 attempting to prevent read past end of section.
2156
2157 2019-02-18 Alan Modra <amodra@gmail.com>
2158
2159 PR 24225
2160 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
2161 PRIx64 to generate warning messages. Print local sym names too.
2162
2163 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
2164
2165 * elf32-arc (INIT_SYM_STRING): Delete.
2166 (FINI_SYM_STRING): Likewise.
2167 (init_str): Likewise.
2168 (fini_str): Likewise.
2169
2170 2019-02-08 Alan Modra <amodra@gmail.com>
2171
2172 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
2173 for bss-plt" warning to make it an error.
2174
2175 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
2176
2177 PR ld/18841
2178 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
2179 reloc_class_ifunc for ifunc symbols.
2180 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
2181
2182 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
2183
2184 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
2185 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
2186
2187 2019-02-07 Nick Clifton <nickc@redhat.com>
2188
2189 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
2190 into the definitely obsolete list.
2191
2192 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
2193
2194 PR ld/24151
2195 * elf64-x86-64.c (elf_x86_64_need_pic): Check
2196 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
2197 (elf_x86_64_relocate_section): Move PIC check for PC-relative
2198 relocations to ...
2199 (elf_x86_64_check_relocs): Here.
2200 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
2201 to check if a symbol is defined in a non-shared object.
2202 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
2203
2204 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
2205
2206 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
2207 of 'labs' (and fix GCC warning).
2208
2209 2019-01-25 Nick Clifton <nickc@redhat.com>
2210
2211 * po/ru.po: Updated Russian translation.
2212
2213 2019-01-23 Nick Clifton <nickc@redhat.com>
2214
2215 * po/fr.po: Updated French translation.
2216
2217 2019-01-21 Nick Clifton <nickc@redhat.com>
2218
2219 * po/pt.po: Updated Portuguese translation.
2220 * po/uk.po: Updated Ukranian translation.
2221
2222 2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
2223
2224 PR 24108
2225 * elf32-nds32.c (nds32_relocate_section): Add space between words
2226 in error message.
2227 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
2228 error message.
2229 (riscv_i_or_e_p): Likewise.
2230 (riscv_merge_arch_attr_info): Likewise.
2231
2232 2019-01-19 Nick Clifton <nickc@redhat.com>
2233
2234 * version.m4: Reset to 2.32.51
2235 * configure: Regenerate.
2236 * po/bfd.pot: Regenerate.
2237
2238 2018-06-24 Nick Clifton <nickc@redhat.com>
2239
2240 2.32 branch created.
2241
2242 2019-01-16 Kito Cheng <kito@andestech.com>
2243
2244 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
2245 for OBJ_ATTR_PROC.
2246
2247 2019-01-16 Kito Cheng <kito@andestech.com>
2248 Nelson Chu <nelson@andestech.com>
2249
2250 * elfnn-riscv.c (in_subsets): New.
2251 (out_subsets): Likewise.
2252 (merged_subsets): Likewise.
2253 (riscv_std_ext_p): Likewise.
2254 (riscv_non_std_ext_p): Likewise.
2255 (riscv_std_sv_ext_p): Likewise.
2256 (riscv_non_std_sv_ext_p): Likewise.
2257 (riscv_version_mismatch): Likewise.
2258 (riscv_i_or_e_p): Likewise.
2259 (riscv_merge_std_ext): Likewise.
2260 (riscv_merge_non_std_and_sv_ext): Likewise.
2261 (riscv_merge_arch_attr_info): Likewise.
2262 (riscv_merge_attributes): Likewise.
2263 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
2264
2265 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
2266 (elf_backend_obj_attrs_vendor): Define.
2267 (elf_backend_obj_attrs_section_type): Likewise.
2268 (elf_backend_obj_attrs_section): Likewise.
2269 (elf_backend_obj_attrs_arg_type): Define as
2270 riscv_elf_obj_attrs_arg_type.
2271 * elfxx-riscv.c (riscv_estimate_digit): New.
2272 (riscv_estimate_arch_strlen1): Likewise.
2273 (riscv_estimate_arch_strlen): Likewise.
2274 (riscv_arch_str1): Likewise.
2275 (riscv_arch_str): Likewise.
2276 * elfxx-riscv.h (riscv_arch_str): Declare.
2277
2278 2019-01-14 John Darrington <john@darrington.wattle.id.au>
2279
2280 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
2281 * libbfd.h: regen.
2282 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
2283 source field. (md_apply_fix): Apply final fix
2284 to BFD_RELOC_S12Z_OPR.
2285 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
2286
2287 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2288
2289 PR 20113
2290 * elf32-s390.c (allocate_dynrelocs): Update comment.
2291
2292 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
2293
2294 * warning.m4: Adjust egrep pattern for non-GNU compilers.
2295 * configure: Regenerate.
2296
2297 2019-01-08 Alan Modra <amodra@gmail.com>
2298
2299 PR 23699
2300 PR 24065
2301 * ihex.c (ihex_write_object_contents): Properly check 32-bit
2302 address range.
2303
2304 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
2305
2306 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
2307 * bfd/bfd-in2.h: Regenerate.
2308 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
2309 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
2310
2311 2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
2312
2313 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
2314 default target, little endian target is more suitable.
2315
2316 2019-01-04 Alan Modra <amodra@gmail.com>
2317
2318 PR 24061
2319 PR 21786
2320 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
2321 adjust all callers.
2322 (EQ_VALUE_IN_FIELD): Likewise.
2323 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
2324
2325 2019-01-01 Alan Modra <amodra@gmail.com>
2326
2327 Update year range in copyright notice of all files.
2328
2329 For older changes see ChangeLog-2018
2330 \f
2331 Copyright (C) 2019 Free Software Foundation, Inc.
2332
2333 Copying and distribution of this file, with or without modification,
2334 are permitted in any medium without royalty provided the copyright
2335 notice and this notice are preserved.
2336
2337 Local Variables:
2338 mode: change-log
2339 left-margin: 8
2340 fill-column: 74
2341 version-control: never
2342 End:
This page took 0.07269 seconds and 3 git commands to generate.