Prevent the linker from overestimating the alignment requirement of common symbols...
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2020-08-28 Tuckker <tuckkern+sourceware@gmail.com>
2
3 PR 26543
4 * linker.c (bfd_generic_define_common_symbol): Force the alignment
5 to 1 if the section has now alignment requirement.
6
7 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
8
9 * elf32-csky.c (csky_archs): Fix arch names.
10 (csky_find_arch_with_name): New.
11 (elf32_csky_merge_attributes): New.
12 (csky_elf_merge_private_bfd_data): Add process of merge
13 attribute section.
14 (elf32_csky_obj_attrs_arg_type): New.
15 (elf32_csky_obj_attrs_handle_unknown): New.
16 (elf_backend_obj_attrs_vendor): Define.
17 (elf_backend_obj_attrs_section): Define.
18 (elf_backend_obj_attrs_arg_type): Define.
19 (elf_backend_obj_attrs_section_type): Define.
20
21 2020-08-28 Nick Clifton <nickc@redhat.com>
22
23 PR19011
24 * cofflink.c (_bfd_coff_generic_relocate_section): Provide a value
25 for undefined symbols which will not generate extra warning
26 messages about truncated relocs.
27
28 2020-08-28 Nelson Chu <nelson.chu@sifive.com>
29
30 * elfnn-riscv.c (riscv_elf_check_relocs): Treat R_RISCV_CALL
31 and R_RISCV_CALL_PLT as the same in the riscv_elf_check_relocs.
32 (riscv_elf_relocate_section): Remove the R_RISCV_CALL for the
33 unresolved reloc checks.
34
35 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
36
37 PR 26356
38 * som.c (som_bfd_copy_private_section_data): Issue error when a
39 subspace is specified without its containing space.
40
41 2020-08-27 Alan Modra <amodra@gmail.com>
42
43 PR 26469
44 * elflink.c: Include limits.h.
45 (CHAR_BIT): Provide fallback define.
46 (set_symbol_value): Correct complex reloc comment.
47 (undefined_reference): Set bfd_error.
48 (BINARY_OP_HEAD, BINARY_OP_TAIL): Split out from..
49 (BINARY_OP): ..this.
50 (eval_symbol): Limit shifts. Force unsigned for left shift.
51 Catch divide by zero.
52 * configure.ac (AC_CHECK_HEADERS): Combine, sort and add limits.h.
53 * configure: Regenerate.
54 * config.in: Regenerate.
55
56 2020-08-27 Alan Modra <amodra@gmail.com>
57
58 PR 26462
59 * reloc.c (bfd_check_overflow): Return early if zero bitsize.
60
61 2020-08-27 Alan Modra <amodra@gmail.com>
62
63 * elf32-arm.c (elf32_arm_final_link_relocate): Don't segfault
64 on sym_sec not being output.
65
66 2020-08-27 Alan Modra <amodra@gmail.com>
67
68 PR 26416
69 * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Correct "dynamic".
70
71 2020-08-26 Nick Clifton <nickc@redhat.com>
72
73 PR 26433
74 * elf32-avr.c (avr_final_link_relocate): Fix undefined shift
75 behaviour.
76 (avr_elf32_load_records_from_section): Use bfd_get_16 and
77 bfd_get_32 to load values from potentially unaligned pointers.
78
79 PR 26416
80 * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Test for and
81 ignore local symbols.
82 (elf64_alpha_relax_got_load): Do not check for local dynamic
83 symbols.
84 (OP_LDA, OP_LDAH, OP_LDQ, OP_BR, OP_BSR): Use unsigned constant
85 values.
86 (INSN_A) Cast the A parameter to unsigned.
87 (INSN_AB): Define in terms of INSN_A.
88 (INSN_ABC): Likewise.
89 (INSN_ABO): Likewise.
90 (INSN_AD): Likewise.
91
92 PR 26411
93 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Use an
94 unsigned long constant when creating a mask to test for alignment
95 issues.
96
97 2020-08-26 Alan Modra <amodra@gmail.com>
98
99 PR 26507
100 * elf32-xtensa.c (find_removed_literal): Don't bsearch empty map.
101
102 2020-08-26 Alan Modra <amodra@gmail.com>
103
104 PR 26506
105 * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Return early
106 when section is empty.
107
108 2020-08-26 Alan Modra <amodra@gmail.com>
109
110 PR 26498
111 * elf32-spu.c (find_function_stack_adjust): Use unsigned vars to
112 avoid UB left shift.
113
114 2020-08-26 Alan Modra <amodra@gmail.com>
115
116 PR 26484
117 PR 26485
118 PR 26486
119 PR 26487
120 PR 26488
121 PR 26490
122 * elf64-ppc.c (is_tls_get_addr): Avoid UB &h->elf when h is NULL.
123 (ppc64_elf_tls_setup): Likewise.
124 (branch_reloc_hash_match): Likewise.
125 (build_plt_stub): Likewise.
126 (ppc64_elf_relocate_section): Likewise.
127
128 2020-08-26 Alan Modra <amodra@gmail.com>
129
130 PR 26478
131 * mmo.c (mmo_write_symbols_and_terminator): Don't memcpy empty table.
132
133 2020-08-26 Alan Modra <amodra@gmail.com>
134
135 PR 26475
136 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Check
137 sstubs->contents != NULL.
138
139 2020-08-26 Alan Modra <amodra@gmail.com>
140
141 PR 26453
142 * som.c (som_prep_for_fixups): Return early when no symbols.
143
144 2020-08-26 Alan Modra <amodra@gmail.com>
145
146 PR 26418
147 * ecofflink.c (WRITE): Don't write size 0 chunks.
148
149 2020-08-26 Alan Modra <amodra@gmail.com>
150
151 * bfdio.c (bfd_get_file_size): Don't segv on NULL adata.
152
153 2020-08-26 Alan Modra <amodra@gmail.com>
154
155 PR 26415
156 * vms-misc.c (vms_time_t_to_vms_time): Don't use unsigned short vars.
157
158 2020-08-26 David Faust <david.faust@oracle.com>
159
160 * archures.c (bfd_mach_xbpf): Define.
161 * bfd-in2.h: Regenerate.
162 * cpu-bpf.c (bfd_xbpf_arch) New.
163 (bfd_bpf_arch) Update next in list field to point to xbpf arch.
164
165 2020-08-26 Alan Modra <amodra@gmail.com>
166
167 * archures.c (bfd_mach_ck860): Define.
168
169 2020-08-25 Mark Wielaard <mark@klomp.org>
170
171 * dwarf2.c (struct dwarf2_debug_file): Add dwarf_rnglists_buffer
172 and dwarf_rnglists_size fields.
173 (dwarf_debug_sections): Add debug_rnglists.
174 (dwarf_debug_section_enum): Likewise.
175 (read_debug_rnglists): New function.
176 (read_rangelist): New function to call either read_ranges or
177 read_rnglists. Rename original function to...
178 (read_ranges): ...this.
179 (read_rnglists): New function.
180
181 2020-08-25 Alan Modra <amodra@gmail.com>
182
183 PR 26505
184 * elf32-xstormy16.c (xstormy16_elf_relax_section): Check
185 is_elf_hash_table before accessing elf fields.
186
187 2020-08-25 Alan Modra <amodra@gmail.com>
188
189 PR 26482
190 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Ignore sections that
191 won't be output.
192
193 2020-08-25 Alan Modra <amodra@gmail.com>
194
195 PR 26463
196 * elf32-m32c.c (m32c_elf_relax_section): Check is_elf_hash_table
197 before accessing elf fields.
198
199 2020-08-25 Alan Modra <amodra@gmail.com>
200
201 PR 26452
202 * som.c (som_compute_checksum): XOR 32-bit words in header,
203 not unsigned long sized words.
204
205 2020-08-25 Alan Modra <amodra@gmail.com>
206
207 PR 26430
208 * elf-nacl.c (nacl_modify_segment_map): Correct alloc size and
209 amount copied for elf_segment_map defined with one element
210 sections array.
211
212 2020-08-25 Alan Modra <amodra@gmail.com>
213
214 PR 26422
215 * elf32-arm.c (elf32_arm_final_link_relocate): Use the appropriate
216 bfd_get_x size function to read addends out of fields. Apply
217 rightshift adjustment too. Don't apply the now unnecessary
218 howto->size shift to branch REL addends. Don't refetch R_ARM_ABS8
219 and R_ARM_ABS16 addends. Don't refetch thumb branch addends.
220 Correct R_ARM_THM_JUMP6 addend.
221
222 2020-08-25 Alan Modra <amodra@gmail.com>
223
224 PR 26419
225 * elf-m10300.c (mn10300_elf_relax_section): Don't attempt access
226 before start of section.
227
228 2020-08-25 Alan Modra <amodra@gmail.com>
229
230 * elf-m10300.c (elf32_mn10300_hash_table): Test is_elf_hash_table
231 before accessing elf_hash_table_id.
232 * elf32-arc.c (elf_arc_hash_table): Likewise.
233 * elf32-arm.c (elf32_arm_hash_table): Likewise.
234 * elf32-avr.c (avr_link_hash_table): Likewise.
235 * elf32-bfin.c (bfinfdpic_hash_table): Likewise.
236 * elf32-cris.c (elf_cris_hash_table): Likewise.
237 * elf32-csky.c (csky_elf_hash_table): Likewise.
238 * elf32-frv.c (frvfdpic_hash_table): Likewise.
239 * elf32-hppa.c (hppa_link_hash_table): Likewise.
240 * elf32-lm32.c (lm32_elf_hash_table): Likewise.
241 * elf32-m32r.c (m32r_elf_hash_table): Likewise.
242 * elf32-m68hc1x.h (m68hc11_elf_hash_table): Likewise.
243 * elf32-m68k.c (elf_m68k_hash_table): Likewise.
244 * elf32-metag.c (metag_link_hash_table): Likewise.
245 * elf32-microblaze.c (elf32_mb_hash_table): Likewise.
246 * elf32-nds32.h (nds32_elf_hash_table): Likewise.
247 * elf32-or1k.c (or1k_elf_hash_table): Likewise.
248 * elf32-s390.c (elf_s390_hash_table): Likewise.
249 * elf32-sh.c (sh_elf_hash_table): Likewise.
250 * elf32-spu.c (spu_hash_table): Likewise.
251 * elf32-tilepro.c (tilepro_elf_hash_table): Likewise.
252 * elf32-xtensa.c (elf_xtensa_hash_table): Likewise.
253 * elf64-alpha.c (alpha_elf_hash_table): Likewise.
254 * elf64-hppa.c (hppa_link_hash_table): Likewise.
255 * elf64-ia64-vms.c (elf64_ia64_hash_table): Likewise.
256 * elf64-s390.c (elf_s390_hash_table): Likewise.
257 * elfnn-ia64.c (elfNN_ia64_hash_table): Likewise.
258 * elfnn-riscv.c (riscv_elf_hash_table): Likewise.
259 * elfxx-mips.c (mips_elf_hash_table): Likewise.
260 * elfxx-sparc.h (_bfd_sparc_elf_hash_table): Likewise.
261 * elfxx-tilegx.c (tilegx_elf_hash_table): Likewise.
262
263 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
264
265 * elf.c (elfcore_grok_win32pstatus): Change name_size to unsigned
266 int. Use '%u' format with _bfd_error_handler to render it.
267
268 2020-08-25 Alan Modra <amodra@gmail.com>
269
270 PR 26489
271 * elf64-ppc.c (ppc64_elf_size_stubs): Test code_sec->has_toc_reloc
272 and code_sec->makes_toc_func_call before sec_info[code_sec->id].
273
274 2020-08-25 Alan Modra <amodra@gmail.com>
275
276 PR 26492
277 * elf64-ppc.c (ppc_hash_table): Test is_elf_hash_table before
278 accessing elf_hash_table_id.
279
280 2020-08-25 Alan Modra <amodra@gmail.com>
281
282 PR 26483
283 * elf32-ppc.c (ppc_elf_hash_table): Test is_elf_hash_table before
284 accessing elf_hash_table_id.
285
286 2020-08-24 Mark Wielaard <mark@klomp.org>
287
288 * dwarf2.c (read_attribute_value): Handle DW_FORM_data16.
289 (read_formatted_entries): Likewise. And skip zero entry.
290
291 2020-08-24 Cooper Qu <cooper.qu@linux.alibaba.com>
292
293 * bfd-in2.h (bfd_mach_ck860): New.
294 * cpu-csky.c (arch_info_struct): Add item for CK860.
295
296 2020-08-24 Alan Modra <amodra@gmail.com>
297
298 * elf32-ppc.c (ppc_elf_check_relocs): Set has_tls_reloc for
299 high part tprel16 relocs.
300 (ppc_elf_tls_optimize): Sanity check high part tprel16 relocs.
301 Clear do_tls_opt on odd instructions.
302 (ppc_elf_relocate_section): Move TPREL16_HA/LO optimisation later.
303 Don't sanity check them here.
304 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_tls_reloc for
305 high part tprel16 relocs.
306 (ppc64_elf_tls_optimize): Sanity check high part tprel16 relocs.
307 Clear do_tls_opt on odd instructions.
308 (ppc64_elf_relocate_section): Don't sanity check TPREL16_HA.
309
310 2020-08-23 John David Anglin <danglin@gcc.gnu.org>
311
312 PR binutils/26357
313 * configure.ac: Disable plugins by default on 32-bit hppa*-*-hpux*.
314 * configure: Regenerate.
315
316 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
317
318 PR ld/26382
319 * elflink.c (elf_link_output_symstrtab): Keep only one '@' for
320 versioned symbols, which are defined in shared objects, in
321 symbol string table.
322
323 2020-08-21 Nick Clifton <nickc@redhat.com>
324
325 * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_scan): Only sort
326 the data map if there are entries in it.
327 (_bfd_aarch64_erratum_843419_scan): Likewise.
328
329 2020-08-21 Jan Beulich <jbeulich@suse.com>
330
331 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Check
332 last byte of debug dir, not first.
333
334 2020-08-20 Nick Clifton <nickc@redhat.com>
335
336 PR 26428
337 * bfd.c (bfd_update_compression_header): Also set the sh_addralign
338 field in the ELF header of the compressed sections.
339
340 2020-08-20 Nick Clifton <nickc@redhat.com>
341
342 PR 26406
343 * elf-bfd.h (struct bfd_elf_section_data): Add
344 has_secondary_relocs field.
345 * elf.c (_bfd_elf_copy_special_section_fields): Set the
346 has_secondary_relocs field for sections which have associated
347 secondary relocs.
348 * elfcode.h (elf_write_relocs): Only call write_secondary_relocs
349 on sections which have associated secondary relocs.
350
351 2020-08-15 Alan Modra <amodra@gmail.com>
352
353 * elf32-frv.c (elf32_frv_add_symbol_hook): Set SEC_SMALL_DATA on
354 small common section.
355 * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise.
356 * elf32-microblaze.c (microblaze_elf_add_symbol_hook): Likewise.
357 * elf32-nds32.c (nds32_elf_add_symbol_hook): Likewise.
358 * elf32-nios2.c (nios2_elf_add_symbol_hook): Likewise.
359 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
360 * elf32-score.c (s3_bfd_score_elf_add_symbol_hook): Likewise.
361 * elf32-score7.c (s7_bfd_score_elf_add_symbol_hook): Likewise.
362 * elf32-tic6x.c (elf32_tic6x_add_symbol_hook): Likewise.
363 * elf32-v850.c (v850_elf_check_relocs): Likewise.
364 (v850_elf_add_symbol_hook): Likewise.
365 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
366 * elf64-ia64-vms.c (elf64_ia64_add_symbol_hook): Likewise.
367 * elfnn-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
368 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Likewise.
369
370 2020-08-15 Alan Modra <amodra@gmail.com>
371
372 PR 26389
373 * syms.c (bfd_decode_symclass): Choose 'c' for commons only when
374 SEC_SMALL_DATA.
375 * elf32-m32r.c (_bfd_m32r_elf_symbol_processing): Set SEC_SMALL_DATA
376 on small common section.
377 * elf32-score.c (s3_bfd_score_elf_symbol_processing): Likewise.
378 * elf32-score7.c (s7_bfd_score_elf_symbol_processing): Likewise.
379 * elf32-tic6x.c (elf32_tic6x_symbol_processing): Likewise.
380 * elf32-v850.c (v850_elf_symbol_processing): Likewise.
381 * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Likewise.
382 * ecoff.c (ecoff_set_symbol_info, ecoff_link_add_externals): Likewise.
383
384 2020-08-14 Alan Modra <amodra@gmail.com>
385
386 * hash.c (bfd_hash_set_default_size): Use higher_prime_number
387 rather than another copy of primes. Increase maximum default
388 size allowed.
389
390 2020-08-13 Alan Modra <amodra@gmail.com>
391
392 * config.bfd: Obsolete arm*-*-symbianelf*, and ia64*-*-*.
393
394 2020-08-13 Alan Modra <amodra@gmail.com>
395
396 * elf64-ppc.h (struct ppc64_elf_params): Add no_pcrel_opt.
397 * elf64-ppc.c (ppc64_elf_relocate_section): Disable GOT reloc
398 optimizations when --no-toc-optimize. Disable R_PPC64_PCREL_OPT
399 optimization when --no-pcrel-optimize.
400
401 2020-08-13 Alan Modra <amodra@gmail.com>
402
403 PR 26348
404 * bfd.c (struct bfd): Add read_only.
405 * elfcode.h (elf_swap_shdr_in): Test both sh_offset and sh_size.
406 Set read_only on warning.
407 (elf_object_p): Sanity check program header alignment. Set
408 read_only on warning.
409 * bfd-in2.h: Regenerate.
410
411 2020-08-12 Jon Turney <jon.turney@dronecode.org.uk>
412
413 * elf.c (elfcore_grok_win32pstatus): Use unsigned int for
414 win32pstatus note type to avoid signedness comparison warning.
415
416 2020-07-21 Jon Turney <jon.turney@dronecode.org.uk>
417
418 * elf.c (elfcore_grok_win32pstatus): Warn on malformed
419 win32pstatus notes, and return TRUE so we continue rather than
420 stopping as if it was an error.
421
422 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
423
424 * elf.c (elfcore_grok_win32pstatus): Handle NOTE_INFO_MODULE64.
425
426 2020-07-11 Jon Turney <jon.turney@dronecode.org.uk>
427
428 * elf.c (elfcore_grok_win32pstatus): Don't apply size constraint
429 for NOTE_INFO_THREAD to all win32pstatus ELF notes, instead apply
430 appropriate size constraint for each win32pstatus note type.
431
432 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
433
434 * elf.c (elfcore_grok_win32pstatus): Don't hardcode the size of
435 the Win32 API thread CONTEXT type read from a NOTE_INFO_THREAD
436 win32pstatus note.
437
438 2020-07-11 Jon Turney <jon.turney@dronecode.org.uk>
439
440 * elf.c (NOTE_INFO{_PROCESS,_THREAD,_MODULE}): Define.
441 (elfcore_grok_win32pstatus): Use.
442
443 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
444
445 * elf.c (elfcore_grok_win32pstatus): Fix the offset used to read
446 the tid from a win32pstatus NOTE_INFO_THREAD ELF note. Fix
447 offsets used to read NOTE_INFO_PROCESS.
448
449 2020-08-12 Nick Clifton <nickc@redhat.com>
450
451 * po/ru.po: Updated Russian translation.
452 * po/sr.po: Updated Serbian translation.
453
454 2020-08-07 David Faust <david.faust@oracle.com>
455
456 * elf64-bpf.c (bpf_elf_relocate_section): Ensure signed division for
457 DISP16 and DISP32 relocations.
458
459 2020-08-05 David Faust <david.faust@oracle.com>
460
461 * elf64-bpf.c (bpf_elf_generic_reloc): New function.
462 (bpf_elf_howto_table): Use it here.
463 (bpf_elf_relocate_section): Use addends recorded in input_bfd for
464 instruction and data relocations.
465
466 2020-08-03 Alan Modra <amodra@gmail.com>
467
468 * vms-lib.c (vms_traverse_index): Sanity check size remaining
469 before accessing vms_idx or vms_elfidx.
470
471 2020-08-03 Alan Modra <amodra@gmail.com>
472
473 PR 26330
474 * elf.c (_bfd_elf_get_symtab_upper_bound): Sanity check symbol table
475 size against file size. Correct LONG_MAX limit check.
476 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
477 (_bfd_elf_get_reloc_upper_bound): Don't check file size if writing.
478 (_bfd_elf_get_dynamic_reloc_upper_bound): Likewise.
479 * elf64-x86-64-.c (elf_x86_64_get_synthetic_symtab): Use
480 bfd_malloc_and_get_section.
481
482 2020-07-31 Alan Modra <amodra@gmail.com>
483
484 PR 26314
485 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't allow
486 IR symbols to become dynamic.
487 (elf_link_add_object_symbols): Don't exclude IR symbols when
488 deciding whether an as-needed shared library is needed.
489
490 2020-07-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
491
492 PR ld/26312
493 * elfnn-aarch64.c (elfNN_aarch64_init_small_plt0_entry): Set sh_entsize
494 to 0.
495 (elfNN_aarch64_finish_dynamic_sections): Remove sh_entsize setting.
496
497 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
498
499 * bfd.m4 (BFD_SYS_PROCFS_H): New macro.
500 (BFD_HAVE_SYS_PROCFS_TYPE): Require BFD_SYS_PROCFS_H.
501 Don't define _STRUCTURED_PROC.
502 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
503 * elf.c [HAVE_SYS_PROCFS_H] (_STRUCTURED_PROC): Don't define.
504 * configure.ac: Use BFD_SYS_PROCFS_H to check for <sys/procfs.h>.
505 * configure, config.in: Regenerate.
506 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
507 * Makefile.in, doc/Makefile.in: Regenerate.
508
509 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
510
511 * elf-bfd.h (sym_cache): Moved before elf_link_hash_table.
512 (elf_link_hash_table): Add sym_cache.
513 * elf32-arm.c (elf32_arm_link_hash_table): Remove sym_cache.
514 (elf32_arm_check_relocs): Updated.
515 (elf32_arm_size_dynamic_sections): Likewise.
516 * elf32-bfin.c (bfin_link_hash_table): Removed.
517 (bfin_link_hash_newfunc): Updated.
518 (bfin_hash_table): Removed.
519 * elf32-csky.c (csky_elf_link_hash_table): Remove sym_cache.
520 (csky_elf_check_relocs): Updated.
521 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove sym_cache.
522 (elf32_hppa_check_relocs): Updated.
523 * elf32-i386.c (elf_i386_tls_transition): Updated.
524 (elf_i386_convert_load_reloc): Likewise.
525 (elf_i386_check_relocs): Likewise.
526 * elf32-m32r.c (elf_m32r_link_hash_table): Removed.
527 (m32r_elf_hash_table): Updated.
528 (m32r_elf_link_hash_table_create): Likewise.
529 (m32r_elf_create_dynamic_sections): Likewise.
530 (m32r_elf_adjust_dynamic_symbol): Likewise.
531 (allocate_dynrelocs): Likewise.
532 (m32r_elf_size_dynamic_sections): Likewise.
533 (m32r_elf_relocate_section): Likewise.
534 (m32r_elf_finish_dynamic_symbol): Likewise.
535 (m32r_elf_check_relocs): Likewise.
536 * elf32-m68hc1x.h (m68hc11_elf_link_hash_table): Remove
537 sym_cache.
538 * elf32-m68k.c (elf_m68k_link_hash_table): Likewise.
539 (elf_m68k_check_relocs): Updated.
540 * elf32-metag.c (elf_metag_link_hash_table): Remove sym_cache.
541 (elf_metag_check_relocs): Updated.
542 * elf32-microblaze.c (elf32_mb_link_hash_table): Remove sym_sec.
543 (microblaze_elf_check_relocs): Updated.
544 * elf32-nds32.c (nds32_elf_link_hash_table_create): Likewise.
545 (nds32_elf_create_dynamic_sections): Likewise.
546 (nds32_elf_adjust_dynamic_symbol): Likewise.
547 (nds32_elf_check_relocs): Likewise.
548 * elf32-nds32.h (elf_nds32_link_hash_table): Remove sdynbss,
549 srelbss and aym_cache.
550 * elf32-nios2.c (elf32_nios2_link_hash_table): Remove sym_cache.
551 (nios2_elf32_check_relocs): Updated.
552 * elf32-or1k.c (elf_or1k_link_hash_table): Remove sym_sec.
553 (or1k_elf_check_relocs): Updated.
554 * elf32-ppc.c (ppc_elf_check_relocs): Remove sym_cache.
555 (ppc_elf_check_relocs): Updated.
556 * elf32-s390.c (elf_s390_link_hash_table): Remove sym_cache.
557 (elf_s390_check_relocs): Updated.
558 (elf_s390_finish_dynamic_sections): Likewise.
559 * elf32-sh.c (elf_sh_link_hash_table): Remove sdynbss, srelbss
560 and aym_cache.
561 (sh_elf_create_dynamic_sections): Updated.
562 (sh_elf_adjust_dynamic_symbol): Likewise.
563 (sh_elf_size_dynamic_sections): Likewise.
564 (sh_elf_check_relocs): Likewise.
565 * elf32-tic6x.c (elf32_tic6x_link_hash_table): Remove sym_cache.
566 (elf32_tic6x_check_relocs): Updated.
567 * elf32-tilepro.c (tilepro_elf_link_hash_table): Removed.
568 (tilepro_elf_hash_table): Updated.
569 (tilepro_elf_link_hash_table_create): Likewise.
570 (tilepro_elf_check_relocs): Likewise.
571 (tilepro_elf_adjust_dynamic_symbol): Likewise.
572 (allocate_dynrelocs): Likewise.
573 (tilepro_elf_size_dynamic_sections): Likewise.
574 (tilepro_elf_relocate_section): Likewise.
575 (tilepro_elf_finish_dynamic_symbol): Likewise.
576 (tilepro_finish_dyn): Likewise.
577 (tilepro_elf_finish_dynamic_sections): Likewise.
578 * elf64-ppc.c (ppc_link_hash_table): Remove sym_cache.
579 (ppc64_elf_before_check_relocs): Updated.
580 (ppc64_elf_check_relocs): Likewise.
581 * elf64-s390.c (elf_s390_link_hash_table): Remove sym_cache.
582 (elf_s390_check_relocs): Updated.
583 (elf_s390_relocate_section): Likewise.
584 (elf_s390_finish_dynamic_sections): Likewise.
585 * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise.
586 (elf_x86_64_check_relocs): Likewise.
587 * elfnn-aarch64.c (elf_aarch64_link_hash_table): Remove
588 sym_cache.
589 (elfNN_aarch64_check_relocs): Updated.
590 * elfnn-riscv.c (riscv_elf_link_hash_table): Remove sym_cache.
591 (riscv_elf_check_relocs): Updated.
592 * elfxx-mips.c (mips_elf_link_hash_table): Remove sym_cache.
593 (mips_elf_resolve_got_page_ref): Updated.
594 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
595 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove
596 sym_cache.
597 * elfxx-tilegx.c (tilegx_elf_link_hash_table): Likewise.
598 (tilegx_elf_check_relocs): Updated.
599 * elfxx-x86.h (elf_x86_link_hash_table): Remove sym_cache.
600
601 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
602
603 * elflink.c (bfd_elf_final_link): Give local symbols a name if
604 so requested.
605 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): Only
606 return TRUE if making ET_REL output.
607
608 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
609
610 * elf-bfd.h (elf_backend_data): Add
611 `elf_backend_elfsym_local_is_section' member.
612 * elfxx-target.h (elf_backend_elfsym_local_is_section): New
613 macro.
614 (elfNN_bed): Add `elf_backend_elfsym_local_is_section' member.
615 * elflink.c (bfd_elf_final_link): Use it to determine whether
616 set the `.symtab' section's `sh_info' value to the index of the
617 first non-local or non-section symbol.
618 * elf32-mips.c (mips_elf32_elfsym_local_is_section): New
619 function.
620 (elf_backend_elfsym_local_is_section): New macro.
621 * elfn32-mips.c (mips_elf_n32_elfsym_local_is_section): New
622 function.
623 (elf_backend_elfsym_local_is_section): New macro.
624
625 2020-07-29 Alan Modra <amodra@gmail.com>
626
627 * elflink.c (bfd_elf_final_link): Don't segfault on local dynsyms
628 defined in excluded sections.
629
630 2020-07-28 Alan Modra <amodra@gmail.com>
631
632 * elf.c (assign_section_numbers): Comment. Don't segfault on
633 discarded sections when setting linked-to section for generic
634 ELF linker.
635 * elflink.c (bfd_elf_match_symbols_in_sections): Allow NULL info.
636
637 2020-07-27 Alan Modra <amodra@gmail.com>
638
639 * xcofflink.c (xcoff_need_ldrel_p): Accept --just-symbols symbols and
640 similar as absolute.
641 (bfd_xcoff_import_symbol): Don't fuss over absolute symbol
642 redefinitions here.
643
644 2020-07-24 Nick Clifton <nickc@redhat.com>
645
646 * config.bfd: Move xc16x target to the obsolete list.
647
648 2020-07-22 Kevin Buettner <kevinb@redhat.com>
649
650 * binary.c (binary_get_section_contents): Seek using offset
651 from section's file position.
652
653 2020-07-22 Kevin Buettner <kevinb@redhat.com>
654
655 * elf.c (_bfd_elf_make_section_from_phdr): Remove hack for GDB.
656
657 2020-07-22 Max Filippov <jcmvbkbc@gmail.com>
658
659 PR 26246
660 * elf32-xtensa.c (removed_literal_compare): Use correct pointer
661 type for the first function argument. Rename pointers to reflect
662 that they have distinct types.
663
664 2020-07-20 Alan Modra <amodra@gmail.com>
665
666 * elflink.c (_bfd_elf_gc_keep): Use bfd_is_const_section.
667
668 2020-07-19 Alan Modra <amodra@gmail.com>
669
670 * elf64-ppc.c (struct ppc_link_hash_table): Add has_power10_relocs.
671 (select_alt_stub): New function.
672 (ppc_get_stub_entry): Use it here.
673 (ppc64_elf_check_relocs): Set had_power10_relocs rather than
674 power10_stubs.
675 (ppc64_elf_size_stubs): Clear power10_stubs here instead. Don't
676 merge notoc stubs with other varieties when power10_stubs is "auto".
677 Instead dup the stub hash table entry.
678 (plt_stub_size, ppc_build_one_stub, ppc_size_one_stub): Adjust
679 tests of power10_stubs.
680
681 2020-07-15 Alan Modra <amodra@gmail.com>
682
683 PR 26239
684 * coffgen.c (_bfd_coff_close_and_cleanup): Free dwarf2 info.
685
686 2020-07-15 Nick Clifton <nickc@redhat.com>
687
688 PR26240
689 * coffgen.c (coff_get_normalized_symtab): Fix off-by-one error in
690 check for aux entries that overflow the buufer.
691
692 2020-07-15 Hans-Peter Nilsson <hp@bitrange.com>
693
694 * elf64-mmix.c (mmix_elf_relax_section): Improve accounting for
695 R_MMIX_PUSHJ_STUBBABLE relocs against undefined symbols.
696
697 2020-07-15 Markus Böck <markus.boeck02@gmail.com>
698 Alan Modra <amodra@gmail.com>
699
700 PR 26198
701 * coffgen.c (_bfd_coff_section_already_linked): Allow for plugin
702 objects both before and after normal object files.
703 * elflink.c (_bfd_elf_section_already_linked): Likewise.
704
705 2020-07-10 Alan Modra <amodra@gmail.com>
706
707 * elf64-ppc.h (struct ppc64_elf_params): Add power10_stubs.
708 * elf64-ppc.c (struct ppc_link_hash_table): Delete
709 power10_stubs.
710 (ppc64_elf_check_relocs): Adjust setting of power10_stubs.
711 (plt_stub_size, ppc_build_one_stub, ppc_size_one_stub): Adjust
712 uses of power10_stubs.
713
714 2020-07-09 Alan Modra <amodra@gmail.com>
715
716 * coff-ppc.c: Delete.
717 * pe-ppc.c: Delete.
718 * pei-ppc.c: Delete.
719 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Remove PE PPC.
720 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Remove
721 PPCMAGIC code.
722 (coff_write_object_contents): Remove PPC_PE code.
723 * config.bfd: Move powerpcle-pe to removed targets.
724 * configure.ac: Remove powerpc PE entries.
725 * libcoff-in.h (ppc_allocate_toc_section): Delete.
726 (ppc_process_before_allocation): Delete.
727 * peXXigen.c: Remove POWERPC_LE_PE code and comments.
728 * targets.c: Remove powerpc PE vectors.
729 * po/SRC-POTFILES.in: Regenerate.
730 * libcoff.h: Regenerate.
731 * Makefile.in: Regenerate.
732 * configure: Regenerate.
733
734 2020-07-09 Nick Clifton <nickc@redhat.com>
735
736 * po/fr.po: Updated French translation.
737
738 2020-07-07 Alan Modra <amodra@gmail.com>
739
740 * xcofflink.c (xcoff_mark): Don't mark const sections.
741 (bfd_xcoff_record_link_assignment): Add FIXME.
742 (_bfd_xcoff_bfd_final_link): Don't segfault on assorted magic
743 sections being discarded by linker script.
744
745 2020-07-07 Alan Modra <amodra@gmail.com>
746
747 * coff-rs6000.c (xcoff_write_archive_contents_old): Set default
748 time, uid, gid and mode for deterministic archive.
749 (xcoff_write_archive_contents_big): Likewise.
750
751 2020-07-07 Alan Modra <amodra@gmail.com>
752
753 * coffcode.h (coff_classify_symbol): Handle C_HIDEXT and
754 C_AIX_WEAKEXT.
755
756 2020-07-06 Nick Clifton <nickc@redhat.com>
757
758 * po/pt.po: Updated Portuguese translation.
759 * po/uk.po: Updated Ukranian translation.
760
761 2020-07-04 Nick Clifton <nickc@redhat.com>
762
763 * version.m4: Set version to 2.35.50.
764 * configure: Regenerate.
765 * po/bbfd.pot: Regenerate.
766
767 2020-07-04 Nick Clifton <nickc@redhat.com>
768
769 Binutils 2.35 branch created.
770
771 2020-07-01 Alan Modra <amodra@gmail.com>
772
773 PR 26188
774 * coffgen.c (coff_find_nearest_line_with_names): Sanity check
775 raw syment index before dereferencing.
776
777 2020-07-01 Alan Modra <amodra@gmail.com>
778
779 * elf32-i386.c (elf_backend_object_p): Undef for vxworks.
780
781 2020-07-01 Alan Modra <amodra@gmail.com>
782
783 * config.bfd: Obsolete xc16x.
784
785 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
786
787 * archures.c (bfd_mach_i386_nacl): Removed.
788 (bfd_mach_i386_i386_nacl): Likewise.
789 (bfd_mach_x86_64_nacl): Likewise.
790 (bfd_mach_x64_32_nacl): Likewise.
791 * config.bfd: Remove *-*-nacl* targets.
792 * configure.ac: Remove x86 NaCl target vectors.
793 * cpu-i386.c (bfd_arch_i386_onebyte_nop_fill): Removed.
794 (bfd_x64_32_nacl_arch): Likewise.
795 (bfd_x86_64_nacl_arch): Likewise.
796 (bfd_i386_nacl_arch): Likewise.
797 (bfd_x64_32_arch_intel_syntax): Updated.
798 * elf32-i386.c: Don't include "elf-nacl.h".
799 (elf_i386_nacl_plt): Removed.
800 (elf_i386_nacl_plt0_entry): Likewise.
801 (elf_i386_nacl_plt_entry): Likewise.
802 (elf_i386_nacl_pic_plt0_entry): Likewise.
803 (elf_i386_nacl_pic_plt_entry): Likewise.
804 (elf_i386_nacl_eh_frame_plt): Likewise.
805 (elf_i386_nacl_plt): Likewise.
806 (elf32_i386_nacl_elf_object_p): Likewise.
807 (elf_i386_get_synthetic_symtab): Updated.
808 (elf_i386_link_setup_gnu_properties): Likewise.
809 * elf64-x86-64.c: Don't include "elf-nacl.h".
810 (elf_x86_64_nacl_plt): Removed.
811 (elf64_x86_64_nacl_elf_object_p): Likewise.
812 (elf_x86_64_nacl_plt0_entry): Likewise.
813 (elf_x86_64_nacl_plt_entry): Likewise.
814 (elf_x86_64_nacl_eh_frame_plt): Likewise.
815 (elf_x86_64_nacl_plt): Likewise.
816 (elf32_x86_64_nacl_elf_object_p): Likewise.
817 (elf_x86_64_get_synthetic_symtab): Updated.
818 (elf_x86_64_link_setup_gnu_properties): Likewise.
819 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
820 * targets.c: Remove x86 NaCl target vectors.
821 * bfd-in2.h: Regenerated.
822 * configure: Likewise.
823
824 2020-06-29 H.J. Lu <hongjiu.lu@intel.com>
825
826 * elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Call
827 _bfd_elf_add_dynamic_tags.
828
829 2020-06-29 Alan Modra <amodra@gmail.com>
830
831 * peXXigen.c (_bfd_XXi_slurp_codeview_record): Properly check
832 return value of bfd_bread. Don't read more than requested length.
833 Sanity check length. Properly terminate file name.
834
835 2020-06-29 Alan Modra <amodra@gmail.com>
836
837 * arc-got.h: Use C style comments.
838 * coff-z80.c: Likewise.
839 * elf32-csky.c: Likewise.
840 * peXXigen.c: Likewise.
841 * elf32-m32c.c (m32c_elf_relax_delete_bytes): Remove commented out
842 code.
843
844 2020-06-26 Pat Bernardi <bernardi@adacore.com>
845
846 * elf32-m68k.c (m68k_elf_merge_obj_attributes): New function.
847 (elf32_m68k_merge_private_bfd_data): Merge GNU attributes.
848
849 2020-06-26 Alan Modra <amodra@gmail.com>
850
851 * elfxx-riscv.c (struct priv_spec_t, priv_specs),
852 (riscv_get_priv_spec_class, riscv_get_priv_spec_class_from_numbers),
853 (riscv_get_priv_spec_name): Move to..
854 * cpu-riscv.c: ..here.
855 (riscv_get_priv_spec_class_from_numbers): Don't xmalloc temp buffer.
856 Use %u to print unsigned numbers.
857
858 2020-06-24 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * cpu-riscv.c (riscv_scan): Don't allow shorter matches using the
861 default architecture.
862
863 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
864
865 PR ld/26083
866 * elf32-csky.c (csky_elf_size_dynamic_sections): Call
867 _bfd_elf_add_dynamic_tags.
868
869 2020-06-24 H.J. Lu <hongjiu.lu@intel.com>
870
871 PR ld/26083
872 * elf32-cris.c (elf_cris_size_dynamic_sections): Call
873 _bfd_elf_add_dynamic_tags.
874
875 2020-06-24 Alan Modra <amodra@gmail.com>
876
877 * vms-alpha.c (_bfd_vms_slurp_etir <ETIR__C_OPR_ASH>): Implement
878 shifts without undefined behaviour.
879
880 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
881
882 * elf-bfd.h (elf_link_hash_table): Add dt_pltgot_required and
883 dt_jmprel_required.
884 (_bfd_elf_add_dynamic_tags): New.
885 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Call
886 _bfd_elf_add_dynamic_tags.
887 * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise.
888 * elf32-bfin.c (elf32_bfinfdpic_size_dynamic_sections): Likewise.
889 * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
890 * elf32-frv.c (elf32_frvfdpic_size_dynamic_sections): Likewise.
891 * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
892 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
893 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
894 * elf32-microblaze.c (microblaze_elf_size_dynamic_sections):
895 Likewise.
896 * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
897 * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
898 * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
899 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
900 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
901 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
902 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
903 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
904 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections):
905 Likewise.
906 * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise.
907 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
908 * elf32-arm.c (elf32_arm_size_dynamic_sections): Call
909 _bfd_elf_maybe_vxworks_add_dynamic_tags.
910 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
911 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections):
912 Likewise.
913 * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Likewise.
914 (_bfd_x86_elf_size_dynamic_sections): Likewise.
915 * elfxx-x86.h (elf_x86_link_hash_table): Remove dt_reloc,
916 dt_reloc_sz and dt_reloc_ent.
917 * elf-vxworks.c (_bfd_elf_maybe_vxworks_add_dynamic_tags): New.
918 * elf-vxworks.h (_bfd_elf_maybe_vxworks_add_dynamic_tags):
919 Likewise.
920 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Set
921 etab.dt_pltgot_required.
922 (elf32_hppa_size_dynamic_sections): Call
923 _bfd_elf_add_dynamic_tags.
924 * elf32-metag.c (elf_metag_link_hash_table_create): Set
925 etab.dt_pltgot_required.
926 (elf_metag_size_dynamic_sections): Call _bfd_elf_add_dynamic_tags.
927 * elf32-sh.c (sh_elf_link_hash_table_create): Set
928 root.dt_pltgot_required for FDPIC output.
929 (sh_elf_size_dynamic_sections): Call
930 _bfd_elf_maybe_vxworks_add_dynamic_tags.
931 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Set
932 elf.dt_pltgot_required.
933 (elf_xtensa_size_dynamic_sections): Call
934 _bfd_elf_add_dynamic_tags.
935 * elf64-hppa.c (elf64_hppa_hash_table_create): Set
936 root.dt_pltgot_required.
937 (elf64_hppa_size_dynamic_sections): Call
938 _bfd_elf_add_dynamic_tags.
939 * elfnn-ia64.c (elfNN_ia64_hash_table_create): Set
940 root.dt_pltgot_required.
941 (elfNN_ia64_size_dynamic_sections): Set root.dt_jmprel_required
942 for rel_pltoff_sec. Call _bfd_elf_add_dynamic_tags.
943 * elflink.c (_bfd_elf_add_dynamic_tags): New.
944
945 2020-06-22 Saagar Jha <saagar@saagarjha.com>
946
947 * mach-o.c: Support the new load commands by reading a linkedit
948 data command for them.
949
950 2020-06-22 Nelson Chu <nelson.chu@sifive.com>
951
952 * elfxx-riscv.c (struct priv_spec_t priv_specs[]): Move them from
953 opcodes/riscv-opc.c to bfd/elfxx-riscv.c, since we need it in linker.
954 (riscv_get_priv_spec_class): Likewise.
955 (riscv_get_priv_spec_name): Likewise.
956 (riscv_get_priv_spec_class_from_numbers): New function, convert
957 the version numbers into string, then call riscv_get_priv_spec_class
958 to get the priv spec class.
959 * elfxx-riscv.h (riscv_get_priv_spec_class): Move forward declaration
960 from include/opcode/riscv.h to bfd/elfxx-riscv.h.
961 (riscv_get_priv_spec_name): Likewise.
962 (riscv_get_priv_spec_class_from_numbers): New forward declaration.
963 (opcode/riscv.h): Include it in the header rather than elfxx-riscv.c.
964 * elfnn-riscv.c (riscv_merge_attributes): Get the priv spec classes
965 of input and output objects form their priv spec attributes by
966 riscv_get_priv_spec_class_from_numbers. Report warning rather than
967 errors when linking objects with differnet priv spec versions. We do
968 know v1.9.1 may have conflicts to other versions, so report the
969 warning, too. After that, update the output priv spec version to the
970 newest one so far.
971
972 2020-06-22 Nelson Chu <nelson.chu@sifive.com>
973
974 * elfnn-riscv.c (riscv_merge_attributes): Once we meet one of the
975 priv attributes, we will check the conflicts for all of them (major,
976 minor and revision), and then set the priv_attrs_merged to TRUE to
977 indicate that we have handled all of the priv attributes. Remove
978 the unused boolean priv_may_conflict, in_priv_zero and out_priv_zero.
979
980 2020-06-21 Alan Modra <amodra@gmail.com>
981
982 PR 26132
983 * configure.ac: Disable plugins by default for some targets.
984 * plugin.c: Comment typo fix.
985 * configure: Regenerate.
986
987 2020-06-19 Nick Clifton <nickc@redhat.com>
988
989 * plugin.c (try_load_plugin): Suppress the error message about
990 being unable to open a plugin if creating a list of viable
991 plugins.
992
993 2020-06-16 Alan Modra <amodra@gmail.com>
994
995 * aout-tic30.c: Delete file.
996 * Makefile.am (BFD32_BACKENDS): Remove aout-tic30.lo.
997 (BFD32_BACKENDS_CFILES): Remove aout-tic30.c.
998 * config.bfd (c30-*-*aout*, tic30-*-*aout*): Remove entry.
999 (xc16x-*-elf): Sort properly.
1000 * configure.ac: Remove tic30_aout_vec.
1001 * targets.c: Likewise.
1002 * Makefile.in: Regenerate.
1003 * configure: Regenerate.
1004 * po/SRC-POTFILES.in: Regenerate.
1005
1006 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
1007
1008 * elf32-xtensa.c (XSHAL_ABI, XTHAL_ABI_UNDEFINED)
1009 (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New macros.
1010 (elf32xtensa_abi): New global variable.
1011 (xtensa_abi_choice): New function.
1012 (elf_xtensa_create_plt_entry): Use xtensa_abi_choice instead of
1013 XSHAL_ABI to select PLT code.
1014
1015 2020-06-15 Roland McGrath <mcgrathr@google.com>
1016
1017 * elflink.c (bfd_elf_define_start_stop): Use start_stop_visibility
1018 field of bfd_link_info.
1019
1020 2020-06-15 Alan Modra <amodra@gmail.com>
1021
1022 * config.bfd: Obsolete powerpcle-*-pe targets.
1023
1024 2020-06-15 Alan Modra <amodra@gmail.com>
1025
1026 PR 26103
1027 * elflink.c (elf_link_add_archive_symbols): Exclude undefined
1028 symbols that were defined in discarded sections.
1029 * cofflink.c (coff_link_check_archive_element): Likewise.
1030 (coff_link_add_symbols): Set indx to -3 for symbols defined in
1031 discarded sections.
1032 (_bfd_coff_write_global_sym): Don't emit such symbols.
1033 libcoff-in.h (struct coff_link_hash_entry): Update indx comment.
1034 libcoff.h: Regenerate.
1035
1036 2020-06-11 Alan Modra <amodra@gmail.com>
1037
1038 PR 26107
1039 * pdp11.c (is_stab): Replace legacy "index" function with "strchr".
1040
1041 2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
1042
1043 * elfnn-ia64.c (elfNN_ia64_link_hash_table): Remove reltext.
1044 (allocate_dynrel_entries): Set DF_TEXTREL instead of reltext.
1045 (elfNN_ia64_size_dynamic_sections): Check DF_TEXTREL instead
1046 of reltext.
1047
1048 2020-06-10 H.J. Lu <hongjiu.lu@intel.com>
1049
1050 PR ld/26094
1051 * elflink.c (bfd_elf_define_start_stop): Handle common symbols.
1052 Clear verinfo.verdef.
1053
1054 2020-06-09 H.J. Lu <hongjiu.lu@intel.com>
1055
1056 PR ld/18801
1057 * elf-bfd.h (elf_link_hash_table): Add ifunc_resolvers.
1058 (_bfd_elf_allocate_ifunc_dyn_relocs): Remove the
1059 bfd_boolean * argument. Set ifunc_resolvers if there are IFUNC
1060 resolvers.
1061 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Updated.
1062 Set ifunc_resolvers if there are FUNC resolvers.
1063 * elf64-ppc.c (ppc_link_hash_table): Remove local_ifunc_resolver.
1064 (build_global_entry_stubs_and_plt): Replace local_ifunc_resolver
1065 with elf.ifunc_resolvers.
1066 (write_plt_relocs_for_local_syms): Likewise.
1067 (ppc64_elf_relocate_section): Likewise.
1068 (ppc64_elf_finish_dynamic_sections): Likewise.
1069 * elfnn-aarch64.c (elfNN_aarch64_allocate_ifunc_dynrelocs):
1070 Updated.
1071 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Likewise.
1072 (_bfd_x86_elf_size_dynamic_sections): Check elf.ifunc_resolvers
1073 instead of readonly_dynrelocs_against_ifunc.
1074 * elfxx-x86.h (elf_x86_link_hash_table): Remove
1075 readonly_dynrelocs_against_ifunc.
1076
1077 2020-06-09 Alan Modra <amodra@gmail.com>
1078
1079 * elf64-ppc.c (struct ppc_link_hash_table): Delete
1080 maybe_local_ifunc_resolver field.
1081 (build_global_entry_stubs_and_plt): Set local_ifunc_resolver in
1082 cases where maybe_local_ifunc_resolver was set.
1083 (ppc64_elf_relocate_section): Likewise.
1084 (ppc64_elf_finish_dynamic_sections): Downgrade ifunc with textrel
1085 error to a warning.
1086
1087 2020-06-08 H.J. Lu <hongjiu.lu@intel.com>
1088
1089 * elf-bfd.h (elf_link_hash_entry): Add tlsdesc_plt and
1090 tlsdesc_got.
1091 * elf32-arm.c (elf32_arm_link_hash_table): Remove tlsdesc_plt
1092 and dt_tlsdesc_got.
1093 (elf32_arm_size_dynamic_sections): Updated. Clear
1094 root.tlsdesc_plt for DF_BIND_NOW.
1095 (elf32_arm_finish_dynamic_sections): Updated.
1096 (elf32_arm_output_arch_local_syms): Likewise.
1097 * elf32-nds32.c (nds32_elf_size_dynamic_sections): Updated.
1098 Clear root.tlsdesc_plt for DF_BIND_NOW.
1099 (nds32_elf_finish_dynamic_sections): Updated.
1100 * elf32-nds32.h (elf_nds32_link_hash_table): Remove
1101 dt_tlsdesc_plt and dt_tlsdesc_got.
1102 * elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Updated.
1103 * elfnn-aarch64.c (elf_aarch64_link_hash_table): Remove
1104 tlsdesc_plt and dt_tlsdesc_got.
1105 (elfNN_aarch64_allocate_dynrelocs): Updated.
1106 (elfNN_aarch64_finish_dynamic_sections): Likewise.
1107 (elfNN_aarch64_size_dynamic_sections): Updated. Clear
1108 root.tlsdesc_plt for DF_BIND_NOW. Don't check DF_BIND_NOW
1109 twice.
1110 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Updated.
1111 (_bfd_x86_elf_size_dynamic_sections): Likewise.
1112 (_bfd_x86_elf_finish_dynamic_sections): Likewise.
1113 * elfxx-x86.h (elf_x86_link_hash_table): Remove tlsdesc_plt and
1114 tlsdesc_got.
1115
1116 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
1117
1118 * elf32-tic6x.c (elf32_bed): Defined the default to
1119 elf32_tic6x_bed.
1120
1121 2020-06-07 H.J. Lu <hongjiu.lu@intel.com>
1122
1123 * elf64-hppa.c (elf64_hppa_link_hash_table): Remove plt_sec and
1124 plt_rel_sec.
1125 (elf64_hppa_check_relocs): Replace plt_sec/plt_rel_sec with
1126 root.splt/root.srelplt.
1127 (elf64_hppa_create_dynamic_sections): Likewise.
1128 (elf64_hppa_size_dynamic_sections): Likewise.
1129 (elf64_hppa_finish_dynamic_symbol): Likewise.
1130 (elf_hppa_final_link): Likewise.
1131 (elf_hppa_final_link_relocate): Likewise.
1132
1133 2020-06-06 H.J. Lu <hongjiu.lu@intel.com>
1134
1135 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Updated.
1136 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove
1137 is_vxworks.
1138
1139 2020-06-06 H.J. Lu <hongjiu.lu@intel.com>
1140
1141 * elf-bfd.h (elf_target_os): New.
1142 (elf_link_hash_table): Add target_os.
1143 (elf_backend_data): Add target_os.
1144 * elf32-arm.c (elf32_arm_link_hash_table): Remove vxworks_p,
1145 symbian_p and nacl_p.
1146 (create_got_section): Updated.
1147 (elf32_arm_create_dynamic_sections): Likewise.
1148 (arm_type_of_stub): Likewise.
1149 (elf32_arm_create_or_find_stub_sec): Likewise.
1150 (elf32_arm_allocate_plt_entry): Likewise.
1151 (elf32_arm_populate_plt_entry): Likewise.
1152 (elf32_arm_final_link_relocate): Likewise.
1153 (elf32_arm_check_relocs): Likewise.
1154 (allocate_dynrelocs_for_symbol): Likewise.
1155 (elf32_arm_finish_dynamic_symbol): Likewise.
1156 (elf32_arm_finish_dynamic_sections): Likewise.
1157 (elf32_arm_output_plt_map_1): Likewise.
1158 (elf32_arm_output_arch_local_syms): Likewise.
1159 (elf32_arm_add_symbol_hook): Likewise.
1160 (elf32_arm_nacl_link_hash_table_create): Likewise.
1161 (elf32_arm_vxworks_link_hash_table_create): Likewise.
1162 (elf32_arm_symbian_link_hash_table_create): Likewise.
1163 (ELF_TARGET_OS): New.
1164 * elf32-i386.c (elf_i386_arch_bed): Removed.
1165 (elf_backend_arch_data): Likewise.
1166 (elf_i386_solaris_arch_bed): Likewise.
1167 (elf_i386_nacl_arch_bed): Likewise.
1168 (elf_i386_vxworks_arch_bed): Likewise.
1169 (elf_i386_relocate_section): Updated.
1170 (elf_i386_finish_dynamic_sections): Likewise.
1171 (elf_i386_get_synthetic_symtab): Likewise.
1172 (elf_i386_link_setup_gnu_properties): Likewise.
1173 (ELF_TARGET_OS): New.
1174 * elf32-mips.c (ELF_TARGET_OS): New.
1175 * elf32-ppc.c (ppc_elf_link_hash_table): Remove is_vxworks.
1176 (ppc_elf_create_got): Updated.
1177 (ppc_elf_create_dynamic_sections): Likewise.
1178 (ppc_elf_check_relocs): Likewise.
1179 (ppc_elf_adjust_dynamic_symbol): Likewise.
1180 (ppc_elf_size_dynamic_sections): Likewise.
1181 (ppc_elf_relocate_section): Likewise.
1182 (ppc_elf_finish_dynamic_sections): Likewise.
1183 (ppc_elf_vxworks_link_hash_table_create): Likewise.
1184 (ELF_TARGET_OS): New.
1185 * elf32-sh.c (elf_sh_link_hash_table): Remove vxworks_p.
1186 (sh_elf_link_hash_table_create): Updated.
1187 (sh_elf_create_dynamic_sections): Likewise.
1188 (allocate_dynrelocs): Likewise.
1189 (sh_elf_size_dynamic_sections): Likewise.
1190 (sh_elf_relocate_section): Likewise.
1191 (sh_elf_finish_dynamic_symbol): Likewise.
1192 (sh_elf_finish_dynamic_sections): Likewise.
1193 (ELF_TARGET_OS): New.
1194 * elf32-sparc.c (elf32_sparc_vxworks_link_hash_table_create):
1195 Removed.
1196 (bfd_elf32_bfd_link_hash_table_create): Likewise.
1197 (ELF_TARGET_OS): New.
1198 * elf64-x86-64.c (elf_x86_64_arch_bed): Removed.
1199 (elf_x86_64_solaris_arch_bed): Likewise.
1200 (elf_x86_64_nacl_arch_bed): Likewise.
1201 (elf_x86_64_finish_dynamic_sections): Updated.
1202 (elf_x86_64_get_synthetic_symtab): Likewise.
1203 (elf_x86_64_link_setup_gnu_properties): Likewise.
1204 (ELF_TARGET_OS): New.
1205 * elflink.c (_bfd_elf_link_hash_table_init): Initialize
1206 target_o.
1207 * elfxx-mips.c (mips_elf_link_hash_table): Remove is_vxworks.
1208 (MIPS_ELF_REL_DYN_NAME): Updated.
1209 (ELF_MIPS_GP_OFFSET): Likewise.
1210 (mips_elf_create_local_got_entry): Likewise.
1211 (mips_elf_allocate_dynamic_relocations): Likewise.
1212 (mips_elf_count_got_symbols): Likewise.
1213 (is_gott_symbol): Likewise.
1214 (mips_elf_calculate_relocation): Likewise.
1215 (mips_elf_create_dynamic_relocation): Likewise.
1216 (_bfd_mips_elf_check_relocs): Likewise.
1217 (allocate_dynrelocs): Likewise.
1218 (_bfd_mips_elf_adjust_dynamic_symbol): Likewise.
1219 (mips_elf_lay_out_got): Likewise.
1220 (mips_elf_set_plt_sym_value): Likewise.
1221 (_bfd_mips_elf_size_dynamic_sections): Likewise.
1222 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
1223 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
1224 (_bfd_mips_elf_final_link): Likewise.
1225 (_bfd_mips_init_file_header): Likewise.
1226 * elfxx-sparc.c (_bfd_sparc_elf_create_dynamic_sections):
1227 Likewise.
1228 (allocate_dynrelocs): Likewise.
1229 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1230 (_bfd_sparc_elf_relocate_section): Likewise.
1231 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
1232 (sparc_finish_dyn): Likewise.
1233 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
1234 * elfxx-target.h (ELF_TARGET_OS): New.
1235 (elfNN_bed): Add ELF_TARGET_OS.
1236 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Updated.
1237 (_bfd_x86_elf_link_hash_table_create): Likewise.
1238 (_bfd_x86_elf_size_dynamic_sections): Likewise.
1239 (_bfd_x86_elf_finish_dynamic_sections): Likewise.
1240 (_bfd_x86_elf_adjust_dynamic_symbol): Likewise.
1241 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
1242 * elfxx-x86.h (elf_x86_target_os): Removed.
1243 (elf_x86_backend_data): Likewise.
1244 (get_elf_x86_backend_data): Likewise.
1245 (elf_x86_link_hash_table): Remove target_os.
1246
1247 2020-06-06 Alan Modra <amodra@gmail.com>
1248
1249 * reloc.c: Rename
1250 BFD_RELOC_PPC64_GOT_TLSGD34 to BFD_RELOC_PPC64_GOT_TLSGD_PCREL34,
1251 BFD_RELOC_PPC64_GOT_TLSLD34 to BFD_RELOC_PPC64_GOT_TLSLD_PCREL34,
1252 BFD_RELOC_PPC64_GOT_TPREL34 to BFD_RELOC_PPC64_GOT_TPREL_PCREL34,
1253 BFD_RELOC_PPC64_GOT_DTPREL34 to BFD_RELOC_PPC64_GOT_DTPREL_PCREL34.
1254 * elf64-ppc.c: Update throughout for reloc renaming.
1255 (ppc64_elf_reloc_name_lookup): Handle old reloc names.
1256 * libbfd.h: Regenerate.
1257 * bfd-in2.h: Regenerate.
1258
1259 2020-06-05 H.J. Lu <hongjiu.lu@intel.com>
1260
1261 PR ld/26080
1262 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
1263 section.
1264
1265 2020-06-05 Nick Clifton <nickc@redhat.com>
1266
1267 * pdp11.c (aout_link_add_symbols): Fix use before initialisation
1268 bug.
1269
1270 2020-06-05 Nelson Chu <nelson.chu@sifive.com>
1271
1272 * elfnn-riscv.c (riscv_merge_attributes): Add new boolean
1273 priv_may_conflict, in_priv_zero and out_priv_zero to decide
1274 whether the object can be linked according to it's priv
1275 attributes. The object without any priv spec attributes can
1276 be linked with others. If the first input object doesn't contain
1277 any priv attributes, then we need to copy the setting from the
1278 next input one. Also report more detailed error messages to user.
1279
1280 2020-06-04 Stephen Casner <casner@acm.org>
1281
1282 Extend pdp11-aout symbol table format to accommodate .stab
1283 symbols and implement correct handling of them.
1284
1285 * pdp11.c (pdp11_external_nlist): Repurposed e_unused to e_desc.
1286 (N_STAB, is_stab): Needed new function is_stab to disambiguate
1287 normal vs. .stab symbol table type values, replacing N_STAB mask.
1288 (translate_from_native_sym_flags): Determine correct section for
1289 different .stab types.
1290 (translate_to_native_sym_flags): Leave .stab types intact.
1291 (translate_symbol_table): Error if symbol indicates overlay;
1292 store desc field from .stab symbols.
1293 (write_syms): Output desc field with symbol.
1294 (aout_link_check_ar_symbols): Skip .stab symbols.
1295 (aout_link_add_symbols): Correctly distinguish .stab symbols.
1296 (aout_link_write_other_symbol): Write 0 for desk and ovly fields.
1297 (aout_link_write_symbols): Write 0 for desk and ovly fields;
1298 correctly distinguish .stab symbols and select calculate their
1299 section and value; and copy desc and ovly fields from input symbol
1300 to output symbol.
1301
1302 2020-06-04 Stephen Casner <casner@acm.org>
1303
1304 * aoutx.h (translate_symbol_table): Comment had external and
1305 internal swapped.
1306 * pdp11.c (translate_symbol_table): Likewise.
1307
1308 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
1309
1310 * elfxx-x86.h (elf_x86_link_hash_table): Remove target_id.
1311 (is_x86_elf): Check elf.hash_table_id instead of target_id.
1312 * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Updated.
1313
1314 2020-06-04 H.J. Lu <hongjiu.lu@intel.com>
1315
1316 PR ld/26080
1317 * elf-m10300.c (mn10300_elf_relocate_section): Resolve relocation
1318 in debug section against symbol defined in shared library to 0.
1319 * elf32-i386.c (elf_i386_check_relocs): Remove SEC_ALLOC check.
1320 * elf32-lm32.c (lm32_elf_check_relocs): Likewise.
1321 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1322 * elf32-nds32.c (nds32_elf_check_relocs): Likewise.
1323 * elf32-nios2.c (nios2_elf32_check_relocs): Likewise.
1324 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1325 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1326 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1327 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
1328 * elf64-alpha.c (elf64_alpha_check_relocs): Likewise.
1329 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1330 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1331 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1332 * elf32-vax.c (elf_vax_check_relocs): Set non_got_ref for non-GOT
1333 reference.
1334 (elf_vax_adjust_dynamic_symbol): Generate a copy reloc only if
1335 there is non-GOT reference.
1336 * elflink.c (_bfd_elf_link_check_relocs): Skip non-loaded,
1337 non-alloced sections.
1338
1339 2020-06-03 Stephen Casner <casner@acm.org>
1340
1341 Copy several years of fixes from bfd/aoutx.h to bfd/pdp11.c.
1342
1343 * pdp11.c (some_aout_object_p): 4c1534c7a2a - Don't set EXEC_P for
1344 files with relocs.
1345 (aout_get_external_symbols): 6b8f0fd579d - Return if count is zero.
1346 0301ce1486b PR 22306 - Handle stringsize of zero, and error for any
1347 other size that doesn't qcover the header word.
1348 bf82069dce1 PR 23056 - Allocate an extra byte at the end of the
1349 string table, and zero it.
1350 (translate_symbol_table): 0d329c0a83a PR 22887 - Print an error
1351 message and set bfd_error on finding an invalid name string offset.
1352 (add_to_stringtab): INLINE -> inline
1353 (pdp11_aout_swap_reloc_in): 116acb2c268 PR 22887 - Correct r_index
1354 bound check.
1355 (squirt_out_relocs): e2996cc315d PR 20921 - Check for and report
1356 any relocs that could not be recognised.
1357 92744f05809 PR 20929 - Check for relocs without an associated symbol.
1358 (find_nearest_line): 808346fcfcf PR 23055 - Check that the symbol
1359 name exists and is long enough, before attempting to see if it is
1360 for a .o file.
1361 c3864421222 - Correct case for N_SO being the last symbol.
1362 50455f1ab29 PR 20891 - Handle the case where the main file name
1363 and the directory name are both empty.
1364 e82ab856bb4 PR 20892 - Handle the case where function name is empty.
1365 (aout_link_add_symbols): e517df3dbf7 PR 19629 - Check for out of
1366 range string table offsets.
1367 531336e3a0b PR 20909 - Fix off-by-one error in check for an
1368 illegal string offset.
1369 (aout_link_includes_newfunc): Add comment.
1370 (pdp11_aout_link_input_section): ad756e3f9e6 - Return with an error
1371 on unexpected relocation type rather than ASSERT.
1372
1373 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
1374
1375 PR ld/26066
1376 * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Call
1377 _bfd_elf_maybe_set_textrel to set DF_TEXTREL.
1378
1379 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
1380
1381 PR ld/26066
1382 * elf32-nios2.c (nios2_elf32_check_relocs): Skip non-loaded,
1383 non-alloced sections.
1384
1385 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
1386
1387 * elf32-frv.c (elf32_frv_relocate_section): Don't generate
1388 dynamic relocations for non SEC_ALLOC sections.
1389
1390 2020-06-03 Gunther Nikl <gnikl@justmail.de>
1391
1392 * aout64.c (BMAGIC, QMAGIC): Do not define.
1393 * aoutx.h (N_IS_BMAGIC, N_SET_QMAGIC): New defines.
1394 (NAME (aout, some_aout_object_p)): Use N_IS_QMAGIC and N_IS_BMAGIC
1395 to check the file format.
1396 (adjust_z_magic): Use N_SET_QMAGIC to set file format.
1397 * i386aout.c (NO_WRITE_HEADER_KLUDGE): Delete define.
1398 * libaout.h (NO_WRITE_HEADER_KLUDGE): Do not define.
1399
1400 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
1401
1402 * elf32-arc.c (elf_arc_relocate_section): Don't generate dynamic
1403 relocations for non SEC_ALLOC sections.
1404
1405 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
1406
1407 * elf-bfd.h (_bfd_elf_maybe_set_textrel): New
1408 * elf32-arm.c (maybe_set_textrel): Removed.
1409 (elf32_arm_size_dynamic_sections): Replace maybe_set_textrel
1410 with _bfd_elf_maybe_set_textrel.
1411 * elf32-csky.c (maybe_set_textrel): Removed.
1412 (csky_elf_size_dynamic_sections): Replace maybe_set_textrel
1413 with _bfd_elf_maybe_set_textrel.
1414 * elf32-hppa.c (maybe_set_textrel): Removed.
1415 (elf32_hppa_size_dynamic_sections): Replace maybe_set_textrel
1416 with _bfd_elf_maybe_set_textrel.
1417 * elf32-lm32.c (maybe_set_textrel): Removed.
1418 (lm32_elf_size_dynamic_sections): Replace maybe_set_textrel
1419 with _bfd_elf_maybe_set_textrel.
1420 * elf32-m32r.c (maybe_set_textrel): Removed.
1421 (m32r_elf_size_dynamic_sections): Replace maybe_set_textrel
1422 with _bfd_elf_maybe_set_textrel.
1423 * elf32-metag.c (maybe_set_textrel): Removed.
1424 (elf_metag_size_dynamic_sections): Replace maybe_set_textrel
1425 with _bfd_elf_maybe_set_textrel.
1426 * elf32-nds32.c (maybe_set_textrel): Removed.
1427 (nds32_elf_size_dynamic_sections): Replace maybe_set_textrel
1428 with _bfd_elf_maybe_set_textrel.
1429 * elf32-or1k.c (maybe_set_textrel): Removed.
1430 (or1k_elf_size_dynamic_sections): Replace maybe_set_textrel
1431 with _bfd_elf_maybe_set_textrel.
1432 * elf32-ppc.c (maybe_set_textrel): Removed.
1433 (ppc_elf_size_dynamic_sections): Replace maybe_set_textrel
1434 with _bfd_elf_maybe_set_textrel.
1435 * elf32-s390.c (maybe_set_textrel): Removed.
1436 (elf_s390_size_dynamic_sections): Replace maybe_set_textrel
1437 with _bfd_elf_maybe_set_textrel.
1438 * elf32-sh.c (maybe_set_textrel): Removed.
1439 (sh_elf_size_dynamic_sections): Replace maybe_set_textrel
1440 with _bfd_elf_maybe_set_textrel.
1441 * elf32-tic6x.c (maybe_set_textrel): Removed.
1442 (elf32_tic6x_size_dynamic_sections): Replace maybe_set_textrel
1443 with _bfd_elf_maybe_set_textrel.
1444 * elf32-tilepro.c (maybe_set_textrel): Removed.
1445 (tilepro_elf_size_dynamic_sections): Replace maybe_set_textrel
1446 with _bfd_elf_maybe_set_textrel.
1447 * elf64-ppc.c (maybe_set_textrel): Removed.
1448 (ppc64_elf_size_dynamic_sections): Replace maybe_set_textrel
1449 with _bfd_elf_maybe_set_textrel.
1450 * elf64-s390.c (maybe_set_textrel): Removed.
1451 (elf_s390_size_dynamic_sections): Replace maybe_set_textrel
1452 with _bfd_elf_maybe_set_textrel.
1453 * elfnn-aarch64.c (maybe_set_textrel): Removed.
1454 (elfNN_aarch64_size_dynamic_sections): Replace maybe_set_textrel
1455 with _bfd_elf_maybe_set_textrel.
1456 * elfnn-riscv.c (maybe_set_textrel): Removed.
1457 (riscv_elf_size_dynamic_sections): Replace maybe_set_textrel
1458 with _bfd_elf_maybe_set_textrel.
1459 * elfxx-sparc.c (maybe_set_textrel): Removed.
1460 (_bfd_sparc_elf_size_dynamic_sections): Replace maybe_set_textrel
1461 with _bfd_elf_maybe_set_textrel.
1462 * elfxx-tilegx.c (maybe_set_textrel): Removed.
1463 (tilegx_elf_size_dynamic_sections): Replace maybe_set_textrel
1464 with _bfd_elf_maybe_set_textrel.
1465 * elfxx-x86.c (maybe_set_textrel): Removed.
1466 (_bfd_x86_elf_size_dynamic_sections): Replace maybe_set_textrel
1467 with _bfd_elf_maybe_set_textrel.
1468 * elflink.c (_bfd_elf_maybe_set_textrel): New.
1469
1470 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
1471
1472 PR ld/26067
1473 * elf32-arm.c (elf32_arm_copy_indirect_symbol): Don't copy
1474 dyn_relocs.
1475 * elf32-csky.c (csky_elf_copy_indirect_symbol): Likewise.
1476 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
1477 * elf32-metag.c (elf_metag_copy_indirect_symbol): Likewise.
1478 * elf32-microblaze.c (microblaze_elf_copy_indirect_symbol):
1479 Likewise.
1480 * elf32-nds32.c (nds32_elf_copy_indirect_symbol): Likewise.
1481 * elf32-nios2.c (nios2_elf32_copy_indirect_symbol): Likewise.
1482 * elf32-or1k.c (or1k_elf_copy_indirect_symbol): Likewise.
1483 * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
1484 * elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise.
1485 * elf32-tilepro.c (tilepro_elf_copy_indirect_symbol): Likewise.
1486 * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
1487 * elfnn-aarch64.c (elfNN_aarch64_copy_indirect_symbol): Likewise.
1488 * elfnn-riscv.c (riscv_elf_copy_indirect_symbol): Likewise.
1489 * elfxx-sparc.c (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
1490 * elfxx-tilegx.c (tilegx_elf_copy_indirect_symbol): Likewise.
1491 * elfxx-x86.c (_bfd_x86_elf_copy_indirect_symbol): Likewise.
1492 * elf32-lm32.c (lm32_elf_copy_indirect_symbol): Removed.
1493 (elf_backend_copy_indirect_symbol): Likewise.
1494 * elf32-m32r.c (m32r_elf_copy_indirect_symbol): Removed.
1495 (elf_backend_copy_indirect_symbol): Likewise.
1496 * elflink.c (_bfd_elf_link_hash_copy_indirect): Copy dyn_relocs.
1497
1498 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
1499
1500 PR ld/26067
1501 * elf-bfd.h (_bfd_elf_readonly_dynrelocs): New.
1502 * elf32-arm.c (readonly_dynrelocs): Removed.
1503 (maybe_set_textrel): Replace readonly_dynrelocs with
1504 _bfd_elf_readonly_dynrelocs.
1505 * elf32-csky.c (readonly_dynrelocs): Removed.
1506 (maybe_set_textrel): Replace readonly_dynrelocs with
1507 _bfd_elf_readonly_dynrelocs.
1508 * elf32-hppa.c(readonly_dynrelocs): Removed.
1509 (alias_readonly_dynrelocs): Replace readonly_dynrelocs with
1510 _bfd_elf_readonly_dynrelocs.
1511 (maybe_set_textrel): Likewise.
1512 * elf32-lm32.c (readonly_dynrelocs): Removed.
1513 (lm32_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs
1514 with _bfd_elf_readonly_dynrelocs.
1515 (maybe_set_textrel): Likewise.
1516 * elf32-m32r.c (readonly_dynrelocs): Removed.
1517 (m32r_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs
1518 with _bfd_elf_readonly_dynrelocs.
1519 (maybe_set_textrel): Likewise.
1520 * elf32-metag.c (readonly_dynrelocs): Removed.
1521 (elf_metag_adjust_dynamic_symbol): Replace readonly_dynrelocs
1522 with _bfd_elf_readonly_dynrelocs.
1523 (maybe_set_textrel): Likewise.
1524 * elf32-microblaze.c (readonly_dynrelocs): Removed.
1525 (microblaze_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs
1526 with _bfd_elf_readonly_dynrelocs.
1527 * elf32-nds32.c (readonly_dynrelocs): Removed.
1528 (nds32_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs
1529 with _bfd_elf_readonly_dynrelocs.
1530 (maybe_set_textrel): Likewise.
1531 * elf32-or1k.c (readonly_dynrelocs): Removed.
1532 (or1k_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs
1533 with _bfd_elf_readonly_dynrelocs.
1534 * elf32-ppc.c (readonly_dynrelocs): Removed.
1535 (alias_readonly_dynrelocs): Replace readonly_dynrelocs with
1536 _bfd_elf_readonly_dynrelocs.
1537 (ppc_elf_adjust_dynamic_symbol): Likewise.
1538 (maybe_set_textrel): Likewise.
1539 * elf32-s390.c (readonly_dynrelocs): Removed.
1540 (elf_s390_adjust_dynamic_symbol): Replace readonly_dynrelocs
1541 with _bfd_elf_readonly_dynrelocs.
1542 (maybe_set_textrel): Likewise.
1543 * elf32-sh.c (readonly_dynrelocs): Removed.
1544 (sh_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs with
1545 _bfd_elf_readonly_dynrelocs.
1546 (maybe_set_textrel): Likewise.
1547 * elf32-tic6x.c (readonly_dynrelocs): Removed.
1548 (maybe_set_textrel): Replace readonly_dynrelocs with
1549 _bfd_elf_readonly_dynrelocs.
1550 * elf32-tilepro.c (readonly_dynrelocs): Removed.
1551 (tilepro_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs
1552 with _bfd_elf_readonly_dynrelocs.
1553 (maybe_set_textrel): Likewise.
1554 * elf64-ppc.c (readonly_dynrelocs): Removed.
1555 (alias_readonly_dynrelocs): Replace readonly_dynrelocs with
1556 _bfd_elf_readonly_dynrelocs.
1557 (ppc64_elf_adjust_dynamic_symbol): Likewise.
1558 (maybe_set_textrel): Likewise.
1559 * elf64-s390.c (readonly_dynrelocs): Removed.
1560 (elf_s390_adjust_dynamic_symbol): Replace readonly_dynrelocs
1561 with _bfd_elf_readonly_dynrelocs.
1562 (maybe_set_textrel): Likewise.
1563 * elflink.c (_bfd_elf_readonly_dynrelocs): New.
1564 * elfnn-aarch64.c (readonly_dynrelocs): Removed.
1565 (maybe_set_textrel): Replace readonly_dynrelocs with
1566 _bfd_elf_readonly_dynrelocs.
1567 * elfnn-riscv.c (readonly_dynrelocs): Removed.
1568 (riscv_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs
1569 with _bfd_elf_readonly_dynrelocs.
1570 (maybe_set_textrel): Likewise.
1571 * elfxx-sparc.c (readonly_dynrelocs): Removed.
1572 (_bfd_sparc_elf_adjust_dynamic_symbol): Replace
1573 readonly_dynrelocs with _bfd_elf_readonly_dynrelocs.
1574 (maybe_set_textrel): Likewise.
1575 * elfxx-tilegx.c (readonly_dynrelocs): Removed.
1576 (tilegx_elf_adjust_dynamic_symbol): Replace readonly_dynrelocs
1577 with _bfd_elf_readonly_dynrelocs.
1578 (maybe_set_textrel): Likewise.
1579 * elfxx-x86.c (readonly_dynrelocs): Removed.
1580 (maybe_set_textrel): Replace readonly_dynrelocs with
1581 _bfd_elf_readonly_dynrelocs.
1582 (_bfd_x86_elf_adjust_dynamic_symbol): Likewise.
1583
1584 2020-06-03 H.J. Lu <hongjiu.lu@intel.com>
1585
1586 * elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): Silence
1587 -fsanitize=undefined.
1588
1589 2020-06-03 Alan Modra <amodra@gmail.com>
1590
1591 PR 26069
1592 PR 18758
1593 * peicode.h (pe_ILF_make_a_section): Align data for compilers
1594 other than gcc.
1595 (pe_ILF_build_a_bfd): Likewise.
1596
1597 2020-06-03 Alan Modra <amodra@gmail.com>
1598
1599 PR 26069
1600 * elf.c (_bfd_elf_close_and_cleanup): Free elf_shstrtab for
1601 core files as well as objects.
1602
1603 2020-06-01 H.J. Lu <hongjiu.lu@intel.com>
1604
1605 PR ld/26067
1606 * elf-bfd.h (elf_link_hash_entry): Add dyn_relocs after size.
1607 * elf-s390-common.c (s390_elf_allocate_ifunc_dyn_relocs):
1608 Updated.
1609 * elf32-arc.c (elf_arc_link_hash_entry): Remove dyn_relocs.
1610 (elf_arc_link_hash_newfunc): Updated.
1611 * elf32-arm.c (elf32_arm_link_hash_entry): Remove dyn_relocs.
1612 (elf32_arm_link_hash_newfunc): Updated.
1613 (elf32_arm_copy_indirect_symbol): Likewise.
1614 (elf32_arm_check_relocs): Likewise.
1615 (readonly_dynrelocs): Likewise.
1616 (allocate_dynrelocs_for_symbol): Likewise.
1617 * elf32-csky.c (csky_elf_link_hash_entry): Remove dyn_relocs.
1618 (csky_elf_link_hash_newfunc): Updated.
1619 (csky_allocate_dynrelocs): Likewise.
1620 (readonly_dynrelocs): Likewise.
1621 (csky_elf_copy_indirect_symbol): Likewise.
1622 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove dyn_relocs.
1623 (hppa_link_hash_newfunc): Updated.
1624 (elf32_hppa_copy_indirect_symbol): Likewise.
1625 (elf32_hppa_hide_symbol): Likewise.
1626 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1627 (allocate_dynrelocs): Likewise.
1628 (elf32_hppa_relocate_section): Likewise.
1629 * elf32-i386.c (elf_i386_check_relocs): Likewise.
1630 * elf32-lm32.c (elf_lm32_link_hash_entry): Removed.
1631 (lm32_elf_link_hash_newfunc): Likewise.
1632 (lm32_elf_link_hash_table_create): Updated.
1633 (readonly_dynrelocs): Likewise.
1634 (allocate_dynrelocs): Likewise.
1635 (lm32_elf_copy_indirect_symbol): Likewise.
1636 * elf32-m32r.c (elf_m32r_link_hash_entry): Removed.
1637 (m32r_elf_link_hash_newfunc): Likewise.
1638 (m32r_elf_link_hash_table_create): Updated.
1639 (m32r_elf_copy_indirect_symbol): Likewise.
1640 (allocate_dynrelocs): Likewise.
1641 * elf32-metag.c (elf_metag_link_hash_entry): Remove dyn_relocs.
1642 (metag_link_hash_newfunc): Updated.
1643 (elf_metag_copy_indirect_symbol): Likewise.
1644 (readonly_dynrelocs): Likewise.
1645 (allocate_dynrelocs): Likewise.
1646 * elf32-microblaze.c (elf32_mb_link_hash_entry): Remove
1647 dyn_relocs.
1648 (link_hash_newfunc): Updated.
1649 (microblaze_elf_check_relocs): Likewise.
1650 (microblaze_elf_copy_indirect_symbol): Likewise.
1651 (readonly_dynrelocs): Likewise.
1652 (allocate_dynrelocs): Likewise.
1653 * elf32-nds32.c (elf_nds32_link_hash_entry): Remove dyn_relocs.
1654 (nds32_elf_link_hash_newfunc): Updated.
1655 (nds32_elf_copy_indirect_symbol): Likewise.
1656 (readonly_dynrelocs): Likewise.
1657 (allocate_dynrelocs): Likewise.
1658 (nds32_elf_check_relocs): Likewise.
1659 * elf32-nios2.c (elf32_nios2_link_hash_entry): Remove dyn_relocs.
1660 (link_hash_newfunc): Updated.
1661 (nios2_elf32_copy_indirect_symbol): Likewise.
1662 (nios2_elf32_check_relocs): Likewise.
1663 (allocate_dynrelocs): Likewise.
1664 * elf32-or1k.c (elf_or1k_link_hash_entry): Remove dyn_relocs.
1665 (or1k_elf_link_hash_newfunc): Updated.
1666 (readonly_dynrelocs): Likewise.
1667 (allocate_dynrelocs): Likewise.
1668 (or1k_elf_copy_indirect_symbol): Likewise.
1669 * elf32-ppc.c (ppc_elf_link_hash_entry): Remove dyn_relocs.
1670 (ppc_elf_link_hash_newfunc): Updated.
1671 (ppc_elf_copy_indirect_symbol): Likewise.
1672 (ppc_elf_check_relocs): Likewise.
1673 (readonly_dynrelocs): Likewise.
1674 (ppc_elf_adjust_dynamic_symbol): Likewise.
1675 (allocate_dynrelocs): Likewise.
1676 (ppc_elf_relocate_section): Likewise.
1677 * elf32-s390.c (elf_s390_link_hash_entry): Remove dyn_relocs.
1678 (link_hash_newfunc): Updated.
1679 (elf_s390_copy_indirect_symbol): Likewise.
1680 (readonly_dynrelocs): Likewise.
1681 (elf_s390_adjust_dynamic_symbol): Likewise.
1682 (allocate_dynrelocs): Likewise.
1683 * elf32-sh.c (elf_sh_link_hash_entry): Remove dyn_relocs.
1684 (sh_elf_link_hash_newfunc): Updated.
1685 (readonly_dynrelocs): Likewise.
1686 (allocate_dynrelocs): Likewise.
1687 (sh_elf_copy_indirect_symbol): Likewise.
1688 (sh_elf_check_relocs): Likewise.
1689 * elf32-tic6x.c (elf32_tic6x_link_hash_entry): Removed.
1690 (elf32_tic6x_link_hash_newfunc): Likewise.
1691 (elf32_tic6x_link_hash_table_create): Updated.
1692 (readonly_dynrelocs): Likewise.
1693 (elf32_tic6x_check_relocs): Likewise.
1694 (elf32_tic6x_allocate_dynrelocs): Likewise.
1695 * elf32-tilepro.c (tilepro_elf_link_hash_entry): Remove
1696 dyn_relocs.
1697 (link_hash_newfunc): Updated.
1698 (tilepro_elf_copy_indirect_symbol): Likewise.
1699 (tilepro_elf_check_relocs): Likewise.
1700 (allocate_dynrelocs): Likewise.
1701 * elf64-ppc.c (ppc_link_hash_entry): Remove dyn_relocs.
1702 (ppc64_elf_copy_indirect_symbol): Updated.
1703 (ppc64_elf_check_relocs): Likewise.
1704 (readonly_dynrelocs): Likewise.
1705 (ppc64_elf_adjust_dynamic_symbol): Likewise.
1706 (dec_dynrel_count): Likewise.
1707 (allocate_dynrelocs): Likewise.
1708 (ppc64_elf_relocate_section): Likewise.
1709 * elf64-s390.c (elf_s390_link_hash_entry): Remove dyn_relocs.
1710 (link_hash_newfunc): Updated.
1711 (elf_s390_copy_indirect_symbol): Likewise.
1712 (readonly_dynrelocs): Likewise.
1713 (allocate_dynrelocs): Likewise.
1714 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1715 * elfnn-aarch64.c (elf_aarch64_link_hash_entry): Remove
1716 dyn_relocs.
1717 (elfNN_aarch64_link_hash_newfunc): Updated.
1718 (elfNN_aarch64_copy_indirect_symbol): Likewise.
1719 (readonly_dynrelocs): Likewise.
1720 (need_copy_relocation_p): Likewise.
1721 (elfNN_aarch64_allocate_dynrelocs): Likewise.
1722 (elfNN_aarch64_allocate_ifunc_dynrelocs): Likewise.
1723 * elfnn-riscv.c (riscv_elf_link_hash_entry): Remove dyn_relocs.
1724 (link_hash_newfunc): Updated.
1725 (riscv_elf_copy_indirect_symbol): Likewise.
1726 (riscv_elf_check_relocs): Likewise.
1727 (readonly_dynrelocs): Likewise.
1728 (allocate_dynrelocs): Likewise.
1729 * elfxx-sparc.c (_bfd_sparc_elf_link_hash_entry): Remove
1730 dyn_relocs.
1731 (link_hash_newfunc): Updated.
1732 (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
1733 (_bfd_sparc_elf_check_relocs): Likewise.
1734 (readonly_dynrelocs): Likewise.
1735 (allocate_dynrelocs): Likewise.
1736 * elfxx-tilegx.c (tilegx_elf_link_hash_entry): Remove dyn_relocs.
1737 (link_hash_newfunc): Updated.
1738 (tilegx_elf_copy_indirect_symbol): Likewise.
1739 (tilegx_elf_check_relocs): Likewise.
1740 (readonly_dynrelocs): Likewise.
1741 (allocate_dynrelocs): Likewise.
1742 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Likewise.
1743 (readonly_dynrelocs): Likewise.
1744 (_bfd_x86_elf_copy_indirect_symbol): Likewise.
1745 * elfxx-x86.h (elf_x86_link_hash_entry): Remove dyn_relocs.
1746
1747 2020-06-01 Alan Modra <amodra@gmail.com>
1748
1749 * vms-alpha.c (_bfd_vms_slurp_etir): Check bound for the current
1750 command against cmd_length, not the end of record. For
1751 ETIR__C_STO_IMMR check size against cmd_length, mask repeat count
1752 to 32-bits and break out on zero size. Add ETIR__C_STC_LP_PSB
1753 cmd_length test.
1754
1755 2020-05-28 David Faust <david.faust@oracle.com>
1756
1757 * elf64-bpf.c (bpf_elf_relocate_section): Fix handling of
1758 R_BPF_INSN_{32,64} relocations.
1759
1760 2020-05-28 Stephen Casner <casner@acm.org>
1761
1762 * pdp11.c: Implement BRD_RELOC_32 to relocate the low 16 bits of
1763 addreses in .long (used in testsuites) and .stab values.
1764
1765 2020-05-27 H.J. Lu <hongjiu.lu@intel.com>
1766
1767 PR ld/22909
1768 * elflink.c (bfd_elf_final_link): Use bfd_link_textrel_check.
1769 Check bfd_link_dll when issue a DT_TEXTREL warning.
1770 * elfxx-x86.c (maybe_set_textrel): Likewise.
1771 (_bfd_x86_elf_size_dynamic_sections): Likewise.
1772
1773 2020-05-26 Nick Clifton <nickc@redhat.com>
1774
1775 * plugin.c (try_load_plugin): Extend error message when a plugin
1776 fails to open.
1777
1778 2020-05-23 Alan Modra <amodra@gmail.com>
1779
1780 * bfdio.c (bfd_get_file_size): Don't segfault on NULL arch_header.
1781
1782 2020-05-22 Alan Modra <amodra@gmail.com>
1783
1784 PR 25882
1785 * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Don't init FP
1786 attributes from shared libraries, and do not return an error if
1787 they don't match.
1788
1789 2020-05-21 Alan Modra <amodra@gmail.com>
1790
1791 PR 25993
1792 * opncls.c (_bfd_free_cached_info): Keep a copy of the bfd
1793 filename.
1794 (_bfd_delete_bfd): Free the copy.
1795 (_bfd_new_bfd): Free nbfd->memory on error.
1796
1797 2020-05-21 Alan Modra <amodra@gmail.com>
1798
1799 * aoutx.h: Replace "if (x) free (x)" with "free (x)" throughout.
1800 * archive.c, * bfd.c, * bfdio.c, * coff-alpha.c, * coff-ppc.c,
1801 * coff-sh.c, * coff-stgo32.c, * coffcode.h, * coffgen.c,
1802 * cofflink.c, * cpu-arm.c, * doc/chew.c, * dwarf2.c, * ecoff.c,
1803 * ecofflink.c, * elf-eh-frame.c, * elf-m10200.c, * elf-m10300.c,
1804 * elf-strtab.c, * elf.c, * elf32-arc.c, * elf32-arm.c,
1805 * elf32-avr.c, * elf32-bfin.c, * elf32-cr16.c, * elf32-crx.c,
1806 * elf32-epiphany.c, * elf32-ft32.c, * elf32-h8300.c,
1807 * elf32-ip2k.c, * elf32-m32c.c, * elf32-m68hc11.c,
1808 * elf32-m68k.c, * elf32-microblaze.c, * elf32-msp430.c,
1809 * elf32-nds32.c, * elf32-nios2.c, * elf32-ppc.c, * elf32-pru.c,
1810 * elf32-rl78.c, * elf32-rx.c, * elf32-sh.c, * elf32-spu.c,
1811 * elf32-v850.c, * elf32-xtensa.c, * elf64-alpha.c,
1812 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mips.c
1813 * elf64-mmix.c, * elf64-ppc.c, * elf64-sparc.c, * elfcode.h,
1814 * elflink.c, * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c,
1815 * elfxx-x86.c, * format.c, * ihex.c, * libbfd.c, * linker.c,
1816 * mmo.c, * opncls.c, * pdp11.c, * peXXigen.c, * pef.c,
1817 * peicode.h, * simple.c, * som.c, * srec.c, * stabs.c, * syms.c,
1818 * targets.c, * vms-lib.c, * xcofflink.c, * xtensa-isa.c: Likewise.
1819
1820 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
1821
1822 * elfxx-riscv.h (riscv_parse_subset_t): Add new callback function
1823 get_default_version. It is used to find the default version for
1824 the specific extension.
1825 * elfxx-riscv.c (riscv_parsing_subset_version): Remove the parameters
1826 default_major_version and default_minor_version. Add new bfd_boolean
1827 parameter *use_default_version. Set it to TRUE if we need to call
1828 the callback rps->get_default_version to find the default version.
1829 (riscv_parse_std_ext): Call rps->get_default_version if we fail to find
1830 the default version in riscv_parsing_subset_version, and then call
1831 riscv_add_subset to add the subset into subset list.
1832 (riscv_parse_prefixed_ext): Likewise.
1833 (riscv_std_z_ext_strtab): Support Zicsr extensions.
1834 * elfnn-riscv.c (riscv_merge_std_ext): Use strcasecmp to compare the
1835 strings rather than characters.
1836 riscv_merge_arch_attr_info): The callback function get_default_version
1837 is only needed for assembler, so set it to NULL int the linker.
1838 * elfxx-riscv.c (riscv_estimate_digit): Remove the static.
1839 * elfxx-riscv.h: Updated.
1840
1841 2020-05-20 Alan Modra <amodra@gmail.com>
1842
1843 PR 25993
1844 * archive.c (_bfd_get_elt_at_filepos): Don't strdup filename,
1845 use bfd_set_filename.
1846 * elfcode.h (_bfd_elf_bfd_from_remote_memory): Likewise.
1847 * mach-o.c (bfd_mach_o_fat_member_init): Likewise.
1848 * opncls.c (bfd_fopen, bfd_openstreamr, bfd_openr_iovec, bfd_openw),
1849 (bfd_create): Likewise.
1850 (_bfd_delete_bfd): Don't free filename.
1851 (bfd_set_filename): Copy filename param to bfd_alloc'd memory,
1852 return pointer to the copy or NULL on alloc fail.
1853 * vms-lib.c (_bfd_vms_lib_get_module): Free newname and test
1854 result of bfd_set_filename.
1855 * bfd-in2.h: Regenerate.
1856
1857 2020-05-20 Alan Modra <amodra@gmail.com>
1858
1859 PR 26011
1860 * elf.c (_bfd_elf_get_reloc_upper_bound): Sanity check reloc
1861 section size against file size.
1862 (_bfd_elf_get_dynamic_reloc_upper_bound): Likewise.
1863
1864 2020-05-19 Gunther Nikl <gnikl@justmail.de>
1865
1866 PR 26005
1867 * elf.c (bfd_section_from_shdr): Replace bfd_zmalloc with bfd_malloc
1868 and memset when allocating memory for the sections_being_created
1869 array.
1870
1871 2020-05-19 Stafford Horne <shorne@gmail.com>
1872
1873 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Rename srela
1874 to relgot.
1875 (or1k_elf_relocate_section): Access srelgot via
1876 htab->root.srelgot. Add assertions for srelgot->contents.
1877 Introduce local variable for srelgot to not reuse global
1878 sreloc.
1879 (or1k_elf_relocate_section): Fixup dynamic symbol detection.
1880 (or1k_set_got_and_rela_sizes): New function.
1881 (or1k_initial_exec_offset): New function.
1882 (TLS_GD, TLS_IE, TLS_LD, TLS_LE): Redefine macros as masks.
1883 (or1k_elf_relocate_section): Allow for TLS to handle multiple
1884 model access.
1885 (or1k_elf_check_relocs): Use OR to set TLS access.
1886 (allocate_dynrelocs): Use or1k_set_got_and_rela_sizes to set
1887 sizes.
1888 (or1k_elf_size_dynamic_sections): Use
1889 or1k_set_got_and_rela_sizes to set sizes.
1890 (or1k_elf_relocate_section): Fixup PCREL relocation calculation.
1891 (TCB_SIZE): New macro.
1892 (tpoff): Use TCB_SIZE and alignment to calculate offset.
1893 (allocate_dynrelocs, readonly_dynrelocs, or1k_elf_check_relocs)
1894 (or1k_elf_size_dynamic_sections): Rename p to sec_relocs.
1895 (allocate_dynrelocs): Rename s to splt or sgot based on usage.
1896 (tpoff): Add dynamic boolean argument.
1897 (or1k_elf_relocate_section): Pass dynamic flag to tpoff.
1898
1899 2020-05-19 Siddhesh Poyarekar <siddesh.poyarekar@arm.com>
1900
1901 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Club
1902 BFD_RELOC_AARCH64_BRANCH19 and BFD_RELOC_AARCH64_TSTBR14
1903 cases with BFD_RELOC_AARCH64_JUMP26.
1904 (elfNN_aarch64_check_relocs): Likewise.
1905
1906 2020-05-19 Alan Modra <amodra@gmail.com>
1907
1908 * aix5ppc-core.c (xcoff64_core_file_matches_executable_p): Use
1909 bfd_get_filename rather than accessing bfd->filename directly.
1910 * aout-target.h (MY (object_p)): Likewise.
1911 * aoutx.h (aout_find_nearest_line, aout_link_write_symbols): Likewise.
1912 * archive.c (find_nested_archive, _bfd_generic_read_ar_hdr_mag),
1913 (_bfd_construct_extended_name_table, _bfd_bsd44_write_ar_hdr),
1914 (_bfd_archive_bsd44_construct_extended_name_table),
1915 (_bfd_write_archive_contents, _bfd_compute_and_write_armap),
1916 (_bfd_bsd_write_armap): Likewise.
1917 * bfd.c (bfd_errmsg, _bfd_doprnt): Likewise.
1918 * cache.c (bfd_open_file): Likewise.
1919 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
1920 * ecofflink.c (bfd_ecoff_debug_accumulate_other): Likewise.
1921 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
1922 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1923 * elf32-hppa.c (elf32_hppa_final_link): Likewise.
1924 * elf32-nds32.c (nds32_elf_output_symbol_hook),
1925 (patch_tls_desc_to_ie): Likewise.
1926 * elf32-spu.c (sort_bfds, print_one_overlay_section),
1927 (spu_elf_auto_overlay): Likewise.
1928 * elf64-hppa.c (elf_hppa_final_link): Likewise.
1929 * elf64-ia64-vms.c (elf64_ia64_size_dynamic_sections): Likewise.
1930 * elfcore.h (elf_core_file_matches_executable_p): Likewise.
1931 * elflink.c (bfd_elf_size_dynamic_sections),
1932 (elf_link_input_bfd): Likewise.
1933 * linker.c (_bfd_generic_link_output_symbols): Likewise.
1934 * mach-o.c (bfd_mach_o_follow_dsym),
1935 (bfd_mach_o_close_and_cleanup): Likewise.
1936 * opncls.c (_bfd_delete_bfd, _maybe_make_executable),
1937 (find_separate_debug_file, get_build_id_name): Likewise.
1938 * pdp11.c (aout_find_nearest_line, aout_link_write_symbols): Likewise.
1939 * plugin.c (bfd_plugin_open_input): Likewise.
1940 * rs6000-core.c (rs6000coff_core_file_matches_executable_p): Likewise.
1941 * som.c (som_write_armap): Likewise.
1942 * srec.c (srec_write_record, srec_write_symbols): Likewise.
1943 * vms-lib.c (_bfd_vms_lib_get_imagelib_file),
1944 (_bfd_vms_lib_write_archive_contents): Likewise.
1945 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
1946
1947 2020-05-19 Alan Modra <amodra@gmail.com>
1948
1949 PR 25713
1950 * bfdio.c (_bfd_real_fopen): Typo fix.
1951
1952 2020-05-18 Nick Clifton <nickc@redhat.com>
1953
1954 PR 26005
1955 * elf.c (bfd_section_from_shdr): Use bfd_malloc to allocate memory
1956 for the sections_being_created array.
1957
1958 2020-05-18 Alan Modra <amodra@gmail.com>
1959
1960 * ecoff.c (ecoff_slurp_reloc_table): Malloc external_relocs so
1961 they can be freed without also freeing internal_relocs.
1962
1963 2020-05-18 Jaydeep Chauhan <jaydeepchauhan1494@gmail.com>
1964
1965 PR 25713
1966 * bfdio.c (_bfd_real_fopen): Convert UNIX style sirectory
1967 separators into DOS style when creating a WIN32 fullpath.
1968
1969 2020-05-14 Nelson Chu <nelson.chu@sifive.com>
1970
1971 * elfnn-riscv.c (elfNN_riscv_mkobject): New function. We need this
1972 to initialize RISC-V tdata.
1973
1974 2020-05-12 Gunther Nikl <gnikl@justmail.de>
1975
1976 * aoutx.h (NAME (aout, swap_std_reloc_out)): Reject an unsupported
1977 relocation size.
1978
1979 2020-05-11 Alan Modra <amodra@gmail.com>
1980
1981 * elf64-ppc.c (xlate_pcrel_opt): Handle lxvp and stxvp.
1982
1983 2020-05-11 Alan Modra <amodra@gmail.com>
1984
1985 * elf64-ppc.c: Rename powerxx to power10 throughout.
1986
1987 2020-05-11 Alan Modra <amodra@gmail.com>
1988
1989 PR 25961
1990 * coffgen.c (coff_get_normalized_symtab): Check that buffer
1991 contains required number of auxents before processing any auxent.
1992 * coffswap.h (coff_swap_aux_in <C_FILE>): Only swap in extended
1993 file name from auxents for PE.
1994
1995 2020-05-04 Gunther Nikl <gnikl@justmail.de>
1996
1997 * aout-cris.c (DEFAULT_ARCH): Delete define.
1998 (MY_set_arch_mach): Likewise.
1999 (SET_ARCH_MACH): Use bfd_set_arch_mach with an explicit architecture
2000 of bfd_arch_cris.
2001 (swap_ext_reloc_in): Add casts to r_index extraction. Mask valid bits
2002 of r_type before the shift.
2003
2004 2020-05-04 Wilco Dijkstra <wdijkstr@arm.com>
2005
2006 PR ld/25665
2007 * elfnn-aarch64.c (group_sections): Copy implementation from
2008 elf32-arm.c.
2009
2010 2020-05-01 Alan Modra <amodra@gmail.com>
2011
2012 PR 25900
2013 * elfnn-riscv.c (_bfd_riscv_relax_section): Check root.type before
2014 accessing root.u.def of symbols. Also check root.u.def.section
2015 is non-NULL. Reverse tests so as to make the logic positive.
2016
2017 2020-05-01 Alan Modra <amodra@gmail.com>
2018
2019 PR 25882
2020 * elf32-tic6x.c (elf32_tic6x_merge_attributes): Don't transfer
2021 Tag_ABI_PIC or Tag_ABI_PID from dynamic objects to the output.
2022
2023 2020-05-01 Alan Modra <amodra@gmail.com>
2024
2025 PR 25882
2026 * elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Add FIXME.
2027 * elf32-frv.c (frv_elf_merge_private_bfd_data): Likewise.
2028 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
2029 * elf32-nds32.c (nds32_elf_merge_private_bfd_data): Likewise.
2030 * elf32-score.c (s3_elf32_score_merge_private_bfd_data): Likewise.
2031 * elf32-score7.c (s7_elf32_score_merge_private_bfd_data): Likewise.
2032 * elf32-sh.c (sh_elf_merge_private_data): Likewise.
2033 * elf32-tic6x.c (elf32_tic6x_merge_attributes): Likewise.
2034 * elf64-ia64-vms.c (elf64_ia64_merge_private_bfd_data): Likewise.
2035 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): Likewise.
2036
2037 2020-05-01 Alan Modra <amodra@gmail.com>
2038
2039 PR 25882
2040 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Ignore e_flags
2041 from shared libraries.
2042
2043 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
2044
2045 * elf32-xtensa.c (relax_section): Don't negate diff_value for
2046 XTENSA_NDIFF relocations. Don't add sign bits whe diff_value
2047 equals 0. Report overflow when the result has negative sign but
2048 all significant bits are zero.
2049
2050 2020-04-29 Gunther Nikl <gnikl@justmail.de>
2051
2052 * aoutx.h (swap_std_reloc_out): Special case 64 bit relocations.
2053 (aout_link_reloc_link_order): Likewise. Make r_length an unsigned.
2054
2055 2020-04-28 Alan Modra <amodra@gmail.com>
2056
2057 * vms-alpha.c (_bfd_vms_slurp_etir): Correct divide by zero check.
2058 Emit warning message.
2059
2060 2020-04-27 Tamar Christina <tamar.christina@arm.com>
2061
2062 * coff-i386.c (COFF_WITH_PE_BIGOBJ): New.
2063 * coff-x86_64.c (COFF_WITH_PE_BIGOBJ): New.
2064 * config.bfd (targ_selvecs): Rename x86_64_pe_be_vec
2065 to x86_64_pe_big_vec as it not a big-endian format.
2066 (vec i386_pe_big_vec): New.
2067 * configure.ac: Likewise.
2068 * targets.c: Likewise.
2069 * configure: Regenerate.
2070 * pe-i386.c (TARGET_SYM_BIG, TARGET_NAME_BIG,
2071 COFF_WITH_PE_BIGOBJ): New.
2072 * pe-x86_64.c (TARGET_SYM_BIG, TARGET_NAME_BIG):
2073 New.
2074 (x86_64_pe_be_vec): Moved.
2075
2076 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
2077
2078 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
2079 * elf.c (elfcore_grok_arc_v2): New function.
2080 (elfcore_grok_note): Call the new function to handle the corresponding
2081 note.
2082 (elfcore_write_arc_v2): New function.
2083 (elfcore_write_register_note): Call the new function to handle the
2084 corresponding pseudo-sections.
2085
2086 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
2087
2088 PR ld/25861
2089 * bfd-in2.h: Regenerated.
2090 * elf32-xtensa.c (elf_howto_table): New entries for
2091 R_XTENSA_PDIFF{8,16,32} and R_XTENSA_NDIFF{8,16,32}.
2092 (elf_xtensa_reloc_type_lookup, elf_xtensa_do_reloc)
2093 (relax_section): Add cases for R_XTENSA_PDIFF{8,16,32} and
2094 R_XTENSA_NDIFF{8,16,32}.
2095 * libbfd.h (bfd_reloc_code_real_names): Add names for
2096 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
2097 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
2098 * reloc.c: Add documentation for BFD_RELOC_XTENSA_PDIFF{8,16,32}
2099 and BFD_RELOC_XTENSA_NDIFF{8,16,32}.
2100
2101 2020-04-21 Tamar Christina <tamar.christina@arm.com>
2102
2103 PR binutils/24753
2104 * compress.c (bfd_get_full_section_contents): Exclude sections with no
2105 content.
2106
2107 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
2108
2109 PR ld/25849
2110 * elf-bfd.h (elf_backend_data): Add
2111 elf_backend_strip_zero_sized_dynamic_sections.
2112 (_bfd_elf_strip_zero_sized_dynamic_sections): New prototype.
2113 * elf64-alpha.c (elf_backend_strip_zero_sized_dynamic_sections):
2114 New macro.
2115 * elflink.c (_bfd_elf_strip_zero_sized_dynamic_sections): New
2116 function.
2117 * elfxx-target.h (elf_backend_strip_zero_sized_dynamic_sections):
2118 New macro.
2119 (elfNN_bed): Add elf_backend_strip_zero_sized_dynamic_sections.
2120
2121 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
2122
2123 * elf64-alpha.c (alpha_elf_reloc_entry): Replace reltext with
2124 sec.
2125 (elf64_alpha_check_relocs): Set sec instead of reltext. Warn
2126 DT_TEXTREL with -M.
2127 (elf64_alpha_calc_dynrel_sizes): Warn DT_TEXTREL with -M.
2128
2129 2020-04-21 Nick Clifton <nickc@redhat.com>
2130
2131 * po/sr.po: Updated Serbian translation.
2132
2133 2020-04-21 Alan Modra <amodra@gmail.com>
2134
2135 * elf32-sh.c (sh_elf_relocate_section): Remove STO_SH5_ISA32
2136 processing.
2137
2138 2020-04-20 Stephen Casner <casner@acm.org>
2139
2140 * pdp11.c (N_STAB): Modify value to avoid conflict with N_EXT
2141 causing globals from linker script to be treated as debug symbols.
2142 (translate_symbol_table): Don't sign-extend symbol values from 16
2143 to 64 bits in nm output.
2144
2145 2020-04-20 Alan Modra <amodra@gmail.com>
2146
2147 * elf64-ppc.c (ppc64_elf_size_stubs): Strip relbrlt too.
2148
2149 2020-04-18 Alan Modra <amodra@gmail.com>
2150
2151 * section.c (bfd_is_const_section): Correct test for special
2152 sections.
2153 * bfd-in2.h: Regenerate.
2154
2155 2020-04-17 Alan Modra <amodra@gmail.com>
2156
2157 PR 25842
2158 * elf.c (_bfd_elf_get_symbol_version_string): Don't segfault on
2159 NULL nodename.
2160
2161 2020-04-16 Nick Clifton <nickc@redhat.com>
2162
2163 PR 25803
2164 * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Replace an
2165 abort with a more helpful error message.
2166
2167 2020-04-16 Alan Modra <amodra@gmail.com>
2168
2169 PR 25827
2170 * dwarf2.c (scan_unit_for_symbols): Wrap overlong lines. Don't
2171 strdup(0).
2172
2173 2020-04-15 Fangrui Song <maskray@google.com>
2174
2175 PR binutils/24613
2176 * coff-rs6000.c (xcoff_ppc_relocate_section): Change RM_GENERATE_ERROR
2177 to RM_DIAGNOSE plus a check of warn_unresolved_syms.
2178 * coff64-rs6000.c (xcoff_ppc_relocate_section): Likewise.
2179 * elf-bfd.h (_bfd_elf_large_com_section): Likewise.
2180 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
2181 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
2182 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
2183 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2184 * elf32-spu.c (spu_elf_relocate_section): Likewise.
2185 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
2186 * elflink.c (elf_link_output_extsym): Likewise.
2187 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
2188
2189 2020-04-15 Alan Modra <amodra@gmail.com>
2190
2191 PR 25823
2192 * peXXigen.c (_bfd_XXi_swap_sym_in <C_SECTION>): Don't use a
2193 pointer into strings that may be freed for section name, always
2194 allocate a new string.
2195
2196 2020-04-14 Juan Manuel Guerrero <juan.guerrero@gmx.de>
2197 Jan W. Jagersma <jwjagersma@gmail.com>
2198
2199 * coff-go32.c (COFF_GO32, IMAGE_SCN_LNK_NRELOC_OVFL)
2200 (coff_SWAP_scnhdr_in, coff_SWAP_scnhdr_out): Define.
2201 (_bfd_go32_swap_scnhdr_in, _bfd_go32_swap_scnhdr_out)
2202 (_bfd_go32_mkobject): New functions.
2203 * coff-stgo32.c (IMAGE_SCN_LNK_NRELOC_OVFL)
2204 (coff_SWAP_scnhdr_in, coff_SWAP_scnhdr_out): Define.
2205 (go32exe_mkobject): Call _bfd_go32_mkobject.
2206 * coffcode.h (COFF_WITH_EXTENDED_RELOC_COUNTER): Define.
2207 (coff_set_alignment_hook): Define function for COFF_GO32_EXE
2208 and COFF_GO32.
2209 (coff_write_relocs): Enable extended reloc counter code if
2210 COFF_WITH_EXTENDED_RELOC_COUNTER is defined. Test for obj_go32.
2211 (coff_write_object_contents): Likewise. Pad section headers
2212 for COFF_GO32 and COFF_GO32EXE. Use bfd_coff_swap_scnhdr_out
2213 instead of coff_swap_scnhdr_out.
2214 * cofflink.c (_bfd_coff_final_link): Test also for obj_go32 to
2215 enable extended reloc counter.
2216 * coffswap.h: (coff_swap_scnhdr_in, coff_swap_scnhdr_out):
2217 Declare with ATTRIBUTE_UNUSED.
2218 * libcoff-in.h: (struct coff_tdata): New field go32.
2219 (obj_go32): Define.
2220 * libcoff.h: Regenerate.
2221
2222 2020-04-14 Fangrui Song <maskray@google.com>
2223
2224 PR gas/25768
2225 * elf.c (assign_section_numbers): Always set .stab sh_entsize to
2226 12.
2227
2228 2020-04-14 Stephen Casner <casner@acm.org>
2229
2230 PR ld/25677
2231 * pdp11.c: Add implementation of --imagic option.
2232 (adjust_o_magic): Fix objcopy --extract-symbol test.
2233 * libaout.h (enum aout_magic): Add i_magic.
2234
2235 2020-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2236 Nick Clifton <nickc@redhat.com>
2237
2238 * elf32-sparc.c (sparc_final_write_processing): Fix whitespace.
2239 <0>: Ignore.
2240 <default>: Error rather than abort.
2241
2242 2020-04-03 H.J. Lu <hongjiu.lu@intel.com>
2243
2244 PR ld/25767
2245 * elf.c (_bfd_elf_fixup_group_sections): Remove zero-sized
2246 relocation section from section group.
2247
2248 2020-04-02 Jan W. Jagersma <jwjagersma@gmail.com>
2249
2250 * bfdio.c (bfd_bread, bfd_tell, bfd_seek, bfd_mmap): Always add
2251 bfd->origin to file offset.
2252 * bfdwin.c (bfd_get_file_window): Likewise.
2253 * bfd.c: Clarify the use of the bfd->origin field.
2254 * bfd-in2.h: Regenerate.
2255 * coff-i386.c: Don't include go32exe.h. Allow overriding
2256 coff_write_object_contents via COFF_WRITE_CONTENTS.
2257 * coff-stgo32.c (go32exe_cleanup, go32exe_mkobject)
2258 (go32exe_write_object_contents): New functions.
2259 (go32exe_temp_stub, go32exe_temp_stub_size): New static globals.
2260 (COFF_WRITE_CONTENTS, GO32EXE_DEFAULT_STUB_SIZE): Define.
2261 (create_go32_stub): Remove check for 2k size limit. Read stub
2262 from go32exe_temp_stub if present.
2263 (go32_stubbed_coff_bfd_copy_private_bfd_data): Allocate and
2264 copy variable-length stub.
2265 (go32_check_format): Read stub to go32exe_temp_stub, set
2266 origin, return go32exe_cleanup.
2267 (adjust_filehdr_in_post, adjust_filehdr_out_pre)
2268 (adjust_filehdr_out_post, adjust_scnhdr_in_post)
2269 (adjust_scnhdr_out_pre, adjust_scnhdr_out_post)
2270 (adjust_aux_in_post, adjust_aux_out_pre, adjust_aux_out_post):
2271 Remove functions and their associated #defines.
2272 * coffcode.h (coff_mkobject_hook): Remove stub copying code.
2273 * libcoff-in.h: (struct coff_tdata): New field stub_size.
2274 Rename field go32stub to stub.
2275 * libcoff.h: Regenerate.
2276 * coff-stgo32.c (go32_check_format): Rename to...
2277 (go32exe_check_format): ...this.
2278 (go32_stubbed_coff_bfd_copy_private_bfd_data): Rename to...
2279 (go32exe_copy_private_bfd_data): ...this.
2280 (stub_bytes): Rename to...
2281 (go32exe_default_stub): ...this.
2282 (create_go32_stub): Rename to...
2283 (go32exe_create_stub): ...this.
2284 * coff-stgo32.c (go32exe_copy_private_bfd_data): Avoid realloc
2285 when possible.
2286
2287 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
2288
2289 PR ld/25749
2290 PR ld/25754
2291 * elf32-i386.c (elf_i386_convert_load_reloc): Convert load
2292 relocation to R_386_32 for relocation against non-preemptible
2293 absolute symbol.
2294 (elf_i386_check_relocs): Call _bfd_elf_x86_valid_reloc_p. Don't
2295 allocate dynamic relocation for non-preemptible absolute symbol.
2296 (elf_i386_relocate_section): Pass sec to
2297 GENERATE_DYNAMIC_RELOCATION_P.
2298 * elf64-x86-64.c (R_X86_64_converted_reloc_bit): Moved.
2299 (elf_x86_64_convert_load_reloc): Covert load relocation to
2300 R_X86_64_32S or R_X86_64_32 for relocation against non-preemptible
2301 absolute symbol. Don't convert to R_X86_64_32S nor R_X86_64_32
2302 for non-preemptible absolute symbol if they overflow.
2303 (elf_x86_64_check_relocs): Call _bfd_elf_x86_valid_reloc_p. Set
2304 tls_type for GOT slot to GOT_ABS for non-preemptible absolute
2305 symbol. Don't allocate dynamic relocation for non-preemptible
2306 absolute symbol.
2307 (elf_x86_64_relocate_section): Don't generate relative relocation
2308 for GOTPCREL relocations aganst local absolute symbol. Pass sec
2309 to GENERATE_DYNAMIC_RELOCATION_P.
2310 * elfxx-x86.c (elf_x86_allocate_dynrelocs): No dynamic relocation
2311 against non-preemptible absolute symbol.
2312 (_bfd_elf_x86_valid_reloc_p): New function.
2313 (_bfd_x86_elf_size_dynamic_sections): No dynamic relocation for
2314 GOT_ABS GOT slot.
2315 * elfxx-x86.h (GENERATE_DYNAMIC_RELOCATION_P): Add an SEC
2316 argument. Don't generate dynamic relocation against
2317 non-preemptible absolute symbol.
2318 (ABS_SYMBOL_P): New.
2319 (GENERATE_RELATIVE_RELOC_P): Don't generate relative relocation
2320 against non-preemptible absolute symbol.
2321 (GOT_ABS): New.
2322 (R_X86_64_converted_reloc_bit): New. Moved from elf64-x86-64.c.
2323 (_bfd_elf_x86_valid_reloc_p): New.
2324
2325 2020-04-01 Tamar Christina <tamar.christina@arm.com>
2326
2327 PR ld/16017
2328 * elf32-arm.c (elf32_arm_populate_plt_entry): Set LSB of the PLT0
2329 address in the GOT if in thumb only mode.
2330
2331 2020-04-01 Tamar Christina <tamar.christina@arm.com>
2332
2333 * elf32-arm.c (elf32_thumb2_plt_entry): Fix PC-rel offset.
2334
2335 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
2336
2337 * mmo.c (mmo_scan): Create .text section only when needed, not
2338 from the start.
2339
2340 2020-03-31 Alan Modra <amodra@gmail.com>
2341
2342 * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Correct bfd_bread
2343 return value check.
2344
2345 2020-03-31 Alan Modra <amodra@gmail.com>
2346
2347 * vms-alpha.c (image_write): Check bounds for sections without
2348 contents too. Error on non-zero write to section without
2349 contents.
2350 (_bfd_vms_slurp_etir): Check return of image_write* functions.
2351
2352 2020-03-31 Alan Modra <amodra@gmail.com>
2353
2354 * tekhex.c (pass_over): Check is_eof before reading buffer.
2355
2356 2020-03-30 Nick Clifton <nickc@redhat.com>
2357
2358 PR binutils/pr25662
2359 * libcoff-in.h (struct pe_tdata): Rename the insert_timestamp
2360 field to timestamp and make it an integer.
2361 * libcoff.h: Regenerate.
2362 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Test the timestamp
2363 field in the pe_data structure rather than the insert_timestamp
2364 field.
2365
2366 2020-03-30 Alan Modra <amodra@gmail.com>
2367
2368 PR 25745
2369 * elf64-ppc.c (ppc64_elf_build_stubs): Use asprintf to form
2370 statistics message.
2371
2372 2020-03-26 Nick Clifton <nickc@redhat.com>
2373
2374 * cofflink.c (bfd_coff_get_internal_extra_pe_aouthdr): Delete.
2375 * libbfd-in.h (bfd_coff_get_internal_extra_pe_aouthdr): Remove
2376 prototype.
2377 * libbfd.h: Regenerate.
2378
2379 2020-03-26 Alan Modra <amodra@gmail.com>
2380
2381 * i386msdos.c (msdos_object_p): Catch -1 return from bfd_bread.
2382
2383 2020-03-26 Alan Modra <amodra@gmail.com>
2384
2385 * vms-alpha.c (dst_define_location): Limit size of dst_ptr_offsets
2386 array.
2387 (_bfd_vms_slurp_object_records): Rename "err" to "ok".
2388
2389 2020-03-25 Nick Clifton <nickc@redhat.com>
2390
2391 * cofflink.c (bfd_coff_get_internal_extra_pe_aouthdr): New
2392 function.
2393 * libbfd-in.h (bfd_coff_get_internal_extra_pe_aouthdr): Prototype.
2394 * libbfd.h: Regenerate.
2395
2396 2020-03-25 Shahab Vahedi <shahab@synopsys.com>
2397
2398 * elf32-arc.c (PRINT_DEBUG_RELOC_INFO_BEFORE): Use the
2399 correct field name in the output string.
2400
2401 2020-03-25 Alan Modra <amodra@gmail.com>
2402
2403 PR 25662
2404 * elf.c (assign_file_positions_for_load_sections): Adjust offset
2405 for SHT_NOBITS section if first in segment.
2406
2407 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
2408
2409 PR binutils/25708
2410 * elf-bfd.h (_bfd_elf_get_symbol_version_name): Renamed to ...
2411 (_bfd_elf_get_symbol_version_string): This.
2412 * elf.c (_bfd_elf_get_symbol_version_name): Renamed to ...
2413 (_bfd_elf_get_symbol_version_string): This.
2414 (bfd_elf_print_symbol): Pass TRUE to
2415 _bfd_elf_get_symbol_version_string.
2416 * libbfd-in.h (_bfd_nosymbols_get_symbol_version_string): Add a
2417 bfd_boolean argument.
2418 * syms.c (_bfd_nosymbols_get_symbol_version_string): Likewise.
2419 * targets.c (_bfd_get_symbol_version_string): Likewise.
2420 (bfd_get_symbol_version_string): Likewise.
2421 * bfd-in2.h: Regenerated.
2422
2423 2020-03-24 Nick Clifton <nickc@redhat.com>
2424 Jaydeep Chauhan <jaydeepchauhan1494@gmail.com>
2425
2426 PR 25713
2427 * bfdio.c (_bfd_real_fopen): Add code to handle long filenames on
2428 Win32 systems.
2429
2430 2020-03-24 Nick Clifton <nickc@redhat.com>
2431
2432 PR 25681
2433 * elf.c (_bfd_elf_map_sections_to_segments): When looking for a
2434 segment to use for PT_GNU_RELRO, ignore empty sections in a
2435 segment's current list.
2436
2437 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
2438
2439 PR binutils/25717
2440 * elf-bfd.h (elf_obj_tdata): Change num_group to unsigned int.
2441
2442 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
2443
2444 PR binutils/25708
2445 * elf-bfd.h (_bfd_elf_get_symbol_version_name): New.
2446 * elf.c (_bfd_elf_get_symbol_version_name): New function. Based
2447 on the previous _bfd_elf_get_symbol_version_string.
2448 (_bfd_elf_get_symbol_version_string): Use it.
2449
2450 2020-03-24 Alan Modra <amodra@gmail.com>
2451
2452 * archive.c (_bfd_generic_read_ar_hdr_mag): Sanity check extended
2453 name size. Use bfd_malloc rather than bfd_zmalloc, clearing just
2454 struct areltdata.
2455
2456 2020-03-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
2457
2458 * elflink.c (_bfd_elf_tls_setup): Mention .tdata in comment.
2459
2460 2020-03-23 Alan Modra <amodra@gmail.com>
2461
2462 * ecoff.c (_bfd_ecoff_slurp_armap): Sanity check parsed_size and
2463 symbol count. Allocate an extra byte to ensure name strings
2464 are terminated. Sanity check name offsets. Release memory on
2465 error return.
2466
2467 2020-03-23 Alan Modra <amodra@gmail.com>
2468
2469 * i386msdos.c (msdos_object_p): Don't access e_lfanew when that
2470 field hasn't been read. Remove unnecessary casts.
2471
2472 2020-03-22 Alan Modra <amodra@gmail.com>
2473
2474 * coff64-rs6000.c (xcoff64_slurp_armap): Ensure size is large
2475 enough to read number of symbols.
2476
2477 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
2478
2479 * configure.ac (HAVE_EXECUTABLE_SUFFIX): Removed.
2480 (EXECUTABLE_SUFFIX): Likewise.
2481 * config.in: Regenerated.
2482 * configure: Likewise.
2483 * plugin.c (bfd_plugin_close_and_cleanup): Defined as
2484 _bfd_generic_close_and_cleanup.
2485 (plugin_list_entry): Remove resolution_file, resolution_option,
2486 real_bfd, real_nsyms, real_syms, lto_nsyms, lto_syms, gcc,
2487 lto_wrapper, gcc_env and initialized,
2488 (need_lto_wrapper_p): Removed.
2489 (get_lto_wrapper): Likewise.
2490 (setup_lto_wrapper_env): Likewise.
2491 (register_all_symbols_read): Likewise.
2492 (egister_cleanup): Likewise.
2493 (get_symbols): Likewise.
2494 (add_input_file): Likewise.
2495 (bfd_plugin_set_program_name): Remove need_lto_wrapper.
2496 (add_symbols): Updated.
2497 (try_claim): Likewise.
2498 (try_load_plugin): Likewise.
2499 (bfd_plugin_canonicalize_symtab): Likewise.
2500 * plugin.h (bfd_plugin_set_program_name): Remove int argument.
2501 (plugin_data_struct): Remove real_bfd, real_nsyms and real_syms.
2502
2503 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
2504
2505 PR binutils/25640
2506 * plugin.c (plugin_list_entry): Add has_symbol_type.
2507 (add_symbols_v2): New function.
2508 (bfd_plugin_open_input): Don't invoke LTO wrapper if LTO plugin
2509 provides symbol type.
2510 (try_load_plugin): Add LDPT_ADD_SYMBOLS_V2.
2511 (bfd_plugin_canonicalize_symtab): Use LTO plugin symbol type if
2512 available.
2513
2514 2020-03-20 Alan Modra <amodra@gmail.com>
2515
2516 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Ensure size is large
2517 enough to read number of symbols.
2518
2519 2020-03-20 Alan Modra <amodra@gmail.com>
2520
2521 * elf.c (_bfd_elf_setup_sections): Don't test known non-NULL
2522 backend functions for NULL before calling.
2523 (copy_special_section_fields, _bfd_elf_copy_private_bfd_data),
2524 (bfd_section_from_shdr, assign_section_numbers): Likewise.
2525 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): Likewise.
2526 * elfnn-ia64.c (ignore_errors): New function.
2527 (elf_backend_link_order_error_handler): Redefine as ignore_errors.
2528
2529 2020-03-19 Nick Clifton <nickc@redhat.com>
2530
2531 PR 25676
2532 * dwarf2.c (struct varinfo): Add unit_offset field to record the
2533 location of the varinfo in the unit's debug info data. Change the
2534 type of the stack field to a boolean.
2535 (lookup_var_by_offset): New function. Returns the varinfo
2536 structure for the variable described at the given offset in the
2537 unit's debug info.
2538 (scan_unit_for_symbols): Add support for variables which have the
2539 DW_AT_specification attribute.
2540
2541 2020-03-19 Nick Clifton <nickc@redhat.com>
2542
2543 PR 25699
2544 * elf.c (bfd_elf_set_group_contents): Replace assertion with an
2545 error return.
2546
2547 2020-03-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
2548
2549 * elfxx-riscv.c (riscv_parse_subset): Don't use C99.
2550
2551 2020-03-18 Nick Clifton <nickc@redhat.com>
2552
2553 PR 25673
2554 * elf.c (_bfd_elf_write_secondary_reloc_section): Fix illegal
2555 memory access when processing a corrupt secondary reloc section.
2556
2557 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
2558
2559 * elf32-arm.c (arm_build_one_stub): Emit a fatal error message
2560 instead of calling abort.
2561 * elf32-csky.c (csky_build_one_stub): Likewise.
2562 * elf32-hppa.c (hppa_build_one_stub): Likewise.
2563 * elf32-m68hc11.c (m68hc11_elf_build_one_stub): Likewise.
2564 * elf32-m68hc12.c (m68hc12_elf_build_one_stub): Likewise.
2565 * elf32-metag.c (metag_build_one_stub): Likewise.
2566 * elf32-nios2.c (nios2_build_one_stub): Likewise.
2567 * elf64-ppc.c (ppc_build_one_stub): Likewise.
2568 (ppc_size_one_stub): Likewise.
2569 * elfnn-aarch64.c (aarch64_build_one_stub): Likewise.
2570
2571 2020-03-17 Nick Clifton <nickc@redhat.com>
2572
2573 PR 25688
2574 * elf.c (_bfd_elf_copy_special_section_fields): Replace assertions
2575 with error messages.
2576
2577 2020-03-17 Nick Clifton <nickc@redhat.com>
2578
2579 PR 25687
2580 * elf.c (_bfd_elf_slurp_secondary_reloc_section): Remove redundant
2581 free. Add free on another failure path.
2582
2583 2020-03-16 Alan Modra <amodra@gmail.com>
2584
2585 PR 25675
2586 * elf.c (elf_sort_segments): Don't call bfd_octets_per_byte unless
2587 we have a non-zero section count. Do lma comparison in octets.
2588
2589 2020-03-16 Alan Modra <amodra@gmail.com>
2590
2591 * vms-alpha.c (dst_restore_location): Validate index into
2592 dst_ptr_offsets array before accessing. Return status.
2593 (dst_retrieve_location): Similarly, making "loc" parameter a
2594 pointer to return value.
2595 (_bfd_vms_slurp_etir): Update calls to above functions.
2596
2597 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2598
2599 * configure.ac: Include netbsd-core.lo for all NetBSD arm and mips
2600 targets.
2601 * configure: Regenerated.
2602
2603 2020-03-14 Alan Modra <amodra@gmail.com>
2604
2605 * section.c (BFD_FAKE_SECTIONS): Formatting.
2606 * bfd-in2.h: Regenerate.
2607
2608 2020-03-13 Kamil Rytarowski <n54@gmx.com>
2609
2610 * elf.c (elfcore_grok_netbsd_note): Add support for
2611 NT_NETBSDCORE_LWPSTATUS notes.
2612
2613 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
2614
2615 * bfd-in2.h: Regenerate.
2616 * section.c (asection): Add already_assigned field.
2617 (BFD_FAKE_SECTION): Add default initializer for it.
2618 * ecoff.c (bfd_debug_section): Initialize already_assigned field.
2619 * elf32-arm.c (arm_build_one_stub): Add support for
2620 non_contiguous_regions.
2621 * elf32-csky.c (csky_build_one_stub): Likewise.
2622 * elf32-hppa.c (hppa_build_one_stub): Likewise.
2623 * elf32-m68hc11.c (m68hc11_elf_build_one_stub): Likewise.
2624 * elf32-m68hc12.c (m68hc12_elf_build_one_stub): Likewise.
2625 * elf32-metag.c (metag_build_one_stub): Likewise.
2626 * elf32-nios2.c (nios2_build_one_stub): Likewise.
2627 * elf64-ppc.c (ppc_build_one_stub): Likewise.
2628 (ppc_size_one_stub): Likewise.
2629 * elfnn-aarch64.c (aarch64_build_one_stub): Likewise.
2630 * elflink.c (elf_link_input_bfd): Likewise.
2631
2632 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
2633
2634 PR ld/24920
2635 * elf-linker-x86.h (elf_linker_x86_params): Add
2636 static_before_all_inputs and has_dynamic_linker.
2637 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
2638 dynamic input objects if -static is passed at command-line
2639 before all input files without --dynamic-linker unless
2640 --no-dynamic-linker is used.
2641
2642 2020-03-13 Kamil Rytarowski <n54@gmx.com>
2643
2644 * elf.c (elfcore_grok_netbsd_note): Add support for aarch64.
2645
2646 2020-03-13 Christian Eggers <ceggers@gmx.de>
2647
2648 * bfd.c (bfd_record_phdr): New local "opb". Fix assignment of
2649 "p_paddr" from "at".
2650 * elfcode.h (bfd_from_remote_memory): Add units to several
2651 parameters. New local "opb". Fix usage of p_align. Fix
2652 calculation of "localbase" from "ehdr_vma" and "p_vaddr". Fix
2653 call of target_read_memory.
2654 * elflink.c (elf_fixup_link_order): Fix scope of "s" local. Fix
2655 calculation of "offset" and "output_offset".
2656 (bfd_elf_final_link): New local "opb". Fix calculation of "size"
2657 from "offset" and fix calculation of "end" from "vma+size". Fix
2658 comparison between "sh_addr" and "vma"/"output_offset".
2659 (bfd_elf_discard_info): Fix calculation of "eh_alignment".
2660 * elf-bfd.h (struct elf_link_hash_table): Add unit to tls_size
2661 member.
2662 * elf.c (_bfd_elf_map_sections_to_segments): Add unit (bytes/
2663 octets) to "wrap_to2 and "phdr_size" locals. Fix calculation of
2664 "wrap_to" value. Add unit (bytes) to phdr_lma variable. Fix
2665 assignment of p_paddr from phdr_lma. Fix comparison between
2666 "lma+size" and "next->lma".
2667 (elf_sort_segments): Fix assignment from p_paddr to lma.
2668 (assign_file_positions_for_load_sections): Add unit (bytes) to
2669 local "align". Fix calculation of local "off_adjust". Fix
2670 calculation of local "filehdr_vaddr".
2671 (assign_file_positions_for_non_load_sections): New local "opb".
2672 Fix calculation of "end" from "p_size". Fix comparison between
2673 "vma+SECTION_SIZE" and "start". Fix calculation of "p_memsz"
2674 from "end" and "p_vaddr".
2675 (rewrite_elf_program_header): Fix comparison between p_vaddr and
2676 vma. Fix assignment to p_paddr from lma. Fix comparison between
2677 p_paddr and lma. Fix assignment to p_paddr from lma.
2678 * merge.c (sec_merge_emit): New local "opb". Convert
2679 "alignment_power" to octets.
2680 (_bfd_add_merge_section): New locals "alignment_power" and
2681 "opb". Fix comparison between "alignment_power" and
2682 "sizeof(align)".
2683 (_bfd_merge_sections): New local "opb". Divide size by opb
2684 before checking align mask.
2685
2686 2020-03-13 Christian Eggers <ceggers@gmx.de>
2687
2688 * elf.c (_bfd_elf_make_section_from_shdr): Introduce new temp
2689 opb. Divide Elf_Internal_Shdr::sh_addr by opb when setting
2690 section LMA/VMA.
2691 (_bfd_elf_make_section_from_phdr): Similarly.
2692 (elf_fake_sections): Fix calculation of
2693 Elf_Internal_shdr::sh_addr from section VMA.
2694 (_bfd_elf_map_sections_to_segments): Fix mixup between octets
2695 and bytes.
2696 (assign_file_positions_for_load_sections): Fix calculations of
2697 Elf_Internal_shdr::p_vaddr and p_paddr from section LMA/VMA. Fix
2698 comparison between program header address and section LMA.
2699 (assign_file_positions_for_non_load_sections): Likewise.
2700 (rewrite_elf_program_header): Likewise. Introduce new temp opb.
2701 (IS_CONTAINED_BY_VMA): Add parameter opb.
2702 (IS_CONTAINED_BY_LMA,IS_SECTION_IN_INPUT_SEGMENT,
2703 INCLUDE_SECTION_IN_SEGMENT): Likewise.
2704 (copy_elf_program_header): Update call to ELF_SECTION_IN_SEGMENT.
2705 Fix calculations of p_addr_valid and p_vaddr_offset.
2706 * elflink.c (elf_link_add_object_symbols): Multiply section VMA
2707 with octets per byte when comparing against p_vaddr.
2708
2709 2020-03-11 Alan Modra <amodra@gmail.com>
2710
2711 * som.c (setup_sections): Sanity check subspace.name.
2712
2713 2020-03-11 Alan Modra <amodra@gmail.com>
2714
2715 * elf64-ppc.c (ppc64_elf_inline_plt): Do increment rel in for loop.
2716
2717 2020-03-10 Alan Modra <amodra@gmail.com>
2718
2719 PR 25648
2720 * ihex.c (ihex_write_object_contents): Don't assume ordering of
2721 addresses here.
2722
2723 2020-03-09 Alan Modra <amodra@gmail.com>
2724
2725 * wasm-module.c (wasm_scan): Sanity check file name length
2726 before allocating memory. Move common section setup code. Do
2727 without bfd_tell to calculate section size.
2728
2729 2020-03-06 Nick Clifton <nickc@redhat.com>
2730
2731 * elf.c (_bfd_elf_set_section_contents): Replace call to abort
2732 with error messages and failure return values.
2733
2734 2020-03-05 Max Filippov <jcmvbkbc@gmail.com>
2735
2736 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Shrink dynamic
2737 relocation sections for any removed reference to a dynamic symbol.
2738
2739 2020-03-05 Nick Clifton <nickc@redhat.com>
2740
2741 * elf-bfd.h (struct elf_backend_data): Add new fields:
2742 init_secondary_reloc_section, slurp_secondary_reloc_section,
2743 write_secondary_reloc_section.
2744 (_bfd_elf_init_secondary_reloc_section): Prototype.
2745 (_bfd_elf_slurp_secondary_reloc_section): Prototype.
2746 (_bfd_elf_write_secondary_reloc_section): Prototype.
2747 * elf.c ( bfd_section_from_shdr): Invoke the new
2748 init_secondary_reloc_section backend function, if defined, when a
2749 second reloc section is encountered.
2750 (swap_out_syms): Invoke the new symbol_section_index function, if
2751 defined, when computing the section index of an OS/PROC specific
2752 symbol.
2753 (_bfd_elf_init_secondary_reloc_section): New function.
2754 (_bfd_elf_slurp_secondary_reloc_section): New function.
2755 (_bfd_elf_write_secondary_reloc_section): New function.
2756 (_bfd_elf_copy_special_section_fields): New function.
2757 * elfcode.h (elf_write_relocs): Invoke the new
2758 write_secondary_relocs function, if defined, in order to emit
2759 secondary relocs.
2760 (elf_slurp_reloc_table): Invoke the new slurp_secondary_relocs
2761 function, if defined, in order to read in secondary relocs.
2762 * elfxx-target.h (elf_backend_copy_special_section_fields):
2763 Provide a non-NULL default definition.
2764 (elf_backend_init_secondary_reloc_section): Likewise.
2765 (elf_backend_slurp_secondary_reloc_section): Likewise.
2766 (elf_backend_write_secondary_reloc_section): Likewise.
2767 (struct elf_backend_data elfNN_bed): Add initialisers for the new
2768 fields.
2769 * configure.ac (score_elf32_[bl]e_vec): Add elf64.lo
2770 * configure: Regenerate.
2771
2772 2020-03-05 Alan Modra <amodra@gmail.com>
2773
2774 * archive64.c (_bfd_archive_64_bit_slurp_armap): Check parsed_size
2775 against file size before allocating memory. Use bfd_alloc rather
2776 than bfd_zalloc for carsym/strings memory.
2777
2778 2020-03-04 Alan Modra <amodra@gmail.com>
2779
2780 * elf.c (elf_fake_sections): Ensure sh_addralign is such that
2781 sh_addr mod sh_addalign is zero.
2782
2783 2020-03-04 Alan Modra <amodra@gmail.com>
2784
2785 * format.c (bfd_check_format_matches): Call cleanup on error exit.
2786
2787 2020-03-03 Alan Modra <amodra@gmail.com>
2788
2789 * format.c (struct bfd_preserve): Add cleanup field.
2790 (bfd_preserve_save): Add cleanup param and save.
2791 (bfd_preserve_restore): Return cleanup.
2792 (bfd_preserve_finish): Call the cleanup for the discarded match.
2793 (bfd_check_format_matches): Pass cleanup to bfd_preserve_save,
2794 and clear when preserving a match. Restore cleanup too when
2795 restoring that match.
2796
2797 2020-03-02 Alan Modra <amodra@gmail.com>
2798
2799 * cisco-core.c (cisco_core_file_p): Return bfd_cleanup.
2800 * hpux-core.c (hpux_core_core_file_p): Update prototype.
2801 * sco5-core.c (sco5_core_file_p): Return bfd_cleanup.
2802 (core_sco5_vec): Correct initialisers.
2803
2804 2020-03-02 Alan Modra <amodra@gmail.com>
2805
2806 * aix386-core.c (aix386_core_file_p): Return bfd_cleanup.
2807 * aix5ppc-core.c (xcoff64_core_p): Likewise.
2808 * cisco-core.c (cisco_core_file_validate): Likewise.
2809 * hppabsd-core.c (hppabsd_core_core_file_p): Likewise.
2810 * hpux-core.c (hpux_core_core_file_p): Likewise.
2811 * irix-core.c (irix_core_core_file_p): Likewise.
2812 * lynx-core.c (lynx_core_file_p): Likewise.
2813 * netbsd-core.c (netbsd_core_file_p): Likewise.
2814 * osf-core.c (osf_core_core_file_p): Likewise.
2815 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
2816 * sco5-core.c (sco5_core_file_p): Likewise.
2817
2818 2020-03-02 H.J. Lu <hongjiu.lu@intel.com>
2819
2820 * trad-core.c (trad_unix_core_file_p): Return bfd_cleanup.
2821
2822 2020-03-02 Alan Modra <amodra@gmail.com>
2823
2824 * targets.c (bfd_cleanup): New typedef.
2825 (struct bfd <_bfd_check_format>): Return a bfd_cleanup.
2826 * libbfd-in.h (_bfd_no_cleanup): Define.
2827 * format.c (bfd_reinit): Add cleanup parameter, call it.
2828 (bfd_check_format_matches): Set cleanup from _bfd_check_format
2829 call and pass to bfd_reinit. Delete temp, use abfd->xvec instead.
2830 * aout-target.h (callback, object_p): Return bfd_cleanup.
2831 * aout-tic30.c (tic30_aout_callback, tic30_aout_object_p): Likewise.
2832 * archive.c (bfd_generic_archive_p): Likewise.
2833 * binary.c (binary_object_p): Likewise.
2834 * coff-alpha.c (alpha_ecoff_object_p): Likewise.
2835 * coff-ia64.c (ia64coff_object_p): Likewise.
2836 * coff-rs6000.c (_bfd_xcoff_archive_p, rs6000coff_core_p): Likewise.
2837 * coff-sh.c (coff_small_object_p): Likewise.
2838 * coff-stgo32.c (go32_check_format): Likewise.
2839 * coff64-rs6000.c (xcoff64_archive_p, rs6000coff_core_p),
2840 (xcoff64_core_p): Likewise.
2841 * coffgen.c (coff_real_object_p, coff_object_p): Likewise.
2842 * elf-bfd.h (bfd_elf32_object_p, bfd_elf32_core_file_p),
2843 (bfd_elf64_object_p, bfd_elf64_core_file_p): Likewise.
2844 * elfcode.h (elf_object_p): Likewise.
2845 * elfcore.h (elf_core_file_p): Likewise.
2846 * i386msdos.c (msdos_object_p): Likewise.
2847 * ihex.c (ihex_object_p): Likewise.
2848 * libaout.h (some_aout_object_p): Likewise.
2849 * libbfd-in.h (bfd_generic_archive_p, _bfd_dummy_target),
2850 (_bfd_vms_lib_alpha_archive_p, _bfd_vms_lib_ia64_archive_p): Likewise.
2851 * libbfd.c (_bfd_dummy_target): Likewise.
2852 * libcoff-in.h (coff_object_p): Likewise.
2853 * mach-o-aarch64.c (bfd_mach_o_arm64_object_p),
2854 (bfd_mach_o_arm64_core_p): Likewise.
2855 * mach-o-arm.c (bfd_mach_o_arm_object_p),
2856 (bfd_mach_o_arm_core_p): Likewise.
2857 * mach-o-i386.c (bfd_mach_o_i386_object_p),
2858 (bfd_mach_o_i386_core_p): Likewise.
2859 * mach-o-x86-64.c (bfd_mach_o_x86_64_object_p),
2860 (bfd_mach_o_x86_64_core_p): Likewise.
2861 * mach-o.c (bfd_mach_o_header_p, bfd_mach_o_gen_object_p),
2862 (bfd_mach_o_gen_core_p, bfd_mach_o_fat_archive_p): Likewise.
2863 * mach-o.h (bfd_mach_o_object_p, bfd_mach_o_core_p),
2864 (bfd_mach_o_fat_archive_p, bfd_mach_o_header_p): Likewise.
2865 * mmo.c (mmo_object_p): Likewise.
2866 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
2867 * peicode.h (coff_real_object_p, pe_ILF_object_p),
2868 (pe_bfd_object_p): Likewise.
2869 * plugin.c (ld_plugin_object_p, bfd_plugin_object_p): Likewise.
2870 * ppcboot.c (ppcboot_object_p): Likewise.
2871 * rs6000-core.c (rs6000coff_core_p): Likewise.
2872 * som.c (som_object_setup, som_object_p): Likewise.
2873 * srec.c (srec_object_p, symbolsrec_object_p): Likewise.
2874 * tekhex.c (tekhex_object_p): Likewise.
2875 * vms-alpha.c (alpha_vms_object_p): Likewise.
2876 * vms-lib.c (_bfd_vms_lib_archive_p, _bfd_vms_lib_alpha_archive_p),
2877 (_bfd_vms_lib_ia64_archive_p, _bfd_vms_lib_txt_archive_p): Likewise.
2878 * wasm-module.c (wasm_object_p): Likewise.
2879 * xsym.c (bfd_sym_object_p): Likewise.
2880 * xsym.h (bfd_sym_object_p): Likewise.
2881 * aoutx.h (some_aout_object_p): Likewise, and callback parameter
2882 return type.
2883 * pdp11.c (some_aout_object_p): Likewise.
2884 * plugin.c (register_ld_plugin_object_p): Update object_p
2885 parameter type.
2886 * plugin.h (register_ld_plugin_object_p): Likewise.
2887 * bfd-in2.h: Regenerate.
2888 * libbfd.h: Regenerate.
2889 * libcoff.h: Regenerate.
2890
2891 2020-03-02 Alan Modra <amodra@gmail.com>
2892
2893 * coff-alpha.c (alpha_ecoff_le_vec): Add SEC_SMALL_DATA to
2894 applicable section flags.
2895 * coff-mips.c (mips_ecoff_le_vec, mips_ecoff_be_vec): Likewise.
2896 (mips_ecoff_bele_vec): Likewise.
2897 * coffcode.h (sec_to_styp_flags): Set SEC_SMALL_DATA for .sdata
2898 and .sbss sections.
2899 * ecoff.c (_bfd_ecoff_new_section_hook): Likewise.
2900 (_bfd_ecoff_styp_to_sec_flags): Likewise.
2901
2902 2020-03-02 Alan Modra <amodra@gmail.com>
2903
2904 * elf32-m32r.c (m32r_elf_section_flags): New function.
2905 (elf_backend_section_flags): Define.
2906 * elf32-nds32.c (nds32_elf_section_flags): New function.
2907 (elf_backend_section_flags): Define.
2908 * elf32-ppc.c (ppc_elf_section_from_shdr): Set SEC_SMALL_DATA for
2909 .sbss and .sdata sections.
2910 * elf32-v850.c (v850_elf_section_from_shdr): Set SEC_SMALL_DATA
2911 for SHF_V850_GPREL sections.
2912 * elf64-alpha.c (elf64_alpha_section_from_shdr): Delete outdated
2913 FIXME.
2914 * elf64-hppa.c (elf64_hppa_section_from_shdr): Set SEC_SMALL_DATA
2915 for SHF_PARISC_SHORT sections.
2916 * elf64-ppc.c (ppc64_elf_section_flags): New function.
2917 (elf_backend_section_flags): Define.
2918 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Set SEC_SMALL_DATA
2919 for SHF_MIPS_GPREL sections. Delete FIXME.
2920
2921 2020-03-02 Alan Modra <amodra@gmail.com>
2922
2923 * elf-bfd.h (elf_backend_section_flags): Remove flagword* param.
2924 * elf.c (_bfd_elf_make_section_from_shdr): Set section flags before
2925 calling elf_backend_section_flags with adjusted params. Use
2926 newsect->flags past that point.
2927 (_bfd_elf_new_section_hook): Always set sh_type and sh_flags for
2928 special sections.
2929 (_bfd_elf_init_private_section_data): Allow normal sh_type sections
2930 to have their type overridden, and all sh_flags but processor and
2931 os specific.
2932 * elf32-arm.c (elf32_arm_section_flags): Adjust for changed params.
2933 * elf32-mep.c (mep_elf_section_flags): Likewise.
2934 * elf32-nios2.c (nios2_elf32_section_flags): Likewise.
2935 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
2936 * elf64-ia64-vms.c (elf64_ia64_section_flags): Likewise.
2937 * elfnn-ia64.c (elfNN_ia64_section_flags): Likewise.
2938 * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Exclude the linker
2939 stub BFD and non-aarch64 input files when scanning for stubs.
2940
2941 2020-03-02 Alan Modra <amodra@gmail.com>
2942
2943 * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Provide an upper
2944 limit to decompressed element size.
2945
2946 2020-03-02 Alan Modra <amodra@gmail.com>
2947
2948 * vms-lib.c (vms_traverse_index): Add recur_count param and
2949 update calls. Fail on excessive recursion.
2950
2951 2020-03-02 Alan Modra <amodra@gmail.com>
2952
2953 * vms-alpha.c (vms_get_remaining_object_record): Use
2954 bfd_realloc_or_free rather than bfd_realloc.
2955 (add_symbol_entry, vector_grow1, alpha_vms_slurp_relocs): Likewise.
2956 (dst_define_location, parse_module): Likewise, and check realloc
2957 return status before using memory. Return status from function
2958 adjusting all callers.
2959
2960 2020-02-28 Alan Modra <amodra@gmail.com>
2961
2962 * vms-lib.c (_bfd_vms_lib_archive_p): Free memory on error paths.
2963
2964 2020-02-28 Alan Modra <amodra@gmail.com>
2965
2966 * vms-alpha.c (alpha_vms_object_p): Use _bfd_malloc_and_read.
2967 Remove duplicate undersize check.
2968
2969 2020-02-27 Alan Modra <amodra@gmail.com>
2970
2971 PR 24511
2972 * mmo.c (mmo_scan): Set SEC_DATA for .data.
2973
2974 2020-02-27 Alan Modra <amodra@gmail.com>
2975
2976 PR 24511
2977 * syms.c (stt): Trim off all but 'e', 'i' and 'p' entries.
2978 (coff_section_type): Adjust comment.
2979 (decode_section_type): Likewise. Call coff_section_type before
2980 decode_section_type.
2981 (bfd_decode_symclass): Use 'c' for common sections other than
2982 the standard one.
2983
2984 2020-02-27 Alan Modra <amodra@gmail.com>
2985
2986 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Put all data in one
2987 malloc'd block.
2988
2989 2020-02-27 Alan Modra <amodra@gmail.com>
2990
2991 * bfd.c (bfd_stat_arch_elt): Use vector of containing archive,
2992 if file is an archive element.
2993 * bfd-in2.h: Regenerate.
2994
2995 2020-02-26 Alan Modra <amodra@gmail.com>
2996
2997 * archive.c (do_slurp_bsd_armap): Increase minimum parsed_size, and
2998 bfd_set_error on failing test. Don't bother changing bfd_error on
2999 file read error. Check symdef_count is multiple of BSD_SYMDEF_SIZE.
3000 Check sym name is within string buffer. Use size_t for some vars.
3001 (do_slurp_coff_armap): Use size_t for some variables, fix size of
3002 int_buf. Don't change bfd_error on file read error. Use
3003 _bfd_mul_overflow when calculating carsym buffer size. Reorder
3004 calculations to catch overflows before they occur. malloc and
3005 free raw armap rather than using bfd_alloc. Read raw armap before
3006 allocating carsym+strings buffer.
3007 (_bfd_slurp_extended_name_table): Localize variables. Check
3008 name size against file size.
3009
3010 2020-02-26 Alan Modra <amodra@gmail.com>
3011
3012 * vms-lib.c (vms_lib_read_index): Release correct buffer.
3013
3014 2020-02-26 Alan Modra <amodra@gmail.com>
3015
3016 * elf32-rx.c (rx_elf_relocate_section): Use bfd_malloc rather than
3017 malloc. Check for NULL return from bfd_malloc.
3018 (rx_table_find, rx_table_map): Likewise.
3019 (rx_set_section_contents): Check bfd_alloc return.
3020 (rx_dump_symtab): Don't alloc internal_syms or external_syms.
3021
3022 2020-02-26 Alan Modra <amodra@gmail.com>
3023
3024 * aoutx.h: Indent labels correctly. Format error strings.
3025 * archive.c: Likewise.
3026 * archive64.c: Likewise.
3027 * coff-arm.c: Likewise.
3028 * coff-rs6000.c: Likewise.
3029 * coff-stgo32.c: Likewise.
3030 * cpu-arm.c: Likewise.
3031 * dwarf2.c: Likewise.
3032 * elf-ifunc.c: Likewise.
3033 * elf-properties.c: Likewise.
3034 * elf-s390-common.c: Likewise.
3035 * elf-strtab.c: Likewise.
3036 * elf.c: Likewise.
3037 * elf32-arm.c: Likewise.
3038 * elf32-bfin.c: Likewise.
3039 * elf32-cr16.c: Likewise.
3040 * elf32-csky.c: Likewise.
3041 * elf32-i386.c: Likewise.
3042 * elf32-m68k.c: Likewise.
3043 * elf32-msp430.c: Likewise.
3044 * elf32-nds32.c: Likewise.
3045 * elf32-nios2.c: Likewise.
3046 * elf32-pru.c: Likewise.
3047 * elf32-xtensa.c: Likewise.
3048 * elf64-ia64-vms.c: Likewise.
3049 * elf64-x86-64.c: Likewise.
3050 * elfcode.h: Likewise.
3051 * elfcore.h: Likewise.
3052 * elflink.c: Likewise.
3053 * elfnn-aarch64.c: Likewise.
3054 * elfnn-ia64.c: Likewise.
3055 * elfnn-riscv.c: Likewise.
3056 * elfxx-mips.c: Likewise.
3057 * elfxx-sparc.c: Likewise.
3058 * elfxx-x86.c: Likewise.
3059 * i386lynx.c: Likewise.
3060 * merge.c: Likewise.
3061 * pdp11.c: Likewise.
3062 * plugin.c: Likewise.
3063 * reloc.c: Likewise.
3064
3065 2020-02-26 Alan Modra <amodra@gmail.com>
3066
3067 PR 25593
3068 * elf-bfd.h (struct elf_link_hash_table): Rename "loaded" to
3069 "dyn_loaded".
3070 (bfd_elf_add_dt_needed_tag): Declare.
3071 * elf-strtab.c (_bfd_elf_strtab_restore): Handle NULL buf.
3072 * elflink.c (bfd_elf_add_dt_needed_tag): Make global and rename
3073 from elf_add_dt_needed_tag. Remove soname and doit param.
3074 (elf_link_add_object_symbols): Don't use elf_add_dt_needed_tag
3075 to see whether as-needed lib is already loaded, use dyn_loaded
3076 list instead. When saving and restoring around as-needed lib
3077 handle possibility that dynstr has not been initialised. Don't
3078 add DT_NEEDED tags here. Limit dyn_loaded list to dynamic libs.
3079 Mark libs loaded via DT_NEEDED entries of other libs with
3080 DYN_NO_NEEDED if they should not be mentioned in DT_NEEDED of
3081 the output.
3082 (elf_link_check_versioned_symbol): Remove now unneccesary
3083 DYNAMIC check when traversing dyn_loaded list.
3084
3085 2020-02-26 Alan Modra <amodra@gmail.com>
3086
3087 * bfdio.c (bfd_get_file_size): Ignore bogus archive element sizes.
3088
3089 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
3090
3091 PR binutils/25584
3092 * plugin.c (need_lto_wrapper_p): New.
3093 (bfd_plugin_set_program_name): Add an int argument to set
3094 need_lto_wrapper_p.
3095 (get_lto_wrapper): Return FALSE if need_lto_wrapper_p isn't
3096 set.
3097 * plugin.h (bfd_plugin_set_program_name): Add an int argument.
3098
3099 2020-02-24 Alan Modra <amodra@gmail.com>
3100
3101 * vms-lib.c (_bfd_vms_lib_archive_p): Correct overflow checks.
3102
3103 2020-02-24 Alan Modra <amodra@gmail.com>
3104
3105 * vms-lib.c (struct carsym_mem): Add limit.
3106 (vms_add_index): Heed limit.
3107 (vms_traverse_index): Catch buffer overflows. Remove outdated fixme.
3108 (vms_lib_read_index): Set up limit. Catch 32-bit overflow.
3109 Always return actual number read.
3110 (_bfd_vms_lib_archive_p): Catch buffer overflows. Replace
3111 assertion with error exit.
3112
3113 2020-02-22 Alan Modra <amodra@gmail.com>
3114
3115 PR 25585
3116 * elf.c (assign_file_positions_for_load_sections): Continue linking
3117 on "PHDR segment not covered by LOAD segment" errors.
3118
3119 2020-02-21 Alan Modra <amodra@gmail.com>
3120
3121 * mach-o.c (bfd_mach_o_canonicalize_relocs): Fix ineffective
3122 overflow check.
3123 (bfd_mach_o_canonicalize_reloc): Likewise.
3124 (bfd_mach_o_canonicalize_dynamic_reloc): Likewise. Sanity check
3125 counts and offsets against file size.
3126 (bfd_mach_o_build_dysymtab): Fix ineffective overflow check.
3127 (bfd_mach_o_mangle_sections): Remove unnecessary overflow check.
3128 (bfd_mach_o_read_symtab_symbols): Sanity check count and offset
3129 against file size. Delete symbol table error message.
3130 (bfd_mach_o_read_dysymtab): Sanity check counts and offsets
3131 against file size.
3132 (bfd_mach_o_read_symtab): Likewise.
3133 (bfd_mach_o_read_command): Pass file size.
3134 (bfd_mach_o_scan): Sanity check command count against file size.
3135
3136 2020-02-21 Alan Modra <amodra@gmail.com>
3137
3138 PR 25569
3139 * aoutx.h (adjust_o_magic, adjust_z_magic, adjust_n_magic): Use
3140 "text", "data" and "bss" section pointer vars. Don't update
3141 section size, just exec header sizes.
3142 (adjust_sizes_and_vmas): Don't update text section size. Set
3143 initial exec header a_text. Print exec headers sizes.
3144 * pdp11.c (adjust_o_magic, adjust_z_magic, adjust_n_magic),
3145 (adjust_sizes_and_vmas): Similarly. Formatting.
3146 (final_link): Correct final file extension.
3147
3148 2020-02-20 Nick Clifton <nickc@redhat.com>
3149
3150 * elf-bfd.h (struct elf_backend_data): Add symbol_section_index
3151 callback.
3152 * elfxx-target.h (elf_backend_symbol_section_index): Provide
3153 default definition.
3154 (elfNN_bed): Initialise the symbol_section_index field.
3155 * elf.c (swap_out_syms): Call symbol_section_index, if defined, on
3156 OS and PROC specific section indicies. Warn if converting other
3157 reserved incidies to SHN_ABS.
3158
3159 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
3160
3161 PR 25537
3162 * cpu-z80.c: Add machine type compatibility checking.
3163
3164 2020-02-19 H.J. Lu <hongjiu.lu@intel.com>
3165
3166 PR binutils/25355
3167 * plugin.c (plugin_list_entry): Remove handle.
3168 (try_load_plugin): Call dlclose before return.
3169
3170 2020-02-19 Alan Modra <amodra@gmail.com>
3171
3172 * libbfd-in.h (_bfd_constant_p): Define.
3173 (_bfd_alloc_and_read, _bfd_malloc_and_read): Check read size against
3174 file size before allocating memory.
3175 * coffgen.c (_bfd_coff_get_external_symbols): Remove file size check.
3176 * elf.c (bfd_elf_get_str_section): Likewise.
3177 (_bfd_elf_slurp_version_tables): Likewise.
3178 * libbfd.h: Regenerate.
3179
3180 2020-02-19 Alan Modra <amodra@gmail.com>
3181
3182 * libbfd-in.h (_bfd_alloc_and_read, _bfd_malloc_and_read): New.
3183 * aoutx.h (aout_get_external_symbols): Replace calls to
3184 bfd_[m]alloc and bfd_bread with call to _bfd_[m]alloc_and_read.
3185 (slurp_reloc_table): Likewise.
3186 * archive.c (do_slurp_bsd_armap): Likewise.
3187 (do_slurp_coff_armap): Likewise.
3188 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
3189 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Likewise.
3190 * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
3191 * coffcode.h (coff_set_arch_mach_hook, buy_and_read): Likewise.
3192 * coffgen.c (coff_real_object_p, coff_object_p, build_debug_section),
3193 (_bfd_coff_get_external_symbols): Likewise.
3194 * ecoff.c (ecoff_slurp_symbolic_header),
3195 (_bfd_ecoff_slurp_symbolic_info, ecoff_slurp_reloc_table),
3196 (_bfd_ecoff_slurp_armap, ecoff_link_add_object_symbols, READ),
3197 (ecoff_indirect_link_order): Likewise.
3198 * elf.c (bfd_elf_get_str_section, setup_group, elf_read_notes),
3199 (_bfd_elf_slurp_version_tables): Likewise.
3200 * elf32-m32c.c (m32c_elf_relax_section): Likewise.
3201 * elf32-rl78.c (rl78_elf_relax_section): Likewise.
3202 * elf32-rx.c (elf32_rx_relax_section): Likewise.
3203 * elf64-alpha.c (READ): Likewise.
3204 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Likewise.
3205 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise.
3206 * elfcode.h (elf_slurp_symbol_table),
3207 (elf_slurp_reloc_table_from_section): Likewise.
3208 * elflink.c (elf_link_add_object_symbols),
3209 (elf_link_check_versioned_symbol): Likewise.
3210 * elfxx-mips.c (READ): Likewise.
3211 * i386lynx.c (slurp_reloc_table): Likewise.
3212 * lynx-core.c (lynx_core_file_p): Likewise.
3213 * mach-o.c (bfd_mach_o_canonicalize_relocs),
3214 (bfd_mach_o_read_symtab_strtab, bfd_mach_o_alloc_and_read),
3215 (bfd_mach_o_read_prebound_dylib, bfd_mach_o_read_dyld_content
3216 * pdp11.c (aout_get_external_symbols, slurp_reloc_table
3217 * pef.c (bfd_pef_print_loader_section, bfd_pef_scan_start_address),
3218 (bfd_pef_parse_symbols): Likewise.
3219 * peicode.h (pe_ILF_object_p, pe_bfd_object_p
3220 * som.c (setup_sections, som_slurp_string_table),
3221 (som_slurp_reloc_table, som_bfd_count_ar_symbols),
3222 (som_bfd_fill_in_ar_symbols): Likewise.
3223 * vms-alpha.c (module_find_nearest_line, evax_bfd_print_dst),
3224 (evax_bfd_print_image): Likewise.
3225 * vms-lib.c (_bfd_vms_lib_archive_p): Likewise.
3226 * wasm-module.c (wasm_scan): Likewise.
3227 * xcofflink.c (xcoff_link_add_symbols): Likewise.
3228 * xsym.c (bfd_sym_read_name_table),
3229 (bfd_sym_print_type_information_table_entry): Likewise.
3230 * libbfd.h: Regenerate.
3231
3232 2020-02-19 Alan Modra <amodra@gmail.com>
3233
3234 * aoutx.h (slurp_reloc_table): Allocate reloc_cache after
3235 reading external relocs.
3236 * ecoff.c (ecoff_slurp_reloc_table): Likewise.
3237 * archive.c (_bfd_write_archive_contents): Don't twiddle bfd_error
3238 after bfd_bread.
3239 * archive64.c (_bfd_archive_64_bit_slurp_armap): Remove unnecessary
3240 bfd_release.
3241 * elf32-m32c.c (m32c_offset_for_reloc): Make shndx_buf a bfd_byte*.
3242 (m32c_elf_relax_section): Likewise.
3243 * elf32-rl78.c (rl78_offset_for_reloc): Likewise.
3244 (rl78_elf_relax_section): Likewise.
3245 * elf32-rx.c (rx_offset_for_reloc): Likewise.
3246 (elf32_rx_relax_section): Likewise.
3247 * mach-o.c (bfd_mach_o_alloc_and_read): Move earlier with better
3248 parameter types and use..
3249 (bfd_mach_o_read_dylinker, bfd_mach_o_read_dylib),
3250 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_str): ..in these functions.
3251 * peicode.h (pe_bfd_object_p): Don't zero the part of opthdr
3252 being read from file, just the extra.
3253 * som.c (som_slurp_symbol_table): Allocate internal symbol buffer
3254 after reading external syms. Free on failure.
3255
3256 2020-02-19 Alan Modra <amodra@gmail.com>
3257
3258 * coffcode.h (buy_and_read, coff_slurp_line_table),
3259 (coff_slurp_symbol_table, coff_slurp_reloc_table): Replace
3260 bfd_[z][m]alloc2 calls with _bfd_mul_overflow followed by the
3261 corresponding bfd_alloc call. Adjust variables to suit.
3262 * coffgen.c (_bfd_coff_get_external_symbols): Likewise.
3263 * ecoff.c (_bfd_ecoff_slurp_symbolic_info),
3264 (_bfd_ecoff_slurp_symbol_table, READ): Likewise.
3265 * elf.c (bfd_elf_get_elf_syms, setup_group, bfd_section_from_shdr),
3266 (swap_out_syms, _bfd_elf_slurp_version_tables): Likewise.
3267 * elf32-m32c.c (m32c_elf_relax_section): Likewise.
3268 * elf32-rl78.c (rl78_elf_relax_section): Likewise.
3269 * elf32-rx.c (elf32_rx_relax_section): Likewise.
3270 * elf64-alpha.c (READ): Likewise.
3271 * elfcode.h (elf_object_p, elf_write_relocs, elf_write_shdrs_and_ehdr),
3272 (elf_slurp_symbol_table, elf_slurp_reloc_table),
3273 (bfd_from_remote_memory): Likewise.
3274 * elfcore.h (core_find_build_id): Likewise.
3275 * elfxx-mips.c (READ): Likewise.
3276 * mach-o.c (bfd_mach_o_mangle_sections),
3277 (bfd_mach_o_read_symtab_symbols, bfd_mach_o_read_thread),
3278 (bfd_mach_o_read_dysymtab, bfd_mach_o_flatten_sections),
3279 (bfd_mach_o_scan, bfd_mach_o_fat_archive_p): Likewise.
3280 * som.c (setup_sections, som_prep_for_fixups)
3281 (som_build_and_write_symbol_table, som_slurp_symbol_table),
3282 (som_slurp_reloc_table, som_bfd_count_ar_symbols),
3283 (som_bfd_fill_in_ar_symbols, som_slurp_armap),
3284 (som_bfd_ar_write_symbol_stuff): Likewise.
3285 * vms-alpha.c (vector_grow1): Likewise.
3286 * vms-lib.c (vms_add_index): Likewise.
3287 * wasm-module.c (wasm_scan_name_function_section): Likewise.
3288 * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): Delete.
3289 * opncls.c (bfd_alloc2, bfd_zalloc2): Delete.
3290 * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2),
3291 (bfd_alloc2, bfd_zalloc2): Delete.
3292 (_bfd_mul_overflow): Define.
3293 * libbfd.h: Regenerate.
3294
3295 2020-02-19 Alan Modra <amodra@gmail.com>
3296
3297 * elf.c (bfd_section_from_shdr): Use bfd_zalloc rather than
3298 bfd_zalloc2.
3299 (assign_section_numbers): Likewise.
3300 (elf_map_symbols): Likewise, and bfd_alloc rather than bfd_alloc2.
3301 (_bfd_elf_map_sections_to_segments): Use bfd_malloc rather than
3302 bfd_malloc2, size_t amt, and unsigned tls_count.
3303 (rewrite_elf_program_header): Use bfd_malloc and size_t amt.
3304 * elflink.c (elf_create_symbuf): Use bfd_malloc.
3305 (elf_output_implib): Use bfd_alloc.
3306
3307 2020-02-19 Alan Modra <amodra@gmail.com>
3308
3309 * bfd.c (struct bfd): Move format and direction to other
3310 bitfields. Add "size".
3311 * bfdio.c (bfd_get_size): Cache size when not writing file.
3312 * opncls.c (bfd_get_debug_link_info_1): Allow for bfd_get_size
3313 returning zero, ie. unknown.
3314 (bfd_get_alt_debug_link_info): Likewise.
3315 * bfd-in2.h: Regenerate.
3316
3317 2020-02-19 Alan Modra <amodra@gmail.com>
3318
3319 * coffgen.c (_bfd_coff_get_external_symbols): Don't call
3320 bfd_get_file_size twice.
3321 (_bfd_coff_read_string_table): Allow for bfd_get_file_size
3322 zero, ie. unknown, return.
3323 * elf-attrs.c (_bfd_elf_parse_attributes): Likewise.
3324 * elfcode.h (elf_swap_shdr_in): Likewise.
3325 (elf_object_p): Don't call bfd_get_file_size twice and correct
3326 file size check.
3327
3328 2020-02-19 Alan Modra <amodra@gmail.com>
3329
3330 * mach-o.c (bfd_mach_o_flatten_sections): Return a bfd_boolean,
3331 FALSE if memory alloc fails. Adjust calls.
3332 * som.c (som_prep_for_fixups): Likewise.
3333 * vms-alpha.c (alpha_vms_add_fixup_lp, alpha_vms_add_fixup_ca),
3334 (alpha_vms_add_fixup_qr, alpha_vms_add_fixup_lr),
3335 (alpha_vms_add_lw_reloc, alpha_vms_add_qw_reloc): Likewise.
3336 * som.c (som_build_and_write_symbol_table): Return via error_return
3337 on seek failure.
3338 * vms-alpha.c (VEC_APPEND): Adjust for vector_grow1 changes.
3339 (VEC_APPEND_EL): Delete.
3340 (vector_grow1): Return pointer to element. Catch overflow.
3341 Return NULL on memory allocation failure.
3342 (alpha_vms_add_fixup_lp): Replace VEC_APPEND_EL with VEC_APPEND.
3343 (alpha_vms_add_fixup_ca): Likewise.
3344 (alpha_vms_link_add_object_symbols): Check VEC_APPEND result
3345 before using.
3346 * elf.c (bfd_section_from_shdr): Check bfd_zalloc2 result.
3347
3348 2020-02-19 Alan Modra <amodra@gmail.com>
3349
3350 * aix386-core.c (aix386_core_file_p): Use size_t for "amt".
3351 * aout-target.h (object_p): Likewise.
3352 * aout-tic30.c (tic30_aout_object_p): Likewise.
3353 * aoutx.h (some_aout_object_p, mkobject, make_empty_symbol),
3354 (emit_stringtab, write_syms, link_hash_table_create),
3355 (aout_link_write_other_symbol): Likewise.
3356 * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p),
3357 (bfd_ar_hdr_from_filesystem, _bfd_write_archive_contents),
3358 (_bfd_compute_and_write_armap): Likewise.
3359 * archures.c (bfd_arch_list): Likewise.
3360 * bfd.c (bfd_record_phdr): Likewise.
3361 * binary.c (binary_canonicalize_symtab): Likewise.
3362 * cisco-core.c (cisco_core_file_validate): Likewise.
3363 * coff-arm.c (coff_arm_link_hash_table_create, find_thumb_glue),
3364 (find_arm_glue, record_arm_to_thumb_glue),
3365 (record_thumb_to_arm_glue): Likewise.
3366 * coff-ppc.c (ppc_coff_link_hash_table_create, record_toc),
3367 (ppc_allocate_toc_section): Likewise.
3368 * coff-rs6000.c (_bfd_xcoff_mkobject, _bfd_xcoff_archive_p): Likewise.
3369 * coff-sh.c (sh_relax_section): Likewise.
3370 * coff64-rs6000.c (xcoff64_archive_p): Likewise.
3371 * coffcode.h (handle_COMDAT, coff_new_section_hook),
3372 (coff_set_alignment_hook, coff_mkobject),
3373 (coff_compute_section_file_positions): Likewise.
3374 * coffgen.c (coff_make_empty_symbol, coff_bfd_make_debug_symbol),
3375 (coff_find_nearest_line_with_names),
3376 ( bfd_coff_set_symbol_class): Likewise.
3377 * cofflink.c (_bfd_coff_link_hash_table_create),
3378 (_bfd_coff_link_input_bfd): Likewise.
3379 * dwarf1.c (alloc_dwarf1_unit, alloc_dwarf1_func): Likewise.
3380 * dwarf2.c (read_abbrevs, read_attribute_value, add_line_info),
3381 (build_line_info_table, sort_line_sequences),
3382 (line_info_add_include_dir, line_info_add_file_name),
3383 (decode_line_info, scan_unit_for_symbols, parse_comp_unit),
3384 (place_sections, _bfd_dwarf2_slurp_debug_info): Likewise.
3385 * ecoff.c (_bfd_ecoff_mkobject, _bfd_ecoff_make_empty_symbol),
3386 (_bfd_ecoff_find_nearest_line),
3387 (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
3388 * ecofflink.c (bfd_ecoff_debug_init): Likewise.
3389 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Likewise.
3390 * elf-m10300.c (mn10300_elf_relax_section),
3391 (elf32_mn10300_link_hash_table_create): Likewise.
3392 * elf-strtab.c (_bfd_elf_strtab_init): Likewise.
3393 * elf.c (make_mapping, copy_elf_program_header): Likewise.
3394 * elf32-arm.c (elf32_arm_link_hash_table_create),
3395 (elf32_arm_setup_section_lists, elf32_arm_check_relocs),
3396 (elf32_arm_new_section_hook): Likewise.
3397 * elf32-avr.c (elf_avr_new_section_hook),
3398 (elf32_avr_link_hash_table_create, get_local_syms),
3399 (elf32_avr_setup_section_lists): Likewise.
3400 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create),
3401 (bfin_link_hash_table_create): Likewise.
3402 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
3403 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
3404 * elf32-csky.c (csky_elf_link_hash_table_create),
3405 (csky_elf_check_relocs, elf32_csky_setup_section_lists): Likewise.
3406 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
3407 * elf32-hppa.c (elf32_hppa_link_hash_table_create),
3408 (elf32_hppa_setup_section_lists, get_local_syms): Likewise.
3409 * elf32-i386.c (elf_i386_check_relocs): Likewise.
3410 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
3411 * elf32-m32r.c (m32r_elf_link_hash_table_create),
3412 (m32r_elf_check_relocs): Likewise.
3413 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create),
3414 (elf32_m68hc11_setup_section_lists),
3415 (elf32_m68hc11_size_stubs): Likewise.
3416 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
3417 * elf32-metag.c (elf_metag_link_hash_table_create),
3418 (elf_metag_setup_section_lists): Likewise.
3419 * elf32-microblaze.c (microblaze_elf_link_hash_table_create),
3420 (microblaze_elf_check_relocs): Likewise.
3421 * elf32-nds32.c (nds32_elf_link_hash_table_create),
3422 (nds32_elf_check_relocs): Likewise.
3423 * elf32-nios2.c (nios2_elf32_setup_section_lists),
3424 (get_local_syms, nios2_elf32_check_relocs),
3425 (nios2_elf32_link_hash_table_create): Likewise.
3426 * elf32-or1k.c (or1k_elf_link_hash_table_create),
3427 (or1k_elf_check_relocs): Likewise.
3428 * elf32-ppc.c (ppc_elf_modify_segment_map, update_plt_info): Likewise.
3429 * elf32-pru.c (pru_elf32_link_hash_table_create): Likewise.
3430 * elf32-s390.c (elf_s390_link_hash_table_create),
3431 (elf_s390_check_relocs): Likewise.
3432 * elf32-score.c (score_elf_create_got_section),
3433 (s3_elf32_score_new_section_hook),
3434 (elf32_score_link_hash_table_create): Likewise.
3435 * elf32-score7.c (score_elf_create_got_section),
3436 (s7_elf32_score_new_section_hook): Likewise.
3437 * elf32-sh.c (sh_elf_link_hash_table_create),
3438 (sh_elf_check_relocs): Likewise.
3439 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create),
3440 (elf32_tic6x_new_section_hook, elf32_tic6x_check_relocs): Likewise.
3441 * elf32-tilepro.c (tilepro_elf_link_hash_table_create),
3442 (tilepro_elf_check_relocs): Likewise.
3443 * elf32-v850.c (remember_hi16s_reloc): Likewise.
3444 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
3445 * elf32-xtensa.c (elf_xtensa_link_hash_table_create),
3446 (elf_xtensa_new_section_hook): Likewise.
3447 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create),
3448 (get_got_entry, elf64_alpha_check_relocs): Likewise.
3449 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
3450 * elf64-ia64-vms.c (elf64_ia64_object_p): Likewise.
3451 * elf64-mmix.c (mmix_elf_new_section_hook): Likewise.
3452 * elf64-ppc.c (ppc64_elf_new_section_hook),
3453 (ppc64_elf_link_hash_table_create, update_local_sym_info),
3454 (update_plt_info, ppc64_elf_check_relocs): Likewise.
3455 * elf64-s390.c (elf_s390_link_hash_table_create),
3456 (elf_s390_check_relocs): Likewise.
3457 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
3458 * elflink.c (bfd_elf_link_record_local_dynamic_symbol),
3459 (_bfd_elf_link_find_version_dependencies, elf_link_add_object_symbols),
3460 (elf_link_add_archive_symbols, compute_bucket_count),
3461 (bfd_elf_size_dynsym_hash_dynstr, _bfd_elf_link_hash_table_create),
3462 (bfd_elf_get_bfd_needed_list, elf_link_swap_symbols_out),
3463 (bfd_elf_final_link): Likewise.
3464 * elfnn-aarch64.c (elfNN_aarch64_link_hash_table_create),
3465 (elfNN_aarch64_setup_section_lists, elfNN_aarch64_check_relocs),
3466 (elfNN_aarch64_new_section_hook): Likewise.
3467 * elfnn-ia64.c (elfNN_ia64_object_p): Likewise.
3468 * elfnn-riscv.c (riscv_elf_link_hash_table_create),
3469 (riscv_elf_check_relocs): Likewise.
3470 * elfxx-mips.c (_bfd_mips_elf_new_section_hook),
3471 (_bfd_mips_elf_add_symbol_hook, _bfd_mips_elf_check_relocs),
3472 (_bfd_mips_elf_modify_segment_map, _bfd_mips_elf_set_section_contents),
3473 (_bfd_mips_elf_link_hash_table_create): Likewise.
3474 * elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create),
3475 (_bfd_sparc_elf_check_relocs),
3476 (_bfd_sparc_elf_new_section_hook): Likewise.
3477 * elfxx-tilegx.c (tilegx_elf_link_hash_table_create),
3478 (tilegx_elf_check_relocs): Likewise.
3479 * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Likewise.
3480 * format.c (bfd_check_format_matches): Likewise.
3481 * hash.c (_bfd_stringtab_init): Likewise.
3482 * ihex.c (ihex_scan): Likewise.
3483 * irix-core.c (irix_core_core_file_p): Likewise.
3484 * linker.c (bfd_wrapped_link_hash_lookup),
3485 (_bfd_generic_link_hash_table_create),
3486 (_bfd_generic_reloc_link_order): Likewise.
3487 * lynx-core.c (lynx_core_file_p): Likewise.
3488 * netbsd-core.c (netbsd_core_file_p): Likewise.
3489 * osf-core.c (osf_core_core_file_p): Likewise.
3490 * pdp11.c (some_aout_object_p, mkobject, make_empty_symbol),
3491 (link_hash_table_create, aout_link_write_other_symbol): Likewise.
3492 * peXXigen.c (_bfd_XX_bfd_copy_private_section_data): Likewise.
3493 * peicode.h (pe_mkobject): Likewise.
3494 * ppcboot.c (ppcboot_mkobject, ppcboot_canonicalize_symtab): Likewise.
3495 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
3496 * sco5-core.c (read_uarea): Likewise.
3497 * som.c (hppa_som_gen_reloc_type, som_object_p, som_prep_headers),
3498 (som_write_fixups, som_write_space_strings, som_write_symbol_strings),
3499 (som_finish_writing, som_canonicalize_symtab, som_new_section_hook),
3500 (som_bfd_copy_private_section_data, bfd_som_set_section_attributes),
3501 (bfd_som_attach_aux_hdr, som_write_armap): Likewise.
3502 * srec.c (srec_scan): Likewise.
3503 * syms.c (_bfd_generic_make_empty_symbol): Likewise.
3504 * targets.c (bfd_target_list): Likewise.
3505 * tekhex.c (first_phase, tekhex_sizeof_headers): Likewise.
3506 * trad-core.c (trad_unix_core_file_p): Likewise.
3507 * vms-alpha.c (vms_initialize, alpha_vms_bfd_link_hash_table_create),
3508 (vms_new_section_hook): Likewise.
3509 * wasm-module.c (wasm_make_empty_symbol): Likewise.
3510 * xcofflink.c (xcoff_get_section_contents),
3511 (_bfd_xcoff_bfd_link_hash_table_create, xcoff_set_import_path),
3512 (xcoff_find_function, bfd_xcoff_link_record_set, xcoff_build_ldsym),
3513 (bfd_xcoff_size_dynamic_sections, xcoff_link_input_bfd): Likewise.
3514
3515 2020-02-19 Alan Modra <amodra@gmail.com>
3516
3517 * elfxx-riscv.c (riscv_multi_letter_ext_valid_p): Don't use C99.
3518
3519 2020-02-13 H.J. Lu <hongjiu.lu@intel.com>
3520
3521 * plugin.c (try_load_plugin): Make plugin_list_iter an argument
3522 and use it if it isn't NULL. Remove has_plugin_p argument. Add
3523 a build_list_p argument. Don't search plugin_list. Short circuit
3524 when building the plugin list.
3525 (has_plugin): Renamed to has_plugin_list.
3526 (bfd_plugin_set_plugin): Don't set has_plugin.
3527 (bfd_plugin_specified_p): Check plugin_list instead.
3528 (build_plugin_list): New function.
3529 (load_plugin): Call build_plugin_list and use plugin_list.
3530
3531 2020-02-11 H.J. Lu <hongjiu.lu@intel.com>
3532
3533 PR binutils/25355
3534 * plugin.c (try_claim): Always clean up for LTO wrapper.
3535 (try_load_plugin): Treat each object as independent. Create a
3536 copy for plugin name.
3537
3538 2020-02-11 Nick Clifton <nickc@redhat.com>
3539
3540 * elf32-msp430.c (msp430_final_link_relocate): Always use longs
3541 for addresses in print statements.
3542 (msp430_elf_relax_delete_bytes): Likewise.
3543 (msp430_elf_relax_add_words): Likewise.
3544 (msp430_elf_relax_section): Likewise.
3545
3546 2020-02-11 H.J. Lu <hongjiu.lu@intel.com>
3547
3548 * plugin.c (add_symbols): Clear plugin_data memory.
3549
3550 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
3551
3552 PR binutils/25355
3553 * configure.ac (HAVE_EXECUTABLE_SUFFIX): New AC_DEFINE.
3554 (EXECUTABLE_SUFFIX): Likewise.
3555 * config.in: Regenerated.
3556 * configure: Likewise.
3557 * plugin.c (bfd_plugin_close_and_cleanup): Removed.
3558 (plugin_list_entry): Add all_symbols_read, cleanup_handler,
3559 gcc, lto_wrapper, resolution_file, resolution_option, gcc_env,
3560 real_bfd, real_nsyms, real_syms, lto_nsyms and lto_syms.
3561 (get_lto_wrapper): New.
3562 (setup_lto_wrapper_env): Likewise.
3563 (current_plugin): Likewise.
3564 (register_all_symbols_read): Likewise.
3565 (register_cleanup): Likewise.
3566 (get_symbols): Likewise.
3567 (add_input_file): Likewise.
3568 (bfd_plugin_close_and_cleanup): Likewise.
3569 (claim_file): Removed.
3570 (register_claim_file): Set current_plugin->claim_file.
3571 (add_symbols): Make a copy of LTO symbols. Set lto_nsyms and
3572 lto_syms in current_plugin.
3573 (try_claim): Use current_plugin->claim_file. Call LTO plugin
3574 all_symbols_read handler. Copy real symbols to plugin_data.
3575 Call LTO plugin cleanup handler. Clean up for LTO wrapper.
3576 (try_load_plugin): Don't reuse the previous plugin for LTO
3577 wrapper. Set up GCC LTO wrapper if possible. Don't set
3578 plugin_list_iter->claim_file.
3579 (bfd_plugin_canonicalize_symtab): Use real LTO symbols if
3580 possible.
3581 * plugin.h (plugin_data_struct): Add real_bfd, real_nsyms and
3582 real_syms.
3583
3584 2020-02-10 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3585
3586 * elf32-msp430.c (msp430_elf_relax_section): Before relaxing a branch,
3587 check if previous instruction matches a conditional jump inserted
3588 earlier. Invert conditional jump and delete branch in this case.
3589
3590 2020-02-10 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3591
3592 * elf32-msp430.c (msp430_elf_relax_add_two_words): Rename to
3593 msp430_elf_relax_add_words. Support insertion of either one or two
3594 words.
3595 (msp430_elf_relax_section): Catch opcode of 0x3c00 when relocation
3596 needs to be grown. Handle insertion of branch instruction to replace
3597 jump.
3598
3599 2020-02-10 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3600
3601 * elf32-msp430.c (msp430_final_link_relocate): Add printf statements for
3602 debugging relocations.
3603 (msp430_elf_relax_delete_bytes): Likewise.
3604 (msp430_elf_relax_add_two_words): Likewise.
3605 (msp430_elf_relax_section): Likewise.
3606
3607 2020-02-10 Alan Modra <amodra@gmail.com>
3608
3609 * archures.c: Wrap overlong z80 comments.
3610 * bfd-in2.h: Regenerate.
3611
3612 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
3613
3614 PR 25469
3615 * archures.c: Add GBZ80 and Z80N machine values.
3616 * reloc.c: Add BFD_RELOC_Z80_16_BE.
3617 * coff-z80.c: Add support for new reloc.
3618 * coffcode.h: Add support for new machine values.
3619 * cpu-z80.c: Add support for new machine names.
3620 * elf32-z80.c: Add support for new reloc.
3621 * bfd-in2.h: Regenerate.
3622 * libbfd.h: Regenerate.
3623
3624 2020-02-07 Nick Clifton <nickc@redhat.com>
3625
3626 PR 23932
3627 * elf.c (rewrite_elf_program_header): Do not complain if no
3628 sections are mapped to a segment.
3629
3630 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3631
3632 PR ld/25490
3633 * elflink.c (_bfd_elf_gc_mark_extra_sections): Issue an error
3634 for garbage collection on __patchable_function_entries section
3635 without linked-to section.
3636
3637 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
3638
3639 PR gas/25381
3640 * bfd-in2.h: Regenerated.
3641 * elflink.c (_bfd_elf_gc_mark_extra_sections): Call mark_hook
3642 on section if gc_mark of any of its linked-to sections is set
3643 and don't set gc_mark again.
3644 * section.c (asection): Add linked_to_symbol_name to map_head
3645 union.
3646
3647 2020-02-06 Maciej W. Rozycki <macro@wdc.com>
3648
3649 * elf32-v850.c (v850_elf_relax_section): Fix the index used for
3650 reporting an unrecognized instruction with R_V850_LONGJUMP.
3651
3652 2020-02-05 Alan Modra <amodra@gmail.com>
3653
3654 * elf64-ppc.c (ppc_stub_plt_branch): Match comment with reality.
3655
3656 2020-02-04 Alan Modra <amodra@gmail.com>
3657
3658 * elf32-ppc.c (ppc_elf_relocate_section): After applying
3659 R_PPC_VLE_ADDR20, goto copy_reloc.
3660
3661 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
3662
3663 * bfd-in2.h: Regenerated.
3664 * section.c (SEC_ASSEMBLER_SECTION_ID): Fix a typo in comments.
3665
3666 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
3667
3668 PR gas/25380
3669 * bfd-in2.h: Regenerated.
3670 * ecoff.c (bfd_debug_section): Add section_id.
3671 * section.c (bfd_section): Add section_id.
3672 (SEC_ASSEMBLER_SECTION_ID): New.
3673 (BFD_FAKE_SECTION): Add section_id.
3674
3675 2020-02-01 Nick Clifton <nickc@redhat.com>
3676
3677 * config.bfd: Move the c30-aout and tic30-aout targets onto the
3678 obsolete list.
3679
3680 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
3681
3682 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): DW_EH_PE_datarel
3683 encodings are relative to the GOT on nios2, too.
3684
3685 2020-01-31 Alan Modra <amodra@gmail.com>
3686
3687 * Makefile.am (elf32-target.h, elf64-target.h): Don't use a temp
3688 file. Use $< and $@ in rules.
3689 (elf32-aarch64.c, elf64-aarch64.c): Likewise.
3690 (elf32-ia64.c, elf64-ia64.c): Likewise.
3691 (elf32-riscv.c, elf64-riscv.c): Likewise.
3692 (peigen.c, pepigen.c, pex64igen.c): Likewise.
3693 (elf32-aarch64.c, elf64-aarch64.c): Don't emit $srcdir on #line.
3694 (elf32-riscv.c, elf64-riscv.c): Likewise, and use $(SED).
3695 (elf32-ia64.c, elf64-ia64.c): Do emit #line.
3696 (peigen.c, pepigen.c, pex64igen.c): Likewise.
3697 * Makefile.in: Regenerate.
3698
3699 2020-01-31 Alan Modra <amodra@gmail.com>
3700
3701 PR 4110
3702 * elf.c (setup_group): Don't clear entire section contents,
3703 just the padding after group flags. Release alloc'd memory
3704 after a seek or read failure.
3705
3706 2020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
3707
3708 * peXXigen.c (pe_is_repro): New function.
3709 (_bfd_XX_print_private_bfd_data_common): Note timestamp is
3710 actually a build hash if PE_IMAGE_DEBUG_TYPE_REPRO is present.
3711
3712 2020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
3713
3714 * peXXigen.c (debug_type_names): Add names for new debug data type
3715 values.
3716
3717 2020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
3718
3719 * peXXigen.c (pe_print_debugdata): Fix the iteration variable for
3720 inner loop. Fix a memory leak.
3721
3722 2020-01-30 Alan Modra <amodra@gmail.com>
3723
3724 * coffgen.c (coff_real_object_p): Don't clear obj_coff_keep_syms
3725 or obj_coff_keep_strings here.
3726 (coff_get_normalized_symtab): Free external syms directly.
3727 * xcofflink.c (xcoff_link_input_bfd): Restore obj_coff_keep_syms
3728 on error exit path.
3729
3730 2020-01-27 Jim Wilson <jimw@sifive.com>
3731
3732 * cpu-riscv.c (riscv_scan): New.
3733 (N): Change bfd_default_scan to riscv_scan.
3734
3735 2020-01-27 Andreas Schwab <schwab@suse.de>
3736
3737 * Makefile.am (ALL_MACHINES): Remove cpu-plugin.lo.
3738 (ALL_MACHINES_CFILES): Remove cpu-plugin.c.
3739 * Makefile.in: Regenerate.
3740 * cpu-plugin.c: Remove.
3741 * archures.c (enum bfd_architecture): Remove bfd_arch_plugin.
3742 (bfd_plugin_arch): Remove declaration.
3743 * bfd-in2.h: Regenerate.
3744 * po/SRC-POTFILES.in: Regenerate.
3745
3746 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
3747 Alan Modra <amodra@gmail.com>
3748
3749 PR ld/25458
3750 * elflink.c (_bfd_elf_gc_mark_rsec): Mark all weak aliases.
3751
3752 2020-01-24 Jim Wilson <jimw@sifive.com>
3753
3754 * elfxx-riscv.c (riscv_get_prefix_class): Format s case like others.
3755 (riscv_parse_prefixed_ext): Fix s extension comment and reword to
3756 avoid over long line.
3757
3758 2020-01-24 Nick Clifton <nickc@redhat.com>
3759
3760 PR 25447
3761 * coffgen.c (_bfd_coff_close_and_cleanup): Do not clear the keep
3762 syms and keep strings flags as these may have been set in order to
3763 prevent a bogus call to free.
3764
3765 2020-01-23 Nick Clifton <nickc@redhat.com>
3766
3767 * po/fr.po: Updated French translation.
3768
3769 2020-01-23 Alan Modra <amodra@gmail.com>
3770
3771 PR 25444
3772 * elf.c (assign_file_positions_for_load_sections): Avoid divide
3773 by zero when p_align is zero.
3774
3775 2020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
3776
3777 * bfd/elfnn-riscv.c (riscv_skip_prefix): New.
3778 (riscv_prefix_cmp): Likewise.
3779 (riscv_non_std_ext_p): Deleted.
3780 (riscv_std_sv_ext_p): Likewise.
3781 (riscv_non_std_sv_ext_p): Likewise.
3782 (riscv_merge_non_std_and_sv_ext): Rename to...
3783 (riscv_merge_multi_letter_ext): and modified to use riscv_prefix_cmp.
3784 (riscv_merge_arch_attr_info): Replace 3 calls to
3785 riscv_merge_non_std_and_sv_ext with single call to
3786 riscv_merge_multi_letter_ext.
3787 * bfd/elfxx-riscv.c (riscv_parse_std_ext): Break if we
3788 encounter a 'z' prefix.
3789 (riscv_get_prefix_class): New function, return prefix class based
3790 on first few characters of input string.
3791 (riscv_parse_config): New structure to factor out minor differences
3792 in extension class parsing behaviour.
3793 (riscv_parse_sv_or_non_std_ext): Rename to...
3794 (riscv_parse_prefixed_ext): and parameterise with
3795 riscv_parse_config.
3796 (riscv_std_z_ext_strtab, riscv_std_s_ext_strtab): New.
3797 (riscv_multi_letter_ext_valid_p): New.
3798 (riscv_ext_x_valid_p, riscv_ext_z_valid_p, riscv_ext_s_valid_p): New.
3799 (riscv_parse_subset): Delegate all non-single-letter parsing work
3800 to riscv_parse_prefixed_ext.
3801 * bfd/elfxx-riscv.h (riscv_isa_ext_class): New type.
3802 (riscv_get_prefix_class): Declare.
3803
3804 2020-01-22 Alan Modra <amodra@gmail.com>
3805
3806 * elf64-ppc.c (struct ppc_link_hash_table): Add tga_group.
3807 (ppc64_elf_archive_symbol_lookup): Extract __tls_get_addr_opt for
3808 __tls_get_addr_desc.
3809 (ppc64_elf_size_stubs): Add section for linker generated
3810 __tls_get_addr_desc wrapper function. Loop at least once if
3811 generating this function.
3812 (emit_tga_desc, emit_tga_desc_eh_frame): New functions.
3813 (ppc64_elf_build_stubs): Generate __tls_get_addr_desc.
3814
3815 2020-01-22 Alan Modra <amodra@gmail.com>
3816
3817 * elf64-ppc.h (struct ppc64_elf_params): Add no_tls_get_addr_regsave.
3818 * elf64-ppc.c (struct ppc_link_hash_table): Add tga_desc and
3819 tga_desc_fd.
3820 (is_tls_get_addr): Match tga_desc and tga_desc_df too.
3821 (STDU_R1_0R1, ADDI_R1_R1): Define.
3822 (tls_get_addr_prologue, tls_get_addr_epilogue): New functions.
3823 (ppc64_elf_tls_setup): Set up tga_desc and tga_desc_fd. Indirect
3824 tga_desc_fd to opt_fd, and tga_desc to opt. Set
3825 no_tls_get_addr_regsave.
3826 (branch_reloc_hash_match): Add hash3 and hash4.
3827 (ppc64_elf_tls_optimize): Handle tga_desc_fd and tga_desc too.
3828 (ppc64_elf_size_dynamic_sections): Likewise.
3829 (ppc64_elf_relocate_section): Likewise.
3830 (plt_stub_size, build_plt_stub): Likewise. Size regsave
3831 __tls_get_addr stub.
3832 (build_tls_get_addr_stub): Build regsave __tls_get_addr stub and
3833 eh_frame.
3834 (ppc_size_one_stub): Handle tga_desc_fd and tga_desc too. Size
3835 eh_frame for regsave __tls_get_addr.
3836
3837 2020-01-22 Alan Modra <amodra@gmail.com>
3838
3839 * elf64-ppc.c (ppc64_elf_size_stubs): Correct condition under
3840 which __tls_get_addr calls will be eliminated.
3841
3842 2020-01-20 Nick Clifton <nickc@redhat.com>
3843
3844 * po/pt.po: Updates Portuguese translation.
3845 * po/ru.po: Updated Russian translation.
3846 * po/uk.po: Updated Ukranian translation.
3847
3848 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
3849
3850 PR ld/25416
3851 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Support
3852 "rex leal x@tlsdesc(%rip), %reg" and "call *x@tlsdesc(%eax)" in
3853 X32 mode.
3854 (elf_x86_64_relocate_section): In x32 mode, for GDesc -> LE
3855 transition, relax "rex leal x@tlsdesc(%rip), %reg" to
3856 "rex movl $x@tpoff, %reg", for GDesc -> IE transition, relax
3857 "rex leal x@tlsdesc(%rip), %reg" to
3858 "rex movl x@gottpoff(%rip), %eax". For both transitions, relax
3859 "call *(%eax)" to "nopl (%rax)".
3860
3861 2020-01-20 Alan Modra <amodra@gmail.com>
3862
3863 * elf64-ppc.c (LD_R11_0R3, CMPDI_R11_0, STD_R11_0R1, LD_R11_0R1),
3864 (MTLR_R11): Don't define.
3865 (LD_R0_0R3, CMPDI_R0_0): Define.
3866 (build_tls_get_addr_stub): Don't use r11 in stub.
3867
3868 2020-01-20 Alan Modra <amodra@gmail.com>
3869
3870 * elf64-ppc.c (ppc_elf_hash_entry): New function, use throughout file.
3871 (defined_sym_val, is_tls_get_addr): Likewise.
3872
3873 2020-01-18 Nick Clifton <nickc@redhat.com>
3874
3875 * version.m4 (BFD_VERSION): Set to 2.34.50.
3876 * configure: Regenerate.
3877 * po/bfd.pot: Regenerate.
3878
3879 2020-01-18 Nick Clifton <nickc@redhat.com>
3880
3881 Binutils 2.34 branch created.
3882
3883 2020-01-17 Christian Biesinger <cbiesinger@google.com>
3884
3885 * coff-arm.c: Fix spelling error (seperate).
3886 * elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling
3887 error (seperate).
3888 * sysdep.h (strnlen): Fix spelling error (seperate).
3889
3890 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
3891
3892 PR 20694
3893 * pdp11.c (TARGET_PAGE_SIZE): Set to 8192.
3894
3895 2020-01-15 Alan Modra <amodra@gmail.com>
3896
3897 PR 25384
3898 * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment.
3899 (ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies
3900 of function symbols unless dot symbols are present. Do warn
3901 whenever one is created, regardles of whether a PLT entry is
3902 also emitted for the function symbol.
3903
3904 2020-01-14 Alan Modra <amodra@gmail.com>
3905
3906 * som.c (som_bfd_count_ar_symbols): Error when file position
3907 of symbols on chains is not strictly increasing.
3908
3909 2020-01-14 Alan Modra <amodra@gmail.com>
3910
3911 * vms.h (VMS_DEBUG): Define as 0.
3912 * vms-alpha.c (image_write): Move debug output after bounds check.
3913 Tidy bounds check.
3914 (_bfd_vms_slurp_eihd): Warning fix.
3915 (_bfd_vms_slurp_etir): Init variables to avoid bogus warnings.
3916
3917 2020-01-13 Alan Modra <amodra@gmail.com>
3918
3919 * vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even
3920 for "ignored" records.
3921
3922 2020-01-13 Alan Modra <amodra@gmail.com>
3923
3924 * wasm-module.c (wasm_scan_name_function_section): Formatting.
3925 Delete asect name check. Move asect NULL check to wasm_object_p.
3926 Correct bounds check of sizes against end. Replace uses of
3927 bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use
3928 just one bfd_release.
3929 (wasm_scan): Don't use malloc/strdup for section names,
3930 bfd_alloc instead. Simplify code prefixing section name.
3931 Formatting. Don't attempt to free memory here..
3932 (wasm_object_p): ..do so here.
3933
3934 2020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
3935
3936 PR ld/22269
3937 * elf32-arm.c (elf32_arm_final_link_relocate): Use
3938 UNDEFWEAK_NO_DYNAMIC_RELOC.
3939 (allocate_dynrelocs_for_symbol): Likewise.
3940
3941 2020-01-10 Tamar Christina <tamar.christina@arm.com>
3942
3943 PR 25210
3944 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass.
3945
3946 2020-01-10 Alan Modra <amodra@gmail.com>
3947
3948 * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
3949
3950 2020-01-09 Nick Clifton <nickc@redhat.com>
3951
3952 PR 25221
3953 * bfd.c (bfd_convert_section_contents): Check for a compress
3954 header size that is larger than the actual section size.
3955
3956 2020-01-08 Alan Modra <amodra@gmail.com>
3957
3958 PR 25351
3959 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
3960 after removing sections.
3961
3962 2020-01-06 Jim Wilson <jimw@sifive.com>
3963
3964 PR 25205
3965 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
3966 check for !bfd_link_pic (info).
3967 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
3968 <R_RISCV_JAL>: Add comment.
3969 (_bfd_riscv_relax_section): For plt.offset check, add check for
3970 bfd_link_pic (info). Add comment.
3971
3972 2020-01-06 Alan Modra <amodra@gmail.com>
3973
3974 * format.c (bfd_check_format_matches): Ignore bfd_error on target
3975 match failures. Don't init to bfd_error_wrong_format before
3976 calling _bfd_check_format.
3977
3978 2020-01-06 Alan Modra <amodra@gmail.com>
3979
3980 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
3981 status rather than exiting on stack overflow or underflow.
3982 (_bfd_vms_slurp_etir): Adjust to suit.
3983
3984 2020-01-06 Alan Modra <amodra@gmail.com>
3985
3986 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
3987
3988 2020-01-06 Alan Modra <amodra@gmail.com>
3989
3990 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
3991 command. Check name offset is within command.
3992 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
3993 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
3994 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
3995 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
3996 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
3997 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
3998 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
3999 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
4000 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
4001 (bfd_mach_o_read_segment): Similarly.
4002 (bfd_mach_o_read_thread): Properly bound check thread struct.
4003 Don't repeat checks on second loop.
4004 (bfd_mach_o_read_command): Fail on invalid command length.
4005
4006 2020-01-04 Alan Modra <amodra@gmail.com>
4007
4008 * format.c (bfd_check_format_matches): Add preserve_match.
4009 Save initial bfd state in "preserve", matched bfd state in
4010 "preserve_match". Save just the first match. Release
4011 bfd_alloc memory. Restore and finish preserved state as
4012 appropriate on all function exit paths.
4013
4014 2020-01-04 Alan Modra <amodra@gmail.com>
4015
4016 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
4017
4018 2020-01-04 Alan Modra <amodra@gmail.com>
4019
4020 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
4021 match too.
4022
4023 2020-01-03 Nick Clifton <nickc@redhat.com>
4024
4025 PR 25307
4026 (bfd_pef_parse_function_stubs): Correct the test that ensures that
4027 there is enough data remaining in the code buffer before
4028 attempting to read a function stub.
4029
4030 2020-01-03 Nick Clifton <nickc@redhat.com>
4031
4032 PR 25308
4033 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
4034 return value from bfd_malloc.
4035 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
4036 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
4037 (elf32_arm_filter_cmse_symbols): Likewise.
4038 (elf32_arm_write_section): Likewise.
4039 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
4040 (bfd_mach_o_follow_dsym): Likewise.
4041 * pef.c (bfd_pef_print_loader_section): Likewise.
4042 (bfd_pef_scan_start_address): Likewise.
4043 (bfd_pef_parse_function_stubs): Likewise.
4044 (bfd_pef_parse_symbols): Likewise.
4045
4046 2020-01-03 Sergei Trofimovich <siarheit@google.com>
4047
4048 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
4049 on binary inputs ld/PR25316.
4050 (is_ia64_elf): new helper to filter on ia64 objects.
4051
4052 2020-01-03 Jan Beulich <jbeulich@suse.com>
4053
4054 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
4055 in parameter names.
4056 (bfd_mach_o_scan): Insert underscore in two variable names.
4057
4058 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
4059
4060 * Makefile.am: Add z80-elf target support.
4061 * configure.ac: Likewise.
4062 * targets.c: Likewise.
4063 * Makefile.in: Regenerate.
4064 * configure: Regenerate.
4065 * config.bfd: Add z80-elf target support and new arches: ez80 and
4066 z180.
4067 * elf32-z80.c: New file.
4068 * archures.c: Add new z80 architectures: eZ80 and Z180.
4069 * coffcode.h: Likewise.
4070 * cpu-z80.c: Likewise.
4071 * coff-z80.c: Add new relocations for Z80 target and local label
4072 check.
4073 * reloc.c: Add new relocs.
4074 * bfd-in2.h: Regenerate.
4075 * libbfd.h: Regenerate.
4076
4077 2020-01-02 Tamar Christina <tamar.christina@arm.com>
4078
4079 PR 25210
4080 PR 24753
4081 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
4082
4083 2020-01-01 Alan Modra <amodra@gmail.com>
4084
4085 Update year range in copyright notice of all files.
4086
4087 For older changes see ChangeLog-2019
4088 \f
4089 Copyright (C) 2020 Free Software Foundation, Inc.
4090
4091 Copying and distribution of this file, with or without modification,
4092 are permitted in any medium without royalty provided the copyright
4093 notice and this notice are preserved.
4094
4095 Local Variables:
4096 mode: change-log
4097 left-margin: 8
4098 fill-column: 74
4099 version-control: never
4100 End:
This page took 0.110227 seconds and 5 git commands to generate.