1 2020-11-06 H.J. Lu <hongjiu.lu@intel.com>
3 * elfedit.c: Include "libiberty.h".
4 (usage): Update help message.
6 2020-11-03 Howard Chu <hyc@symas.com>
8 * ar.c (long_options): Add --record-libdeps.
9 (usage): Mention the new option.
10 (decode_options): Handle the new option.
11 (replace_members): If necessary, create a bfd to hold the libdeps
13 * binemul.c (ar_emul_append_bfd): New function.
14 (ar_emul_replace_bfd): New function.
15 (ar_emul_default_append): Replace file_name and target arguments
16 with new_bfd argument.
17 (ar_emul_default_replace): Likewise.
18 * binemul.h: Update prototypes.
19 (struct bin_emulation_xfer_struct): Update fields.
20 * doc/binutils.texi: Document the new option.
21 * NEWS: Mention the new feature.
22 * emul_aix.c (ar_emul_aix_append): Update.
23 (ar_emul_aix_replace): Likewise.
24 * testsuite/binutils-all/ar.exp: Add test of new feature.
26 2020-10-30 H.J. Lu <hongjiu.lu@intel.com>
29 * readelf.c (decode_x86_isa): Handle
30 * GNU_PROPERTY_X86_ISA_1_BASELINE.
31 * testsuite/binutils-all/i386/empty.d: Updated.
32 * testsuite/binutils-all/i386/ibt.d: Likewise.
33 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
34 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
35 * testsuite/binutils-all/i386/shstk.d: Likewise.
36 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
37 * testsuite/binutils-all/x86-64/empty.d: Likewise.
38 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
39 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
40 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
41 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
42 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
43 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
44 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
45 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
46 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
47 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
48 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
49 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
50 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
51 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
53 2020-10-29 H.J. Lu <hongjiu.lu@intel.com>
56 * dwarf.c (abbrev_list): Add abbrev_base.
57 (new_abbrev_list): Add an abbrev_base argument and record it.
58 (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
60 (process_debug_info): Pass abbrev_base to new_abbrev_list and
61 find_abbrev_list_by_abbrev_offset.
62 (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
63 and find_abbrev_list_by_abbrev_offset.
64 * testsuite/binutils-all/x86-64/pr26808.dump: New file.
65 * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
66 * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
69 2020-10-29 Nick Clifton <nickc@redhat.com>
72 * objcopy.c (is_dwo_section): Check for missing or short section
75 2020-10-26 Andreas Rammhold <andreas@rammhold.de>
77 * README-how-to-make-a-release: Use sha256sum instead of md5sum.
79 2020-10-28 Nick Clifton <nickc@redhat.com>
82 * elfedit.c (process_archive): Remove spurious call to free().
84 2020-10-27 Nick Clifton <nickc@redhat.com>
86 * dwarf.c (struct abbrev_list): New structure. Used to collect
87 lists of abbreviation sets.
88 (struct abbrev_map): New structure. Used to map CU offsets to
90 (record_abbrev_list): New function. A new entry to an
92 (free_all_abbrevs): Update to free abbreviation lists.
93 (new_abbrev_list): New function. Start a new abbreviation
95 (find_abbrev_list_by_abbrev_offset): New function.
96 (find_abbrev_map_by_offset): New function.
97 (add_abbrev): Add abbrev_list parameter.
98 (add_abbrev_attr): Likewise.
99 (process_abbrev_section): Rename to process_abbrev_set and add
101 (get_type_abbrev_from_form): New function. Attempts to decode the
102 forms used by DW_AT_type attributes.
103 (get_type_signedness): Display type names if operating in wide
104 mode. Use get_type_abbrev_from_form.
105 (read_and_display_attr_value): Use get_type_abbrev_from_form.
106 (process_debug_info): Pre-parse the CU headers to collate all the
107 abbrevs before starting the main scan.
108 (process_debug_abbrev): Do not free any loaded abbrevs.
109 (free_debug_memory): Free the abbrev maps.
111 2020-10-22 H.J. Lu <hongjiu.lu@intel.com>
113 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
114 error message on error.
116 2020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
118 * windmc.c (write_header_define): Fix printf format.
119 (write_header): Likewise.
121 2020-10-21 Nick Clifton <nickc@redhat.com>
123 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
124 when processing the DW_FORM_ref_addr form.
125 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
126 Handle DW_FORM_indirect.
127 (get_type_signedness): Allow a limited amount of recursion.
128 Do not attempt to decode types that use the DW_FORM_ref_addr form.
129 (read_and_display_attr_value): Do not attempt to decode types
130 that use the DW_FORM_ref_addr form.
132 2020-10-20 Alan Modra <amodra@gmail.com>
134 * readelf.c: Delete whitespace at end of line throughout.
135 (SECTION_NAME, SECTION_NAME_VALID): New.
136 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
137 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
138 (process_section_headers, process_section_groups): Likewise.
139 (shdr_to_ctf_sect): Likewise.
140 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
141 (ia64_process_unwind, hppa_process_unwind): Likewise.
142 (display_debug_section, initialise_dumps_byname): Likewise.
143 (process_lto_symbol_tables): Likewise. Check trailing period of
144 lto symbol table names.
145 (display_lto_symtab): Use sizeof instead of strlen.
147 2020-10-20 Nelson Chu <nelson.chu@sifive.com>
149 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
151 2020-10-19 Nick Clifton <nickc@redhat.com>
153 * readelf.c (do_lto_syms): New local.
154 (long_option_values): Add OPTION_LTO_SYMS.
155 (options): Add --lto-syms.
156 (usage): Mention the new option.
157 (parse_args): Parse the new option.
158 (get_lto_kind): New function.
159 (get_lto_visibility): New function.
160 (get_lto_sym_type): New function.
161 (display_lto_symtab): New function - displays the contents of an
162 LTo symbol table section.
163 (process_lto_symbol_tables): New functions. Calls
164 dipslay_lto_symtab on any LTO symbol table section.
165 (process_object_file): Call process_lto_symbol_tables.
166 * doc/binutils.texi: Document the new option.
167 * NEWS: Mention the new feature.
169 2020-10-09 H.J. Lu <hongjiu.lu@intel.com>
172 * readelf.c (decode_x86_compat_2_isa): New function.
173 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
174 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
175 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
176 and X86_COMPAT_2_ISA_1_NEEDED.
177 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
178 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
180 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
181 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
182 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
183 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
184 * testsuite/binutils-all/i386/empty.d: Updated.
185 * testsuite/binutils-all/i386/ibt.d: Likewise.
186 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
187 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
188 * testsuite/binutils-all/i386/shstk.d: Likewise.
189 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
190 * testsuite/binutils-all/x86-64/empty.d: Likewise.
191 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
192 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
193 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
194 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
195 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
196 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
197 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
198 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
199 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
200 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
201 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
202 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
203 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
204 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
206 2020-10-06 Nick Clifton <nickc@redhat.com>
208 * objcopy.c (copy_object): Compare input and output sections by
209 pointer rather than name.
211 2020-10-05 Nick Clifton <nickc@redhat.com>
214 * windmc.c (mc_unify_path): Fix typo checking character at end of
217 2020-10-05 Samanta Navarro <ferivoz@riseup.net>
219 * doc/binutils.texi: Fix spelling mistakes.
221 2020-09-29 Mark Wielaard <mark@klomp.org>
223 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
224 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
226 2020-09-25 Alan Modra <amodra@gmail.com>
228 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
230 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
231 allowed reloc_size. Don't read_leb128 outside of section.
233 2020-09-23 Mark Wielaard <mark@klomp.org>
235 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
236 * testsuite/binutils-all/dw5.W: Adjust expected output.
237 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
239 2020-09-23 Mark Wielaard <mark@klomp.org>
241 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
242 for dwarf_version 5 just as version 3 and 4 (only 2 is
244 (process_debug_info): Allow DW_UT_partial.
246 2020-09-24 Nick Clifton <nickc@redhat.com>
249 * doc/binutils.texi (nm): Document that 'c' is used for small
252 2020-09-21 Ludovic Courtès <ludo@gnu.org>
254 * doc/binutils.texi (objcopy, strip): Say that
255 '--strip-unneeded' implies '--strip-debug'.
257 2020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
259 * verilog.c (verilog_write_address): Properly handle 64-bit
260 addresses to avoid truncation of the high part.
262 2020-09-16 Alan Modra <amodra@gmail.com>
264 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
265 * objcopy.c (is_hidden_symbol): Likewise.
267 2020-09-15 Nick Clifton <nickc@redhat.com>
269 * README-how-to-make-a-release (https): Add a reminder to create a
270 new Bugzilla tag for the point release, once it has been published.
272 2020-09-11 H.J. Lu <hongjiu.lu@intel.com>
274 * readelf.c (get_note_type): Support NT_X86_CET.
276 2020-09-11 Nick Clifton <nickc@redhat.com>
279 * dwarf.c (load_separate_debug_info): Return NULL rather than
280 FALSE in error situations.
281 (load_separate_debug_file): Move code to load debug links to ...
282 (check_for_and_load_links): ... here. New function. Load
283 separate debug information pointed to by debuglink and
284 debugaltlink sections. Recursively scan newly loaded debug
285 information for more links and load them too.
287 2020-09-09 Alan Modra <amodra@gmail.com>
290 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
291 (load_separate_debug_files): Use a stack var for build_id_data.
293 2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
296 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
297 to ld on PE targets for PR 25662 test.
299 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
300 Kuan-Lin Chen <kuanlinchentw@gmail.com>
302 * readelf.c (target_specific_reloc_handling): Handle
303 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
305 2020-09-02 Alan Modra <amodra@gmail.com>
307 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
309 2020-08-30 Alan Modra <amodra@gmail.com>
311 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
314 2020-08-28 Nick Clifton <nickc@redhat.com>
317 * dwarf.c (read_leb128): When checking for overflow of a signed
318 read, use a signed shift.
320 2020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
322 * readelf.c (get_csky_section_type_name): New.
323 (get_section_type_name): Add handler for CSKY.
324 (display_csky_attribute): New.
325 (process_arch_specific): Add handler for CSKY.
326 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
329 2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
331 * readelf.c (get_msp430x_section_type_name): Rename to ...
332 (get_msp430_section_type_name): ... this.
333 (get_section_type_name): Use get_msp430_section_type_name.
334 (display_msp430x_attribute): Rename to ...
335 (display_msp430_attribute): ... this.
336 (process_arch_specific): Use display_msp430_attribute.
338 2020-08-27 John David Anglin <danglin@gcc.gnu.org>
341 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
342 "-j $PRIVATE$" to command on hppa*-*-hpux*.
343 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
344 dollar-sign quotes before quoting. Do this prior to generating log
347 2020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
350 * mclex.c (skip_until_eol): If eol was found, increment line
353 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
355 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
356 * readelf.c (dump_ctf_errs): Likewise.
358 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
360 * objdump.c (dump_ctf_archive_member): Move error-
362 (dump_ctf_errs): ... into this separate function.
363 (dump_ctf): Call it on open errors.
364 * readelf.c (dump_ctf_archive_member): Move error-
366 (dump_ctf_errs): ... into this separate function. Support
367 calls with NULL fp. Adjust for new err parameter to
369 (dump_section_as_ctf): Call it on open errors.
371 2020-08-27 Nick Alcock <nick.alcock@oracle.com>
373 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
374 * Makefile.in: Regenerated.
376 2020-08-26 Nick Clifton <nickc@redhat.com>
379 * readelf.c (get_segment_type): Handle OpenBSD segment types.
381 2020-08-26 Alan Modra <amodra@gmail.com>
384 * objcopy.c (copy_object): Don't fwrite NULL contents.
386 2020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
389 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
391 2020-08-24 Alan Modra <amodra@gmail.com>
393 * readelf.c (dump_section_as_strings) Avoid false positive
394 "may be used uninitialised".
396 2020-08-22 H.J. Lu <hongjiu.lu@intel.com>
399 * nm.c (print_symname): Display only one '@' for undefined
401 * doc/binutils.texi: Update nm version information.
403 2020-08-21 Mark Wielaard <mark@klomp.org>
405 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
406 recognize DW_LANG_C11.
408 2020-08-19 Alan Modra <amodra@gmail.com>
411 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
413 (dump_section_as_strings): Don't use %tx to display offset.
415 2020-08-14 Alan Modra <amodra@gmail.com>
418 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
419 of debug_information. Correct test of max_loc_offsets and
421 * rddbg.c (read_debugging_info): Free dhandle on error.
423 2020-08-14 Alan Modra <amodra@gmail.com>
425 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
427 2020-08-13 Alan Modra <amodra@gmail.com>
430 * objcopy.c (copy_object): Report file name with endian error.
431 Error and return on abfd->read_only.
433 2020-08-12 Tom Tromey <tromey@adacore.com>
435 * dwarf-mode.el (Version): Now 1.6.
436 (dwarf-die-button-action): Tighten DIE reference regexp.
437 (dwarf-font-lock-keywords): Update name regexp.
439 2020-08-12 Nick Clifton <nickc@redhat.com>
442 * readelf.c (do_demangle): New option flag.
443 (print_symbol): If do_demangle is enabled, demangle the symbol.
444 (enum long_option_values): New enum to hold long option values.
445 (options): Add demangle, no-demangle, recursion-limit and
446 no-recursion-limit options. Alpha sort the table.
447 (usage): Describe the new options.
448 (parse_args): Handle the new options.
449 * NEWS: Mention the new feature.
450 * doc/binutils.texi: Document the new feature.
451 * testsuite/binutils-all/readelf.exp: Test the new feature.
452 * testsuite/binutils-all/mangled.s: New file - assembler source.
453 * testsuite/binutils-all/readelf.demangled: New file - expected
456 2020-08-12 Nick Clifton <nickc@redhat.com>
458 * po/sr.po: Updated Serbian translation.
460 2020-08-10 H.J. Lu <hongjiu.lu@intel.com>
463 * nm.c (with_symbol_versions): Removed.
464 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
465 (long_options): Update --with-symbol-versions entry.
466 (print_symbol): Remove the with_symbol_versions check.
467 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
469 * doc/binutils.texi: Remove --with-symbol-versions.
471 2020-08-05 Alan Modra <amodra@gmail.com>
474 * objdump.c (load_specific_debug_section): Revert last change.
476 2020-08-05 Alan Modra <amodra@gmail.com>
479 * objdump.c (load_specific_debug_section): Don't malloc space for
480 section contents, use bfd_malloc_and_get_section.
482 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
484 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
485 * Makefile.in, doc/Makefile.in: Regenerate.
486 * configure: Regenerate.
488 2020-07-30 H.J. Lu <hongjiu.lu@intel.com>
490 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
492 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
493 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
494 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
495 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
496 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
498 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
500 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
502 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
504 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
506 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
508 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
510 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
512 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
514 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
516 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
518 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
520 2020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
522 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
524 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
526 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
528 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
530 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
532 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
534 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
537 * configure: Regenerated.
539 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
542 * configure: Regenerated.
544 2020-07-27 Alan Modra <amodra@gmail.com>
546 * objdump.c (dump_section): Don't return without calling
549 2020-07-27 H.J. Lu <hongjiu.lu@intel.com>
551 * doc/binutils.texi: Replace preceeded with preceded.
553 2020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
555 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
556 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
558 (has_newabi): Remove variable.
559 (has_abi, abi_asflags, abi_ldflags): New associative array
561 (irixemul): New variable.
562 Replace `run_dump_test' calls where applicable throughout with
563 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
564 as appropriate. Use `noarch' for tests that require their own
565 architecture setting.
566 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
567 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
568 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
569 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
570 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
571 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
572 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
573 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
574 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
575 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
576 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
577 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
578 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
579 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
581 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
582 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
583 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
584 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
585 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
586 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
587 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
589 2020-07-24 Aaron Merey <amerey@redhat.com>
591 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
592 * Makefile.in: Rebuild.
593 * configure: Rebuild.
594 * doc/Makefile.in: Rebuild.
596 2020-07-24 Nick Clifton <nickc@redhat.com>
598 * README-how-to-make-a-release: Various small updates whilst
599 creating the 2.35 release.
601 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
603 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
606 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
608 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
609 (dump_ctf): Likewise.
611 2020-07-22 Nick Alcock <nick.alcock@oracle.com>
613 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
614 * readelf.c (dump_ctf_archive_member): Likewise.
616 2020-07-22 Nick Clifton <nickc@redhat.com>
618 * readelf.c (parse_args): Silence potential warnings about a
619 memory resource leak when allocating space for ctf option values.
620 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
623 2020-07-21 Nick Clifton <nickc@redhat.com>
625 * po/sv.po: Updated Swedish translation.
627 2020-07-14 Claudiu Zissulescu <claziss@gmail.com>
629 * testsuite/binutils-all/arc/double_regs.s: New test.
630 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
632 2020-07-13 Nick Clifton <nickc@redhat.com>
634 * po/fr.po: Updated French translation.
636 2020-07-13 Alan Modra <amodra@gmail.com>
638 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
639 optional machine-os arg.
641 2020-07-11 H.J. Lu <hongjiu.lu@intel.com>
643 * readelf.c (decode_x86_feature_2): Handle
644 GNU_PROPERTY_X86_FEATURE_2_TMM.
646 2020-07-10 Tom de Vries <tdevries@suse.de>
648 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
649 information in the end_sequence row.
650 * testsuite/binutils-all/dw5.W: Update.
651 * testsuite/binutils-all/objdump.WL: Update.
653 2020-07-09 Alan Modra <amodra@gmail.com>
655 * dlltool.c: Remove powerpc PE support and comments.
656 * configure.ac: Remove powerpc PE dlltool config.
657 * configure: Regenerate.
659 2020-07-09 Nick Clifton <nickc@redhat.com>
661 * rclex.c: Add OWNERDRAW keyword.
662 * rcparse.y: Add OWNERDRAW token.
663 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
664 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
666 * windres.c (extended_menuitems): Likewise.
667 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
669 2020-07-09 Alan Modra <amodra@gmail.com>
671 * readelf (slurp_hppa_unwind_table): Set table_len before use
672 in relocation sanity checks.
674 2020-07-07 Alan Modra <amodra@gmail.com>
676 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
677 * testsuite/binutils-all/nm.exp: Likewise.
678 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
679 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
680 * testsuite/binutils-all/set-section-alignment.d: Likewise.
681 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
683 2020-07-07 Alan Modra <amodra@gmail.com>
685 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
686 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
688 2020-07-06 Nick Clifton <nickc@redhat.com>
690 * po/bg.po: Updated Bulgarian translation.
691 * po/pt.po: Updated Portuguese translation.
692 * po/uk.po: Updated Ukranian translation.
694 2020-07-06 Alan Modra <amodra@gmail.com>
696 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
699 2020-07-04 Nick Clifton <nickc@redhat.com>
701 * configure: Regenerate.
702 * po/binutils.pot: Regenerate.
704 2020-07-04 Nick Clifton <nickc@redhat.com>
706 Binutils 2.35 branch created.
708 2020-07-02 Nick Clifton <nickc@redhat.com>
711 * readelf.c (print_symbol): Handle truncation of symbol names.
712 (options): Add -T/--silent-truncation option.
713 (parse_args): Handle the option.
714 (print_dynamic_symbol): Correct calculation of width available to
716 * doc/binutils.texi: Document the -T option to readelf.
717 * NEWS: Mention the new feature.
719 2020-06-30 H.J. Lu <hongjiu.lu@intel.com>
721 * NEWS: Mention x86 NaCl target support removal.
722 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
723 x86 NaCl target support.
724 * testsuite/binutils-all/elfedit-1.d: Likewise.
725 * testsuite/binutils-all/i386/i386.exp: Likewise.
726 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
727 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
728 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
729 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
730 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
731 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
732 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
733 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
734 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
735 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
736 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
737 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
739 2020-06-30 Nick Clifton <nickc@redhat.com>
741 * dwarf.c (read_and_display_attr_value): Support
742 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
745 2020-06-30 Alan Modra <amodra@gmail.com>
747 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
750 2020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
752 * dwarf.c (display_debug_str_offsets): Rename local variable
753 index to idx. Move to top of function.
755 2020-06-29 Alan Modra <amodra@gmail.com>
757 * dwarf.c: Use C style comments.
760 2020-06-27 Alan Modra <amodra@gmail.com>
762 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
764 (release_archive): Set fields of arch to NULL after freeing.
766 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
768 * readelf.c (dump_section_as_ctf): Support .ctf archives using
769 ctf_arc_bufopen. Automatically load the .ctf member of such
770 archives as the parent of all other members, unless specifically
771 overridden via --ctf-parent. Split out dumping code into...
772 (dump_ctf_archive_member): ... here, as in objdump, and call
773 it once per archive member.
774 (dump_ctf_indent_lines): Code style fix.
776 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
778 * configure.ac [--enable-libctf]: New, default yes.
779 Set ENABLE_LIBCTF accordingly.
780 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
781 * configure: Regenerate.
782 * config.in: Regenerate.
783 * Makefile.in: Regenerate.
784 * aclocal.m4: Regenerate.
785 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
786 (option_values): Likewise.
787 (long_options): Likewise.
789 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
790 (make_ctfsect): Likewise.
791 (dump_ctf_archive_member): Likewise.
792 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
793 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
794 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
796 (process_section_contents): Likewise.
797 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
798 (dump_ctf_indent_lines): Likewise.
799 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
801 2020-06-26 Jan Beulich <jbeulich@suse.com>
803 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
804 redundant text from x86 specific part of -M section.
806 2020-06-26 Pat Bernardi <bernardi@adacore.com>
808 * readelf.c (display_m68k_gnu_attribute): New function.
809 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
811 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
814 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
815 * testsuite/binutils-all/pr26160.r: Likewise.
816 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
818 2020-06-23 Nick Clifton <nickc@redhat.com>
821 * dwarf.c (fetch_indexed_string): Detect and handle old style
822 .debug_str_offset tables.
823 (display_debug_str_offsets): Likewise. Also add support for
824 .debug_str_offsets.dwo sections.
826 2020-06-23 H.J. Lu <hongjiu.lu@intel.com>
829 * testsuite/binutils-all/pr26112.o.bz2: New file.
830 * testsuite/binutils-all/pr26112.r: Likewise.
831 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
833 2020-06-23 Alan Modra <amodra@gmail.com>
835 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
836 remote_file delete command.
838 2020-06-22 Nick Clifton <nickc@redhat.com>
841 * dwarf.c (display_debug_str_offsets): Add code to display the
842 contents of the .debug_str_offsets section.
843 (display_debug_macro): Add support for DW_MACRO_define_strx and
846 2020-06-22 Saagar Jha <saagar@saagarjha.com>
848 * od-macho.c: Dump linkedit data for new load commands.
850 2020-06-19 Alan Modra <amodra@gmail.com>
852 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
853 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
854 (run_dump_test): Use check_relro_support to decide whether to pass
855 extra ld option "-z norelro".
857 2020-06-11 Alan Modra <amodra@gmail.com>
859 * readelf.c (process_mips_specific): Don't alloc memory for
860 Elf_Internal_Options.
862 2020-06-11 Alan Modra <amodra@gmail.com>
864 * readelf.c (process_mips_specific): Assert size of internal
865 types match size of external types, and simplify allocation of
866 internal buffer. Catch possible integer overflow when sanity
867 checking option size. Don't assume options are a regular array.
868 Sanity check reginfo option against option size. Use PRI macros
871 2020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
874 * mclex.c (yylex): Reject lines that reach end-of-file without a
875 terminating newline character.
877 2020-06-08 Nick Clifton <nickc@redhat.com>
880 * doc/binutils.texi (strings): Fix typo.
882 2020-06-08 Nick Clifton <nickc@redhat.com>
885 * dwarf.c (process_debug_info): Check that there is space in the
886 debug_information array before filling in an entry.
888 2020-06-06 Alan Modra <amodra@gmail.com>
890 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
892 2020-06-05 Joel Anderson <joelanderson333@gmail.com>
895 * mclex.c (yylex): Add test for an empty input stream.
897 2020-06-04 Stephen Casner <casner@acm.org>
899 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
900 for test using section pseudo-ops compatible with pdp11.
901 * testsuite/binutils-all/objcopy.exp: Select alternate source.
903 2020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
905 * objdump.c (disassemble_data): Set disasm_info.endian_code to
906 disasm_info.endian after the latter is initialized to the
907 endianness reported by BFD.
909 2020-06-04 Alan Modra <amodra@gmail.com>
911 * testsuite/binutils-all/i386/i386.exp: Remove global directive
913 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
914 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
916 2020-06-03 Joel Anderson <joelanderson333@gmail.com>
918 * windmc.h (struct mc_node): Add id_typecast field.
919 * mcparse.y (message): Initialise the id_typecast field.
920 * windmc.c (write_dbg): Use the id_typecast field as a parameter
921 when calling write_dbg_define.
922 (write_header): Likewise.
924 2020-06-03 Alan Modra <amodra@gmail.com>
927 * objcopy.c (copy_relocations_in_section): Free relpp on error.
928 Don't accidentally free isection->orelocation.
930 2020-06-02 Alan Modra <amodra@gmail.com>
932 * testsuite/binutils-all/ar.exp (obj): Set up object file name
933 extension. Use throughout. Don't completely exclude non-ELF
934 alpha targets. Run long_filenames test for tic30. Exclude thin
935 archive tests for aix, ecoff and vms.
936 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
937 extension. Use throughout. Don't exclude non-ELF alpha targets
940 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
942 * MAINTAINERS (Xtensa): Add myself as maintainer.
944 2020-05-23 Alan Modra <amodra@gmail.com>
946 * testsuite/binutils-all/ar.exp (many_files): New test.
948 2020-05-21 Alan Modra <amodra@gmail.com>
950 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
951 * dlltool.c: Likewise.
952 * elfcomm.c: Likewise.
954 * readelf.c: Likewise.
956 * windmc.c: Likewise.
957 * windres.c: Likewise.
958 * wrstabs.c: Likewise.
960 2020-05-21 Alan Modra <amodra@gmail.com>
962 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
965 2020-05-20 Nelson Chu <nelson.chu@sifive.com>
967 * dwarf.c: Updated since DECLARE_CSR is changed.
969 2020-05-19 H.J. Lu <hjl.tools@gmail.com>
972 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
973 segment doesn't match the .dynamic section and checks are
975 (struct filedata): Add dynamic_symtab_section and
976 dynamic_strtab_section fields.
977 (process_section_headers): Set dynamic_symtab_section to the
978 .dynsym section. Set dynamic_strtab_section to the .dynstr
980 (process_dynamic_section): Warn if the .dynsym section doesn't
981 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
982 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
984 2020-05-19 Alan Modra <amodra@gmail.com>
986 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
987 (replace_members): Use bfd_get_filename rather than accessing
988 bfd->filename directly.
989 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
990 * binemul.c (do_ar_emul_append): Likewise.
991 * coffgrok.c (coff_grok): Likewise.
993 2020-05-18 Stafford Horne <shorne@gmail.com>
995 * MAINTAINERS (OR1K): Add myself as maintainer.
997 2020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
999 * doc/binutils.texi: Mention 'entry address' in the set-start and
1000 adjust-start options descriptions.
1002 2020-05-05 Nick Clifton <nickc@redhat.com>
1004 * dwarf.c (do_checks): New global variable.
1005 (display_formatted_table): Warn about an unexpected number of
1006 columns in the table, if checks are enabled. Do not complain
1007 about the lack of data following the number of entries in the
1008 table if the table is empty.
1009 (display_debug_lines_decoded): Only warn about an unexpected
1010 number of columns in a table if checks are enabled.
1011 * dwarf.h (do_checks): Add a prototype.
1012 * elfcomm.c (error): Remove weak attribute.
1014 * readelf.c (do_checks): Delete.
1016 (process_section_headers): Only warn about empty sections if
1019 2020-05-04 Fangrui Song <maskray@google.com>
1021 * objcopy.c (copy_object): Allow empty section.
1022 * testsuite/binutils-all/update-section.exp: Add test.
1024 2020-05-04 Nick Clifton <nickc@redhat.com>
1027 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1028 supicious number of entries for DWARF-5 format directory and file
1029 name tables. Do not display file name table header if the table
1030 is empty. Do not allocate space for empty tables.
1032 2020-05-04 Alan Modra <amodra@gmail.com>
1034 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1035 section. Don't assume endian of host matches nds32 target. Free
1038 2020-05-01 Alan Modra <amodra@gmail.com>
1039 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
1041 * objdump.c (disassemble_bytes): Don't scan for zeros when
1042 disassembling zeros. Translate "resuming at file offset" message.
1043 Formatting. Replace some signed variables with unsigned.
1045 2020-04-30 Alex Coplan <alex.coplan@arm.com>
1047 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1049 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1051 2020-04-30 Nick Clifton <nickc@redhat.com>
1053 * testsuite/lib/binutils-common.exp (check_pie_support): New
1056 2020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1058 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1059 range_entries for the same offset.
1061 2020-04-29 Nick Clifton <nickc@redhat.com>
1063 * readelf.c (warn): New function - like elfcomm.c version but only
1064 produces output if warnings are enabled.
1065 (struct options): Add --lint and --enable-checks.
1066 (usage): Add entry for --lint.
1067 (parse_args): Handle -L. If checks are enabled but no dumps have
1068 been selected then enable all dumps.
1069 (process_section_headers): Replace long if-then-else sequence with
1070 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
1071 SHT_PROGBITS sections.
1072 (process_file): Do not complain if the file is an archive and lint
1073 mode has been enabled.
1074 * elfcomm.c (error): Make the function weak.
1076 * NEWS: Mention the new feature.
1077 * doc/binutils.texi: Document the new feature.
1078 * dwarf.h (report_leb_status): Add file name and line number
1079 parameters. Include them in the diagnostic output.
1080 (READ_ULEB): Pass file and line number to report_leb_status.
1081 (READ_SLEB): Likewise.
1082 * dwarf.c (read_and_print_leb128): Pass file and line number to
1084 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1085 * testsuite/binutils-all/zero-sec.s: New test source file.
1086 * testsuite/binutils-all/zero-sec.r: Expected output from new
1089 2020-04-29 Nick Clifton <nickc@redhat.com>
1091 * po/sr.po: Updated Serbian translation.
1093 2020-04-26 Alan Modra <amodra@gmail.com>
1095 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1096 read before dereferencing, and gracefully return. Remove
1097 gnu_hash_error variable. Free gnu hash arrays if number of
1100 2020-04-24 Alan Modra <amodra@gmail.com>
1102 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1104 (process_dynamic_section): Call get_num_dynamic_syms once rather
1105 than in segment loop. Break out of segment loop on a successful
1106 load of dynamic symbols. Formatting.
1107 (process_object): Return error status from process_dynamic_section.
1109 2020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1111 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1112 * elf.c (elfcore_grok_arc_v2): New function.
1113 (elfcore_grok_note): Call the new function to handle the corresponding
1115 (elfcore_write_arc_v2): New function.
1116 (elfcore_write_register_note): Call the new function to handle the
1117 corresponding pseudo-sections.
1119 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1122 * readelf.c (is_none_reloc): Recognize
1123 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1124 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1126 2020-04-22 Nick Clifton <nickc@redhat.com>
1128 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1130 2020-04-22 Alan Modra <amodra@gmail.com>
1132 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1133 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1134 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1135 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1136 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1137 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1138 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1139 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1140 (section_headers_groups): Move to struct filedata. Update use
1143 2020-04-22 Alan Modra <amodra@gmail.com>
1145 * readelf.c (struct dump_data): New, used..
1146 (cmdline): ..here, and..
1147 (struct filedata): ..here. Adjust all uses.
1148 (request_dump_bynumber, request_dump, parse_args): Pass in a
1149 struct dump_data* rather than Filedata*. Adjust callers.
1150 (main): Don't set cmdline.file_name.
1152 2020-04-20 Alan Modra <amodra@gmail.com>
1154 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1157 2020-04-20 Alan Modra <amodra@gmail.com>
1159 * readelf.c (process_section_headers): Free dynamic symbols etc.
1162 2020-04-20 Alan Modra <amodra@gmail.com>
1164 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1165 on error without freeing.
1166 (process_dynamic_section): Don't recreate dynamic symbols from
1167 dynamic tag info when the dynamic symbols have already been
1168 read via section headers.
1170 2020-04-17 Fredrik Strupe <fredrik@strupe.net>
1172 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1173 conditional VDUP instructions are disassembled correctly.
1174 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1176 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1177 that VDUP instructions (which are conditional in A32) can be
1178 disassembled in thumb mode.
1179 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1182 2020-04-17 Alan Modra <amodra@gmail.com>
1185 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1187 2020-04-16 Alan Modra <amodra@gmail.com>
1189 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1190 --no-addresses description.
1192 2020-04-15 Alan Modra <amodra@gmail.com>
1194 * objdump.c (no_addresses): New static var.
1195 (usage): Print help for --no-addresses.
1196 (long_options): Add --no-addresses entry.
1197 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1198 (disassemble_bytes): Don't print current line address, or reloc
1200 * doc/binutils.texi: Document objdump --no-addresses.
1202 2020-04-15 Alan Modra <amodra@gmail.com>
1205 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1206 reading buckets or chains fails.
1208 2020-04-15 Alan Modra <amodra@gmail.com>
1210 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1213 2020-04-15 Alan Modra <amodra@gmail.com>
1215 * readelf.c (get_group_flags): Translate text.
1216 (get_file_type, get_symbol_binding, get_symbol_type),
1217 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1219 2020-04-15 Alan Modra <amodra@gmail.com>
1222 * readelf.c (get_num_dynamic_syms): Typo fix.
1224 2020-04-14 Alan Modra <amodra@gmail.com>
1226 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1227 possibility of overflow when checking number of conflicts.
1229 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1232 * readelf.c (nbuckets): New.
1233 (nchains): Likewise.
1234 (buckets): Likewise.
1236 (ngnubuckets): Likewise.
1237 (gnubuckets): Likewise.
1238 (gnuchains): Likewise.
1239 (mipsxlat): Likewise.
1240 (ngnuchains): Likewise.
1241 (gnusymidx): Likewise.
1242 (VALID_SYMBOL_NAME): Likewise.
1243 (VALID_DYNAMIC_NAME): Use it.
1244 (get_dynamic_data): Moved before process_dynamic_section.
1245 (get_num_dynamic_syms): New function.
1246 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1247 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1248 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1250 (get_symbol_index_type): Don't print "bad section index" when
1251 there is no section header.
1252 (print_dynamic_symbol): Rewrite.
1253 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1256 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1258 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1259 enable on *-*-solaris*.
1261 2020-03-30 Nick Clifton <nickc@redhat.com>
1264 * objcopy.c (copy_object): When copying PE format files set the
1265 timestamp field in the pe_data structure if the preserve_dates
1267 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1268 --preserve-dates in place of the -p option, in order to make its
1269 effect more obvious.
1271 2020-03-28 Alan Modra <amodra@gmail.com>
1273 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1274 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1276 2020-03-28 Alan Modra <amodra@gmail.com>
1278 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1279 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1280 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1281 test. Pass "-p" to objcopy for the executable test.
1283 2020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1286 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1287 specify whether an object file or executable should be built and tested.
1288 Change test names to report whether an object file or executable is
1290 * testsuite/binutils-all/pr25662.ld: New test.
1291 * testsuite/binutils-all/pr25662.s: New test.
1293 2020-03-27 Alan Modra <amodra@gmail.com>
1295 * readelf.c (process_archive): Don't double free qualified_name.
1296 Don't break out of loop with "negative" archive_file_size, just
1297 set file offset to max.
1299 2020-03-25 Alan Modra <amodra@gmail.com>
1301 * readelf.c (process_archive): Prevent endless loop.
1303 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1306 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1307 with bfd_get_symbol_version_string.
1308 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1309 * objdump.c (objdump_print_symname): Likewise.
1311 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1314 * nm.c (SYM_NAME): Removed.
1315 (print_symname): Add a pointer to struct extended_symbol_info
1316 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1318 (print_symdef_entry): Pass NULL to print_symname.
1319 (print_symbol_info_bsd): Update call to print_symname.
1320 (print_symbol_info_sysv): Likewise.
1321 (print_symbol_info_posix): Likewise.
1323 2020-03-24 Alan Modra <amodra@gmail.com>
1325 * readelf.c (process_mips_specific): Free iconf on error path.
1327 2020-03-23 Nick Clifton <nickc@redhat.com>
1330 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1331 * write_stabs_in_sections_debugging_info: Likewise.
1332 * stab_enum_type: Likewise.
1333 * stab_modify_type: Likewise.
1334 * stab_struct_field: Likewise.
1335 * stab_end_struct_type: Likewise.
1336 * stab_start_class_type: Likewise.
1337 * stab_class_static_member: Likewise.
1338 * stab_class_baseclass: Likewise.
1339 * stab_class_start_method: Likewise.
1340 * stab_class_method_var: Likewise.
1341 * stab_class_end_method: Likewise.
1342 * stab_end_class_type: Likewise.
1343 * stab_typedef_type: Likewise.
1344 * stab_start_function: Likewise.
1345 * stab_end_block: Likewise.
1346 * stab_lineno: Likewise.
1348 2020-03-20 Nick Clifton <nickc@redhat.com>
1350 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1351 (process_section_headers): Check the return value from
1352 get_compression_header.
1353 (dump_section_as_strings): Likewise.
1354 (dump_section_as_bytes): Likewise.
1355 (load_specific_debug_section): Likewise.
1357 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1359 * ar.c (main): Update bfd_plugin_set_program_name call.
1360 * nm.c (main): Likewise.
1362 2020-03-19 Nick Clifton <nickc@redhat.com>
1365 * testsuite/binutils-all/dw4.s: New test source file.
1366 * testsuite/binutils-all/nm.exp: Run the new test.
1368 2020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1370 * readelf.c (process_symbol_table): Use unsigned long for si.
1372 2020-03-19 Alan Modra <amodra@gmail.com>
1374 * elfcomm.c: Don't include bfd.h or bucomm.h.
1375 (program_name): Declare.
1376 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1377 and substitute FALSE and TRUE.
1378 (setup_archive, setup_nested_archive): Likewise.
1379 * elfcomm.h: Likewise.
1381 2020-03-19 Alan Modra <amodra@gmail.com>
1383 * readelf.c (process_archive): Always return via path freeing
1386 2020-03-19 Alan Modra <amodra@gmail.com>
1388 * readelf.c (process_netbsd_elf_note): Validate descsz before
1389 accessing descdata. Formatting.
1391 2020-03-19 Alan Modra <amodra@gmail.com>
1393 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1394 * elfcomm.h (setup_archive): Update prototype.
1396 2020-03-16 Alan Modra <amodra@gmail.com>
1398 * readelf.c (get_symbols): New function.
1399 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1400 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1402 2020-03-16 Alan Modra <amodra@gmail.com>
1404 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1405 Detect shift overflows and check that terminating byte is found.
1406 Print an error on a bad uleb128.
1408 2020-03-14 Alan Modra <amodra@gmail.com>
1410 * readelf.c (process_file): Clean ba_cache.
1412 2020-03-14 Alan Modra <amodra@gmail.com>
1414 * elfcomm.h (setup_archive): Update prototype.
1415 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1416 check longnames_size.
1417 (setup_nested_archive): Get file size and pass to setup_archive.
1418 * elfedit.c (process_archive): Likewise.
1419 * readelf.c (process_archive): Pass filedata->file_size to
1422 2020-03-14 Alan Modra <amodra@gmail.com>
1424 * readelf.c (dump_section_as_strings): Free memory on error exit.
1425 (dump_section_as_bytes, process_notes_at): Likewise.
1426 (get_build_id): Free enote.
1428 2020-03-13 Kamil Rytarowski <n54@gmx.com>
1430 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1431 NT_NETBSDCORE_LWPSTATUS notes.
1433 2020-03-13 Alan Modra <amodra@gmail.com>
1435 * elfcomm.c (get_archive_member_name): Always return malloc'd
1437 * elfedit.c (process_archive): Tidy memory on all return paths.
1438 * readelf.c (process_archive): Likewise.
1439 (process_symbol_table): Likewise.
1440 (ba_cache): New, replacing ..
1441 (get_symbol_for_build_attribute): ..static vars here. Free
1442 strtab and symtab before loading new ones. Reject symtab without
1443 valid strtab in loop, breaking out of loop on valid symtab.
1444 (process_file): Free ba_cache symtab and strtab here, resetting
1447 2020-03-12 Alan Modra <amodra@gmail.com>
1449 * readelf.c (process_section_headers): Don't just set
1450 filedata->section_headers NULL, free it first. Similarly for
1451 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1452 symtab_shndx_list. Zero associated counts too.
1453 (process_object): Free symtab_shndx_list.
1454 (process_file): Free various allocated filedata tables.
1456 2020-03-11 Nick Clifton <nickc@redhat.com>
1460 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1461 li_segment_size fields.
1462 * dwarf.c (read_debug_line_header): Record the address size and
1463 segment selector size values (if present) in the lineinfo
1465 (display_formatted_table): Warn if the format count is empty but
1466 the table itself is not empty.
1467 Display the format count and entry count at the start of the table
1469 (display_debug_lines_raw): Display the address size and segement
1470 selector size fields, if present.
1471 * testsuite/binutils-all/dw5.W: Update expected output.
1473 2020-03-11 Alan Modra <amodra@gmail.com>
1476 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1477 pad_to_set on second block of code dealing with padding.
1478 Replace "c" with "num_sec" and don't recalculate number of
1479 sections on second block. Size arrays using sizeof (element)
1480 rather than sizeof (element type).
1482 2020-03-10 Alan Modra <amodra@gmail.com>
1484 * objdump.c (disassemble_section): Don't call qsort unless
1485 sym count is at least two.
1486 (disassemble_data): Don't call memcpy with NULL src.
1488 2020-03-09 Alan Modra <amodra@gmail.com>
1491 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1492 to get_data rather than multiplying.
1493 (dump_ia64_vms_dynamic_relocs): Likewise.
1494 (process_version_sections): Correct order of size and nmemb args
1496 (process_mips_specific): Likewise.
1498 2020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1500 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1501 "memory checkers" in comments.
1503 2020-03-06 Simon Marchi <simon.marchi@efficios.com>
1506 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1507 * doc/Makefile.in: Re-generate.
1509 2020-03-06 Nick Clifton <nickc@redhat.com>
1511 * objcopy.c (check_new_section_flags): New function. Reject the
1512 SEC_COFF_SHARED flag if the target is not a COFF binary.
1513 (copy_object): Call check_new_section_flags.
1514 (setup_section): Likewise.
1515 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1516 flag cannot be applied to ELF binaries.
1518 2020-03-06 Alan Modra <amodra@gmail.com>
1521 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1523 2020-03-05 Alan Modra <amodra@gmail.com>
1526 * objcopy.c (filter_symbols): Don't segfault on NULL
1527 prefix_symbols_string.
1529 2020-03-04 Christian Eggers <ceggers@gmx.de>
1531 * objcopy.c (copy_object): Convert from bytes to octets for
1532 --gap-fill and --pad-to.
1534 2020-03-03 Nick Clifton <nickc@redhat.com>
1537 * prdbg.c (pr_tag_type): Remove call to abort.
1539 2020-03-02 Aaron Merey <amerey@redhat.com>
1541 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1544 2020-03-02 Nick Clifton <nickc@redhat.com>
1547 * readelf.c (dump_section_as_strings): Display new-line characters
1548 as \n and then insert a line break.
1549 * testsuite/binutils-all/pr25543.s: New test.
1550 * testsuite/binutils-all/pr25543.d: Test driver.
1551 * testsuite/binutils-all/readelf.exp: Run the new test.
1553 2020-02-27 Nick Clifton <nickc@redhat.com>
1556 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1557 get_data is unable to load the string table.
1559 2020-02-26 Alan Modra <amodra@gmail.com>
1561 * elfedit.c: Indent labels correctly.
1562 * readelf.c: Likewise.
1563 * resres.c: Likewise.
1565 2020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1568 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1569 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1571 2020-02-24 Nick Clifton <nickc@redhat.com>
1574 * doc/binutils.texi (objdump): Fix typo in description of
1575 objdump's -g option.
1577 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1579 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1582 2020-02-19 Jordan Rupprecht <rupprecht@google.com>
1584 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1586 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1588 * configure: Regenerate.
1590 2020-02-10 Fangrui Song <maskray@google.com>
1592 * objcopy.c (parse_flags): Handle "exclude".
1593 * doc/binutils.texi: Document the support.
1595 2020-02-10 Aaron Merey <amerey@redhat.com>
1597 * binutils/testsuite/binutils-all/debuginfod.exp:
1598 Replace set ::env with setenv.
1599 Start server before setting environment variable.
1600 Specify tmpdir as the location of the server's
1602 Check additional server metrics at start-up.
1604 2020-02-07 Nick Clifton <nickc@redhat.com>
1606 * README-how-to-make-a-release: Add note about updating the
1607 GAS/NEWS URL in the next release.
1609 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1612 * readelf.c (get_machine_flags): Add support for Z80N machine
1615 2020-02-07 Nick Clifton <nickc@redhat.com>
1617 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1618 of the truncated file name.
1620 2020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
1622 * objdump.c (print_jump_visualisation): New function.
1623 (disassemble_bytes): Call new function.
1625 2020-02-06 Alan Modra <amodra@gmail.com>
1627 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1629 (supports_gnu_osabi): New procedure.
1630 (is_generic): New, from ld-lib.exp.
1631 (supports_gnu_unique): Use the above.
1633 2020-02-04 Alan Modra <amodra@gmail.com>
1635 * Makefile.am (CFILES): Add od-elf32_avr.c.
1636 * Makefile.in: Regenerate.
1637 * po/POTFILES.in: Regenerate.
1639 2020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1641 * readelf.c (dump_relocations, dump_relocations)
1642 (decode_arm_unwind_bytecode, process_dynamic_section)
1643 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1646 2020-02-03 Sergei Trofimovich <siarheit@google.com>
1648 * coffdump.c (program_name): Drop redundant definition.
1649 * srconv.c (program_name): Likewise
1650 * sysdump.c (program_name): Likewise
1652 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1655 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1656 same file with different section pointers.
1658 2020-02-01 Nick Clifton <nickc@redhat.com>
1660 * README-how-to-make-a-release: Update with more details on the
1661 release making process.
1663 2020-01-31 Nick Clifton <nickc@redhat.com>
1665 * po/sv.po: Updated Swedish translation.
1667 2020-01-28 Nick Clifton <nickc@redhat.com>
1669 * readelf.c (get_build_id): Simplify warning message about corrupt
1670 notes encountered whilst scanning for the build-id.
1672 2020-01-27 Roland McGrath <mcgrathr@google.com>
1674 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1675 for overlapping ranges so that (A == B) == (B == A) holds.
1677 2020-01-27 Alan Modra <amodra@gmail.com>
1679 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1680 case statement with switch statement.
1682 2020-01-24 Nick Clifton <nickc@redhat.com>
1684 * readelf.c (get_build_id): Fix warning messages about corrupt
1687 2020-01-23 Nick Clifton <nickc@redhat.com>
1689 * po/fr.po: Updated French translation.
1691 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1694 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1696 2020-01-20 Nick Clifton <nickc@redhat.com>
1698 * po/pt.po: Updated Portuguese translation.
1699 * po/uk.po: Updated Ukranian translation.
1701 2020-01-18 Nick Clifton <nickc@redhat.com>
1703 * README-how-to-make-a-release: Update notes on how to cut a
1704 branch for a release.
1706 2020-01-18 Nick Clifton <nickc@redhat.com>
1708 * configure: Regenerate.
1709 * po/binutils.pot: Regenerate.
1711 2020-01-18 Nick Clifton <nickc@redhat.com>
1713 Binutils 2.34 branch created.
1715 2020-01-17 Thomas Troeger <tstroege@gmx.de>
1717 * objdump.c (jump_info_visualize_address): Discard jumps that are
1719 (disassemble_bytes): Only compute the maximum level if jumps were
1722 2020-01-13 Nick Clifton <nickc@redhat.com>
1724 * objdump.c (disassemble_bytes): Remove C99-ism.
1725 * testsuite/binutils-all/debuginfod.exp: New tests.
1727 2020-01-13 Thomas Troeger <tstroege@gmx.de>
1729 * objdump.c (visualize_jumps, color_output, extended_color_output)
1730 (detected_jumps): New variables.
1731 (usage): Add the new jump visualization options.
1732 (option_values): Add new option value.
1733 (long_options): Add the new option.
1734 (jump_info_new, jump_info_free): New functions.
1735 (jump_info_min_address, jump_info_max_address): Likewise.
1736 (jump_info_end_address, jump_info_is_start_address): Likewise.
1737 (jump_info_is_end_address, jump_info_size): Likewise.
1738 (jump_info_unlink, jump_info_insert): Likewise.
1739 (jump_info_add_front, jump_info_move_linked): Likewise.
1740 (jump_info_intersect, jump_info_merge): Likewise.
1741 (jump_info_sort, jump_info_visualize_address): Likewise.
1742 (disassemble_jumps): New function - used to locate jumps.
1743 (disassemble_bytes): Add ascii art generation.
1744 (disassemble_section): Add scan to locate jumps.
1745 (main): Parse the new visualization option.
1746 * doc/binutils.texi: Document the new feature.
1747 * NEWS: Mention the new feature.
1749 2020-01-13 Alan Modra <amodra@gmail.com>
1753 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1754 fde_fc col_type and col_offset.
1755 * readelf.c (apply_relocations): Move symsec check earlier.
1756 (free_debug_section): Free reloc_info.
1757 (process_notes_at): Free pnotes on error path.
1758 (process_object): Free dump_sects here..
1759 (process_archive): ..not here.
1761 2020-01-13 Alan Modra <amodra@gmail.com>
1764 * nm.c (display_rel_file): Free dyn_syms.
1766 2020-01-09 Nick Clifton <nickc@redhat.com>
1769 * objcopy.c (empty_name): New variable.
1770 (need_sym_before): Prevent an attempt to free a static variable.
1771 (filter_symbols): Avoid strcmp test by checking for pointer
1774 2020-01-09 Nick Clifton <nickc@redhat.com>
1776 * po/zh_TW.po: Updated Traditional Chinese translation.
1778 2020-01-09 Aaron Merey <amerey@redhat.com>
1780 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1781 * Makefile.in: Regenerate.
1783 * config.in: Regenerate.
1784 * configure: Regenerate.
1785 * configure.ac: Call AC_DEBUGINFOD.
1786 * doc/Makefile.in: Regenerate.
1787 * doc/binutils.texi: Add section on using binutils
1789 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1790 Query debuginfod servers for the target debug file.
1791 (load_separate_debug_info): Call
1792 debuginfod_fetch_separate_debug_info if configured with
1794 (load_separate_debug_files): Add file argument to
1795 load_separate_debug_info calls.
1796 * dwarf.h (get_build_id): Add declaration.
1797 * objdump.c (get_build_id): New function. Get build-id of file.
1798 * readelf.c (get_build_id): Likewise.
1799 * testsuite/binutils-all/debuginfod.exp: New tests.
1800 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1803 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1805 * readelf.c: Add support for new Z*) relocations and machine
1808 2020-01-01 Alan Modra <amodra@gmail.com>
1810 Update year range in copyright notice of all files.
1812 For older changes see ChangeLog-2019
1814 Copyright (C) 2020 Free Software Foundation, Inc.
1816 Copying and distribution of this file, with or without modification,
1817 are permitted in any medium without royalty provided the copyright
1818 notice and this notice are preserved.
1824 version-control: never