]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/ChangeLog
nm: heap-buffer-overflow at elfcode.h:1507 in bfd_elf64_slurp_symbol_table
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
1 2023-09-27 Nick Clifton <nickc@redhat.com>
2
3 PR 30885
4 * elfcode.h (elf_slurp_symbol_table): Compute the symcount for non
5 dynamic symbols in the same way as _bfd_elf_get_symtab_upper_bound.
6
7 2023-09-13 Jacob Navia <jacob@jacob.remcomp.fr>
8
9 * elf.c (_bfd_elf_init_reloc_shdr): Don't segfault on alloc fail.
10
11 2023-09-13 Alan Modra <amodra@gmail.com>
12
13 * elf-strtab.c (_bfd_elf_strtab_init): In the event of memory
14 allocation failure, make sure that the hash table is freed.
15
16 2023-08-30 Tom Tromey <tom@tromey.com>
17
18 PR binutils/30703
19 * doc/webassembly.texi, doc/bfd.texi: Revert 8bb23cdb, adding
20 parameters back to @node.
21
22 2023-08-04 Nick Clifton <nickc@redhat.com>
23
24 PR 15545
25 * cache.c (bfd_cache_close_all): Extend description to note that
26 all files will be closed, even those that are not cacheable.
27 Add code to prevent a possible infinite loop.
28
29 2023-08-02 Tom Tromey <tromey@adacore.com>
30
31 * pei-x86_64.c (PEI_HEADERS): Do not define.
32 * pei-loongarch64.c (PEI_HEADERS): Do not define.
33 * pei-aarch64.c (PEI_HEADERS): Do not define.
34 * pe-x86_64.c (PEI_HEADERS): Do not define.
35 * pe-aarch64.c (PEI_HEADERS): Do not define.
36 * libpei.h (_LIBPEI_H): Add include guard.
37 * coff-x86_64.c (PEI_HEADERS): Do not check.
38 * coff-loongarch64.c (PEI_HEADERS): Do not check.
39 * coff-aarch64.c (PEI_HEADERS): Do not check.
40
41 2023-07-24 Johannes Schauer Marin Rodrigues <josch@debian.org>
42
43 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): If inserting a
44 timestamp, use the value held in the SOURCE_DATE_EPOCH environment
45 variable, if it is defined.
46
47 2023-07-24 Jose E. Marchesi <jose.marchesi@oracle.com>
48
49 * reloc.c: New reloc BFD_RELOC_BPF_DISPCALL32.
50 * elf64-bpf.c (bpf_reloc_type_lookup): Handle the new reloc.
51 * libbfd.h (bfd_reloc_code_real_names): Regenerate.
52
53 2023-07-09 Fangrui Song <maskray@google.com>
54
55 PR 30592
56 * section.c: Define SEC_ELF_LARGE.
57 * bfd-in2.h: Regenerate.
58 * elf64-x86-64.c (elf_x86_64_section_flags, elf_x86_64_fake_sections,
59 elf_x86_64_copy_private_section_data): New.
60
61 2023-07-03 Nick Clifton <nickc@redhat.com>
62
63 * version.m4: Update version number to 2.41.50.
64 * configure: Regenerate.
65 * bfd/po/bfd.pot: Regenerate.
66
67 2023-07-03 Nick Clifton <nickc@redhat.com>
68
69 2.41 Branch Point.
70
71 2023-06-19 Nick Clifton <nickc@redhat.com>
72
73 PR 30560
74 * elf64-x86-64.c (elf_x86_64_relocate_section): Add more checks
75 for a valid relocation offset.
76
77 2023-06-07 Nick Clifton <nickc@redhat.com>
78
79 PR 30499
80 * elflink.c (elf_link_add_object_symbols): Add a message
81 indicating that alignment and size discrepancies between the
82 definition of common symbols and normal symbols are serious and
83 should be investigated.
84
85 2023-05-31 Tristan Gingold <tgingold@free.fr>
86
87 PR 30444
88 * coffcode.h (coff_write_object_contents): Handle base64 encoding
89 on PE. Also check for too large string table.
90 * coffgen.c (extract_long_section_name): New function extracted
91 from ...
92 (make_a_section_from_file): ... here. Add support for base64
93 long section names.
94 (decode_base64): New function.
95
96 2023-05-17 Luca Bacci <luca.bacci@outlook.com>
97
98 PR 30421
99 * cofflink.c (_decoration_hash_newfunc): New function.
100 (_bfd_coff_link_hash_table_init): Call it.
101 * libcoff-in.h (struct coff_link_hash_table): Add decoration_hash
102 field.
103 (struct decoration_hash_entry): Declare.
104 (_decoration_hash_newfunc): Prototype.
105 * libcoff.h: Regenerate.
106
107 2023-05-16 Oleg Tolmatcev <oleg.tolmatcev@gmail.com>
108
109 * libcoff-in.h (struct coff_tdata): Add section_by_index and
110 section_by_target_index hash tables.
111 * libcoff.h: Regenerate.
112 * coffcode.h (htab_hash_section_index): New function.
113 (htab_eq_section_index): New function.
114 (htab_hash_section_target_index): New function.
115 (htab_eq_section_target_index): New function.
116 (coff_mkobject_hool): Create the hash tables.
117 * peicode.h: Add the same new functions.
118 (pe_mkobject_hook): Create the hash tables.
119 * coff-x86_64.c (coff_amd64_rtype_to_howto): Use the new tables to
120 speed up lookups.
121 * coffgen.c (coff_section_from_bfd_index): Likewise.
122 (_bfd_coff_close_and_cleanup): Delete the hash tables.
123
124 2023-05-10 Luca Bonissi <gcc@scarsita.it>
125
126 PR 30422
127 * elf32-or1k.c (or1k_elf_relocate_section): Prescan for
128 R_OR1K_GOT_AHI16 relocs as they may occur after R_OR1K_GOT16
129 relocs.
130
131 2023-05-05 Nick Clifton <nickc@redhat.com>
132
133 PR 30354
134 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): If any debug
135 sections are marked then rerun the extra marking in order to pick
136 up any dependencies.
137
138 2023-05-03 Oleg Tolmatcev <oleg.tolmatcev@gmail.com>
139
140 * archive.c (_bfd_write_archive_contents): Use a larger buffer in
141 order to improve efficiency.
142
143 2023-05-03 Oleg Tolmatcev <oleg.tolmatcev@gmail.com>
144
145 * coffcode.h (coff_read_word_from_buffer): New function.
146 * coffcode.h (COFF_CHECKSUM_BUFFER_SIZE): New constant.
147 * coffcode.h (coff_compute_checksum): Improve speed by reducing
148 the number of seeks and reads used.
149
150 2023-04-24 Nick Clifton <nickc@redhat.com>
151
152 * po/la.po: New Georgian translation.
153
154 2023-04-17 Nick Clifton <nickc@redhat.com>
155
156 PR 30142
157 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Do not force the .rsrc
158 section to be writeable.
159
160 2023-03-30 Nick Clifton <nickc@redhat.com>
161
162 PR 30285
163 * elf.c (_bfd_elf_slurp_version_tables): Fail if no version
164 definitions are allocated.
165
166 2023-02-27 Felix Willgerodt <felix.willgerodt@intel.com>
167
168 * elf64-x86-64.c (elf_x86_64_grok_psinfo): Check for
169 elf_external_linux_prpsinfo32_ugid32.
170
171 2023-02-23 Fangrui Song <i@maskray.me>
172
173 * elfnn-riscv.c (struct riscv_elf_link_hash_table): Add params.
174 (riscv_elfNN_set_options): New.
175 (riscv_info_to_howto_rela): Check relax_gp.
176 (_bfd_riscv_relax_section): Likewise.
177 * elfxx-riscv.h (struct riscv_elf_params): New.
178 (riscv_elf32_set_options): New.
179 (riscv_elf64_set_options): New.
180
181 2023-02-23 Nick Clifton <nickc@redhat.com>
182 Alan Modra <amodra@gmail.com>
183
184 PR 30150
185 * dwarf2.c (comp_unit_contains_address): Renamed to ...
186 (comp_unit_may_contain_address): this, and added code to return
187 true if the CU's ranges have not yet been computed.
188 (_bfd_dwarf2_find_nearest_line_with_alt): Use the renamed
189 function, simplifying code in the process.
190
191 2023-02-21 Nick Clifton <nickc@redhat.com>
192
193 * opncls.c (bfd_fill_in_gnu_debuglink_section): Update
194 description.
195
196 2023-02-17 Tom Tromey <tom@tromey.com>
197
198 * doc/doc.str (FUNCTION): Call func.
199
200 2023-02-17 Tom Tromey <tom@tromey.com>
201
202 * opncls.c: Hoist the SECTION comment.
203
204 2023-02-17 Tom Tromey <tom@tromey.com>
205
206 * opncls.c (bfd_get_debug_link_info_1, separate_debug_file_exists)
207 (separate_alt_debug_file_exists, find_separate_debug_file)
208 (get_build_id, get_build_id_name, check_build_id_file): Don't use
209 chew comments.
210
211 2023-02-17 Tom Tromey <tom@tromey.com>
212
213 * doc/doc.str (SYNOPSIS): Use collapse_whitespace.
214 * doc/chew.c (collapse_whitespace): New function.
215 (main): Register collapse_whitespace.
216
217 2023-02-07 Tom Tromey <tom@tromey.com>
218
219 * bfd.c, cache.c, compress.c, opncls.c: Remove RETURNS from
220 documentation comments.
221 * doc/doc.str, doc/proto.str (RETURNS): Remove.
222
223 2023-02-07 Tom Tromey <tom@tromey.com>
224
225 * syms.c (bfd_decode_symclass, bfd_is_undefined_symclass)
226 (bfd_symbol_info): Reorder documentation comment.
227 * doc/doc.str (synopsis_seen): New variable.
228 (SYNOPSIS): Set synopsis_seen. Emit @deftypefn.
229 (DESCRIPTION): Use synopsis_seen.
230 * doc/chew.c (catstrif): New function.
231 (main): Add catstrif intrinsic.
232 (compile): Recognize "variable" command.
233
234 2023-02-07 Tom Tromey <tom@tromey.com>
235
236 * doc/proto.str (external, internal, ifinternal, ENUMEQ, ENUMDOC):
237 Update.
238 * doc/chew.c (internalmode): Remove.
239 (add_intrinsic_variable): New function.
240 (main): Add internalmode as intrinsic.
241 (internal_mode): Remove global.
242 (maybecatstr): Update.
243 (free_words): Free variables.
244
245 2023-02-07 Tom Tromey <tom@tromey.com>
246
247 * doc/chew.c (pcu) <l>: Now intptr_t.
248 (internal_mode, istack, isp): Likewise.
249 (bang, atsign): Use intptr_t.
250
251 2023-02-07 Tom Tromey <tom@tromey.com>
252
253 * doc/proto.str (SYNOPSIS): Don't use paramstuff.
254 * doc/chew.c (paramstuff): Remove.
255 (main): Don't add paramstuff intrinsic.
256
257 2023-02-07 Tom Tromey <tom@tromey.com>
258
259 * doc/doc.str, doc/proto.str: Add copyright header.
260
261 2023-02-07 Tom Tromey <tom@tromey.com>
262
263 * doc/webassembly.texi (File layout): Remove second argument from
264 @node.
265 * doc/bfd.texi: Use single-argument @node everywhere.
266
267 2023-02-07 Tom Tromey <tom@tromey.com>
268
269 * Makefile.in: Rebuild.
270 * doc/local.mk (%D%/chew.stamp): Don't use H_CFLAGS.
271
272 2023-01-24 Nick Clifton <nickc@redhat.com>
273
274 PR 29998
275 * cofflink.c (_bfd_coff_generic_relocate_section): Add an
276 assertion that the output section is set for defined, global
277 symbols.
278
279 2023-01-17 Xianmiao Qu <cooper.qu@linux.alibaba.com>
280
281 * elf32-csky.c (elf32_csky_merge_attributes): Don't save
282 and restore the ARCH attribute, it will actually clear
283 the ARCH attribute.
284 (csky_elf_merge_private_bfd_data): Store the machine flag
285 correctly.
286
287 2023-01-13 Nick Clifton <nickc@redhat.com>
288
289 * po/ro.po: Updated Romainian translation.
290
291 2023-01-11 Nick Clifton <nickc@redhat.com>
292
293 PR 29988
294 * dwarf2.c (read_indexed_address): Fix check for an out of range
295 offset.
296
297 2023-01-06 Nick Clifton <nickc@redhat.com>
298
299 * po/ru.po: Updated Russian translation.
300
301 2023-01-03 Himal <himalr@proton.me>
302
303 PR 29947
304 * bfdio.c (_bfd_real_fopen): Do not add a prefix to the Windows'
305 nul device filename.
306
307 2023-01-03 Nick Clifton <nickc@redhat.com>
308
309 * po/fr.po: Updated French trabslation.
310 * po/uk.po: Updated Ukrainian trabslation.
311
312 2022-12-31 Nick Clifton <nickc@redhat.com>
313
314 * 2.40 branch created.
315
316 2022-12-23 Nick Clifton <nickc@redhat.com>
317
318 PR 29936
319 * dwarf2.c (concat_filename): Fix check for a directory index off
320 the end of the directory table.
321
322 2022-12-21 Nick Clifton <nickc@redhat.com>
323
324 * po/ro.po: Updated Romanian translation.
325
326 2022-12-06 Nick Clifton <nickc@redhat.com>
327
328 PR 29852
329 * elf32-arm.c (cmse_scan): Check for NULL entries in the
330 sym_hashes array.
331 (elf32_arm_gc_mark_extra_sections): Likewise.
332
333 2022-12-05 Nick Clifton <nickc@redhat.com>
334
335 PR 29848
336 * vms-alpha.c (parse_module): Fix potential out of bounds memory
337 access.
338
339 2022-12-01 Nick Clifton <nickc@redhat.com>
340
341 PR 25202
342 * bfd.c (VerilogDataEndianness): New variable.
343 (verilog_write_record): Use VerilogDataEndianness, if set, to
344 choose the endianness of the output.
345 (verilog_write_section): Adjust the address by the data width.
346
347 2022-11-21 Nick Clifton <nickc@redhat.com>
348
349 PR 29764
350 * cpu-arm.c (scan): Accept machine names prefixed with "arm:".
351 * cpu-aarch64.c (scan): Accept machine names prefixed with "aarch64:".
352
353 2022-10-19 Nick Clifton <nickc@redhat.com>
354
355 PR 29699
356 * elf.c (_bfd_elf_slurp_version_tables): Fail if the sh_info field
357 of the section header is zero.
358
359 2022-09-09 Nick Clifton <nickc@redhat.com>
360
361 PR 29532
362 * elf.c (setup_group): Do not return false if there is no group
363 information available.
364
365 2022-09-02 Aaron Merey <amerey@redhat.com>
366
367 * aout-target.h (MY_find_nearest_line_with_alt): New macro.
368 * bfd-in2.h: Regenerate.
369 * bfd.c (bfd_find_nearest_line_with_alt): New macro.
370 * binary.c (binary_find_nearest_line_with_alt): New macro.
371 * coff-rs6000.c (_bfd_xcoff_find_nearest_line_with_alt): New macro.
372 (rs6000_xcoff64_vec): Add coff_find_nearest_line_with_alt.
373 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Calls
374 _bfd_dwarf2_find_nearest_line_with_alt.
375 (_bfd_dwarf2_find_nearest_line_with_alt): New function. Implements the
376 former _bfd_dwarf2_find_nearest_line. Adds parameter alt_filename.
377 Attempt to open alt_filename and use it as the .dwz file if not NULL.
378 * elf-bfd.h (_bfd_elf_find_nearest_line_with_alt): New declaration.
379 * elf.c (_bfd_elf_find_nearest_line): Calls
380 _bfd_elf_find_nearest_line_with_alt.
381 (_bfd_elf_find_nearest_line_with_alt): New function. Implements the
382 former _bfd_elf_find_nearest_line. Adds parameter alt_filename.
383 * elf32-mips.c (bfd_elf32_find_nearest_line_with_alt): New macro.
384 * elf64-mips.c (bfd_elf64_find_nearest_line_with_alt): New macro.
385 * elfn32-mips.c (bfd_elf32_find_nearest_line_with_alt): New macro.
386 * elfxx-mips.h (_bfd_mips_elf_find_nearest_line_with_alt): New macro.
387 * elfxx-target.h (bfd_elfNN_find_nearest_line_with_alt): New macro.
388 * i386mdos.c (msdos_find_nearest_line_with_alt): New macro.
389 * ihex.c (ihex_find_nearest_line_with_alt): New macro.
390 * libbfd-in.h (_bfd_nosymbols_find_nearest_line_with_alt): New
391 declaration.
392 (_bfd_dwarf2_find_nearest_line_with_alt): New declaration.
393 * libbfd.h: Regenerate.
394 * libcoff-in.h (coff_find_nearest_line_with_alt): New macro.
395 * libcoff.h: Regenerate.
396 * libecoff.h (_bfd_ecoff_find_nearest_line_with_alt): New macro.
397 * mach-o.h (bfd_mach_o_find_nearest_line_with_alt): New macro.
398 * mmo.c (mmo_find_nearest_line_with_alt): New macro.
399 * pef.c (bfd_pef_find_nearest_line_with_alt): New macro.
400 * plugin.c (bfd_plugin_find_nearest_line_with_alt): New macro.
401 * ppcboot.c (ppcboot_find_nearest_line_with_alt): New macro.
402 * som.h (som_find_nearest_line_with_alt): New macro.
403 * srec.c (srec_find_nearest_line_with_alt): New macro.
404 * syms.c (_bfd_nosymbols_find_nearest_line_with_alt): New function.
405 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Add symbol for
406 NAME##_find_nearest_line_with_alt.
407 (_bfd_find_nearest_line_with_alt): Add declaration.
408 * tekhex.c (tekhex_find_nearest_line_with_alt): New macro.
409 * verilog.c (verilog_find_nearest_line_with_alt): New macro.
410 * vms-alpha.c (_bfd_vms_find_nearest_line_with_alt): New macro.
411 * wasm-module.c (wasm_find_nearest_line_with_alt): New macro.
412 * xsym.c (bfd_sym_find_nearest_line_with_alt): New macro.
413
414 2022-09-02 Frederic Cambus <fred@statdns.com>
415
416 * config.bfd (arm-*-openbsd*): Restore target.
417
418 2022-08-30 Nick Clifton <nickc@redhat.com>
419
420 PR 29529
421 * dwarf2.c (struct line_info_table): Add new field:
422 use_dir_and_file_0.
423 (concat_filename): Use new field to help select the correct table
424 slot.
425 (read_formatted_entries): Do not skip entry 0.
426 (decode_line_info): Set new field depending upon the version of
427 DWARF being parsed. Initialise filename based upon the setting of
428 the new field.
429
430 2022-08-22 Frederic Cambus <fred@statdns.com>
431
432 * config.bfd (aarch64-*-openbsd*): Add target.
433
434 2022-08-03 Nick Clifton <nickc@redhat.com>
435
436 PR 29389
437 * bfd.c (BFD_CLOSED_BY_CACHE): New bfd flag.
438 * cache.c (bfd_cache_delete): Set BFD_CLOSED_BY_DELETE on the
439 closed bfd.
440 (bfd_cache_lookup_worker): Clear BFD_CLOSED_BY_DELETE on the newly
441 reopened bfd.
442 * opncls.c (bfd_set_filename): Refuse to change the name of a bfd
443 that has been closed by bfd_cache_delete. Mark changed bfds as
444 uncacheable.
445 * bfd-in2.h: Regenerate.
446
447 2022-07-29 Nick Clifton <nickc@redhat.com>
448
449 PR 29424
450 * dwarf2.c (read_attribute_value): Handle DW_FORM_rnglistx and
451 DW_FORM_loclistx.
452
453 2022-07-26 Nick Clifton <nickc@redhat.com>
454
455 * elfnn-loongarch.c (loongarch_elf_relocate_section): Fix
456 indentation.
457
458 2022-07-08 Nick Clifton <nickc@redhat.com>
459
460 * 2.39 branch created.
461
462 2022-05-19 Yvan Roux <yvan.roux@foss.st.com>
463
464 PR 25713
465 * bfdio.c (_bfd_real_fopen): Delete ccs string.
466
467 2022-04-27 John Baldwin <jhb@FreeBSD.org>
468
469 * elf.c (elfcore_grok_freebsd_note): Handle NT_ARM_TLS notes.
470
471 2022-04-25 Nick Clifton <nickc@redhat.com>
472
473 PR 29072
474 * elflink.c (bfd_elf_size_dynamic_sections): Display a note to the
475 user that the current ehaviour of creating an executable stack
476 because of a missing .note.GNU-stack section is deprecated and
477 will be changed in a future release.
478
479 2022-04-20 Clément Chigot <clement.chigot@atos.net>
480
481 * coff-rs6000.c (xcoff_reloc_type_noop): Add info argument.
482 (xcoff_reloc_type_fail): Likewise.
483 (xcoff_reloc_type_pos): Likewise.
484 (xcoff_reloc_type_neg): Likewise.
485 (xcoff_reloc_type_rel): Likewise.
486 (xcoff_reloc_type_toc): Likewise.
487 (xcoff_reloc_type_ba): Likewise.
488 (xcoff_reloc_type_crel): Likewise.
489 (xcoff_reloc_type_tls): Likewise.
490 (xcoff_reloc_type_br): Add stub handler.
491 (xcoff_ppc_relocate_section): Add info to
492 xcoff_calculate_relocation.
493 (xcoff_stub_indirect_call_code): New constant.
494 (xcoff_stub_shared_call_code): Likewise.
495 (bfd_xcoff_backend_data): Add stub code fields.
496 (bfd_pmac_xcoff_backend_data): Likewise.
497 * coff64-rs6000.c (xcoff64_reloc_type_br): Add stub handler.
498 (xcoff64_ppc_relocate_section): Add info to
499 xcoff64_calculate_relocation.
500 (xcoff64_stub_indirect_call_code): New constant.
501 (xcoff64_stub_shared_call_code): Likewise.
502 (bfd_xcoff_backend_data): Add stub code fields.
503 (bfd_xcoff_aix5_backend_data): Likewise.
504 * libxcoff.h (struct xcoff_backend_data_rec): Add stub fields.
505 (bfd_xcoff_stub_indirect_call_code): New define.
506 (bfd_xcoff_stub_indirect_call_size): New define.
507 (bfd_xcoff_stub_shared_call_code): New define.
508 (bfd_xcoff_stub_shared_call_size): New define.
509 (xcoff_reloc_function): Add info argument.
510 (enum xcoff_stub_type): New enum.
511 (struct xcoff_stub_hash_entry): New structure.
512 * xcofflink.c (struct xcoff_link_hash_table): Add stub hash
513 table and params fields.
514 (xcoff_stub_hash_entry): New define.
515 (xcoff_stub_hash_lookup): New define.
516 (stub_hash_newfunc): New function.
517 (_bfd_xcoff_bfd_link_hash_table_free): Free the new stub hash
518 table.
519 (_bfd_xcoff_bfd_link_hash_table_create): Create the new stub
520 hash table.
521 (xcoff_link_add_symbols): Save rawsize for XTY_SD.
522 (bfd_xcoff_link_init): New function.
523 (xcoff_stub_csect_name): New function.
524 (xcoff_stub_get_csect_in_range): New function.
525 (xcoff_stub_name): New function.
526 (bfd_xcoff_get_stub_entry): New function.
527 (bfd_xcoff_type_of_stub): New function.
528 (xcoff_add_stub): New function.
529 (xcoff_build_one_stub): New function.
530 (bfd_xcoff_size_stubs): New function.
531 (bfd_xcoff_build_stubs): New function.
532 (xcoff_stub_create_relocations): New function.
533 (xcoff_link_input_bfd): Adapt relocations to stub.
534 (xcoff_write_global_symbol): Adapt to new TOC entries generated
535 for stubs.
536 (_bfd_xcoff_bfd_final_link): Handle stub file.
537 * xcofflink.h (struct bfd_xcoff_link_params): New structure.
538
539 2022-04-20 Clément Chigot <clement.chigot@atos.net>
540
541 * coff-rs6000.c (_bfd_xcoff_put_ldsymbol_name): Write len in
542 ldinfo->strings instead of directly in the output_bfd.
543 * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise.
544 * xcofflink.c (struct xcoff_link_hash_table): Remove ldrel_count
545 field. Add ldinfo field.
546 (xcoff_mark_symbol): Adjust to new ldinfo field.
547 (xcoff_mark): Likewise.
548 (bfd_xcoff_link_count_reloc): Likewise.
549 (xcoff_build_loader_section): Split into two functions: one that
550 build the loader section (this function) and one that only size
551 it...
552 (xcoff_size_loader_section): ... (this function).
553 (bfd_xcoff_size_dynamic_sections): Adapt to new ldinfo field.
554 Move the part where the dynamic sections are build to ...
555 (bfd_xcoff_build_dynamic_sections): ... this function.
556 * xcofflink.h: Add bfd_xcoff_build_dynamic_sections prototype.
557
558 2022-04-13 Alexander von Gluck IV <kallisti5@unixzen.com>
559
560 * config.bfd (x86-haiku): Add i386_pei_vec as a selectable format.
561
562 2022-04-08 Nick Clifton <nickc@redhat.com>
563
564 PR 29038
565 * coffgen.c (coff_find_nearest_line_with_names): Fix typo
566 retrieving saved bias.
567
568 2022-04-07 Mark Harmstone <mark@harmstone.com>
569
570 * coff-i386.c (in_reloc_p): Add R_SECTION.
571 (howto_table): Add R_SECTION.
572 (coff_pe_i386_relocation_section): Add support for R_SECTION.
573 (coff_i386_reloc_type_lookup): Add support for
574 BFD_RELOC_16_SECCIDX.
575 * coff-x86_64.c (in_reloc_p): Add R_SECTION.
576 (howto_table): Add R_SECTION.
577 (coff_pe_amd64_relocation_section): Add support for R_SECTION.
578 (coff_amd64_reloc_type_lookup): Add support for
579 BFD_RELOC_16_SECCIDX.
580 * reloc.c: Add BFD_RELOC_16_SECIDX.
581 * bfd-in2.h: Regenerate.
582 * libbfd.h: Regenerate.
583
584 2022-04-01 John Baldwin <jhb@FreeBSD.org>
585
586 * elf-bfd.h (elfcore_write_x86_segbases): New.
587 * elf.c (elfcore_grok_freebsd_note): Add pseudosections for
588 NT_FREEBSD_X86_SEGBASES register notes.
589 (elfcore_write_x86_segbases): New.
590 (elfcore_write_register_note): Write NT_FREEBSD_X86_SEGBASES
591 register notes.
592
593 2022-04-01 John Baldwin <jhb@FreeBSD.org>
594
595 * elf.c (elfcore_grok_freebsd_note): Remove checks for namesz.
596
597 2022-03-22 Steiner H Gunderson <steinar+sourceware@gunderson.no>
598
599 * dwarf2.c (_bfd_dwarf2_find_nearest_line): if a function name is
600 found, but no line number info, then return a result of 2.
601
602 2022-03-21 Steiner H Gunderson <steinar+sourceware@gunderson.no>
603
604 PR 28978
605 * dwarf2.c (scan_unit_for_symbols): When performing second pass,
606 check to see if the function or variable being processed is the
607 same as the previous one.
608
609 2022-03-18 Viorel Preoteasa <viorel.preoteasa@gmail.com>
610
611 PR 28924
612 * elf32-arm.c (THM_MAX_FWD_BRANCH_OFFSET): Fix definition.
613 (THM2_MAX_FWD_BRANCH_OFFSET): Likewise.
614
615 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
616
617 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES):
618 Add cpu-amdgcn.c.
619 (BFD64_BACKENDS): Add elf64-amdgcn.lo.
620 (BFD64_BACKENDS_CFILES): Add elf64-amdgcn.c.
621 * Makefile.in: Re-generate.
622 * cpu-amdgcn.c: New.
623 * elf64-amdgcn.c: New.
624 * archures.c (bfd_architecture): Add bfd_arch_amdgcn and related
625 mach defines.
626 (bfd_amdgcn_arch): New.
627 (bfd_archures_list): Add bfd_amdgcn_arch.
628 * bfd-in2.h: Re-generate.
629 * config.bfd: Handle amdgcn* target.
630 * configure.ac: Handle amdgcn_elf64_le_vec.
631 * configure: Re-generate.
632 * elf-bfd.h (elf_target_id): Add AMDGCN_ELF_DATA.
633 * targets.c (amdgcn_elf64_le_vec): New.
634 (_bfd_target_vector): Add amdgcn_elf64_le_vec.
635
636 2022-03-01 Torbjörn Svensson <torbjorn.svensson@st.com>
637 Fred Eisele <fredrick.eisele@gmail.com>
638
639 PR 25713
640 * bfdio.c (_bfd_real_fopen): Fix typo.
641
642 2022-03-01 Nick Clifton <nickc@redhat.com>
643
644 PR 28848
645 * elf32-arm.c (elf32_arm_merge_eabi_attributes): If the first
646 input bfd has a Tag_ABI_HardFP_use set to 3 but does not also have
647 TAG_FP_arch set then reset the TAG_ABI_HardFP_use.
648
649 2022-02-28 Torbjörn Svensson <torbjorn.svensson@st.com>
650 Fred Eisele <fredrick.eisele@gmail.com>
651
652 PR 25713
653 * bfdio.c (_bfd_real_fopen): Fix handling of paths longer than 260
654 characters on Windows hosts.
655
656 2022-02-28 Nick Clifton <nickc@redhat.com>
657
658 PR 28886
659 * config.bfd: Update error message for obsolete configurations.
660
661 2022-02-17 Nick Clifton <nickc@redhat.com>
662
663 * po/sr.po: Updated Serbian translation.
664
665 2022-02-16 Fangrui Song <maskray@google.com>
666 Nick Clifton <nickc@redhat.com>
667
668 PR ld/28841
669 * bfd-in2.h (struct bfd_section): Add type.
670 (discarded_section): Add field.
671 * elf.c (elf_fake_sections): Handle bfd_section::type.
672 * section.c (BFD_FAKE_SECTION): Add field.
673 * mri.c (mri_draw_tree): Update function call.
674
675 2022-02-11 Michael Forney <mforney@mforney.org>
676
677 * bfd.c (bfd_set_gp_value): Remove return with expression
678 in void function.
679
680 2022-02-09 Nick Clifton <nickc@redhat.com>
681
682 * config.bfd: Move pending obsolesence targets into the definitely
683 obsolete list.
684
685 2022-02-02 Nick Clifton <nickc@redhat.com>
686
687 PR 28834
688 * dwarf2.c (read_section): Change the heuristic that checks for
689 overlarge dwarf debug info sections.
690
691 2022-02-02 Stafford Horne <shorne@gmail.com>
692
693 PR 28735
694 * elf32-or1k.c (or1k_elf_got16_no_overflow_howto): Define.
695 (or1k_elf_relocate_section): Use new howto instead of trying to
696 mask out relocation bits.
697
698 2022-01-24 Roland McGrath <mcgrathr@google.com>
699
700 * doc/local.mk (%D%/bfdver.texi): Add mkdir command.
701
702 2022-01-24 Nick Clifton <nickc@redhat.com>
703
704 * po/fr.po: Updated French translation.
705 * po/ro.po: Updated Romanian translation.
706 * po/uk.po: Updated Ukranian translation.
707
708 2022-01-22 Nick Clifton <nickc@redhat.com>
709
710 * version.m4: Change to 2.38.50.
711 * configure: Regenerate.
712 * po/bfd.pot: Regenerate.
713
714 2022-01-22 Nick Clifton <nickc@redhat.com>
715
716 * 2.38 release branch created.
717
718 2022-01-17 Nick Clifton <nickc@redhat.com>
719
720 * Makefile.in: Regenerate.
721 * configure: Regenerate.
722 * doc/Makefile.in: Regenerate.
723 * po/bfd.pot: Regenerate.
724
725 2021-12-15 Nikita Popov <npv1310@gmail.com>
726
727 PR 28687
728 * dwarf1.c (parse_die): Fix undefined behaviour in range tests.
729
730 2021-11-17 Nick Clifton <nickc@redhat.com>
731
732 PR 28452
733 * elf.c (assign_file_positions_for_non_load_sections): Replace
734 assertion with a warning message.
735
736 2021-10-19 Nick Clifton <nickc@redhat.com>
737
738 * linker.c (_bfd_generic_link_add_one_symbol): Test for a NULL
739 name before checking to see if the symbol is __gnu_lto_slim.
740 * archive.c (_bfd_compute_and_write_armap): Likewise.
741
742 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
743
744 * configure: Regenerate.
745
746 2021-09-15 Andrew Burgess <andrew.burgess@embecosm.com>
747
748 * archures.c (bfd_arch_list): Use 'char *' instead of 'char **'
749 when calculating space for a string list.
750
751 2021-09-014 Cupertino Miranda <cmiranda@synopsys.com>
752 Claudiu Zissulescu <claziss@synopsys.com>
753
754 * arc-got.h (arc_static_sym_data): New structure.
755 (get_static_sym_data): New function.
756 (relocate_fix_got_relocs_for_got_info): Move the computation fo
757 symbol value and section to above introduced function, and use
758 this new function.
759
760 2021-09-07 Luis Machado <luis.machado@linaro.org>
761
762 Revert: [AArch64] MTE corefile support
763
764 2021-05-21 Luis Machado <luis.machado@linaro.org>
765
766 * elf.c (elfcore_make_memtag_note_section): New function.
767 (elfcore_grok_note): Handle NT_MEMTAG note types.
768
769 2021-09-07 Nick Clifton <nickc@redhat.com>
770
771 PR 28305
772 * elf32-xtensa.c (elf_xtensa_do_reloc): Add check for put of range
773 reloc.
774
775 PR 28303
776 * elfxx-riscv.c (riscv_elf_add_sub_reloc): Add check for out of
777 range relocs.
778
779 2021-08-10 Nick Clifton <nickc@redhat.com>
780
781 * po/sr.po: Updated Serbian translation.
782
783 2021-07-18 Nick Clifton <nickc@redhat.com>
784
785 * config.bfd: Move pending obsoletion targets to obsolete list.
786
787 2021-07-16 Giulio Benetti <giulio.benetti@benettiengineering.com>
788
789 * elf32-or1k.c (or1k_elf_relocate_section): Use a separate entry
790 in switch case R_OR1K_INSN_REL_26 where we need to check for
791 !SYMBOL_CALLS_LOCAL() instead of !SYMBOL_REFERENCES_LOCAL().
792
793 2021-07-14 Clément Chigot <clement.chigot@atos.net>
794
795 * libxcoff.h (struct xcoff_dwsect_name): Add DWARF name.
796 * coff-rs6000.c (xcoff_dwsect_names): Update.
797 * coffcode.h (sec_to_styp_flags): Likewise.
798 (coff_new_section_hook): Likewise.
799
800 2021-07-10 Alan Modra <amodra@gmail.com>
801
802 * dwarf2.c (read_address): Remove accidental commit.
803 (read_ranges): Compare offset rather than pointers.
804
805 2021-07-08 Nick Clifton <nickc@redhat.com>
806
807 * po/pt.po: Updated Portuguese translation.
808
809 2021-07-07 Nick Clifton <nickc@redhat.com>
810
811 * elfcode.h (elf_swap_symbol_out): Revert accidental change that
812 removed an abort if the shndx pointer is NULL.
813
814 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
815
816 * sysdep.h [!ENABLE_NLS]: Prevent inclusion of <libintl.h> on
817 Solaris.
818
819 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
820
821 * configure.ac: Check for strnlen declaration.
822 * configure, config.in: Regenerate.
823
824 2021-07-07 Nick Clifton <nickc@redhat.com>
825
826 PR 28051
827 * coff-rs6000.c (xcoff_reloc_type_tls): Reformat error messages in
828 order to fix problems when translating.
829 * cofflink.c (_bfd_coff_write_global_sym): Likewise.
830 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
831 Likewise.
832 * po/bfd.pot: Regenerate.
833
834 2021-07-06 Michael Matz <matz@suse.de>
835
836 PR ld/28021
837 * elfnn-riscv.c (riscv_relax_delete_bytes): Check for any
838 versioning.
839
840 2021-07-06 Alan Modra <amodra@gmail.com>
841
842 PR 28055
843 * elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED.
844
845 2021-07-05 Alan Modra <amodra@gmail.com>
846
847 PR 28055
848 * elf64-bpf.c (bpf_elf_generic_reloc): Use correct bfd for bfd_put
849 and bfd_put_32 calls. Correct section limit checks.
850
851 2021-07-03 Nick Clifton <nickc@redhat.com>
852
853 * version.m4: Update version number.
854 * configure: Regenerate.
855 * po/opcodes.pot: Regenerate.
856
857 2021-07-03 Nick Clifton <nickc@redhat.com>
858
859 * 2.37 release branch created.
860
861 2021-07-02 Nick Clifton <nickc@redhat.com>
862
863 PR 28046
864 * dwarf2.c (read_ranges): Check that range_ptr does not exceed
865 range_end.
866
867 2021-06-30 YunQiang Su <yunqiang.su@cipunited.com>
868
869 PR mips/28009
870 * bfd/elfxx-mips.c (_bfd_mips_elf_section_from_shdr,
871 _bfd_mips_elf_fake_sections): Mark LTO debug info as
872 SHT_MIPS_DWARF.
873
874 2021-06-29 Nick Clifton <nickc@redhat.com>
875
876 * config.bfd (obsolete configurations): Add netbsdpe.
877
878 2021-06-22 Nelson Chu <nelson.chu@sifive.com>
879
880 * elfnn-riscv.c (riscv_pcrel_hi_reloc): Added field to store
881 the original relocation type, in case the type is converted to
882 R_RISCV_HI20.
883 (riscv_pcrel_lo_reloc): Removed unused name field.
884 (riscv_pcrel_relocs): Added comments.
885 (riscv_zero_pcrel_hi_reloc): Removed unused input_bfd.
886 (riscv_record_pcrel_hi_reloc): Updated.
887 (riscv_record_pcrel_lo_reloc): Likewise.
888 (riscv_resolve_pcrel_lo_relocs): Likewise. Check the original
889 type of auipc, to make sure the %pcrel_lo without any addends.
890 Otherwise, report dangerous relocation error.
891 (riscv_elf_relocate_section): Updated above functions are changed.
892 For R_RISCV_GOT_HI20, report dangerous relocation error when addend
893 isn't zero.
894
895 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
896
897 PR ld/27998
898 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Count PLT for GOTOFF
899 relocation against IFUNC symbols.
900 (_bfd_x86_elf_adjust_dynamic_symbol): Likewise.
901
902 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
903
904 * elflink.c (bfd_elf_final_link): Correct DT_TEXTREL warning in
905 PDE.
906
907 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
908
909 * elf-properties.c (_bfd_elf_parse_gnu_properties): Handle
910 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
911 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
912 (elf_merge_gnu_properties): Likewise.
913
914 2021-06-11 Alan Modra <amodra@gmail.com>
915
916 PR 27952
917 * elf-bfd.h (struct elf_obj_tdata): Add is_pie.
918 * elflink.c (elf_link_add_object_symbols): Set is_pie.
919
920 2021-06-09 Nick Clifton <nickc@redhat.com>
921
922 PR 27666
923 * config.bfd: Do not add the sparc_elf32_vec or sparc_elf64_vec
924 vectors to Sparc Solaris2 targets.
925
926 2021-06-08 Michael Matz <matz@suse.de>
927
928 * elf.c (bfd_section_from_shdr): Set has_secondary_relocs flag.
929 (_bfd_elf_slurp_secondary_reloc_section): Use it for early-out.
930
931 2021-06-07 Jan Beulich <jbeulich@suse.com>
932
933 * dwarf2.c (read_ranges, read_rnglists): Add u suffix to constant.
934
935 2021-06-02 Alan Modra <amodra@gmail.com>
936
937 * elf-attrs.c (_bfd_elf_parse_attributes): Break out of loop if
938 subsection length is too small to cover tag and length field.
939
940 2021-05-31 Nelson Chu <nelson.chu@sifive.com>
941 Lifang Xia <lifang_xia@c-sky.com>
942
943 PR 27566
944 * elfnn-riscv.c (struct riscv_elf_link_hash_table): New integer pointer
945 to monitor the data segment phase.
946 (bfd_elfNN_riscv_set_data_segment_info): New function called by
947 after_allocation, to set the data_segment_phase from expld.dataseg.
948 (_bfd_riscv_relax_section): Don't relax when data_segment_phase is
949 exp_seg_relro_adjust (0x4).
950 * elfxx-riscv.h (bfd_elf32_riscv_set_data_segment_info): New extern.
951 (bfd_elf64_riscv_set_data_segment_info): Likewise
952
953 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
954
955 PR ld/27905
956 * elf32-i386.c: Don't include "libiberty.h".
957 (elf_howto_table): Revert commits a7664973b24 and 50c95a739c9.
958 (elf_i386_rtype_to_howto): Revert commit 50c95a739c9.
959 (elf_i386_info_to_howto_rel): Likewise.
960 (elf_i386_tls_transition): Likewise.
961 (elf_i386_relocate_section): Likewise.
962 * elf64-x86-64.c (x86_64_elf_howto_table): Revert commits
963 a7664973b24 and 50c95a739c9.
964 (elf_x86_64_rtype_to_howto): Revert commit 50c95a739c9.
965 * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Likewise.
966 * elfxx-x86.h (elf_x86_obj_tdata): Likewise.
967 (elf_x86_has_code16): Likewise.
968
969 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
970
971 PR ld/27905
972 * elf32-i386.c: Include "libiberty.h".
973 (elf_howto_table): Add 16-bit R_386_PC16 entry.
974 (elf_i386_rtype_to_howto): Add a BFD argument. Use 16-bit
975 R_386_PC16 if input has 16-bit mode instructions.
976 (elf_i386_info_to_howto_rel): Update elf_i386_rtype_to_howto
977 call.
978 (elf_i386_tls_transition): Likewise.
979 (elf_i386_relocate_section): Likewise.
980 * elf64-x86-64.c (x86_64_elf_howto_table): Add 16-bit
981 R_X86_64_PC16 entry.
982 (elf_x86_64_rtype_to_howto): Use 16-bit R_X86_64_PC16 if input
983 has 16-bit mode instructions.
984 * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Set
985 elf_x86_has_code16 if relocatable input is marked with
986 GNU_PROPERTY_X86_FEATURE_2_CODE16.
987 * elfxx-x86.h (elf_x86_obj_tdata): Add has_code16.
988 (elf_x86_has_code16): New.
989
990 2021-05-26 Nelson Chu <nelson.chu@sifive.com>
991
992 * elfxx-riscv.h (check_unknown_prefixed_ext): New bool.
993 * elfxx-riscv.c (riscv_parse_prefixed_ext): Do not check the
994 prefixed extension name if check_unknown_prefixed_ext is false.
995 * elfnn-riscv.c (riscv_merge_arch_attr_info): Set
996 check_unknown_prefixed_ext to false for linker.
997
998 2021-05-25 Nick Clifton <nickc@redhat.com>
999
1000 * elf32-arn.c (struct elf_arm_obj_tdata): Add num_entries field.
1001 (elf32_arm_num_entries): New macro.
1002 (elf32_arm_allocate_local_sym_info): Initialise the new field.
1003 Allocate arrays individually so that buffer overruns can be
1004 detected by memory checkers.
1005 (elf32_arm_create_local_iplt): Check num_entries.
1006 (elf32_arm_get_plt_info): Likewise.
1007 (elf32_arm_final_link_relocate): Likewise.
1008 (elf32_arm_check_relocs): Likewise.
1009 (elf32_arm_size_dynamic_sections): Likewise.
1010 (elf32_arm_output_arch_local_syms): Likewise.
1011
1012 2021-05-25 Nick Clifton <nickc@redhat.com>
1013
1014 * elf32-arm.c: Fix formatting.
1015
1016 2021-05-25 Alan Modra <amodra@gmail.com>
1017
1018 * elf-attrs.c (elf_attr_strdup): New function.
1019 (_bfd_elf_attr_strdup): Use it here.
1020 (elf_add_obj_attr_string): New function, extracted from..
1021 (bfd_elf_add_obj_attr_string): ..here.
1022 (elf_add_obj_attr_int_string): New function, extracted from..
1023 (bfd_elf_add_obj_attr_int_string): ..here.
1024 (_bfd_elf_parse_attributes): Don't allocate an extra byte for a
1025 string terminator. Instead ensure parsing doesn't go past
1026 end of sub-section. Use size_t variables for lengths.
1027
1028 2021-05-22 Alan Modra <amodra@gmail.com>
1029
1030 * libbfd.c (_bfd_safe_read_leb128): Remove length_return parameter.
1031 Replace data pointer with pointer to pointer. Increment pointer
1032 over bytes read.
1033 * libbfd-in.h (_bfd_safe_read_leb128): Update prototype.
1034 * elf-attrs.c (_bfd_elf_parse_attributes): Adjust to suit. Be
1035 careful not to increment data pointer past end. Remove now
1036 redundant pr17512 check.
1037 * wasm-module.c (READ_LEB128): Adjust to suit changes to
1038 _bfd_safe_read_leb128.
1039 * dwarf2.c (read_n_bytes): New inline function, old one renamed to..
1040 (read_blk): ..this. Allocate and return block. Increment bfd_byte**
1041 arg.
1042 (read_3_bytes): New function.
1043 (read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes),
1044 (read_8_bytes, read_string, read_indirect_string),
1045 (read_indirect_line_string, read_alt_indirect_string): Take a
1046 byte_byte** arg which is incremented over bytes read. Remove any
1047 bytes_read return. Rewrite limit checks to compare lengths
1048 rather than pointers.
1049 (read_abbrevs, read_attribute_value, read_formatted_entries),
1050 (decode_line_info, find_abstract_instance, read_ranges),
1051 (read_rnglists, scan_unit_for_symbols, parse_comp_unit),
1052 (stash_comp_unit): Adjust to suit. Rewrite limit checks to
1053 compare lengths rather than pointers.
1054 * libbfd.h: Regenerate.
1055
1056 2021-05-21 Luis Machado <luis.machado@linaro.org>
1057
1058 * elf.c (elfcore_make_memtag_note_section): New function.
1059 (elfcore_grok_note): Handle NT_MEMTAG note types.
1060
1061 2021-05-20 Andrew Burgess <andrew.burgess@embecosm.com>
1062
1063 * section.c (bfd_get_section_by_name): Return NULL if name is
1064 NULL.
1065 (bfd_get_section_by_name_if): Likewise.
1066 * dwarf2.c (read_section): Remove unneeded NULL check.
1067 (find_debug_info): Likewise.
1068
1069 2021-05-19 Nick Clifton <nickc@redhat.com>
1070
1071 * plugin.c (bfd_plugin_open_input): Inform the user if the limit
1072 on the number of open files is reached. If possible, try to
1073 increase this limit before failing.
1074
1075 2021-05-14 Nelson Chu <nelson.chu@sifive.com>
1076
1077 * elfnn-riscv.c (riscv_resolve_pcrel_lo_relocs): Check the values
1078 of %pcrel_hi, before and after adding the addend. Make sure the
1079 value won't be changed, otherwise, report dangerous error.
1080
1081 2021-05-13 Nelson Chu <nelson.chu@sifive.com>
1082
1083 * elfxx-riscv.c (check_implicit_always): The check_func, always add
1084 the implicit subset without checking.
1085 (check_implicit_for_i): The check_func for i, only add zicsr and
1086 zifencei when the version of i less than 2.1.
1087 (struct riscv_implicit_subset): Record the subsets and their
1088 corresponding implicit subsets.
1089 (riscv_implicit_subsets): Table records all implicit informations.
1090 (riscv_parse_add_implicit_subsets): Updated and add implicit subsets
1091 according to riscv_implicit_subsets. Remove the redundant codes.
1092
1093 2021-05-13 Alan Modra <amodra@gmail.com>
1094
1095 PR 27858
1096 * elf32-sh.c (sh_elf_info_to_howto): Correct check for last valid
1097 reloc howto.
1098
1099 2021-05-12 Luis Machado <luis.machado@linaro.org>
1100
1101 * elf-bfd.h (elfcore_write_aarch_mte): New prototype.
1102 * elf.c (elfcore_grok_aarch_mte, elfcore_write_aarch_mte): New
1103 functions.
1104 (elfcore_grok_note): Handle notes of type NT_ARM_TAGGED_ADDR_CTRL.
1105 (elfcore_write_register_note): Handle MTE notes.
1106
1107 2021-05-11 Alan Modra <amodra@gmail.com>
1108
1109 PR 27844
1110 * pdp11.c (aout_get_external_symbols): Clear first four bytes of
1111 strings array, not just the first byte.
1112 * aoutx.h (aout_get_external_symbols): Likewise.
1113
1114 2021-05-10 H.J. Lu <hongjiu.lu@intel.com>
1115
1116 PR binutils/27839
1117 * simple.c (bfd_simple_get_relocated_section_contents): Remove
1118 strayed fprintf.
1119
1120 2021-05-10 Nick Clifton <nickc@redhat.com>
1121
1122 PR 27839
1123 * simple.c (simple_dummy_add_to_set): New function.
1124 (simple_dummy_constructor): New function.
1125 (simple_dummy_multiple_common): New function.
1126 (bfd_simple_get_relocated_section_contents): Zero out the
1127 callbacks structure, and then set the add_to_set, constructor and
1128 multiple_common fields.
1129
1130 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
1131
1132 * elf32-pru.c (elf_backend_can_gc_sections): Define as 1.
1133
1134 2021-05-08 Mike Frysinger <vapier@gentoo.org>
1135
1136 * doc/Makefile.am (html-local, bfd/index.html): New targets.
1137 * doc/Makefile.in: Regenerate.
1138
1139 2021-05-08 Mike Frysinger <vapier@gentoo.org>
1140
1141 * doc/Makefile.am (AM_MAKEINFOFLAGS): Define.
1142 * doc/Makefile.in: Regenerate.
1143
1144 2021-05-07 Clément Chigot <clement.chigot@atos.net>
1145
1146 * coff-rs6000.c (xcoff_dwsect_names): Add new DWARF
1147 sections.
1148 * coffgen.c (coff_pointerize_aux): Handle C_DWARF.
1149 (coff_print_symbol): Likewise.
1150 * libxcoff.h (XCOFF_DWSECT_NBR_NAMES): Update.
1151
1152 2021-05-07 Jan Beulich <jbeulich@suse.com>
1153
1154 * elf64-x86-64.c (x86_64_elf_howto_table): Set src_mask fields
1155 to zero.
1156
1157 2021-05-07 Alan Modra <amodra@gmail.com>
1158
1159 * bfd-in2.h: Regenerate.
1160 * libbfd.h: Regenerate.
1161
1162 2021-05-06 Stafford Horne <shorne@gmail.com>
1163
1164 PR 27746
1165 * elf32-or1k.c (PLT_ENTRY_SIZE_LARGE, PLT_MAX_INSN_COUNT,
1166 OR1K_ADD, OR1K_ORI): New macros to help with plt creation.
1167 (elf_or1k_link_hash_table): New field plt_count.
1168 (elf_or1k_link_hash_entry): New field plt_index.
1169 (elf_or1k_plt_entry_size): New function.
1170 (or1k_write_plt_entry): Update to support variable size PLTs.
1171 (or1k_elf_finish_dynamic_sections): Use new or1k_write_plt_entry
1172 API.
1173 (or1k_elf_finish_dynamic_symbol): Update to write large PLTs
1174 when needed.
1175 (allocate_dynrelocs): Use elf_or1k_plt_entry_size to account for
1176 PLT size.
1177
1178 2021-05-06 Stafford Horne <shorne@gmail.com>
1179
1180 PR 21464
1181 * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16
1182 overflow check if we have R_OR1K_GOT_AHI16 followed by
1183 R_OR1K_GOT16.
1184
1185 2021-05-06 Stafford Horne <shorne@gmail.com>
1186
1187 PR 21464
1188 * bfd-in2.h: Add BFD_RELOC_OR1K_GOT_AHI16 relocation.
1189 * elf32-or1k.c (or1k_elf_howto_table, or1k_reloc_map): Likewise.
1190 (or1k_final_link_relocate, or1k_elf_relocate_section,
1191 or1k_elf_check_relocs): Likewise.
1192 * libbfd.h (bfd_reloc_code_real_names): Likewise.
1193 * reloc.c: Likewise.
1194
1195 2021-05-06 Stafford Horne <shorne@gmail.com>
1196
1197 PR 27624
1198 * elf32-or1k.c (or1k_elf_adjust_dynamic_symbol): Change
1199 condition used to cleanup plt entries to cleanup forced local
1200 entries.
1201
1202 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
1203
1204 PR ld/27825
1205 * elflink.c (elf_link_output_symstrtab): Always append ".COUNT"
1206 to local symbols.
1207
1208 2021-05-05 Alan Modra <amodra@gmail.com>
1209
1210 * vms-lib.c (vms_traverse_index): Account for vms_kbn size when
1211 sanity checking keylen.
1212
1213 2021-05-04 Nick Clifton <nickc@redhat.com>
1214
1215 * libbfd.c (bfd_malloc): Provide some documenation. Treat a size
1216 of 0 as 1.
1217 (bfd_realloc): Likewise.
1218 (bfd_zmalloc): Likewise.
1219 (bfd_realloc_or_free): Provide some documentation. Treat a size
1220 of 0 as a request to free.
1221 * libbfd-in.h (bfd_realloc): Remove prototype.
1222 (bfd_realloc_or_free): Remove prototype.
1223 (bfd_zmalloc): Remove prototype.
1224 * libbfd.h: Regenerate.
1225
1226 2021-05-03 Jan Beulich <jbeulich@suse.com>
1227
1228 * elf32-i386.c (elf_howto_table): Switch all 32-bit relocs to
1229 complain_overflow_dont.
1230 * elf64-x86-64.c (x86_64_elf_howto_table): Switch all 64-bit
1231 relocs to complain_overflow_dont.
1232
1233 2021-05-03 Alan Modra <amodra@gmail.com>
1234
1235 * elf32-ppc.c (allocate_dynrelocs): Keep dyn_relocs for undefweak
1236 symbols when -z dynamic-undefined-weak or when there are no
1237 dynamic relocs in read-only sections and -z nodynamic-undefined-weak
1238 is not given.
1239 * elf64-ppc.c (allocate_dynrelocs): Likewise.
1240
1241 2021-05-03 Alan Modra <amodra@gmail.com>
1242
1243 * elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for
1244 weak undefined symols that only appear on PLT relocs.
1245 * elf64-ppc.c (allocate_dynrelocs): Likewise.
1246
1247 2021-05-03 Alan Modra <amodra@gmail.com>
1248
1249 PR 27755
1250 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
1251
1252 2021-05-03 Alan Modra <amodra@gmail.com>
1253
1254 * elf32-csky.c (is_mapping_symbol_name): New function.
1255 (csky_elf_is_target_special_symbol): Likewise.
1256 (csky_elf_maybe_function_sym): Likewise.
1257 (bfd_elf32_bfd_is_target_special_symbol): Define.
1258 (elf_backend_maybe_function_sym): Define.
1259
1260 2021-04-30 Nick Clifton <nickc@redhat.com>
1261
1262 PR 27801
1263 * mach-o.c (bfd_mach_o_core_fetch_environment): Use bfd_get_32 to
1264 read 32-bit value.
1265
1266 2021-04-30 Nick Clifton <nickc@redhat.com>
1267
1268 PR 27799
1269 * elf32-xtensa.c (elf_xtensa_grok_prstatus): Check for core notes
1270 that are too small.
1271
1272 2021-04-30 Nick Clifton <nickc@redhat.com>
1273
1274 PR 27797
1275 * libbfd.c (bfd_realloc_or_free): Do not free a pointer than has
1276 been realloc'ed to size 0.
1277
1278 2021-04-30 Nick Clifton <nickc@redhat.com>
1279
1280 PR 27795
1281 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Check for invalid name
1282 lengths.
1283
1284 2021-04-29 Nick Clifton <nickc@redhat.com>
1285
1286 PR 27793
1287 * som.c (som_slurp_symbol_table): Assign symbols without any scope
1288 to the undefined section.
1289 (som_decode_symclass): Check for a missing symbol section.
1290 * syms.c (bfd_decode_symclass): Likewise.
1291
1292 2021-04-29 Nick Clifton <nickc@redhat.com>
1293
1294 PR 27792
1295 * som.c (som_slurp_string_table): Place a terminating NUL byte at
1296 the end of the table.
1297 (som_slurp_symbol_table): Check for an over-large offset into the
1298 string string table.
1299
1300 2021-04-28 Nick Clifton <nickc@redhat.com>
1301
1302 * elf.c (_bfd_elf_maybe_function_sym): Do not accept annobin
1303 symbols as potential function symbols.
1304 * elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): Likewise.
1305 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
1306 * elf32-arm.c (elf32_arm_maybe_function_sym): Likewise.
1307
1308 2021-04-26 Mike Frysinger <vapier@gentoo.org>
1309
1310 * elf-bfd.h: Include stdlib.h.
1311
1312 2021-04-26 Jan Beulich <jbeulich@suse.com>
1313
1314 * elf32-i386.c (elf_howto_table): Switch R_386_PC16 to
1315 complain_overflow_signed.
1316 * elf64-x86-64.c (x86_64_elf_howto_table): Switch R_X86_64_PC16
1317 to complain_overflow_signed.
1318
1319 2021-04-23 Eric Botcazou <ebotcazou@adacore.com>
1320
1321 * elf.c (special_sections_p): Add .persistent.bss.
1322
1323 2021-04-23 Jan Beulich <jbeulich@suse.com>
1324
1325 * elf32-i386.c (elf_howto_table): R_386_TLS_DESC_CALL has zero
1326 size field.
1327 * elf64-x86-64.c (x86_64_elf_howto_table): R_X86_64_TLSDESC_CALL
1328 has zero size field.
1329
1330 2021-04-22 Clément Chigot <clement.chigot@atos.net>
1331
1332 * hash.c (struct bfd_strtab_hash): Remove xcoff field.
1333 Add length_field_size field.
1334 (_bfd_stringtab_init): Change prototype.
1335 Adapt to new length_field_size.
1336 (_bfd_xcoff_stringtab_init): Likewise.
1337 (_bfd_stringtab_add): Likewise.
1338 (_bfd_stringtab_emit): Likewise.
1339 * libbfd-in.h (_bfd_xcoff_stringtab_init):
1340 Change prototype.
1341 * libbfd.h: Regenerate.
1342 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create):
1343 Call _bfd_xcoff_stringtab_init with isxcoff64 value.
1344
1345 2021-04-22 Clément Chigot <clement.chigot@atos.net>
1346
1347 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Add errors for
1348 unsupported storage class or auxialiry entries.
1349 Improve and adapt to new aux structures.
1350 Add C_DWARF support.
1351 (_bfd_xcoff_swap_aux_out): Likewise.
1352 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Likewise.
1353 (_bfd_xcoff64_swap_aux_out): Likewise.
1354
1355 2021-04-21 Eli Zaretskii <eliz@gnu.org>
1356
1357 PR 27760
1358 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add display
1359 of IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP,
1360 IMAGE_FILE_NET_RUN_FROM_SWAP and IMAGE_FILE_UP_SYSTEM_ONLY flags.
1361 Decode the contents of the DllCharacteristics field.
1362
1363 2021-04-21 Nick Clifton <nickc@redhat.com>
1364
1365 PR 27759
1366 * srec.c (srec_read_section): Replace assertions with error
1367 returns.
1368
1369 2021-04-20 Clément Chigot <clement.chigot@atos.net>
1370
1371 PR binutils/21700
1372 * reloc.c (BFD_RELOC_PPC_NEG): New relocation.
1373 * bfd-in2.h: Regenerate.
1374 * libbfd.h: Regenerate.
1375 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Add
1376 BFD_RELOC_PPC_NEG handler.
1377 (xcoff_reloc_type_neg): Correctly substract addend.
1378 * coff64-rs6000.c (xcoff64_howto_table): Add R_NEG_32
1379 howto.
1380 (xcoff64_rtype2howto): Add handler for R_NEG_32.
1381 (xcoff64_reloc_type_lookup): Add BFD_RELOC_PPC_NEG handler.
1382 * xcofflink.c (xcoff_need_ldrel_p): Check output section
1383 for R_POS-like relocations. New argument added.
1384 (xcoff_mark): Adapt to new xcoff_need_ldrel_p argument.
1385 (xcoff_link_input_bfd): Likewise.
1386
1387 2021-04-16 Alan Modra <amodra@gmail.com>
1388
1389 PR 27567
1390 * coffcode.h (styp_to_sec_flags): Use an unsigned long styp_flags.
1391 (coff_write_object_contents): Pass bfd to COFF_ENCODE_ALIGNMENT,
1392 ignore alignment checks when return is false. Formatting.
1393
1394 2021-04-15 Nelson Chu <nelson.chu@sifive.com>
1395
1396 PR27584
1397 * elfnn-riscv.c (riscv_elf_is_target_special_symbol): Added to
1398 omit local and empty symbols since they usually generated to
1399 mark the auipc instructions.
1400
1401 2021-04-15 Lifang Xia<lifang_xia@c-sky.com>
1402
1403 * elf32-csky.c (csky_elf_howto_table)
1404 <R_CKCORE_PCREL_IMM16BY2>: Set special_function to
1405 bfd_elf_generic_reloc.
1406 <R_CKCORE_PCREL_IMM16BY4>: Likewise.
1407 <R_CKCORE_PCREL_IMM10BY4>: Likewise.
1408 <R_CKCORE_PCREL_IMM18BY2>: Likewise.
1409 <R_CKCORE_PCREL_FLRW_IMM8BY4>: Likewise.
1410
1411 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
1412
1413 PR binutils/27708
1414 * elf.c (assign_file_positions_for_non_load_sections): Set
1415 p_memsz to p_filesz for the loadable PT_NOTE segment.
1416
1417 2021-04-14 Frederic Cambus <fred@statdns.com>
1418
1419 * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef
1420 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
1421
1422 2021-04-14 Alan Modra <amodra@gmail.com>
1423
1424 PR 27631
1425 * elf32-metag.c (elf_metag_relocate_section): Don't use &hh->elf
1426 when hh might be NULL, test for NULL first.
1427
1428 2021-04-14 Alan Modra <amodra@gmail.com>
1429
1430 PR 27630
1431 * elf32-arm.c (elf32_arm_size_stubs): Don't use &hash->root when
1432 hash might be NULL, cast instead.
1433
1434 2021-04-13 Clément Chigot <clement.chigot@atos.net>
1435
1436 * xcofflink.c (xcoff_link_check_ar_symbols): Update esym earlier.
1437
1438 2021-04-13 Nelson Chu <nelson.chu@sifive.com>
1439
1440 * elfnn-riscv.c (riscv_version_mismatch): Do not report the warning
1441 when the version of input or output is RISCV_UNKNOWN_VERSION, since
1442 the extension is added implicitly.
1443 * elfxx-riscv.c: Updated the obsolete comments.
1444 (RISCV_UNKNOWN_VERSION): Moved to elfxx-riscv.h.
1445 * elfxx-riscv.h (RISCV_UNKNOWN_VERSION): Added.
1446
1447 2021-04-12 Alan Modra <amodra@gmail.com>
1448
1449 * elf-bfd.h (ENABLE_CHECKING): Define.
1450 (elf_link_hash_lookup): Abort if wrong type of hash table.
1451 * configure.ac (--enable-checking): Add support.
1452 * config.in: Regenerate.
1453 * configure: Regenerate.
1454
1455 2021-04-12 Alan Modra <amodra@gmail.com>
1456
1457 * elf-bfd.h (is_elf_hash_table): Convert macro to inline function.
1458 (elf_link_hash_lookup, elf_link_hash_traverse): Likewise.
1459 (elf_hash_table, elf_hash_table_id): Likewise.
1460 * elf32-arm.c (elf32_arm_setup_section_lists): Delete redundant
1461 is_elf_hash_table check.
1462 * elf32-csky.c (elf32_csky_setup_section_lists): Likewise.
1463 * elf32-hppa.c (clobber_millicode_symbols): Correct param types.
1464 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
1465 * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free: Likewise.
1466 (elfNN_ia64_global_dyn_sym_thunk: Likewise.
1467 * elf64-ia64-vms.c (elf64_ia64_global_dyn_info_free): Likewise.
1468 (elf64_ia64_global_dyn_sym_thunk): Likewise.
1469 (elf64_vms_link_add_object_symbols): Pass base type of hash table
1470 to is_elf_hash_table.
1471 * elflink.c (_bfd_elf_dynamic_symbol_p): Likewise.
1472 (_bfd_elf_symbol_refs_local_p, _bfd_elf_add_dynamic_entry): Likewise.
1473 (_bfd_elf_strip_zero_sized_dynamic_sections): Likewise.
1474 (_bfd_elf_link_check_relocs, elf_link_add_object_symbols): Likewise.
1475 (bfd_elf_final_link): Likewise.
1476 * elfnn-aarch64.c (elfNN_aarch64_setup_section_lists): Likewise.
1477 * elf64-ppc.c (ppc64_elf_set_toc): Likewise. Use bfd_link_hash_lookup.
1478
1479 2021-04-12 Alan Modra <amodra@gmail.com>
1480
1481 * elf-bfd.h (struct elf_backend_data): Return bfd_link_hash_entry*
1482 from elf_backend_archive_symbol_lookup.
1483 (_bfd_elf_archive_symbol_lookup): Return bfd_link_hash_entry*.
1484 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Likewise. Check
1485 we have a ppc_hash_table before accessing ppc_link_hash_entry
1486 fields.
1487 * elflink.c (_bfd_elf_archive_symbol_lookup): Return
1488 bfd_link_hash_entry*.
1489 (elf_link_add_archive_symbols): Adjust to suit.
1490
1491 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
1492
1493 * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of
1494 i-ext when expanding g-ext.
1495
1496 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
1497
1498 * elfxx-riscv.c (riscv_ext_dont_care_version): Removed.
1499 (riscv_parse_add_subset): Always add the implicit extensions, even if
1500 their versions are RISCV_UNKNOWN_VERSION.
1501 (riscv_parse_std_ext): Delay to add i-ext as the implicit extension
1502 in the riscv_parse_add_implicit_subsets. Besides, add g-ext as the
1503 implicit extension after it has been expanded.
1504 (riscv_parse_add_implicit_subsets): Updated.
1505
1506 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
1507
1508 * elfxx-riscv.c (riscv_std_z_ext_strtab): Moved forward.
1509 (riscv_std_s_ext_strtab): Likewise.
1510 (riscv_std_h_ext_strtab): Likewise.
1511 (riscv_std_zxm_ext_strtab): Added for the zxm prefix.
1512 (enum riscv_prefix_ext_class): Moved forward and renamed from
1513 riscv_isa_ext_class. Reorder them according to the parsing order,
1514 since the enum values are used to check the orders in the
1515 riscv_compare_subsets.
1516 (struct riscv_parse_prefix_config): Moved forward and renamed from
1517 riscv_parse_config_t. Also removed the ext_valid_p field, the
1518 related functions are replaced by riscv_valid_prefixed_ext.
1519 (parse_config): Moved forward and updated. The more letters of the
1520 prefix string, the more forward it must be defined. Otherwise, we
1521 will get the wrong mapping when using strncmp in riscv_get_prefix_class.
1522 (riscv_get_prefix_class): Moved forward. Support to parse the
1523 multi-letter prefix, like zxm.
1524 (riscv_known_prefixed_ext): New function, check if the prefixed
1525 extension is supported according to the right riscv_std_*_ext_strtab.
1526 (riscv_valid_prefixed_ext): New function, used to replace the
1527 riscv_ext_*_valid_p functions.
1528 (riscv_init_ext_order): Do not set the values for prefix keywords
1529 since they may have multiple letters for now.
1530 (riscv_compare_subsets): Set the order values of prefix keywords
1531 to negative numbers according to the riscv_prefix_ext_class.
1532 (riscv_parse_std_ext): Call riscv_get_prefix_class to see if we
1533 have parsed the prefixed extensions.
1534 (riscv_parse_prefixed_ext): Updated and removed the parameter config.
1535 Report error when the prefix is unknown.
1536 (riscv_parse_subset): Do not parse the prefixed extensions according
1537 to the orders in the parse_config. Remove the confused message and
1538 let riscv_parse_prefixed_ext to report the details.
1539 * elfxx-riscv.h (enum riscv_isa_ext_class): Moved to elfxx-riscv.c.
1540 (riscv_get_prefix_class): Removed to static.
1541
1542 2021-04-08 Mike Frysinger <vapier@gentoo.org>
1543
1544 * configure.ac (ACX_BUGURL): Use https://.
1545 * configure.com (COPY_TEXT): Likewise.
1546 * configure: Regenerate.
1547
1548 2021-04-05 Alan Modra <amodra@gmail.com>
1549
1550 * configure.ac: Don't check for long long or long double type.
1551 Don't check for alloca.h, limits.h, stddef.h, stdlib.h, string.h,
1552 strings.h, time.h, wchar.h, wctype.h or sys/time.h. Don't check
1553 for strtoull, free, malloc, realloc, getenv, strstr, snprintf,
1554 vsnprintf, strlen or setitimer. Sort AC_CHECK_DECLS.
1555 (AC_ISC_POSIX): Don't invoke.
1556 (AC_HEADER_TIME, AC_HEADER_DIRENT, ACX_HEADER_STRING): Likewise.
1557 * sysdep.h: Remove many HAVE_*_H checks and fallback declarations.
1558 Do test HAVE_SYS_TYPES_H. Don't include sys/time.h. Reorder
1559 header order as per automake AC_INCLUDES_DEFAULT.
1560 * bfd-in.h: Include inttypes.h unconditionally.
1561 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Assume long long and
1562 long double are available.
1563 (bfd_scan_vma): Assume long long and strtoull are available.
1564 * elflink.c: Include limits.h unconditionally.
1565 * elfnn-riscv.c: Likewise.
1566 * wasm-module.c: Likewise.
1567 * hpux-core.c: Include dirent.h unconditionally.
1568 * trad-core.c: Likewise.
1569 * hosts/x86-64linux.h: Include stdlib.h unconditionally.
1570 * peXXigen.c: Remove HAVE_WCHAR_H and HAVE_WCTYPE_H checks.
1571 * elf32-m68hc1x.c: Don't include alloca-conf.h.
1572 * elf64-hppa.c: Likewise.
1573 * som.c: Likewise.
1574 * wasm-module.c: Likewise.
1575 * xsym.c: Likewise.
1576 * bfd-in2.h: Regenerate.
1577 * config.in: Regenerate.
1578 * configure: Regenerate.
1579
1580 2021-04-01 Tamar Christina <tamar.christina@arm.com>
1581
1582 PR ld/26659
1583 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore overflow.
1584
1585 2021-04-01 Martin Liska <mliska@suse.cz>
1586
1587 * ecoff.c (strneq): Remove strneq and use startswith.
1588 (_bfd_ecoff_slurp_armap): Likewise.
1589
1590 2021-04-01 Martin Liska <mliska@suse.cz>
1591
1592 * elf-bfd.h (bfd_section_is_ctf): Use startswith function.
1593 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
1594 (elf_get_reloc_section): Likewise.
1595 * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise.
1596 * elf32-m32r.c (m32r_elf_section_flags): Likewise.
1597 * elf32-microblaze.c (microblaze_elf_size_dynamic_sections): Likewise.
1598 * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
1599 (nds32_elf_relocate_section): Likewise.
1600 (nds32_elf_action_discarded): Likewise.
1601 (nds32_elf_check_relocs): Likewise.
1602 (nds32_elf_section_flags): Likewise.
1603 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
1604 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
1605 * elf32-rx.c (rx_table_find): Likewise.
1606 (rx_table_map): Likewise.
1607 * elf32-spu.c (spu_elf_backend_symbol_processing): Likewise.
1608 (spu_elf_find_overlays): Likewise.
1609 (needs_ovl_stub): Likewise.
1610 (allocate_spuear_stubs): Likewise.
1611 (build_spuear_stubs): Likewise.
1612 (mark_overlay_section): Likewise.
1613 (spu_elf_auto_overlay): Likewise.
1614 (spu_elf_output_symbol_hook): Likewise.
1615 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
1616 * elf32-xtensa.c (xtensa_property_section_name): Likewise.
1617 * elf64-ppc.c (ppc64_elf_section_flags): Likewise.
1618 (ppc64_elf_relocate_section): Likewise.
1619 * elflink.c (resolve_section): Likewise.
1620 (UNARY_OP): Likewise.
1621 (BINARY_OP_HEAD): Likewise.
1622 (elf_link_input_bfd): Likewise.
1623 * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise.
1624 * elfxx-riscv.c (riscv_parse_subset): Likewise.
1625 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
1626 * opncls.c (get_build_id): Likewise.
1627
1628 2021-03-31 Alan Modra <amodra@gmail.com>
1629
1630 PR 27671
1631 * bfd-in.h: Don't poison FALSE or TRUE.
1632 * bfd-in2.h: Regenerate.
1633
1634 2021-03-31 Alan Modra <amodra@gmail.com>
1635
1636 * sysdep.h: POISON_BFD_BOOLEAN: Define.
1637 * aix5ppc-core.c, * aout-cris.c, * aout-ns32k.c, * aout-target.h,
1638 * aoutx.h, * arc-got.h, * archive.c, * archive64.c, * archures.c,
1639 * bfd-in.h, * bfd.c, * bfdwin.c, * binary.c, * cache.c,
1640 * coff-alpha.c, * coff-arm.c, * coff-arm.h, * coff-bfd.c,
1641 * coff-bfd.h, * coff-go32.c, * coff-i386.c, * coff-ia64.c,
1642 * coff-mcore.c, * coff-mips.c, * coff-rs6000.c, * coff-sh.c,
1643 * coff-stgo32.c, * coff-tic30.c, * coff-tic4x.c, * coff-tic54x.c,
1644 * coff-x86_64.c, * coff-z80.c, * coff-z8k.c, * coff64-rs6000.c,
1645 * coffcode.h, * coffgen.c, * cofflink.c, * compress.c,
1646 * corefile.c, * cpu-aarch64.c, * cpu-aarch64.h, * cpu-alpha.c,
1647 * cpu-arc.c, * cpu-arm.c, * cpu-arm.h, * cpu-avr.c, * cpu-bfin.c,
1648 * cpu-bpf.c, * cpu-cr16.c, * cpu-cris.c, * cpu-crx.c,
1649 * cpu-csky.c, * cpu-d10v.c, * cpu-d30v.c, * cpu-dlx.c,
1650 * cpu-epiphany.c, * cpu-fr30.c, * cpu-frv.c, * cpu-ft32.c,
1651 * cpu-h8300.c, * cpu-hppa.c, * cpu-i386.c, * cpu-ia64.c,
1652 * cpu-iamcu.c, * cpu-ip2k.c, * cpu-iq2000.c, * cpu-k1om.c,
1653 * cpu-l1om.c, * cpu-lm32.c, * cpu-m10200.c, * cpu-m10300.c,
1654 * cpu-m32c.c, * cpu-m32r.c, * cpu-m68hc11.c, * cpu-m68hc12.c,
1655 * cpu-m68k.c, * cpu-m9s12x.c, * cpu-m9s12xg.c, * cpu-mcore.c,
1656 * cpu-mep.c, * cpu-metag.c, * cpu-microblaze.c, * cpu-mips.c,
1657 * cpu-mmix.c, * cpu-moxie.c, * cpu-msp430.c, * cpu-mt.c,
1658 * cpu-nds32.c, * cpu-nfp.c, * cpu-nios2.c, * cpu-ns32k.c,
1659 * cpu-or1k.c, * cpu-pdp11.c, * cpu-pj.c, * cpu-powerpc.c,
1660 * cpu-pru.c, * cpu-riscv.c, * cpu-rl78.c, * cpu-rs6000.c,
1661 * cpu-rx.c, * cpu-s12z.c, * cpu-s390.c, * cpu-score.c,
1662 * cpu-sh.c, * cpu-sparc.c, * cpu-spu.c, * cpu-tic30.c,
1663 * cpu-tic4x.c, * cpu-tic54x.c, * cpu-tic6x.c, * cpu-tilegx.c,
1664 * cpu-tilepro.c, * cpu-v850.c, * cpu-v850_rh850.c, * cpu-vax.c,
1665 * cpu-visium.c, * cpu-wasm32.c, * cpu-xc16x.c, * cpu-xgate.c,
1666 * cpu-xstormy16.c, * cpu-xtensa.c, * cpu-z80.c, * cpu-z8k.c,
1667 * dwarf1.c, * dwarf2.c, * ecoff-bfd.h, * ecoff.c, * ecofflink.c,
1668 * elf-attrs.c, * elf-bfd.h, * elf-eh-frame.c, * elf-hppa.h,
1669 * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-nacl.c,
1670 * elf-nacl.h, * elf-properties.c, * elf-s390-common.c,
1671 * elf-s390.h, * elf-strtab.c, * elf-vxworks.c, * elf-vxworks.h,
1672 * elf.c, * elf32-am33lin.c, * elf32-arc.c, * elf32-arm.c,
1673 * elf32-arm.h, * elf32-avr.c, * elf32-avr.h, * elf32-bfin.c,
1674 * elf32-bfin.h, * elf32-cr16.c, * elf32-cr16.h, * elf32-cris.c,
1675 * elf32-crx.c, * elf32-csky.c, * elf32-csky.h, * elf32-d10v.c,
1676 * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
1677 * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-gen.c,
1678 * elf32-h8300.c, * elf32-hppa.c, * elf32-hppa.h, * elf32-i386.c,
1679 * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
1680 * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
1681 * elf32-m68hc1x.c, * elf32-m68hc1x.h, * elf32-m68k.c,
1682 * elf32-m68k.h, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
1683 * elf32-metag.h, * elf32-microblaze.c, * elf32-mips.c,
1684 * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
1685 * elf32-nios2.c, * elf32-nios2.h, * elf32-or1k.c, * elf32-pj.c,
1686 * elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
1687 * elf32-rx.c, * elf32-s12z.c, * elf32-s390.c, * elf32-score.c,
1688 * elf32-score.h, * elf32-score7.c, * elf32-sh-relocs.h,
1689 * elf32-sh.c, * elf32-sparc.c, * elf32-spu.c, * elf32-spu.h,
1690 * elf32-tic6x.c, * elf32-tic6x.h, * elf32-tilegx.c,
1691 * elf32-tilepro.c, * elf32-v850.c, * elf32-v850.h,
1692 * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
1693 * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
1694 * elf32-xtensa.c, * elf32-z80.c, * elf64-alpha.c, * elf64-bpf.c,
1695 * elf64-gen.c, * elf64-hppa.c, * elf64-ia64-vms.c,
1696 * elf64-mips.c, * elf64-mmix.c, * elf64-nfp.c, * elf64-ppc.c,
1697 * elf64-ppc.h, * elf64-s390.c, * elf64-sparc.c,
1698 * elf64-tilegx.c, * elf64-x86-64.c, * elfcode.h,
1699 * elfcore.h, * elflink.c, * elfn32-mips.c, * elfnn-aarch64.c,
1700 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c,
1701 * elfxx-aarch64.h, * elfxx-ia64.c, * elfxx-ia64.h,
1702 * elfxx-mips.c, * elfxx-mips.h, * elfxx-riscv.c, * elfxx-riscv.h,
1703 * elfxx-sparc.c, * elfxx-sparc.h, * elfxx-target.h,
1704 * elfxx-tilegx.c, * elfxx-tilegx.h, * elfxx-x86.c, * elfxx-x86.h,
1705 * format.c, * genlink.h, * hash.c, * i386aout.c, * i386lynx.c,
1706 * i386msdos.c, * ihex.c, * libaout.h, * libbfd-in.h,
1707 * libbfd.c, * libcoff-in.h, * libecoff.h, * libpei.h,
1708 * libxcoff.h, * linker.c, * mach-o-aarch64.c, * mach-o-arm.c,
1709 * mach-o-i386.c, * mach-o-x86-64.c, * mach-o.c, * mach-o.h,
1710 * merge.c, * mmo.c, * netbsd.h, * opncls.c, * pc532-mach.c,
1711 * pdp11.c, * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-sh.c,
1712 * pe-x86_64.c, * peXXigen.c, * pef.c, * pei-arm.c, * pei-i386.c,
1713 * pei-ia64.c, * pei-mcore.c, * pei-sh.c, * pei-x86_64.c,
1714 * peicode.h, * plugin.c, * plugin.h, * ppcboot.c, * reloc.c,
1715 * reloc16.c, * rs6000-core.c, * section.c, * simple.c, * som.c,
1716 * som.h, * srec.c, * stabs.c, * syms.c, * targets.c, * tekhex.c,
1717 * verilog.c, * vms-alpha.c, * vms-lib.c, * vms-misc.c, * vms.h,
1718 * wasm-module.c, * xcofflink.c, * xcofflink.h, * xsym.c,
1719 * xsym.h: Replace bfd_boolean with bool, FALSE with false, and
1720 TRUE with true throughout.
1721 * bfd-in2.h: Regenerate.
1722 * libbfd.h: Regenerate.
1723 * libcoff.h: Regenerate.
1724
1725 2021-03-31 Alan Modra <amodra@gmail.com>
1726
1727 * bfd-in.h: Include stdbool.h.
1728 (bfd_boolean): Define as bool
1729 * bfd-in2.h: Regenerate.
1730
1731 2021-03-31 Alan Modra <amodra@gmail.com>
1732
1733 * .gitignore: Delete bfd_stdint.h entry.
1734 * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h.
1735 (BUILD_HFILES, LOCAL_H_DEPS): Likewise.
1736 * bfd-in.h: Include stdint.h in place of bfd_stdint.h.
1737 * configure.ac: Don't invoke GCC_HEADER_STDINT.
1738 * configure.com: Don't create bfd_stdint.h.
1739 * Makefile.in: Regenerate.
1740 * aclocal.m4: Regenerate.
1741 * bfd-in2.h: Regenerate.
1742 * config.in: Regenerate.
1743 * configure: Regenerate.
1744 * doc/Makefile.in: Regenerate.
1745 * po/BLD-POTFILES.in: Regenerate.
1746
1747 2021-03-31 Alan Modra <amodra@gmail.com>
1748
1749 * bfd-in.h: Include string.h.
1750 (LITMEMCPY, LITSTRCPY): Delete.
1751 * bfd-in2.h: Regenerate.
1752
1753 2021-03-30 Alan Modra <amodra@gmail.com>
1754
1755 * elflink.c (elf_link_add_object_symbols): Don't set h->indx
1756 unless is_elf_hash_table.
1757
1758 2021-03-29 Alan Modra <amodra@gmail.com>
1759
1760 * aoutx.h (aout_link_write_symbols): Don't cast boolean expression
1761 to bfd_boolean.
1762 * elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans
1763 against FALSE.
1764 * elf32-arc.c (name_for_global_symbol): Don't compare boolean to TRUE.
1765 (is_reloc_PC_relative): Don't use "boolean_condition ? TRUE : FALSE".
1766 (is_reloc_SDA_relative, is_reloc_for_GOT): Likewise.
1767 (is_reloc_for_PLT, is_reloc_for_TLS): Likewise.
1768 * elf32-arm.c (stm32l4xx_need_create_replacing_stub): Likewise.
1769 * elf32-nds32.c (insert_nds32_elf_blank): Likewise.
1770 * elf32-rx.c (rx_set_section_contents): Likewise.
1771 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
1772 * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): Likewise.
1773 * mach-o.c (bfd_mach_o_read_command): Likewise.
1774 * targets.c (bfd_get_target_info): Likewise.
1775
1776 2021-03-29 Alan Modra <amodra@gmail.com>
1777
1778 * coff-z80.c (z80_is_local_label_name): Return bfd_boolean.
1779 * elf32-z80.c (z80_is_local_label_name): Likewise.
1780 * elf32-spu.c (spu_elf_modify_headers): Likewise.
1781 * elf32-nds32.h (struct elf_nds32_link_hash_table <hyper_relax>):
1782 Change type to int.
1783 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test
1784 for error return from vms_write_data_block.
1785
1786 2021-03-29 Alan Modra <amodra@gmail.com>
1787
1788 * elf32-i386.c (elf_i386_finish_local_dynamic_symbol): Return int.
1789 * elf64-ia64-vms.c (elf64_ia64_local_dyn_info_free): Likewise.
1790 (elf64_ia64_local_dyn_sym_thunk): Likewise.
1791 * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): Likewise.
1792 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_ifunc_dynrelocs),
1793 (elfNN_aarch64_finish_local_dynamic_symbol): Likewise.
1794 * elfnn-ia64.c (elfNN_ia64_local_dyn_info_free): Likewise.
1795 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
1796 * elfnn-riscv.c (allocate_local_ifunc_dynrelocs): Likewise.
1797 (riscv_pcrel_reloc_eq): Likewise.
1798 (riscv_elf_finish_local_dynamic_symbol): Likewise.
1799 * elfxx-sparc.c (allocate_local_dynrelocs): Likewise.
1800 (finish_local_dynamic_symbol): Likewise.
1801 * elfxx-x86.c (elf_x86_allocate_local_dynreloc): Likewise.
1802 * elfxx-mips.c (mips_elf_resolve_got_page_ref): Likewise.
1803 (mips_elf_count_got_symbols): Change return type to bfd_boolean.
1804
1805 2021-03-29 Alan Modra <amodra@gmail.com>
1806
1807 * elflink.c (elf_link_output_symstrtab): Make flinfo parameter
1808 a void pointer.
1809 (bfd_elf_final_link): Delete out_sym_func typedef and don't cast
1810 elf_link_output_symstrtab when calling output_arch_syms and
1811 output_arch_local_syms.
1812 * elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms,
1813 elf_backend_output_arch_local_syms>): Change return type of func
1814 arg to match elf_link_output_symstrtab.
1815 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct
1816 return type.
1817 * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
1818 (nds32_elf_output_arch_syms): Correct func return type.
1819
1820 2021-03-29 Alan Modra <amodra@gmail.com>
1821
1822 * elf-m10200.c (mn10200_elf_relocate_section): Return int.
1823 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1824 * elf32-arc.c (elf_arc_relocate_section): Likewise.
1825 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
1826 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1827 * elf32-bfin.c (bfin_relocate_section): Likewise.
1828 (bfinfdpic_relocate_section): Likewise.
1829 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
1830 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1831 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1832 * elf32-csky.c (csky_elf_relocate_section): Likewise.
1833 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1834 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
1835 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1836 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1837 * elf32-ft32.c (ft32_elf_relocate_section): Likewise.
1838 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1839 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1840 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1841 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1842 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1843 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1844 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1845 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1846 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1847 * elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
1848 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1849 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1850 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1851 * elf32-metag.c (elf_metag_relocate_section): Likewise.
1852 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
1853 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
1854 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1855 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1856 * elf32-nds32.c (nds32_elf_relocate_section): Likewise.
1857 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
1858 * elf32-or1k.c (or1k_elf_relocate_section): Likewise.
1859 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1860 * elf32-pru.c (pru_elf32_relocate_section): Likewise.
1861 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
1862 * elf32-rx.c (rx_elf_relocate_section): Likewise.
1863 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1864 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1865 (_bfd_score_elf_relocate_section): Likewise.
1866 * elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
1867 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1868 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1869 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1870 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
1871 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1872 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1873 * elf32-visium.c (visium_elf_relocate_section): Likewise.
1874 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1875 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1876 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1877 * elf32-z80.c (z80_elf_relocate_section): Likewise.
1878 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1879 (elf64_alpha_relocate_section): Likewise.
1880 * elf64-bpf.c (bpf_elf_relocate_section): Likewise.
1881 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
1882 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1883 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1884 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1885 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1886 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1887 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
1888 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1889 * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
1890 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
1891 * elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
1892 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1893 * elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
1894 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
1895 * elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
1896
1897 2021-03-26 Keith Seitz <keiths@redhat.com>
1898
1899 * elfcore.h (_bfd_elf_core_find_build_id): Seek file
1900 offset of program headers after calling elf_read_notes.
1901
1902 2021-03-23 Jan Beulich <jbeulich@suse.com>
1903
1904 * dwarf2.c (read_indexed_string): Rename index to idx.
1905
1906 2021-03-22 Martin Liska <mliska@suse.cz>
1907
1908 * bfd-in.h (startswith): Add startswith function.
1909 (CONST_STRNEQ): Remove.
1910 * bfd-in2.h (startswith): Regenerate with make headers.
1911 * archive.c (bfd_slurp_armap): Replace usage of CONST_STRNEQ with startswith.
1912 (_bfd_slurp_extended_name_table): Likewise.
1913 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
1914 * bfd.c (bfd_get_sign_extend_vma): Likewise.
1915 (bfd_convert_section_size): Likewise.
1916 (bfd_convert_section_contents): Likewise.
1917 * coff-stgo32.c (go32exe_create_stub): Likewise.
1918 (go32exe_check_format): Likewise.
1919 * coffcode.h (styp_to_sec_flags): Likewise.
1920 (GNU_DEBUGALTLINK): Likewise.
1921 * coffgen.c (_bfd_coff_section_already_linked): Likewise.
1922 (coff_gc_sweep): Likewise.
1923 (bfd_coff_gc_sections): Likewise.
1924 * cofflink.c (coff_link_add_symbols): Likewise.
1925 (process_embedded_commands): Likewise.
1926 * compress.c (bfd_is_section_compressed_with_header): Likewise.
1927 (bfd_init_section_decompress_status): Likewise.
1928 * dwarf2.c (find_debug_info): Likewise.
1929 (place_sections): Likewise.
1930 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
1931 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
1932 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
1933 (assign_section_numbers): Likewise.
1934 (elfcore_grok_win32pstatus): Likewise.
1935 * elf32-arm.c (cmse_scan): Likewise.
1936 (elf32_arm_gc_mark_extra_sections): Likewise.
1937 (elf32_arm_size_dynamic_sections): Likewise.
1938 (is_arm_elf_unwind_section_name): Likewise.
1939 * elf32-bfin.c (bfin_size_dynamic_sections): Likewise.
1940 * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
1941 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
1942 * elf32-csky.c (csky_elf_size_dynamic_sections): Likewise.
1943 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1944 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1945 * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
1946 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
1947 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1948 * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
1949 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
1950 * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
1951 * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
1952 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1953 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1954 * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
1955 * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
1956 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1957 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name): Likewise.
1958 (elf32_tic6x_size_dynamic_sections): Likewise.
1959 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
1960 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
1961 (xtensa_is_insntable_section): Likewise.
1962 (xtensa_is_littable_section): Likewise.
1963 (xtensa_is_proptable_section): Likewise.
1964 (xtensa_property_section_name): Likewise.
1965 (xtensa_callback_required_dependence): Likewise.
1966 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1967 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1968 * elf64-ia64-vms.c (is_unwind_section_name): Likewise.
1969 (get_reloc_section): Likewise.
1970 (elf64_ia64_size_dynamic_sections): Likewise.
1971 (elf64_ia64_object_p): Likewise.
1972 * elf64-mmix.c (mmix_elf_add_symbol_hook): Likewise.
1973 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
1974 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1975 * elflink.c (elf_link_add_object_symbols): Likewise.
1976 (_bfd_elf_gc_mark_extra_sections): Likewise.
1977 (bfd_elf_parse_eh_frame_entries): Likewise.
1978 (_bfd_elf_section_already_linked): Likewise.
1979 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
1980 * elfnn-ia64.c (is_unwind_section_name): Likewise.
1981 (elfNN_ia64_size_dynamic_sections): Likewise.
1982 (elfNN_ia64_object_p): Likewise.
1983 * elfxx-mips.c (FN_STUB_P): Likewise.
1984 (CALL_STUB_P): Likewise.
1985 (CALL_FP_STUB_P): Likewise.
1986 (_bfd_mips_elf_section_from_shdr): Likewise.
1987 (_bfd_mips_elf_fake_sections): Likewise.
1988 (_bfd_mips_elf_size_dynamic_sections): Likewise.
1989 (_bfd_mips_final_write_processing): Likewise.
1990 (_bfd_mips_elf_final_link): Likewise.
1991 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1992 * elfxx-x86.c (elf_i386_is_reloc_section): Likewise.
1993 (elf_x86_64_is_reloc_section): Likewise.
1994 * hpux-core.c (thread_section_p): Likewise.
1995 * libcoff.h (bfd_pei_p): Likewise.
1996 * linker.c (REAL): Likewise.
1997 (unwrap_hash_lookup): Likewise.
1998 (_bfd_generic_link_add_one_symbol): Likewise.
1999 * mmo.c (mmo_internal_write_section): Likewise.
2000 * osf-core.c (osf_core_core_file_p): Likewise.
2001 * pef.c (bfd_pef_print_symbol): Likewise.
2002 * pei-x86_64.c (pex64_print_all_pdata_sections): Likewise.
2003 * som.c (som_slurp_symbol_table): Likewise.
2004 (som_slurp_armap): Likewise.
2005 * wasm-module.c (wasm_compute_custom_section_file_position): Likewise.
2006
2007 2021-03-22 Jan Beulich <jbeulich@suse.com>
2008
2009 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
2010 language translation wrapping to _bfd_error_handler()
2011 invocations.
2012
2013 2021-03-21 Alan Modra <amodra@gmail.com>
2014
2015 * bfd-in.h (startswith): New inline.
2016 (CONST_STRNEQ): Use startswith.
2017 * bfd-in2.h: Regenerate.
2018
2019 2021-03-20 Alan Modra <amodra@gmail.com>
2020
2021 PR 27590
2022 * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE
2023 test for .gnu.debuglto*.
2024
2025 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
2026
2027 PR ld/27590
2028 * elf.c (_bfd_elf_make_section_from_shdr): Treat
2029 .gnu.debuglto_.debug_ section as debugging section unless it is
2030 marked with SHF_EXCLUDE.
2031 * elflink.c (elf_create_symbuf): Revert commit 994b2513281.
2032 (bfd_elf_match_symbols_in_sections): Ignore section symbols when
2033 matching non-debugging sections or linkonce section with comdat
2034 section.
2035
2036 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
2037
2038 PR ld/27587
2039 * dwarf2.c (read_attribute_value): Check version >= 3 for
2040 DW_FORM_ref_addr.
2041
2042 2021-03-16 Nick Clifton <nickc@redhat.com>
2043
2044 * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
2045 overrun by using sizeof of the destination x_fname field as the
2046 limit for a memcpy.
2047
2048 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2049
2050 * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
2051
2052 2021-03-12 Clément Chigot <clement.chigot@atos.net>
2053
2054 * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
2055 BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
2056 BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
2057 BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
2058 BFD_RELOC_PPC64_TLS_ML): New relocations.
2059 * bfd-in2.h: Regenerate.
2060 * libbfd.h: Regenerate.
2061 * coff-rs6000.c (xcoff_calculate_relocation): Call
2062 xcoff_reloc_type_tls for TLS relocations.
2063 (xcoff_howto_table): Implement TLS relocations.
2064 (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
2065 (xcoff_reloc_type_tls): New function.
2066 * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
2067 (xcoff_howto_table): Likewise.
2068 (_bfd_xcoff_reloc_type_lookup): Likewise.
2069 * coffcode.h (sec_to_styp_flags): Handle TLS sections.
2070 (styp_to_sec_flags): Likewise.
2071 (coff_compute_section_file_positions): Avoid file offset
2072 optimisation for .data when the previous section is .tdata.
2073 (coff_write_object_contents): Handle TLS sections.
2074 * coffswap.h (coff_swap_aouthdr_out): Add support for
2075 new fields in aouthdr.
2076 * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
2077 * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
2078 (xcoff_need_ldrel_p): Add cases for TLS relocations.
2079 (xcoff_create_ldrel): Add l_symndx for TLS sections.
2080
2081 2021-03-12 Clément Chigot <clement.chigot@atos.net>
2082
2083 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
2084 New relocations.
2085 * bfd-in2.h: Regenerate.
2086 * libbfd.h: Regenerate.
2087 * coff-rs6000.c (xcoff_calculate_relocation): Call
2088 xcoff_reloc_type_toc for R_TOCU and R_TOCL.
2089 (xcoff_howto_table): Remove src_mask for TOC relocations.
2090 Add R_TOCU and R_TOCL howtos.
2091 (_bfd_xcoff_reloc_type_lookup): Add cases for
2092 BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
2093 (xcoff_reloc_type_toc): Compute the whole offset.
2094 Implement R_TOCU and R_TOCL.
2095 * coff64-rs6000.c (xcoff64_calculate_relocation):
2096 Likewise.
2097 (xcoff64_howto_table): Likewise.
2098 (xcoff64_reloc_type_lookup): Likewise.
2099
2100 2021-03-12 Clément Chigot <clement.chigot@atos.net>
2101
2102 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
2103 add new relocations.
2104 (xcoff_howto_table): Likewise.
2105 (xcoff_rtype2howto): Increase r_type maximum value.
2106 (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
2107 of create a new one from scratch. Enable only some relocations
2108 to have a changing r_size.
2109 * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
2110 (xcoff64_howto_table): Likewise.
2111 (xcoff64_rtype2howto): Likewise.
2112 (xcoff64_ppc_relocate_section): Likewise.
2113 * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
2114
2115 2021-03-12 Clément Chigot <clement.chigot@atos.net>
2116
2117 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
2118
2119 2021-03-12 Clément Chigot <clement.chigot@atos.net>
2120
2121 * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
2122 * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
2123 support for o_cputype field. Avoid creating an empty a.out header
2124 for XCOFF64.
2125
2126 2021-03-12 Clément Chigot <clement.chigot@atos.net>
2127
2128 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
2129 missing smclass.
2130
2131 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
2132
2133 * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
2134 restart_relax, used to check if we need to run the whole
2135 relaxations from relax pass 0 to 2 again.
2136 (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
2137 (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
2138 (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
2139 (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
2140 after_allocation to check if we need to run the whole relaxations again.
2141 (_bfd_riscv_relax_section): We will only enter into the relax pass 3
2142 when the restart_relax is FALSE; At last set restart_relax to TRUE if
2143 again is TRUE, too.
2144 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
2145 (bfd_elf64_riscv_restart_relax_sections): Likewise.
2146
2147 2021-03-10 Jan Beulich <jbeulich@suse.com>
2148
2149 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
2150 offset.
2151
2152 2021-03-10 Alan Modra <amodra@gmail.com>
2153 Jan Beulich <jbeulich@suse.com>
2154
2155 * elf.c (bfd_elf_generic_reloc): Make references between debug
2156 sections use section relative values.
2157
2158 2021-03-09 Jan Beulich <jbeulich@suse.com>
2159
2160 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
2161
2162 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
2163
2164 PR ld/27425
2165 PR ld/27432
2166 * bfd.c (_bfd_get_link_info): New function.
2167 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
2168 (elf_link_info): New.
2169 * libbfd-in.h (_bfd_get_link_info): New prototype.
2170 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
2171 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
2172 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
2173 (pex64_link_add_symbols): New function.
2174 (coff_bfd_link_add_symbols): New macro.
2175 * libbfd.h: Regenerated.
2176
2177 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2178 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
2181 * elf.c (elfcore_grok_riscv_csr): New function.
2182 (elfcore_grok_note): Handle NT_RISCV_CSR.
2183 (elfcore_write_riscv_csr): New function.
2184 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
2185
2186 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2187 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
2190 (PRPSINFO_PR_PSARGS_LENGTH): Define.
2191 (riscv_write_core_note): New function.
2192 (riscv_elf_grok_psinfo): Make use of two new length defines.
2193 (elf_backend_write_core_note): Define.
2194
2195 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2196 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
2199 * elf.c (elfcore_grok_gdb_tdesc): New function.
2200 (elfcore_grok_note): Handle NT_GDB_TDESC.
2201 (elfcore_write_gdb_tdesc): New function.
2202 (elfcore_write_register_note): Handle NT_GDB_TDESC.
2203
2204 2021-03-05 Nick Clifton <nickc@redhat.com>
2205
2206 PR 27521
2207 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
2208 (read_indexed_string): Placeholder function.
2209 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
2210 forms.
2211
2212 2021-03-05 Alan Modra <amodra@gmail.com>
2213
2214 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
2215 2020-09-16 changes.
2216 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
2217 adjustments here instead. Separate pc-relative adjustments
2218 from symbol related adjustments. Tidy comments and formatting.
2219
2220 2021-03-04 Jan Beulich <jbeulich@suse.com>
2221
2222 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
2223 final PE images.
2224
2225 2021-03-04 Alan Modra <amodra@gmail.com>
2226
2227 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
2228
2229 2021-03-03 Alan Modra <amodra@gmail.com>
2230
2231 PR 27500
2232 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
2233 processing not when start/stop symbol section is unmarked but
2234 on first time a start/stop symbol is processed.
2235
2236 2021-03-03 Alan Modra <amodra@gmail.com>
2237
2238 * reloc.c: Include x86_64.h rather than internal.h.
2239
2240 2021-03-02 Nick Clifton <nickc@redhat.com>
2241
2242 PR 27484
2243 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
2244 function and variable tags and a second time to resolve their
2245 attributes.
2246
2247 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
2248
2249 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
2250
2251 2021-03-02 Alan Modra <amodra@gmail.com>
2252
2253 PR 27451
2254 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
2255 linker defined start/stop symbols when start_stop_gc.
2256
2257 2021-03-02 Alan Modra <amodra@gmail.com>
2258
2259 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
2260 indirect to pc-relative or toc-relative for undefined symbols.
2261
2262 2021-03-01 Alan Modra <amodra@gmail.com>
2263 Fangrui Song <maskray@google.com>
2264
2265 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
2266 defined start/stop symbols when start_stop_gc.
2267 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
2268 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
2269 * linker.c (bfd_generic_define_start_stop): Likewise.
2270
2271 2021-02-25 Alan Modra <amodra@gmail.com>
2272
2273 PR 27441
2274 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
2275 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
2276 use when deciding an as-needed library should be loaded instead
2277 of using the binding of the library definition.
2278
2279 2021-02-24 Alan Modra <amodra@gmail.com>
2280
2281 PR 27459
2282 * coff-stgo32.c (go32exe_check_format): Sanity check size of
2283 header to avoid a buffer overflow.
2284
2285 2021-02-22 Alan Modra <amodra@gmail.com>
2286
2287 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
2288 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
2289
2290 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
2291
2292 PR 27158
2293 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
2294 (_bfd_riscv_relax_call): Likewise.
2295 (_bfd_riscv_relax_lui): Likewise.
2296 * elfxx-riscv.c (howto_table): Likewise.
2297
2298 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
2299
2300 * Makefile.am: Added cpu-riscv.h.
2301 * Makefile.in: Regenerated.
2302 * po/SRC-POTFILES.in: Regenerated.
2303 * cpu-riscv.h: Added to support spec versions controlling.
2304 Also added extern arrays and functions for cpu-riscv.c.
2305 (enum riscv_spec_class): Define all spec classes here uniformly.
2306 (struct riscv_spec): Added for all specs.
2307 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
2308 (RISCV_GET_SPEC_NAME): Likewise.
2309 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
2310 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
2311 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
2312 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
2313 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
2314 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
2315 (riscv_priv_specs): Moved below.
2316 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
2317 (riscv_isa_specs): Moved from include/opcode/riscv.h.
2318 * elfnn-riscv.c: Included cpu-riscv.h.
2319 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
2320 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
2321 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
2322 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
2323
2324 2021-02-17 Alan Modra <amodra@gmail.com>
2325
2326 * wasm-module.c: Guard include of limits.h.
2327 (CHAR_BIT): Provide backup define.
2328 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
2329 Correct signed overflow checking.
2330
2331 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
2332
2333 PR 27200
2334 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
2335 copying the elf flags from input BFD to output BFD, until we have
2336 checked if the input BFD has no code section or not. Also fix the
2337 problem that we only check the first section rather than the entire
2338 sections for input BFD.
2339
2340 2021-02-16 Alan Modra <amodra@gmail.com>
2341
2342 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
2343 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
2344
2345 2021-02-15 Jan Beulich <jbeulich@suse.com>
2346
2347 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
2348 * doc/Makefile.in: Re-generate.
2349
2350 2021-02-15 Alan Modra <amodra@gmail.com>
2351
2352 * elf32-nds32.c (nds32_get_section_contents): Replace
2353 bfd_malloc_and_get_section with bfd_get_full_section_contents.
2354 (nds32_elf_relax_delete_blanks): Init contents.
2355 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
2356
2357 2021-02-15 Alan Modra <amodra@gmail.com>
2358
2359 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
2360 bfd_get_full_section_contents.
2361
2362 2021-02-14 Alan Modra <amodra@gmail.com>
2363
2364 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
2365 all fixes to bfd_generic_get_relocated_section_contents since this
2366 function was split out.
2367
2368 2021-02-11 Alan Modra <amodra@gmail.com>
2369
2370 * config.bfd: Remove ia64 from obsolete list.
2371
2372 2021-02-11 Alan Modra <amodra@gmail.com>
2373
2374 PR ld/22269
2375 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
2376
2377 2021-02-11 Alan Modra <amodra@gmail.com>
2378
2379 PR 27294
2380 * elf32-avr.c (avr_elf32_load_records_from_section): Use
2381 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
2382 unnecessary casts.
2383
2384 2021-02-11 Alan Modra <amodra@gmail.com>
2385
2386 PR 27291
2387 * section.c (bfd_get_section_contents): Avoid possible overflow
2388 when range checking offset and count.
2389 (bfd_set_section_contents): Likewise.
2390
2391 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
2392
2393 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
2394 favour of LIBINTL.
2395 * configure: Regenerated.
2396
2397 2021-02-09 Alan Modra <amodra@gmail.com>
2398
2399 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
2400 * configure.ac: Delete symbian entries.
2401 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
2402 * elf32-arm.c: Remove symbian support. Formatting.
2403 * targets.c: Delete symbian entries.
2404 * configure: Regenerate.
2405
2406 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
2407
2408 PR ld/19609
2409 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
2410 info when failed to convert GOTPCREL relocation.
2411
2412 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
2413
2414 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
2415
2416 2021-02-04 Alan Modra <amodra@gmail.com>
2417
2418 PR 27311
2419 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
2420 libraries for IR references on pass over libraries after LTO
2421 recompilation.
2422
2423 2021-02-03 Alan Modra <amodra@gmail.com>
2424
2425 PR 27311
2426 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
2427 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
2428 libraries when H is an indirect symbol after calling
2429 _bfd_elf_add_default_symbol.
2430
2431 2021-02-03 Alan Modra <amodra@gmail.com>
2432
2433 PR 27311
2434 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
2435 undecorated symbol will have a different version.
2436
2437 2021-02-02 Alan Modra <amodra@gmail.com>
2438
2439 PR 27311
2440 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
2441 Use when handling default versioned symbol. Rename existing
2442 override variable to nondef_override and use for non-default
2443 versioned symbol.
2444 (elf_link_add_object_symbols): Adjust call to suit. Don't
2445 pull in as-needed libraries when override is set.
2446
2447 2021-02-01 Emery Hemingway <ehmry@posteo.net>
2448
2449 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
2450
2451 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
2452
2453 PR 27254
2454 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
2455 offset for the R_RL78_RH_SADDR relocation.
2456
2457 2021-01-29 Alan Modra <amodra@gmail.com>
2458
2459 PR 27271
2460 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
2461 on symbols defined in absolute or other special sections.
2462
2463 2021-01-28 Alan Modra <amodra@gmail.com>
2464
2465 PR 27259
2466 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
2467 prevent endless looping of linked-to sections.
2468
2469 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2470
2471 * bfd-elf.h (elfcore_write_file_note): New function.
2472 * elf.c (elfcore_write_file_note): New function.
2473
2474 2021-01-26 Alan Modra <amodra@gmail.com>
2475
2476 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
2477
2478 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
2479
2480 PR binutils/27231
2481 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
2482 number tables.
2483
2484 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
2485
2486 PR binutils/27231
2487 * dwarf2.c (read_rnglists): Advance rngs_ptr after
2488 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
2489
2490 2021-01-20 Alan Modra <amodra@gmail.com>
2491
2492 * elf32-ppc.c: Delete outdated comment.
2493 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
2494 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
2495
2496 2021-01-20 Alan Modra <amodra@gmail.com>
2497
2498 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
2499 section symbols are present.
2500
2501 2021-01-19 Alan Modra <amodra@gmail.com>
2502
2503 * elf64-ppc.c (elf_hash_entry): New inline function. Use
2504 throughout to replace casts.
2505 (branch_reloc_hash_match): Remove const from params.
2506 (use_local_plt): New function.
2507 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
2508 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
2509 Use use_local_plt.
2510 * elf32-ppc.c (use_local_plt): New function.
2511 (allocate_dynrelocs, ppc_elf_relocate_section),
2512 (write_global_sym_plt): Use use_local_plt.
2513
2514 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
2515
2516 PR ld/27193
2517 * elflink.c (elf_create_symbuf): Also ignore section symbols.
2518
2519 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
2520
2521 PR ld/23169
2522 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
2523 check pointer_equality_needed.
2524
2525 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
2526
2527 * elf-linker-x86.h (elf_linker_x86_params): Add
2528 report_relative_reloc.
2529 * elf32-i386.c (elf_i386_relocate_section): Call
2530 _bfd_x86_elf_link_report_relative_reloc to report relative
2531 relocations for -z report-relative-reloc.
2532 (elf_i386_finish_dynamic_symbol): Likewse.
2533 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
2534 (elf_x86_64_finish_dynamic_symbol): Likewse.
2535 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
2536 function.
2537 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
2538 prototype.
2539
2540 2021-01-16 Alan Modra <amodra@gmail.com>
2541
2542 * compress.c (decompress_contents): Tidy inflateEnd result test.
2543
2544 2021-01-16 Alan Modra <amodra@gmail.com>
2545
2546 PR 26002
2547 * elflink.c (elf_link_output_extsym): Use version 1 in
2548 .gnu.version for undefined unversioned symbols.
2549
2550 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2551
2552 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
2553 caused the by previous commit accidentally.
2554
2555 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2556
2557 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
2558 also aligned the code.
2559
2560 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2561
2562 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
2563
2564 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
2565
2566 * elfnn-riscv.c: Comments tidy and improvement.
2567 * elfxx-riscv.c: Likewise.
2568 * elfxx-riscv.h: Likewise.
2569
2570 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
2571
2572 PR ld/26688
2573 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
2574 section for R_BFIN_FUNCDESC.
2575
2576 2021-01-14 Nick Clifton <nickc@redhat.com>
2577
2578 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
2579
2580 2021-01-13 Alan Modra <amodra@gmail.com>
2581
2582 * Makefile.in: Regenerate.
2583 * doc/Makefile.in: Regenerate.
2584
2585 2021-01-13 Alan Modra <amodra@gmail.com>
2586
2587 PR 27160
2588 * section.c (struct bfd_section): Remove pattern field.
2589 (BFD_FAKE_SECTION): Adjust to suit.
2590 * bfd-in2.h: Regenerate.
2591 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
2592 (bfd_elf_final_link): Don't call elf_fixup_link_order.
2593
2594 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2595
2596 PR binutils/26792
2597 * configure.ac: Use GNU_MAKE_JOBSERVER.
2598 * aclocal.m4: Regenerated.
2599 * configure: Likewise.
2600
2601 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2602
2603 PR ld/27171
2604 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
2605 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
2606
2607 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2608
2609 PR ld/27173
2610 * configure: Regenerated.
2611
2612 2021-01-11 Nick Clifton <nickc@redhat.com>
2613
2614 * po/fr.po: Updated French translation.
2615 * po/pt.po: Updated Portuguese translation.
2616 * po/sr.po: Updated Serbian translation.
2617 * po/uk.po: Updated Ukranian translation.
2618
2619 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2620
2621 * configure: Regenerated.
2622
2623 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2624
2625 PR ld/27166
2626 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
2627 -z lam-u48 and -z lam-u57.
2628
2629 2021-01-09 Nick Clifton <nickc@redhat.com>
2630
2631 * version.m4: Change to 2.36.50.
2632 * configure: Regenerate.
2633 * po/bfd.pot: Regenerate.
2634
2635 2021-01-09 Nick Clifton <nickc@redhat.com>
2636
2637 * 2.36 release branch crated.
2638
2639 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
2640
2641 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
2642 LAM_U57 when setting LAM_U48.
2643
2644 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
2645
2646 PR ld/26256
2647 PR ld/27160
2648 * elflink.c (elf_fixup_link_order): Verify that fixing up
2649 SHF_LINK_ORDER doesn't increase the output section size.
2650
2651 2021-01-09 Alan Modra <amodra@gmail.com>
2652
2653 * configure: Regenerate.
2654
2655 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2656
2657 * configure: Regenerate.
2658
2659 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2660
2661 PR 27109
2662 * aix386-core.c (core_aix386_vec): Initialize
2663 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
2664 * aout-target.h (MY (vec)): Likewise.
2665 * binary.c (binary_vec): Likewise.
2666 * cisco-core.c (core_cisco_be_vec): Likewise.
2667 (core_cisco_le_vec): Likewise.
2668 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
2669 * coff-i386.c (TARGET_SYM): Likewise.
2670 (TARGET_SYM_BIG): Likewise.
2671 * coff-ia64.c (TARGET_SYM): Likewise.
2672 * coff-mips.c (mips_ecoff_le_vec): Likewise.
2673 (mips_ecoff_be_vec): Likewise.
2674 (mips_ecoff_bele_vec): Likewise.
2675 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
2676 (powerpc_xcoff_vec): Likewise.
2677 * coff-sh.c (sh_coff_small_vec): Likewise.
2678 (sh_coff_small_le_vec): Likewise.
2679 * coff-tic30.c (tic30_coff_vec): Likewise.
2680 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
2681 (tic54x_coff0_beh_vec): Likewise.
2682 (tic54x_coff1_vec): Likewise.
2683 (tic54x_coff1_beh_vec): Likewise.
2684 (tic54x_coff2_vec): Likewise.
2685 (tic54x_coff2_beh_vec): Likewise.
2686 * coff-x86_64.c (TARGET_SYM): Likewise.
2687 (TARGET_SYM_BIG): Likewise.
2688 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
2689 (rs6000_xcoff64_aix_vec): Likewise.
2690 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
2691 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
2692 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
2693 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
2694 (TARGET_LITTLE_SYM): Likewise.
2695 * hppabsd-core.c (core_hppabsd_vec): Likewise.
2696 * hpux-core.c (core_hpux_vec): Likewise.
2697 * i386msdos.c (i386_msdos_vec): Likewise.
2698 * ihex.c (ihex_vec): Likewise.
2699 * irix-core.c (core_irix_vec): Likewise.
2700 * mach-o-target.c (TARGET_NAME): Likewise.
2701 * mmo.c (mmix_mmo_vec): Likewise.
2702 * netbsd-core.c (core_netbsd_vec): Likewise.
2703 * osf-core.c (core_osf_vec): Likewise.
2704 * pdp11.c (MY (vec)): Likewise.
2705 * pef.c (pef_vec): Likewise.
2706 (pef_xlib_vec): Likewise.
2707 * plugin.c (plugin_vec): Likewise.
2708 * ppcboot.c (powerpc_boot_vec): Likewise.
2709 * ptrace-core.c (core_ptrace_vec): Likewise.
2710 * sco5-core.c (core_sco5_vec): Likewise.
2711 * som.c (hppa_som_vec): Likewise.
2712 * srec.c (srec_vec): Likewise.
2713 (symbolsrec_vec): Likewise.
2714 * tekhex.c (tekhex_vec): Likewise.
2715 * trad-core.c (core_trad_vec): Likewise.
2716 * verilog.c (verilog_vec): Likewise.
2717 * vms-alpha.c (alpha_vms_vec): Likewise.
2718 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
2719 * wasm-module.c (wasm_vec): Likewise.
2720 * xsym.c (sym_vec): Likewise.
2721 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
2722 isn't set.
2723 (elf_map_symbols): Don't include ignored section symbols.
2724 * elfcode.h (elf_slurp_symbol_table): Also set
2725 BSF_SECTION_SYM_USED on STT_SECTION symbols.
2726 * elflink.c (bfd_elf_final_link): Generated section symbols only
2727 when emitting relocations or reqired.
2728 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
2729 * syms.c (BSF_SECTION_SYM_USED): New.
2730 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
2731 (bfd_target): Add keep_unused_section_symbols.
2732 (bfd_keep_unused_section_symbols): New.
2733 * bfd-in2.h: Regenerated.
2734
2735 2021-01-07 Nick Clifton <nickc@redhat.com>
2736
2737 PR 25713
2738 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
2739 absolute paths and check to see if they are longer than MAX_PATH.
2740
2741 2021-01-07 Philipp Tomsich <prt@gnu.org>
2742
2743 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
2744
2745 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
2746 Jim Wilson <jimw@sifive.com>
2747 Andrew Waterman <andrew@sifive.com>
2748 Maxim Blinov <maxim.blinov@embecosm.com>
2749 Kito Cheng <kito.cheng@sifive.com>
2750 Nelson Chu <nelson.chu@sifive.com>
2751
2752 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
2753
2754 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
2755
2756 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
2757 (bfinfdpic_check_relocs): Likewise.
2758
2759 2021-01-06 Alan Modra <amodra@gmail.com>
2760
2761 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
2762 on unknown r_type.
2763 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
2764
2765 2021-01-06 Alan Modra <amodra@gmail.com>
2766
2767 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
2768 (sparc64-*-solaris2*): Add sparc_elf64_vec and
2769 sparc_elf32_vec.
2770
2771 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2772
2773 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
2774 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
2775 * configure.ac: Handle riscv_elf[32|64]_be_vec.
2776 * configure: Regenerate.
2777 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
2778 riscv_is_insn_reloc.
2779 (riscv_get_insn): RISC-V instructions are always little endian, but
2780 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
2781 the insturctions.
2782 (riscv_put_insn): Likewsie.
2783 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
2784 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
2785 use riscv_[get|put]_insn or bfd_[get|put].
2786 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
2787 or bfd_[get|put]l16 for code.
2788 (riscv_elf_relocate_section): Likewise.
2789 (riscv_elf_finish_dynamic_symbol): Likewise.
2790 (riscv_elf_finish_dynamic_sections): Likewise.
2791 (_bfd_riscv_relax_call): Likewise.
2792 (_bfd_riscv_relax_lui): Likewise.
2793 (_bfd_riscv_relax_align): Likewise.
2794 (_bfd_riscv_relax_pc): Likewise.
2795 (riscv_elf_object_p): Handled for big endian.
2796 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
2797 * targets.c: Add riscv_elf[32|64]_be_vec.
2798 (_bfd_target_vector): Likewise.
2799
2800 2021-01-05 Alan Modra <amodra@gmail.com>
2801
2802 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
2803 for relocatable executable.
2804
2805 2021-01-05 Alan Modra <amodra@gmail.com>
2806
2807 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
2808
2809 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
2810
2811 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
2812 make sure gp symbol is output as a dynamic symbol.
2813
2814 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2815
2816 PR ld/26256
2817 * elflink.c (compare_link_order): Place unordered sections before
2818 ordered sections.
2819 (elf_fixup_link_order): Add a link info argument. Allow mixed
2820 ordered and unordered input sections for non-relocatable link.
2821 Sort the consecutive bfd_indirect_link_order sections with the
2822 same pattern. Change the offsets of the bfd_indirect_link_order
2823 sections only.
2824 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
2825 * section.c (bfd_section): Add pattern.
2826 (BFD_FAKE_SECTION): Initialize pattern to NULL.
2827 * bfd-in2.h: Regenerated.
2828
2829 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
2830
2831 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
2832 of private flags with 0x.
2833 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
2834
2835 2021-01-04 Alan Modra <amodra@gmail.com>
2836
2837 PR 26822
2838 * elflink.c (elf_link_input_bfd): Use the file base name in
2839 linker generated STT_FILE symbols.
2840
2841 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
2842
2843 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
2844 * elfxx-riscv.h: Add declaration.
2845 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
2846 riscv_compare_subsets to check the orders.
2847 (riscv_skip_prefix): Removed.
2848 (riscv_prefix_cmp): Removed.
2849
2850 2021-01-04 Alan Modra <amodra@gmail.com>
2851
2852 PR 26741
2853 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
2854 calculating subset version length.
2855
2856 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2857
2858 * xcofflink.c: Correct spelling in comments.
2859
2860 2021-01-01 Alan Modra <amodra@gmail.com>
2861
2862 Update year range in copyright notice of all files.
2863
2864 For older changes see ChangeLog-2020
2865 \f
2866 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2867
2868 Copying and distribution of this file, with or without modification,
2869 are permitted in any medium without royalty provided the copyright
2870 notice and this notice are preserved.
2871
2872 Local Variables:
2873 mode: change-log
2874 left-margin: 8
2875 fill-column: 74
2876 version-control: never
2877 End: