]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Finalized intl-update patches
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
862776f2
AA
12023-11-15 Arsen Arsenović <arsen@aarsen.me>
2
3 * aclocal.m4: Regenerate.
4 * configure: Regenerate.
5 * po/Make-in ($(srcdir)/$(PACKAGE).pot): Output to a .pot
6 temporary file, to suppress xgettext checking charset names.
7
fab62191
NC
82023-11-14 Nick Clifton <nickc@redhat.com>
9
10 PR 31062
11 * objdump.c (decompressed_dumps): New local variable.
12 (usage): Mention the -z/--decompress option.
13 (long_options): Add --decompress.
14 (dump_section_header): Add "COMPRESSED" to the Flags field of any
15 compressed section.
16 (dump_section): Warn users when dumping a compressed section.
17 (display_any_bfd): Decompress the section if decompressed_dumps is
18 true.
19 (main): Handle the -z/--decompress option.
20 * NEWS: Mention the new feature.
21 * doc/binutils.texi: Document the new feature.
22 * testsuite/binutils-all/objdump.s: Update expected output.
23 * testsuite/binutils-all/objdump.exp: Add test of -Z -s.
24 * testsuite/binutils-all/objdump.Zs: New file.
25
26 * readelf.c (maybe_expand_or_relocate_section): New function.
27 Contains common code found in dump functions. Adds a note message
28 if a compressed section is not being decompressed.
29 (dump_section_as_strings): Use new function.
30 (dump_section_as_bytes): Likewise.
31
a7a0cb6c
SM
322023-11-10 Simon Marchi <simon.marchi@efficios.com>
33
34 * readelf.c (decode_AMDGPU_machine_flags): Handle gfx1100,
35 gfx1101, gfx1102.
36
b05efa39
VA
372023-11-10 Vsevolod Alekseyev <sevaa@sprynet.com>
38
39 PR 30880
40 * dwarf.c (read_and_display_attr_value): Fix loclist handling.
41 (display_loclists_list): Likewise.
42
07a9e709
TV
432023-10-24 Tom de Vries <tdevries@suse.de>
44
45 * dwarf.c (display_gdb_index): Handle unknown name of main.
46
9847ba8f
TV
472023-10-10 Tom de Vries <tdevries@suse.de>
48
49 * dwarf.c (display_lang): New function, factored out of ...
50 (read_and_display_attr_value): ... here.
51 (display_gdb_index): Handle v9 .gdb_index.
52
c4e0d285
W
532023-10-05 A. Wilcox <awilfox@adelielinux.org>w
54
55 PR 30916
56 * testsuite/binutils-all/addr2line.exp: Do not use PowerPC
57 specific options when working with a MUSL target.
58
8c7125fe
VA
592023-10-02 Vsevolod Alekseyev <sevaa@sprynet.com>
60
61 PR 29267
62 * dwarf.c (fetch_indexed_value): Delete.
63 (fetch_indexed_offset): Correct base address calculation.
64 (read_and_display_attr_value): Replace uses of fetch_indexed_value
65 with fetch_indexed_offset.
66
73b22419
FC
672023-09-28 Frederic Cambus <fred@statdns.com>
68
69 * readelf.c (get_segment_type): Handle PT_OPENBSD_NOBTCFI segment
70 type.
71
854f72b3
NC
722023-09-26 Nick Clifton <nickc@redhat.com>
73
74 * testsuite/binutils-all/ar.exp: Remove assumption of the setting
75 of umask when creating test archive files.
76
84102ebc
VA
772023-09-25 Vsevolod Alekseyev <sevaa@sprynet.com>
78
79 PR 30792
80 * dwarf.h (struct debug_info): Remove range_versions field.
81 * dwarf.c (fetch_indexed_offset): New function.
82 (read_and_display_attr_value): Use it for DW_FORM_rnglistx.
83 Remove code to initialise range_versions.
84 (skip_attribute): New function.
85 (read_bases): Read and reccord all range and address bases in a CU.
86 (process_debug_info): Call read_bases.
87 (display_debug_rnglists): Rename to display_debug_rnglists_unit_header
88 and only display the range list header information.
89 (display_debug_ranges): Adjust.
90
b6ac461a
NC
912023-09-05 Nick Clifton <nickc@redhat.com>
92
93 PR 30684
94 * readelf.c (extra_sym_info): New variable.
95 (section_name_valid): Also check for filedata being NULL.
96 (section_name_print): Delete.
97 (section_index_real): New function. Returns true if the given
98 section index references a real section.
99 (print_symbol): Rename to print_sumbol_name.
100 (printable_section_name): Use a rotating array of static buffers
101 for the return string.
102 (printable_section_name_from_index): Merge code from
103 dump_relocations and get_symbol_index_type into here.
104 (long_option_values): Add OPTION_NO_EXTRA_SYM_INFO.
105 (options): Add "extra-sym-info" and "no-extra-sym-info".
106 (usage): Mention new options.
107 (parse_args): Parse new options.
108 (get_symbol_index_type): Delete.
109 (print_dynamic_symbol_size): Rename to print_symbol_size.
110 (print_dynamic_symbol): Rename to print_symbol.
111 (print_symbol_table_heading): New function.
112 (process_symbol_table): Use new function.
113 * doc/binutils.texi: Document the new option.
114 * NEWS: Mention the new feature.
115
589d38af
NC
1162023-08-23 Nick Clifton <nickc@redhat.com>
117
d367563d 118 PR 30781
589d38af
NC
119 * dwarf.h (debug_info): Add range_versions field.
120 * dwarf.c (read_and_display_attr_value): When recording a range
121 arribute also ecord the dwarf version number.
122 (is_range_list_for_this_section): New function.
123 (display_debug_ranges): Only show debug ranges whose version is
124 suitable for the secction being displayed.
125
b5c37946 1262023-07-30 Jose E. Marchesi <jose.marchesi@oracle.com>
1e18ffc9 127
b5c37946
SJ
128 * readelf.c (get_machine_flags): Recognize and pretty print BPF
129 machine flags.
130
1312023-07-24 Johannes Schauer Marin Rodrigues <josch@debian.org>
132
133 * doc/binutils.texi (objcopy): Document change in behaviour of
134 objcopy's --preserve-dates command line option.
135
1362023-07-09 Fangrui Song <maskray@google.com>
137
138 PR 30592
139 * NEWS: Mention the new feature for objcopy.
140 * doc/binutils.texi: Mention "large".
141 * objcopy.c (parse_flags): Parse "large".
142 (check_new_section_flags): Error if "large" is used with a
143 non-x86-64 ELF target.
144 * testsuite/binutils-all/x86-64/large-sections.d: New.
145 * testsuite/binutils-all/x86-64/large-sections.s: New.
146 * testsuite/binutils-all/x86-64/large-sections-i386.d: New.
147 * testsuite/binutils-all/x86-64/large-sections-2.d: New.
148 * testsuite/binutils-all/x86-64/large-sections-2-x32.d: New.
5e24da90 149
87485f53
NC
1502023-07-03 Nick Clifton <nickc@redhat.com>
151
152 * README-how-to-make-a-release: Change some version numbers.
153 * configure: Regenerate.
154 * po/binutils.pot: Regenerate.
155
d501d384
NC
1562023-07-03 Nick Clifton <nickc@redhat.com>
157
158 2.41 Branch Point.
159
3713e829
NC
1602023-06-30 Nick Clifton <nickc@redhat.com>
161
162 PR 30598
163 * strings.c (set_string_min): New function.
164 (main): Use it.
165 (print_unicode_stream): Calculate buffer size using a size_t.
166
0d1cd7d9
NC
1672023-06-30 Nick Clifton <nickc@redhat.com>
168
169 PR 30595
170 * strings.c (main): Check for an excessively large minimum string
171 length.
172
340640f7
NC
1732023-06-21 Nick Clifton <nickc@redhat.com>
174
175 * testsuite/lib/binutils-common.exp (prune_warnings_extra): Prune
176 warnings about -z execstack creating an executable stack.
177
10d6a2b1
NC
1782023-05-30 Nick Clifton <nickc@redhat.com>
179
180 * od-pe.c (targ_info): New array.
181 (get_target_specific_info): New function
182 (decode_machine_number): Retire. Use get_target_specific_info
183 instead.
184 (is_pe_object_magic): Likewise.
185 (dump_pe_file_header): Display more information.
186 Rework layout to be similar to that from 'objdump -p'.
187 Add code to handle larger than normnal AOUT headers.
188
7b9e7db0
NC
1892023-05-30 Nick Clifton <nickc@redhat.com>
190
191 * od-pe.c (decode_machine_number): Add ARMMAGIC value of 0xa00.
192 (is_pe_object_magic): Likewise.
193
45b8517a
NC
1942023-05-26 Nick Clifton <nickc@redhat.com>
195
196 * od-pe.c: New file: Dumps fields in PE format headers.
197 * configure.ac (od_vectors): Add objdump_private_desc_pe for PE
198 format targets.
199 (od_files): Add od-pe for PE format targets.
200 * configure: Regenerate.
201 * Makefile.am (CFILES): Add od-pe.c
202 (EXTRA_objdump_SOURCE): Likewise.
203 * Makefile.in: Generate.
204 * NEWS: Mention the new feature.
205 * doc/binutils.texi: Document the new support.
206 * objdump.c (wide_output): Change from local to global.
207 * objdump.h (wide_output): Prototype.
208 (objdump_private_desc_pe): Prototype.
209 * testsuite/binutils-all/objdump.exp: Add a test of the new feature.
210
d9cc4b06
EL
2112023-05-09 Enze Li <enze.li@gmx.com>
212
213 * README: Correct a typo.
214
b545d423
NC
2152023-05-02 Nick Clifton <nickc@redhat.com>
216
217 * MAINTAINERS: Remove Dimity Diky as MSP430 maintainer.
218
8e7785b4
NC
2192023-04-20 Nick Clifton <nickc@redhat.com>
220
221 * SECURITY.txt: New file.
222
28ab94f5
NC
2232023-04-19 Nick Clifton <nickc@redhat.com>
224
225 PR 30355
226 * dwarf.c (read_and_display_attr_value): Correctly handle
227 DW_loclistx attributes that index a version 5 .debug_loclists
228 section.
229
c53c6186
NC
2302023-04-17 Nick Clifton <nickc@redhat.com>
231
232 PR 30142
233 * rescoff.c (write_coff_file): Add the SEC_READONLY flag to the
28ab94f5 234 .rsrc section.
c53c6186 235
45f5fe46
NC
2362023-04-11 Nick Clifton <nickc@redhat.com>
237
7bb9e56c
NC
238 PR 30327
239 * dwarf.c (read_and_display_attr_value): Warn if the number of
240 views is greater than the number of locations.
241
9f1c612b
NC
242 PR 30313
243 * dwarf.c (display_debug_lines_decoded): Check for an overlarge
244 number of files or directories.
245
688fe114
NC
246 PR 30312
247 * dwarf.c (prealloc_cu_tu_list): Always allocate at least one
248 entry.
249
45f5fe46
NC
250 PR 30311
251 * readelf.c (uncompress_section_contents): Check for a
252 suspiciously large uncompressed size.
253
8d17c53b
NC
2542023-03-30 Nick Clifton <nickc@redhat.com>
255
256 PR 30284
257 * dwarf.c (read_and_display_attr_value): Detect and ignore
258 negative base values.
259
80251d41
FC
2602023-03-23 Frederic Cambus <fred@statdns.com>
261
262 * readelf.c (get_segment_type): Handle PT_OPENBSD_MUTABLE segment
263 type.
264
97b75c42
NC
2652023-03-14 Nick Clifton <nickc@redhat.com>
266
267 PR 30227
268 * dwarf.c (process_cu_tu_index): Prevent excessive memory
269 allocation when nused is large and ncols is zero.
270
93c80543
TT
2712023-02-09 Tom Tromey <tromey@adacore.com>
272
273 * dwarf-mode.el: Bump version to 1.8.
274 (dwarf-insert-substructure): Tighten regexp.
275 (dwarf-refresh-all): New defun.
276 (dwarf-mode-map): Bind "A" to dwarf-refresh-all.
277 (dwarf-mode): Remove old FIXME.
278
3a8be578
NC
2792023-02-07 Nick Clifton <nickc@redhat.com>
280
281 PR 30080
282 * doc/binutils.texi (nm): Update description of the 'n' symbol
283 type.
284
be527f28
NC
2852023-01-31 Nick Clifton <nickc@redhat.com>
286
287 * po/sv.po: Updated Swedish translation.
288
b960c86c
NC
2892023-01-23 Nick Clifton <nickc@redhat.com>
290
291 * po/sv.po: Updated Swedish translation.
292
94e76498
NC
2932023-01-18 Nick Clifton <nickc@redhat.com>
294
295 PR 29993
296 * objcopy.c (merge_gnu_build_notes): Remember the last non-deleted
297 note in order to speed up the scan for matching notes.
298
69373ba1
NC
2992023-01-16 Nick Clifton <nickc@redhat.com>
300
301 * po/sv.po: Updated Swedish translation.
302
4004cf83
NC
3032023-01-09 Nick Clifton <nickc@redhat.com>
304
305 * po/bg.po: Updated Bulgarian translation.
306 * po/ro.po: Updated Romainian translation.
307
c362d597
NC
3082023-01-05 Nick Clifton <nickc@redhat.com>
309
310 * MAINTAINERS: Remove Stephen Casner as the PDP11 maintainer.
311
11982f9f
NC
3122023-01-03 Nick Clifton <nickc@redhat.com>
313
314 * po/fr.po: Updated French translation.
315 * po/uk.po: Updated Ukrainian translation.
316
a8f175d9
LM
3172023-01-03 Luis Machado <luis.machado@arm.com>
318
319 * readelf.c (get_note_type): Add support for NT_ARM_SSVE and
320 NT_ARM_ZA note types.
321
a72b0718
NC
3222022-12-31 Nick Clifton <nickc@redhat.com>
323
324 * 2.40 branch created.
325
826eed80
NC
3262022-12-31 Nick Clifton <nickc@redhat.com>
327
328 * po/ro.po: Updated Romanian translation.
329
75393a2d
NC
3302022-12-21 Nick Clifton <nickc@redhat.com>
331
332 PR 29924
333 * objdump.c (load_specific_debug_section): Check for excessively
334 large sections.
335
0d120726
TT
3362022-12-19 Tom Tromey <tromey@adacore.com>
337
338 * dwarf-mode.el (dwarf-do-refresh): Avoid compiler warning.
339
42f39fde
NC
3402022-12-19 Nick Clifton <nickc@redhat.com>
341
342 PR 29914
343 * dwarf.c (fetch_indexed_value): Fail if the section is not big
344 enough to contain a header size field.
345 (display_debug_addr): Fail if the computed address size is too big
346 or too small.
347
fa501b69
NC
3482022-12-16 Nick Clifton <nickc@redhat.com>
349
350 PR 29908
351 * dwarf.c (display_debug_addr): Check for corrupt header lengths.
352
6ef35c04
NC
3532022-12-01 Nick Clifton <nickc@redhat.com>
354
355 PR 25202
356 * objcopy.c (copy_object): Set VerilogDataEndianness to the
357 endianness of the input file.
358 (copy_main): Verifiy the value set by the --verilog-data-width
359 option.
360 * testsuite/binutils-all/objcopy.exp: Add tests of the new behaviour.
361 * testsuite/binutils-all/verilog-I4.hex: New file.
362
1a7e622b
NC
3632022-11-21 Nick Clifton <nickc@redhat.com>
364
365 PR 29764
366 * doc/binutils.texi (objdump): Note that the -m option supports
367 the <architecture>:<machine> syntax.
368
1da0b075
NC
3692022-11-04 Nick Clifton <nickc@redhat.com>
370
371 * README-how-to-make-a-release: Add instructions for uploading the
372 gprofng documentation.
373
18bf5643
NC
3742022-10-31 Nick Clifton <nickc@redhat.com>
375
376 PR 29457
377 * configure.ac: Add --enable-colored-disassembly.
378 * objdump.c: Add --disassembler-color=terminal.
379 * doc/binutils.texi (objdump): Document the new option.
380 * NEWS: Mention new feature.
381 * config.in: Regenerate in.
382 * configure: Regenerate.
383
f2ba47d6
NC
3842022-10-19 Nick Clifton <nickc@redhat.com>
385
386 * MAINTAINERS: Add section on patches, copyright and DCO.
387
7fd882d4
NC
3882022-10-12 Nick Clifton <nickc@redhat.com>
389
390 PR 29665
f2ba47d6 391 * objcopy.c (copy_object): Use the input filename when
7fd882d4
NC
392 reporting that a .gnu_debuglink section already exists.
393
907b52f4
NC
3942022-10-03 Nick Clifton <nickc@redhat.com>
395
396 * readelf.c (get_32bit_section_headers): Return false if the
397 e_shoff field is zero.
398 (get_64bit_section_headers): Likewise.
399
be5f79aa
NC
4002022-09-28 Nick Clifton <nickc@redhat.com>
401
402 PR 29628
403 * size.c (usage): Add -f.
404 * doc/binutils.texi (size): Add -f.
405
1588d98b
NC
4062022-09-20 Nick Clifton <nickc@redhat.com>
407
408 * objcopy.c (copy_object): Do not issue a warning message when
409 encountering empty .gnu.build.attribute sections.
410
e959744e
RP
4112022-09-14 Rupesh Potharla <Rupesh.Potharla@amd.com>
412
413 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend
414 regexps to allow for output genreated by the Clang compiler.
415
e9a241e8
AM
4162022-09-12 Aaron Merey <amerey@redhat.com>
417
418 * objcopy.c (might_need_separate_debug_info): Add with_source_code to
419 the options that cause this function to return true.
420 (main.c): Add with_source_code to the options that enable
421 dump_any_debugging.
422
efc1521e
NC
4232022-09-09 Nick Clifton <nickc@redhat.com>
424
425 PR 29532
426 * objcopy.c (setup_section): Leave group sections intact when
427 creating separate debuginfo files.
428
2caffd34
NC
4292022-09-08 Nick Clifton <nickc@redhat.com>
430
431 PR 29523
432 * dwarf.c (display_debug_lines_decoded): Correctly handle DWARF-5
433 directory and filename tables.
434
d647c797
AM
4352022-09-02 Aaron Merey <amerey@redhat.com>
436
437 PR 29075
438 * objdump.c (find_separate_debug): New function. Finds the bfd
439 corresponding to the separate debuginfod of a given bfd.
440 (find_alt_debug): New function. Finds the bfd corresponding to the
441 .gnu_debugaltlink of a given bfd.
442 (slurp_file): Add bfd parameter. If a source file cannot be found
443 attempt to download it from debuginfod, if enabled.
444 (try_print_file_open): Add bfd parameter and pass it to slurp_file.
445 (show_line): If debuginfod is enabled, call
446 bfd_find_nearest_line_with_alt instead of bfd_find_nearest_line.
447
f4492fb6
NC
4482022-09-01 Nick Clifton <nickc@redhat.com>
449
450 PR 29534
451 * dllwrap.c: Replace uses of choose_temp_base() with
452 make_temp_file().
453 * dlltool.c: Likewise.
454 * resrc.c: Likewise.
455
25ee24d9
NC
4562022-08-23 Nick Clifton <nickc@redhat.com>
457
458 PR 29489
459 * dlltool.c (deterministic): New variable.
460 (gen_lib_file): If deterministic is true set the
461 BFD_DETERMINISTIC_OUTPUT flag.
462 (usage): Mention --deterministic-libraries and
463 --non-deterministic-libraries.
464 (long_options): Add new options.
465 (main): Parse new options.
466 * doc/binutils.texi: Document the new options.
467 * NEWS: Mention the new feature.
468
521f7268
NC
4692022-08-22 Nick Clifton <nickc@redhat.com>
470
471 * readelf.c (check_magic_number): New function. Checks the magic
472 bytes at the start of a file. If they are not the ELF format
473 magic values, then attempts to generate a helpful error message.
474 (process_file_header): Call check_magic_number.
475
a88c79b7
NC
4762022-08-09 Nick Clifton <nickc@redhat.com>
477
478 PR 29457
479 * objdump.c (disassembler_color): Change type to an enum.
480 (disassembler_extended_color): Remove.
481 (usage): Update.
482 (objdump_color_for_assembler_style): Update.
483 (main): Update initialisation of disassembler_color. If not
484 initialised via a command line option, set based upon terminal
485 output.
486 * doc/binutils.texi: Update description of disassmbler-color
487 option.
488 * testsuite/binutils-all/arc/objdump.exp: Add
489 --disassembler-color=off option when disassembling.
490 * testsuite/binutils-all/arm/objdump.exp: Likewise.
491
e838f9c2
NC
4922022-08-08 Nick Clifton <nickc@redhat.com>
493
494 * README-how-to-make-a-release: Add a link to the NEWS files in
495 the release announcement email.
496
0bd09323
NC
4972022-07-08 Nick Clifton <nickc@redhat.com>
498
499 * 2.39 branch created.
500
1dd02423
NC
5012022-07-01 Nick Clifton <nickc@redhat.com>
502
503 * dwarf.c (display_debug_rnglists): Add newline at end of listing.
504
aa40d66b
NC
5052022-06-30 Nick Clifton <nickc@redhat.com>
506
507 * dwarf.c (dwarf_select_sections_by_name): If the entry's value is
508 zero then clear the corresponding variable.
509 (dwarf_select_sections_by_letters): Likewise.
510 * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
511 debuginfod tests to fail.
512
dbcbf67c
NC
5132022-06-28 Nick Clifton <nickc@redhat.com>
514
515 PR 29267
516 * dwarf.c (display_debug_rnglists): New function, broken out of..
517 (display_debug_ranges): ... here.
518 (read_and_display_attr_value): Correct calculation of index
519 displayed for DW_FORM_loclistx and DW_FORM_rnglistx.
520 * testsuite/binutils-all/x86-64/pr26808.dump: Update expected
521 output.
522
e3e5ae04
NC
5232022-06-27 Nick Clifton <nickc@redhat.com>
524
525 PR 29289
526 * dwarf.c (display_debug_names): Replace assert with a warning
527 message.
528
e98e7d9a
NC
5292022-06-27 Nick Clifton <nickc@redhat.com>
530
531 PR 29290
532 * dwarf.c (read_and_display_attr_value): Check that debug_info_p
533 is set before dereferencing it.
534
a3f1431a
NC
5352022-06-27 Nick Clifton <nickc@redhat.com>
536
537 * dwarf.c (fetch_indexed_string): Do not use length of first table
538 in string section as the length of every table in the section.
e98e7d9a 539
a3f1431a
NC
540 * testsuite/binutils-all/pr26112.r: Update expected output.
541
f18acc9c
KB
5422022-06-22 Kumar N, Bhuvanendra <Kavitha.Natarajan@amd.com>
543
544 * dwarf.c (fetch_indexed_string): Added new parameter
545 str_offsets_base to calculate the string offset.
546 (read_and_display_attr_value): Read DW_AT_str_offsets_base
547 attribute.
548 (process_debug_info): While allocating memory and initializing
549 debug_information, do it for do_debug_info also, if its true.
550 (load_separate_debug_files): Load .debug_str_offsets if exists.
551 * dwarf.h (struct debug_info): Add str_offsets_base field.
552
4491a7c1
MN
5532022-06-22 Marcus Nilsson <brainbomb@gmail.com>
554
555 * readelf.c: (slurp_relr_relocs) Use malloc instead of xmalloc
556 when allocating space for relocations.
557
f18acc9c 5582022-06-21 Kumar N, Bhuvanendra <Kavitha.Natarajan@amd.com>
ec41dd75
NC
559
560 * dwarf.h (struct debug_info): Add rnglists_base field.
561 * dwarf.c (read_and_display_attr_value): Read attribute DW_AT_rnglists_base.
562 (display_debug_rnglists_list): While handling DW_RLE_base_addressx,
563 DW_RLE_startx_endx, DW_RLE_startx_length items, pass the proper parameter
564 value to fetch_indexed_addr(), i.e. fetch the proper entry in .debug_addr section.
565 (display_debug_ranges): Add rnglists_base to the .debug_rnglists base address.
566 (load_separate_debug_files): Load .debug_addr section, if exists.
567
94585d6d
NC
5682022-05-20 Nick Clifton <nickc@redhat.com>
569
570 * dwarf.c (dwarf_select_sections_by_names): Return zero if no
571 sections were selected.
572 (dwarf_select_sections_by_letters): Likewise.
573 * dwarf.h: (dwarf_select_sections_by_names): Update prototype.
574 (dwarf_select_sections_by_letters): Update prototype.
575 * objdump.c (might_need_separate_debug_info): New function.
576 (dump_bfd): Call new function before attempting to load separate
577 debug info files.
578 (main): Do not enable dwarf section dumping for -WK or -WN.
579 * readelf.c (parse_args): Do not enable dwarf section dumping for
580 -wK or -wN.
581 (might_need_separate_debug_info): New function.
582 (process_object): Call new function before attempting to load
583 separate debug info files.
584 * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
585 debuginfod tests to pass.
586 * testsuite/binutils-all/objdump.Wk: Add extra regexps.
587 * testsuite/binutils-all/readelf.k: Add extra regexps.
588
95086e1e
NC
5892022-05-19 Nick Clifton <nickc@redhat.com>
590
591 * dlltool.c (run): Initialise errmsg_fmt.
592 * dllwrap.c (run): Likewise.
593 * resrc.c (run_cmd): Likewise.
594 * mclex.c (mc_add_keyword): Initialise usz.
595 * srconv.c (wd_hd): Initialise hd.spare2.
596 * windmc.c (mc_add_node_lang): Initialise s.
597 (mc_generate_bin_item): Initialise cvt_txt.
598 (main): Initialise u.
599
2c3cc81e
NC
6002022-05-18 Nick Clifton <nickc@redhat.com>
601
602 PR 29135
603 * nm.c (non_weak): New variable.
604 (filter_symbols): When non-weak is true, ignore weak symbols.
605 (long_options): Add --no-weak.
606 (usage): Mention --no-weak.
607 (main): Handle -W/--no-weak.
608 * doc/binutils.texi: Document new feature.
609 * NEWS: Mention the new feature.
610 * testsuite/binutils-all/nm.exp: Add test of new feature.
611 * testsuite/binutils-all/no-weak.s: New test source file.
612
0d38576a
NC
6132022-04-25 Nick Clifton <nickc@redhat.com>
614
615 PR 29072
616 * testsuite/lib/binutils-common.exp (prune_warnings_extra): Filter
617 out notes about the executable stacjk behaviour beign deprecated.
618
278c98c8
NC
6192022-04-12 Nick Clifton <nickc@redhat.com>
620
621 PR 28992
622 * objcopy.c (is_strip_section_1): Do not delete debuglink sections
623 when stripping debug information.
624
19c26da6
NC
6252022-04-06 Nick Clifton <nickc@redhat.com>
626
627 PR 28981
628 * dwarf.c (fetch_indexed_value): Rename to fecth_indexed_addr and
629 return the address, rather than a string.
630 (fetch_indexed_value): New function - returns a value indexed by a
631 DW_FORM_loclistx or DW_FORM_rnglistx form.
632 (read_and_display_attr_value): Add support for DW_FORM_loclistx
633 and DW_FORM_rnglistx.
634 (process_debug_info): Load the loclists and rnglists sections.
635 (display_loclists_list): Add support for DW_LLE_base_addressx,
636 DW_LLE_startx_endx, DW_LLE_startx_length and
637 DW_LLE_default_location.
638 (display_offset_entry_loclists): New function. Displays a
639 .debug_loclists section that contains offset entry tables.
640 (display_debug_loc): Call the new function.
641 (display_debug_rnglists_list): Add support for
642 DW_RLE_base_addressx, DW_RLE_startx_endx and DW_RLE_startx_length.
643 (display_debug_ranges): Display the contents of the section's
644 header.
645 * dwarf.h (struct debug_info): Add loclists_base field.
646 * testsuite/binutils-all/dw5.W: Update expected output.
647 * testsuite/binutils-all/x86-64/pr26808.dump: Likewise.
648
a171378a
JB
6492022-04-01 John Baldwin <jhb@FreeBSD.org>
650
651 * readelf.c (get_freebsd_elfcore_note_type): Handle
652 NT_FREEBSD_X86_SEGBASES.
653
add0eb9d
NC
6542022-03-31 Nick Clifton <nickc@redhat.com>
655
656 * arlex.l: Accept the plus character as part of a filename.
657
260ecdce
FS
6582022-03-16 Fangrui Song <maskray@google.com>
659
660 PR binutils/28926
661 * objcopy.c (filter_symbols): Apply weaken to STB_GNU_UNIQUE symbols
662 * NEWS: Mention feature.
663 * testsuite/binutils-all/objcopy.exp (objcopy_test_symbol_manipulation): New test.
664 * testsuite/binutils-all/weaken-gnu-unique.s: New.
665
d65c0ddd
MS
6662022-03-16 Martin Storsjö <martin@martin.st>
667
668 PR 28885
669 * dlltool.c (main): use imp_name rather than dll_name when
670 generating a temporary file name.
671
0c857ef4
SM
6722022-03-16 Simon Marchi <simon.marchi@efficios.com>
673
674 * readelf.c (dump_relocations): Handle EM_AMDGPU.
675
2952f10c
SM
6762022-03-16 Simon Marchi <simon.marchi@efficios.com>
677
678 * Makefile.am (readelf_CFLAGS): New.
679 (readelf_LDADD): Add MSGPACK_LIBS.
680 * Makefile.in: Re-generate.
681 * config.in: Re-generate.
682 * configure: Re-generate.
683 * configure.ac: Add --with-msgpack flag and check for msgpack
684 using pkg-config.
685 * readelf.c: Include msgpack.h if HAVE_MSGPACK.
686 (print_note_contents_hex): New.
687 (print_indents): New.
688 (dump_msgpack_obj): New.
689 (dump_msgpack): New.
690 (print_amdgpu_note): New.
691 (process_note): Handle NT_AMDGPU_METADATA note contents.
692 Use print_note_contents_hex.
693
28cdbb18
SM
6942022-03-16 Simon Marchi <simon.marchi@efficios.com>
695
696 * readelf.c (get_amdgpu_elf_note_type): New.
697 (process_note): Handle "AMDGPU" notes.
698
c077c580
SM
6992022-03-16 Simon Marchi <simon.marchi@efficios.com>
700
701 * readelf.c: Include elf/amdgcn.h.
702 (decode_AMDGPU_machine_flags): New.
703 (get_machine_flags): Handle flags for EM_AMDGPU machine type.
704
37870be8
SM
7052022-03-16 Simon Marchi <simon.marchi@efficios.com>
706
707 * readelf.c (get_osabi_name): Handle EM_AMDGPU OS ABIs.
708
f4f95df3
NC
7092022-03-16 Nick Clifton <nickc@redhat.com>
710
711 * po/sr.po: Updated Serbian translation.
712
cda8dc94
TT
7132022-03-15 Tom Tromey <tromey@adacore.com>
714
715 * dwarf-mode.el: Now 1.7.
716 (dwarf--sentinel): Switch to the process buffer.
717
bb368aad
VM
7182022-03-11 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
719
720 * MAINTAINERS: Add gprofng maintainer.
721 * README-how-to-make-a-release: Add gprofng.
722
bed566bb
NC
7232022-03-10 Nick Clifton <nickc@redhat.com>
724
725 * dwarf.c (use_debuginfod): New variable. Set to 1.
726 (load_separate_debug_info): Only call
727 debuginfod_fetch_separate_debug_info is use_debuginfod is true.
728 (dwarf_select_sections_by_names): Add do-not-use-debuginfod and
729 use-debuginfod options.
730 (dwarf_select_sections_by_letters): Add D and E options.
731 * dwarf.h (use_debuginfod): New extern.
732 * objdump.c (usage): Mention the new options.
733 * readelf.c (usage): Likewise.
734 * doc/binutils.texi: Document the new options.
735 * doc/debug-options.texi: Describe the new options.
736 * NEWS: Mention the new feature.
737 * testsuite/binutils-all/debuginfod.exp: Add tests of the new
738 options.
739
d17e797f
MR
7402021-03-06 Maciej W. Rozycki <macro@orcam.me.uk>
741
742 * testsuite/binutils-all/mips/mips1-branch-alias.d: New test.
743 * testsuite/binutils-all/mips/mips1-branch-noalias.d: New test.
744 * testsuite/binutils-all/mips/mips2-branch-alias.d: New test.
745 * testsuite/binutils-all/mips/mips2-branch-noalias.d: New test.
746 * testsuite/binutils-all/mips/mips32r6-branch-alias.d: New test.
747 * testsuite/binutils-all/mips/mips32r6-branch-noalias.d: New
748 test.
749 * testsuite/binutils-all/mips/micromips-branch-alias.d: New
750 test.
751 * testsuite/binutils-all/mips/micromips-branch-noalias.d: New
752 test.
753 * testsuite/binutils-all/mips/mips-branch-alias.s: New test
754 source.
755 * testsuite/binutils-all/mips/micromips-branch-alias.s: New test
756 source.
757 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
758
84a9f195
SM
7592022-03-04 Simon Marchi <simon.marchi@polymtl.ca>
760
761 * readelf.c (process_dynamic_section): Fix indentation.
762
0f38fd87
NC
7632022-02-09 Nick Clifton <nickc@redhat.com>
764
765 * README-how-to-make-a-release: Update after the 2.38 release.
766
5fa0c223
NC
7672022-01-27 Nick Clifton <nickc@redhat.com>
768
769 * po/sv.po: Updated Swedish translation.
770
5fe73d46
NC
7712022-01-24 Nick Clifton <nickc@redhat.com>
772
773 * po/bg.po: Updated Bulgarian translation.
774 * po/fr.po: Updated French translation.
775 * po/ro.po: Updated Romanian translation.
776 * po/uk.po: Updated Ukranian translation.
777
58de646b
MS
7782022-01-22 Martin Storsjö <martin@martin.st>
779
780 * dlltool.c (main): Allow inferring tmp_prefix from the dll name
781 from a def file.
782
f908e960
NC
7832022-01-22 Nick Clifton <nickc@redhat.com>
784
785 * configure: Regenerate.
786 * po/binutils.pot: Regenerate.
787
a74e1cb3
NC
7882022-01-22 Nick Clifton <nickc@redhat.com>
789
790 * 2.38 release branch created.
791
6c037fdb
NC
7922022-01-17 Nick Clifton <nickc@redhat.com>
793
794 * Makefile.in: Regenerate.
795
d1b69c50
FS
7962022-01-11 Fangrui Song <maskray@google.com>
797
798 PR binutils/28759
799 * ar.c (long_options): Add --thin.
800 (usage) Add --thin. Deprecate -T without diagnostics.
801 * doc/binutils.texi: Add doc.
802 * NEWS: Mention --thin.
803 * binutils/testsuite/binutils-all/ar.exp: Add tests.
804
c4a8df19
MS
8052022-01-11 Martin Storsjö <martin@martin.st>
806
807 * dlltool.c (main): If a prefix has not been provided, attempt to
808 use a deterministic one based upon the dll name.
809
0e9f1c04 8102022-01-07 Pavel Mayorov <pmayorov@cloudlinux.com>
af4004d1
NC
811
812 PR 28718
0e9f1c04
PM
813 * dwarf.c: Revert previous delta.
814 (debug_get_real_type): Reject indirect types that point to
815 indirect types.
816 (debug_get_type_name, debug_get_type_size, debug_write_type):
817 Likewise.
818
8192022-01-06 Nick Clifton <nickc@redhat.com>
820
af4004d1
NC
821 * debug.c (debug_write_type): Allow for malicious recursion via
822 indirect debug types.
823
e2c0cef9
NC
8242022-01-04 Nick Clifton <nickc@redhat.com>
825
826 PR 28716
827 * dwarf.c (load_build_id_debug_file): Remove spurious printf.
828
61ab1364
NC
8292021-12-16 Nick Clifton <nickc@redhat.com>
830
831 PR 28697
832 * dwarf.c (load_build_id_debug_file): New function.
833 (try_build_id_prefix): New function.
834 (check_for_and_load_links): Call load_build_id_debug_file.
835 (debug_displays): Add entry for .note.gnu.build-id.
836 * dwarf.h (enum dwarf_section_display_enum): Add
837 note_gnu_build_id.
838 * testsuite/binutils-all/debuginfod.exp (test_fetch_debuglink):
839 Fix regexp for loads via debuglink section.
840
066624ff
CX
8412021-12-03 Chenghua Xu <xuchenghua@loongson.cn>
842
843 * MAINTAINERS: Add myself and Zhensong Liu
844 as the LoongArch maintainer.
845
117e35f5
NC
8462021-12-02 Nick Clifton <nickc@redhat.com>
847
848 PR 28645
849 * dwarf.c (process_cu_tu_index): Add test for overruning section
850 whilst processing slots.
851
6e2acee1
RM
8522021-11-30 Roland McGrath <mcgrathr@google.com>
853
854 * doc/local.mk: Give each man page target its missing dependency on
855 doc/$(am__dirstamp).
856
9745b5a7
NC
8572021-11-30 Nick Clifton <nickc@redhat.com>
858
859 * dwarf.c (find_debug_info_for_offset): Use dwarf_vma type for
860 offsets, sizes and ranges.
861 (display_loc_list): Likewise. Also use print_dwarf_vma to print
862 the offset.
863 (display_loclists_list): Likewise.
864 (display_loc_list_dwo): Likewise.
865 (display_debug_str): Likewise.
866 (display_debug_aranges): Likewise.
867 (display_debug_ranges_list): Likewise.
868 (display_debug_rnglists_list): Likewise.
869 (display_debug_ranges): Likewise.
870
8fee99c3
NC
8712021-11-29 Nick Clifton <nickc@redhat.com>
872
873 PR 28632
874 * strings.c (usage): Update desciption of -n option.
875 * doc/binutils.texi: Likewise.
876
d8ed269e
NC
8772021-11-24 Nick Clifton <nickc@redhat.com>
878
879 PR 28564
880 * sysdump.c (getCHARS): Check for an out of bounds read.
881
a7fd1186
FS
8822021-11-16 Fangrui Song <maskray@google.com>
883
884 * readelf.c (enum relocation_type): New.
885 (slurp_relr_relocs): New.
886 (dump_relocations): Change is_rela to rel_type.
887 Dump RELR.
888 (dynamic_relocations): Add DT_RELR.
889 (process_relocs): Check SHT_RELR and DT_RELR.
890 (process_dynamic_section): Store into dynamic_info for
891 DT_RELR/DT_RELRENT/DT_RELRSZ.
892
b3aa80b4
NC
8932021-11-09 Nick Clifton <nickc@redhat.com>
894
895 * nm.c: Add --unicode option to control how unicode characters are
896 handled.
897 * objdump.c: Likewise.
898 * readelf.c: Likewise.
899 * strings.c: Likewise.
900 * binutils.texi: Document the new feature.
901 * NEWS: Document the new feature.
902 * testsuite/binutils-all/unicode.exp: New file.
903 * testsuite/binutils-all/nm.hex.unicode
904 * testsuite/binutils-all/strings.escape.unicode
905 * testsuite/binutils-all/objdump.highlight.unicode
906 * testsuite/binutils-all/readelf.invalid.unicode
907
dac784d0
TT
9082021-11-03 Tom Tromey <tromey@adacore.com>
909
910 * dwarf.c (display_debug_loc): Use section name in warnings.
911
10909ea8
NA
9122021-10-25 Nick Alcock <nick.alcock@oracle.com>
913
914 * objdump.c (usage): --ctf now has an optional argument.
915 (main): Adjust accordingly.
916 (dump_ctf): Default it.
917 * doc/ctf.options.texi: Adjust.
918
80b56fad
NA
9192021-10-25 Nick Alcock <nick.alcock@oracle.com>
920
921 * objdump.c (usage): --ctf-parent now takes a name, not a section.
922 (dump_ctf): Don't open a separate section; use the parent_name in
923 ctf_dict_open instead. Use ctf_archive_next, not ctf_archive_iter,
924 so we can pass down a member count.
925 (dump_ctf_archive_member): Add the member count; don't return
926 anything. Import parents into children no matter what the
927 parent's name, while still avoiding displaying the header for the
928 common parent name of ".ctf".
929 * readelf.c (usage): Adjust similarly.
930 (dump_section_as_ctf): Likewise.
931 (dump_ctf_archive_member): Likewise. Never stop iterating over
932 archive members, even if ctf_dump of one member fails.
933 * doc/ctf.options.texi: Adjust.
934
cf487499
NC
9352021-10-19 Nick Clifton <nickc@redhat.com>
936
937 * nm.c (filter_symbols): Test for a NULL name before checking to
938 see if the symbol is __gnu_lto_slim.
939 * objcopy.c (filter_symbols): Likewise.
940
7325ba79
NC
9412021-09-30 Nick Clifton <nickc@redhat.com>
942
943 * objcopy.c (filter_symbols): Fail if attempting to dredefine
944 symbols in an LTO object file.
945
b9004024
NA
9462021-09-27 Nick Alcock <nick.alcock@oracle.com>
947
948 * configure: Regenerate.
949
6a7f5766
AB
9502021-09-20 Andrew Burgess <andrew.burgess@embecosm.com>
951
952 * testsuite/binutils-all/riscv/riscv.exp: New file.
953 * testsuite/binutils-all/riscv/unknown.d: New file.
954 * testsuite/binutils-all/riscv/unknown.s: New file.
955
64dbf74d
LM
9562021-09-07 Luis Machado <luis.machado@linaro.org>
957
958 Revert: [AArch64] MTE corefile support
959
960 2021-05-21 Luis Machado <luis.machado@linaro.org>
961
962 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
963
4f212c55
NC
9642021-08-11 Nick Clifton <nickc@redhat.com>
965
966 * po/pt.po: Updated Portuguese translation.
967
3ee0cd9e
NC
9682021-08-10 Nick Clifton <nickc@redhat.com>
969
970 * po/sr.po: Updated Serbian translation.
971
c58830e4
NC
9722021-07-16 Nick Clifton <nickc@redhat.com>
973
974 * po/sv.po: Updated Swedish translation.
975
51d29b8c
CC
9762021-07-14 Clément Chigot <clement.chigot@atos.net>
977
978 * dwarf.h (struct dwarf_section): Add XCOFF name.
979 * dwarf.c (struct dwarf_section_display): Update.
980 * objdump.c (load_debug_section): Add XCOFF name handler.
981 (dump_dwarf_section): Likewise.
982
0200b0fe
NC
9832021-07-12 Nick Clifton <nickc@redhat.com>
984
985 * po/fr.po: Updated French translation.
986
9039747f
AM
9872021-07-10 Alan Modra <amodra@gmail.com>
988
989 PR 28069
990 * dwarf.c (display_discr_list): Remove assertions. Delete "end"
991 parameter, use initial "data" pointer as the end. Formatting.
992 Don't count down bytes as they are read.
993 (read_and_display_attr_value): Adjust display_discr_list call.
994 (read_and_print_leb128): Don't pass __FILE__ and __LINE__ to
995 report_leb_status.
996 * dwarf.h (report_leb_status): Don't report file and line
997 numbers. Delete file and lnum parameters,
998 (READ_ULEB, READ_SLEB): Adjust.
999
b737d304
RO
10002021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1001
1002 * configure.ac: Check for strnlen declaration.
1003 * configure, config.in: Regenerate.
1004
40e1d303
AM
10052021-07-05 Alan Modra <amodra@gmail.com>
1006
1007 PR 28047
1008 * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter.
1009 Check DW_FORM_ref1 etc. arg against cu_end rather than end of
1010 section. Adjust all callers.
1011
346d80ef
NC
10122021-07-03 Nick Clifton <nickc@redhat.com>
1013
1014 * configure: Regenerate.
1015 * po/opcodes.pot: Regenerate.
1016 * README-how-to-make-a-release: Update.
1017
51419248
NC
10182021-07-03 Nick Clifton <nickc@redhat.com>
1019
1020 * 2.37 release branch created.
1021
4ff0bb2d
AM
10222021-07-02 Alan Modra <amodra@gmail.com>
1023
1024 PR 28048
1025 * dwarf.c (get_type_signedness): Don't run off end of buffer
1026 printing DW_FORM_string attribute.
1027
1b8d1f5f
NC
10282021-07-01 Nick Clifton <nickc@redhat.com>
1029
1030 PR 28029
1031 * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk.
1032
75a2da57
AH
10332021-07-01 Andrei Homescu <ah@immunant.com>
1034
1035 * readelf.c (process_archive): Reset file position to the
1036 beginning when calling process_object for thin archive members.
1037 * testsuite/binutils-all/readelf.exp: Add test.
1038 * testsuite/binutils-all/readelf.h.thin: New file.
1039
c63fc368
NC
10402021-06-30 Tom Tromey <tom@tromey.com>
1041
1042 * dwarf.c (read_and_display_attr_value): Handle
1043 DW_FORM_implicit_const.
1044
280c57ff
RH
10452021-06-30 Richard Henderson <richard.henderson@linaro.org>
1046
1047 * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf
1048 and DW_CFA_def_cfa_offset_sf have a signed offset.
1049
539b54f0
AM
10502021-06-19 Alan Modra <amodra@gmail.com>
1051
1052 * dwarf.c (display_debug_lines_decoded): Use memcpy rather than
1053 strncpy when trimming file name length to MAX_FILENAME_LENGTH.
1054 Don't make an unnecessary copy when length is good.
1055
5a767724
L
10562021-06-18 H.J. Lu <hongjiu.lu@intel.com>
1057
1058 * readelf.c (print_gnu_property_note): Handle
1059 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
1060 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
1061
c8795e1f
NC
10622021-06-15 Nick Clifton <nickc@redhat.com>
1063
1064 * readelf.c (get_note_type): Add support for NT_GO_BUILDID.
1065
93df3340
AM
10662021-06-15 Alan Modra <amodra@gmail.com>
1067
1068 * readelf.c (locate_dynamic_section, is_pie): New functions.
1069 (get_file_type): Replace e_type parameter with filedata. Call
1070 is_pie for ET_DYN. Update all callers.
1071 (process_program_headers): Use local variables dynamic_addr and
1072 dynamic_size, updating filedata on exit from function. Set
1073 dynamic_size of 1 to indicate no dynamic section or segment.
1074 Update tests of dynamic_size throughout.
1075 * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output.
1076
0121f438
EB
10772021-06-14 Eric Botcazou <ebotcazou@adacore.com>
1078
1079 * dwarf.c (struct abbrev_attr): Change type of implicit_const.
1080 (add_abbrev_attr): Likewise.
1081 (process_abbrev_set): Likewise.
1082 (display_debug_abbrev): Adjust to above change.
1083
8c60e272
AM
10842021-06-12 Alan Modra <amodra@gmail.com>
1085
1086 * readelf.c (process_file_header): Don't clear section_headers.
1087
e331b18d
AM
10882021-06-12 Alan Modra <amodra@gmail.com>
1089
1090 * readelf.c (get_section_headers): Don't test e_shoff here, leave
1091 that to get_32bit_section_headers or get_64bit_section_headers.
1092 (process_object): Throw away section header read to print file
1093 header extension.
1094
066f8fbe
AM
10952021-06-11 Alan Modra <amodra@gmail.com>
1096
1097 * readelf.c (struct filedata): Move archive_file_offset and
1098 archive_file_size earlier.
1099 (free_filedata): Clear using memset.
1100
4de91c10
AM
11012021-06-11 Alan Modra <amodra@gmail.com>
1102
1103 * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
1104 (get_elf_symbols): ..this new function throughout.
1105 (get_32bit_section_headers): Don't free section_headers.
1106 (get_64bit_section_headers): Likewise.
1107 (get_section_headers): New function, use throughout in place of
1108 32bit and 64bit variants.
1109 (get_dynamic_section): Similarly.
1110 (process_section_headers): Don't free filedata memory here.
1111 (get_file_header): Don't get section headers here..
1112 (process_object): ..Read them here instead. Don't exit without
1113 freeing filedata memory.
1114
cc96519f
NC
11152021-06-09 Nick Clifton <nickc@redhat.com>
1116
1117 * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list.
1118
6bee34a1
JB
11192021-06-07 Jan Beulich <jbeulich@suse.com>
1120
1121 * dwarf.c (display_debug_aranges): Add u suffix to constant.
1122
63e47e10
AM
11232021-05-29 Alan Modra <amodra@gmail.com>
1124
1125 * objdump (usage): Add missing \n.
1126
d6249f5f
AM
11272021-05-29 Alan Modra <amodra@gmail.com>
1128
1129 * readelf.c (parse_args): Call dwarf_select_sections_all on
1130 --debug-dump without optarg.
1131 (usage): Associate -w and --debug-dump options closely.
1132 Split up help message. Remove extraneous blank lines around
1133 ctf help.
1134 * objdump.c (usage): Similarly.
1135
9204ccd4
MR
11362021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1137
1138 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0
1139 operand disassembly.
1140 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
1141
9623cc5d
MR
11422021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1143
1144 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000'
1145 machine for disassembly.
1146 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise.
1147 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
1148 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise.
1149
1273b2f8
L
11502021-05-28 H.J. Lu <hongjiu.lu@intel.com>
1151
1152 PR ld/27905
1153 * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9.
1154
6643bb00
AM
11552021-05-27 Alan Modra <amodra@gmail.com>
1156
1157 * readelf (usage): Order -w letters to match --debug-dump= and
1158 move common '=' for --debug-dump out of brackets.
1159
50c95a73
L
11602021-05-26 H.J. Lu <hongjiu.lu@intel.com>
1161
1162 PR ld/27905
1163 * readelf.c (decode_x86_feature_2): Support
1164 GNU_PROPERTY_X86_FEATURE_2_CODE16.
1165
01a8c731
CX
11662021-05-23 Tiezhu Yang <yangtiezhu@loongson.cn>
1167
1168 * readelf.c (get_machine_name): Change Loongson Loongarch to
1169 LoongArch.
1170
3b2bef8b
LM
11712021-05-21 Luis Machado <luis.machado@linaro.org>
1172
1173 * readelf.c (get_note_type): Add missing NT_ARM_* entries.
1174
894982bf
LM
11752021-05-21 Luis Machado <luis.machado@linaro.org>
1176
1177 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
1178
c485e475
ES
11792021-05-19 Eli Schwartz <eschwartz@archlinux.org>
1180
1181 * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set.
1182
1b3892be
AM
11832021-05-19 Alan Modra <amodra@gmail.com>
1184
1185 PR 27884
1186 * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return
1187 param with map_return, and return map for DW_FORM_ref_addr.
1188 (get_type_signedness): Adjust calls to get_type_abbrev_from_form.
1189 Pass returned cu map start and end to recursive call.
1190 (read_and_display_attr_value): Similarly.
1191
9d9e2a34
AM
11922021-05-19 Alan Modra <amodra@gmail.com>
1193
1194 PR 27879
1195 * sysdump.c (getBARRAY): Sanity check size against max.
1196 (getINT): Avoid UB shift left.
1197
b9c0d703
AM
11982021-05-15 Alan Modra <amodra@gmail.com>
1199
1200 * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow.
1201 Delete dead code.
1202
bb19bf12
AM
12032021-05-15 Alan Modra <amodra@gmail.com>
1204
1205 * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in
1206 length calculations.
1207
d7870f63
AM
12082021-05-15 Alan Modra <amodra@gmail.com>
1209
1210 * dwarf.c (display_debug_names): Complain when header length is
1211 too small. Avoid pointer UB. Sanity check augmentation string,
1212 CU table, TU table and foreign TU table sizes.
1213
5897a389
AM
12142021-05-15 Alan Modra <amodra@gmail.com>
1215
1216 * dwarf.c (display_debug_frames): Delete initial_length_size.
1217 Avoid pointer UB. Constrain data reads to length given in header.
1218 Sanity check cie header length. Only skip up to next FDE on
1219 finding augmentation data too long.
1220
c93c4a85
AM
12212021-05-15 Alan Modra <amodra@gmail.com>
1222
1223 * dwarf.c (read_cie): Add more sanity checks to ensure data
1224 pointer is not bumped past end.
1225
b4951546
AM
12262021-05-15 Alan Modra <amodra@gmail.com>
1227
1228 * dwarf.c (display_debug_ranges): Delete initial_length_size.
1229 Correct fallback size calculated on finding a reloc. Constrain
1230 data reads to length given in header. Avoid pointer UB.
1231
669f463d
AM
12322021-05-15 Alan Modra <amodra@gmail.com>
1233
1234 * dwarf.c (display_debug_rnglists_list): Avoid pointer UB.
1235
5250d2f0
AM
12362021-05-15 Alan Modra <amodra@gmail.com>
1237
1238 * dwarf.c (display_debug_str_offsets): Constrain reads to length
1239 given in header.
1240
6ca07350
AM
12412021-05-15 Alan Modra <amodra@gmail.com>
1242
1243 * dwarf.c (display_debug_aranges): Delete initial_length_size.
1244 Use end_ranges to constrain data reads to header length. Avoid
1245 pointer UB.
1246
78480097
AM
12472021-05-15 Alan Modra <amodra@gmail.com>
1248
1249 * dwarf.c (display_loc_list): Avoid pointer UB. Correct check
1250 before reading uleb length. Warn on excess length.
1251
b0d461ec
AM
12522021-05-15 Alan Modra <amodra@gmail.com>
1253
1254 * dwarf.c (display_debug_macro): Print strings that might not
1255 be zero terminated with %*s. Don't bump curr if unterminated.
1256
46d1214d
AM
12572021-05-15 Alan Modra <amodra@gmail.com>
1258
1259 * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
1260 Simplify length sanity check, and check for too small lengths.
1261 Constrain data reads to header length. Avoid pointer UB.
1262
c03df922
AM
12632021-05-15 Alan Modra <amodra@gmail.com>
1264
1265 * dwarf.c (display_debug_macinfo): Print strings that might not
1266 be zero terminated with %*s. Don't bump curr if unterminated.
1267
35b2c89e
AM
12682021-05-15 Alan Modra <amodra@gmail.com>
1269
1270 * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size.
1271 Simplify length check. Constrain reads to length given by header.
1272
56051e28
AM
12732021-05-15 Alan Modra <amodra@gmail.com>
1274
1275 * dwarf.c (display_debug_lines_decoded): Don't use strnlen when
1276 we have already checked for NUL termination.
1277
37195e23
AM
12782021-05-15 Alan Modra <amodra@gmail.com>
1279
1280 * dwarf.c (read_debug_line_header): Delete initial_length_size.
1281 Avoid pointer UB. Keep within length specified by header.
1282 Delete dead code.
1283
edba4e4a
AM
12842021-05-15 Alan Modra <amodra@gmail.com>
1285
1286 * dwarf.c (process_debug_info): Always do the first CU length
1287 scan for sanity checks. Remove initial_length_size var and
1288 instead calculate end_cu. Use end_cu to limit data reads.
1289 Delete now dead code checking length.
1290
ebb17864
AM
12912021-05-15 Alan Modra <amodra@gmail.com>
1292
1293 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
1294
fc5e0925
AM
12952021-05-15 Alan Modra <amodra@gmail.com>
1296
1297 * bucomm.h (_mul_overflow): Define.
1298 * dwarf.c (get_encoded_value): Avoid pointer UB.
1299
b96a1bcb
AM
13002021-05-13 Alan Modra <amodra@gmail.com>
1301
1302 PR 27861
1303 * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
1304 header length.
1305
d21f875d
AM
13062021-05-13 Alan Modra <amodra@gmail.com>
1307
1308 PR 27860
1309 * dwarf.c (display_debug_frames): Sanity check cie_off before
1310 attempting to read cie.
1311
a7077ce7
AM
13122021-05-12 Alan Modra <amodra@gmail.com>
1313
1314 * dwarf.c (process_extended_line_op): Don't bump data pointer past
1315 end when strnlen doesn't find string terminator.
1316 (decode_location_expression): Remove dead code.
1317 (skip_attr_bytes): Remove const from end param. Ensure data
1318 pointer doesn't pass end.
1319 (get_type_signedness): Remove const from end param.
1320 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
1321 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
1322 (display_debug_pubnames_worker): Likewise.
1323 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
1324 than blindly incrementing data pointer.
1325 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
1326 compare pointers, compare lengths.
1327
6d1ad6f7
AM
13282021-05-12 Alan Modra <amodra@gmail.com>
1329
1330 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
1331 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
1332 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
1333 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
1334 SAFE_BYTE_GET followed by increment.
1335 (process_debug_info): Likewise, and test bytes remaining before
1336 incrementing section_begin rather than using pointer comparison.
1337 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
1338 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
1339
af2ddf69
AM
13402021-05-12 Alan Modra <amodra@gmail.com>
1341
1342 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
1343 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
1344 SAFE_BYTE_GET_AND_INC.
1345 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
1346 (process_debug_info, process_cu_tu_index): Likewise.
1347 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
1348 (byte_get, byte_get_little_endian, byte_get_big_endian),
1349 (byte_get_signed): Make size param unsigned. Remove code dealing
1350 with 4-byte elf_vma.
1351 (byte_get_64): Delete.
1352 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
1353 (byte_get, byte_get_little_endian, byte_get_big_endian),
1354 (byte_get_signed): Update prototypes.
1355 (byte_get_64): Delete.
1356
0d872fca
AM
13572021-05-12 Alan Modra <amodra@gmail.com>
1358
1359 PR 27836
1360 * dwarf.c (display_debug_frames): Don't compare pointers derived
1361 from user input. Test offset against bounds instead.
1362
55b26492
AM
13632021-05-12 Alan Modra <amodra@gmail.com>
1364
1365 PR 27853
1366 * dwarf.c (display_formatted_table): Test for data >= end rather
1367 than data == end.
1368 (process_extended_line_op): Likewise.
1369 (display_debug_lines_raw): Likewise.
1370 (display_debug_lines_decoded): Likewise.
1371
5ab39075
AM
13722021-05-12 Alan Modra <amodra@gmail.com>
1373
1374 PR 27849
1375 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
1376 Sanity check section size for version and padding too. Correct
1377 index sanity check. Handle multiple tables in .debug_str_offsets.
1378
d30182b5
HPN
13792021-05-11 Hans-Peter Nilsson <hp@axis.com>
1380
1381 * dwarf.c (process_abbrev_set): Properly parenthesize before
1382 casting to unsigned long.
1383
f2f9554b
AM
13842021-05-11 Alan Modra <amodra@gmail.com>
1385
1386 PR 27845
1387 * dwarf.c (process_abbrev_set): Replace start and end parameters
1388 with section, abbrev_base, abbrev_size, abbrev_offset. Update
1389 all callers. Sanity check parameters correctly and emit warnings
1390 here rather than..
1391 (process_debug_info): ..here.
1392
749c7002
TW
13932021-05-10 Thomas Wolff <towo@towo.net>
1394
1395 PR 4356
1396 PR 26865
1397 PR 27594
1398 * windres.c (quot): Revert previous delta. Do not use double
1399 quotes when spaces are detected in options.
1400 * doc/binutils.texi (windres): Remove suggestion that the
1401 --preprocessor option can take arguments.
1402
2d4b4986
AM
14032021-05-10 Alan Modra <amodra@gmail.com>
1404
1405 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
1406 END rather than adding amount to PTR.
1407 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
1408
b05a0fc7
AM
14092021-05-09 Alan Modra <amodra@gmail.com>
1410
1411 * objcopy.c (eq_string): Delete.
1412 (create_symbol_htab): Use htab_eq_string.
1413
354c317e
MF
14142021-05-08 Mike Frysinger <vapier@gentoo.org>
1415
1416 * README-how-to-make-a-release: Update html & pdf entries.
1417
cf758b39
MF
14182021-05-08 Mike Frysinger <vapier@gentoo.org>
1419
1420 * doc/Makefile.am (html-local, binutils/index.html): New targets.
1421 * doc/Makefile.in: Regenerate.
1422
2faf902d
MF
14232021-05-08 Mike Frysinger <vapier@gentoo.org>
1424
1425 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
1426 * doc/Makefile.in: Regenerate.
1427
3ecc00ec
NC
14282021-05-07 Nick Clifton <nickc@redhat.com>
1429
1430 * readelf.c (no_processor_specific_unwind): New function.
1431 (process_unwind): Use no_processor_specific_unwind for X86
1432 targets.
1433
4896932e
MF
14342021-05-07 Michael Forney <mforney@mforney.org>
1435
1436 * dwarf.c: Don't omit second operand of '?' operator.
1437
bfbfa6e7
NC
14382021-04-30 Nick Clifton <nickc@redhat.com>
1439
1440 PR 27796
1441 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
1442 .debug_sup section.
1443
5edb8e3f
NC
14442021-04-29 Nick Clifton <nickc@redhat.com>
1445
1446 PR 27594
1447 * doc/binutils.texi (windres): Correct the description of the
1448 default value of the --preprocessor argument.
1449
3d64c987
NC
14502021-04-27 Nick Clifton <nickc@redhat.com>
1451
1452 PR 27779
1453 * dwarf.c (parse_gnu_debuglink): Reject empty names.
1454 (parse_gnu_debugaltlink): Likewise.
1455
b11b2969
CC
14562021-04-22 Clément Chigot <clement.chigot@atos.net>
1457
1458 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
1459 aux structures.
1460
047c3dbf
NL
14612021-04-21 Nick Lott <nick.lott@gmail.com>
1462
1463 PR 27672
1464 * readelf.c (sym_base): New variable.
1465 (enum print_mode): Add more modes.
1466 (print_vma): Add suport for new modes.
1467 (options): Add sym-base.
1468 (usage): Add sym-base.
1469 (parse_args): Add support for --sym-base.
1470 (print_dynamic_symbol_size): New function.
1471 (print_dynamic_symbol): Use new function.
1472 * doc/binutils.texi: Document the new feature.
1473 * NEWS: Mention the new feature.
1474
23356397
NC
14752021-04-21 Nick Clifton <nickc@redhat.com>
1476
1477 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
1478 Adjust expected output to allow for named section symbols.
1479 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
1480 Likewise.
1481 * testsuite/binutils-all/readelf.s-64: Likewise.
1482 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1483 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
1484 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1485
14862021-04-21 Luo Longjun <luolongjun@huawei.com>
1487
1488 * readelf.c (print_dynamic_symbol): Print the section name for
1489 section symbols without a name of their own.
1490
aee4e85e
AK
14912021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
1492
1493 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
1494 add him to Past Maintainers.
1495 Update my email address.
1496
229597a1
NC
14972021-04-19 Nick Clifton <nickc@redhat.com>
1498
1499 PR 21702
1500 * arsup.c (ar_addmod): Enable plugin support, if available.
1501
4dee4f3e
NC
15022021-04-19 Nick Clifton <nickc@redhat.com>
1503
1504 * rename.c: (get_stat_atime_ns): Add prototype.
1505 (get_stat_mtime_ns): Add prototype.
1506
ad7c4616
AM
15072021-04-16 Alan Modra <amodra@gmail.com>
1508
1509 PR 27725
1510 * rename.c (get_stat_atime, get_stat_mtime): Make static.
1511 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
1512
4c79248a
PS
15132021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
1514
1515 PR 27725
1516 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
1517 (get_stat_mtime_ns): Likewise.
1518
985e0264
AM
15192021-04-15 Alan Modra <amodra@gmail.com>
1520
1521 PR 27725
1522 * configure.ac: Check for sys/time.h and utimensat. Use standard
1523 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
1524 members of struct stat.
1525 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
1526 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
1527 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
1528 (get_stat_atime, get_stat_mtime): Likewise.
1529 (set_times): Choose first available of utimensat, utimes, utime.
1530 Use above inline functions to set timespec and timeval values.
1531 * configure: Regenerate.
1532 * config.in: Regenerate.
1533 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
1534 file timestamp when --preserve-dates is used.
1535
d0ecdcdd
AM
15362021-04-15 Alan Modra <amodra@gmail.com>
1537
1538 PR 27456
1539 * rename.c (smart_rename): When TO and FROM are equal, just set
1540 file timestamp.
1541 * objcopy.c (strip_main, copy_main): Always call smart_rename.
1542
9917b559
L
15432021-04-14 H.J. Lu <hongjiu.lu@intel.com>
1544
1545 PR binutils/27708
1546 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
1547 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
1548 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
1549 test.
1550
6be872a4
MH
15512021-04-14 Mark Harmstone <mark@harmstone.com>
1552
1553 PR 27686
1554 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
1555 end of the structure.
1556
5f47741b
FC
15572021-04-14 Frederic Cambus <fred@statdns.com>
1558
1559 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
1560 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
1561
13acb58d
AM
15622021-04-14 Alan Modra <amodra@gmail.com>
1563
1564 PR 27716
1565 * objdump.c (show_line): Don't limit paths to PATH_MAX.
1566 * readelf.c (struct filedata): Change program_interpreter from
1567 a char array to a char pointer.
1568 (process_program_headers): Sanity check PT_INTERP p_filesz.
1569 Malloc program_interpreter using p_filesz and read directly from
1570 file.
1571 (process_dynamic_section): Check program_interpreter is non-NULL.
1572 (free_filedata): New function, split out from..
1573 (process_object): ..here.
1574 (close_debug_file): Call free_filedata.
1575 * sysdep.h: Don't include sys/param.h.
1576 (PATH_MAX): Don't define.
1577 * configure.ac: Don't check for sys/param.h.
1578 * configure: Regenerate.
1579
0fa29e2d
FC
15802021-04-13 Frederic Cambus <fred@statdns.com>
1581
1582 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
1583 check for NT_NETBSD_PAX.
1584
43e05cd4
AM
15852021-04-12 Alan Modra <amodra@gmail.com>
1586
1587 * configure.ac (--enable-checking): Add support.
1588 * config.in: Regenerate.
1589 * configure: Regenerate.
1590
c3f72de4
AM
15912021-04-09 Alan Modra <amodra@gmail.com>
1592
1593 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
1594 dynrelcount.
1595 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
1596 (disassemble_section, disassemble_data): Likewise.
1597
a2e66773
AM
15982021-04-06 Alan Modra <amodra@gmail.com>
1599
1600 * objdump.c (objdump_symbol_at_address): Return asymbol*.
1601
4db29512
AM
16022021-04-06 Alan Modra <amodra@gmail.com>
1603
1604 * NEWS: Mention C99 requirement.
1605 * README: Likewise. Modernise examples and "Reporting bugs".
1606
87b9f255
AM
16072021-04-05 Alan Modra <amodra@gmail.com>
1608
1609 * configure.ac: Assume long long is available. Don't test for
1610 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
1611 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
1612 strcoll, setlocale, setmode or location of time_t. Don't check
1613 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
1614 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
1615 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
1616 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
1617 locale.h, string.h and stdlib.h unconditionally. Remove various
1618 fallback declarations. Assume long long is available.
1619 * addr2line.c: Don't test HAVE_SETLOCALE.
1620 * ar.c: Likewise.
1621 * coffdump.c: Likewise.
1622 * dlltool.c: Likewise.
1623 * dllwrap.c: Likewise.
1624 * elfedit.c: Likewise.
1625 * nm.c: Likewise.
1626 * objcopy.c: Likewise.
1627 * objdump.c: Likewise.
1628 * readelf.c: Likewise.
1629 * size.c: Likewise.
1630 * srconv.c: Likewise.
1631 * strings.c: Likewise.
1632 * sysdump.c: Likewise.
1633 * windmc.c: Likewise.
1634 * windres.c: Likewise.
1635 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
1636 * dwarf.c: Include limits.h unconditionally. Assume long long
1637 is available.
1638 * nm.c: Don't test HAVE_STRCOLL.
1639 * readelf.c: Don't test HAVE_WCHAR_H.
1640 * strings.c: Assume long long is available.
1641 * syslex.l: Include string.h unconditionally.
1642 * aclocal.m4: Regenerate.
1643 * config.in: Regenerate.
1644 * configure: Regenerate.
1645 * Makefile.in: Regenerate.
1646 * doc/Makefile.in: Regenerate.
1647
e9b095a5
ML
16482021-04-01 Martin Liska <mliska@suse.cz>
1649
1650 * elfcomm.h (strneq): Remove strneq and use startswith.
1651 * readelf.c (ia64_process_unwind): Likewise.
1652 (process_note): Likewise.
1653
3f3328b8
ML
16542021-04-01 Martin Liska <mliska@suse.cz>
1655
1656 * dllwrap.c: Use startswith function.
1657 * objcopy.c (is_dwo_section): Likewise.
1658 (handle_remove_section_option): Likewise.
1659 (copy_main): Likewise.
1660 * objdump.c (is_significant_symbol_name): Likewise.
1661
24d127aa
ML
16622021-04-01 Martin Liska <mliska@suse.cz>
1663
1664 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
1665 startswith.
1666 (display_debug_lines_decoded): Likewise.
1667 (display_debug_links): Likewise.
1668 * elfcomm.c (setup_archive): Likewise.
1669 * elfcomm.h (const_strneq): Likewise.
1670 * readelf.c (process_section_headers): Likewise.
1671 (slurp_ia64_unwind_table): Likewise.
1672 (slurp_hppa_unwind_table): Likewise.
1673 (decode_arm_unwind): Likewise.
1674 (display_debug_section): Likewise.
1675 (process_note): Likewise.
1676
015dc7e1
AM
16772021-03-31 Alan Modra <amodra@gmail.com>
1678
1679 * sysdep.h (POISON_BFD_BOOLEAN): Define.
1680 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
1681 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
1682 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
1683 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
1684 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
1685 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
1686 * windmc.c, * windmc.h, * windres.c, * winduni.c,
1687 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
1688 and TRUE with true throughout.
1689
3dfb1b6d
AM
16902021-03-31 Alan Modra <amodra@gmail.com>
1691
1692 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
1693 * dwarf.c: Likewise.
1694
57ae980e
AM
16952021-03-31 Alan Modra <amodra@gmail.com>
1696
1697 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
1698
63b4cc53
AM
16992021-03-29 Alan Modra <amodra@gmail.com>
1700
1701 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
1702 * dwarf.c (read_and_display_attr_value): Likewise.
1703 (display_debug_str_offsets): Likewise.
1704 * objdump.c (dump_bfd): Likewise.
1705 * readelf.c (dump_section_as_strings): Likewise.
1706 (dump_section_as_bytes): Likewise.
1707
1be305ff
AM
17082021-03-29 Alan Modra <amodra@gmail.com>
1709
1710 * objdump.c (process_links): Use type int.
1711 * readelf.c (request_dump): Don't increment do_dump, set it.
1712 * windint.h (target_is_bigendian): Use type bfd_boolean.
1713 * windmc.c (target_is_bigendian): Likewise.
1714 * windres.c (target_is_bigendian): Likewise.
1715
08dedd66
ML
17162021-03-22 Martin Liska <mliska@suse.cz>
1717
1be305ff
AM
1718 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
1719 with startswith.
08dedd66
ML
1720 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
1721 * objcopy.c (is_mergeable_note_section): Likewise.
1722 * objdump.c (dump_dwarf_section): Likewise.
1723 * prdbg.c (pr_method_type): Likewise.
1724 (pr_class_baseclass): Likewise.
1725 (tg_class_baseclass): Likewise.
1726 * readelf.c (process_lto_symbol_tables): Likewise.
1727 * stabs.c (ULLHIGH): Likewise.
1728 (parse_stab_argtypes): Likewise.
1729 (stab_demangle_function_name): Likewise.
1730
7b9f9859
L
17312021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1732
1733 * readelf.c (get_machine_name): Add EM_INTELGT.
1734
835f2fae
NC
17352021-03-18 Nick Clifton <nickc@redhat.com>
1736
1737 PR 27478
1738 * readelf.c (dump_section_as_strings): Mention separate filename.
1739 (dump_section_as_bytes): Likewise.
1740 (dump_section_as_ctf): Likewise.
1741 (initialise_dumkps_byname): Only issue a warning for missing
1742 sections if processing the main file.
1743 (process_section_contents): Only issue a warning for unsumped
1744 section numbers in the main file.
1745 (initialise_dump_sects): New function. Contains code extracted
1746 from ...
1747 (process_object): ... here. Also call initialise_dump_sects for
1748 separate files.
1749
44266f36
NC
17502021-03-16 Nick Clifton <nickc@redhat.com>
1751
1752 PR 27534
1753 * readelf.c (display_debug_section): Also retain .debug_addr
1754 sections.
1755
d6bfbc39
NC
17562021-03-16 Nick Clifton <nickc@redhat.com>
1757
1758 PR 27533
1759 * readelf.c (process_section_contents): Only dump debug
1760 information for separate files unless process_links is enabled.
1761 (process_object): Always call process_section_contents for
1762 separate info files.
1763
1996d0f1
NC
17642021-03-15 Nick Clifton <nickc@redhat.com>
1765
1766 PR 27487
1767 * nm.c (FORMAT_JUST_SYMBOLS): Define.
1768 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
1769 (long_options): Add just-symbols.
1770 (set_output_format): Add support for just-symbols.
1771 (get_print_format): Likewise.
1772 (do_not_print_object_filename): New function.
1773 (do_not_print_archive_filename): New function.
1774 (do_not_print_archive_member): New function.
1775 (do_not_print_symbol_filename): New function.
1776 (just_print_symbol_name): New function.
1777 (main): Handle --just-symbols.
1778 * NEWS: Mention the new feature.
1779 * doc/binutils.texi: Document the new feature.
1780
2c1bef53
CC
17812021-03-12 Clément Chigot <clement.chigot@atos.net>
1782
1783 * od-xcoff.c: Replace RTB by TRL entry.
1784
db6092f3
AB
17852021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1786 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
1789
b63a5e38
AB
17902021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1791 Andrew Burgess <andrew.burgess@embecosm.com>
1792
1793 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
1794
d296b736
NC
17952021-03-05 Nick Clifton <nickc@redhat.com>
1796
1797 PR 27387
1798 * dwarf.c (display_debug_macro): Handle the displaying of
1799 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
1800 .debug_macro.dwo sections.
1801
ca0e11aa
NC
18022021-03-04 Nick Clifton <nickc@redhat.com>
1803
1804 PR 27478
1805 * objdump.c (process_links): New variable.
1806 (usage): Add --process-links.
1807 (long_options): Likewise.
1808 (dump_bfd): Stop processing once the bfd has been loaded unless
1809 this is the main file or process_links has been enabled.
1810 (main): Handle the process-links option.
1811 * readelf.c (process_links): New variable.
1812 (struct filedata): Add is_separate field.
1813 (options): Add --process-links.
1814 (usage): Likewise.
1815 (parse_args): Likewise.
1816 (process_file_header): Include the filename when dumping
1817 information for separate debuginfo files.
1818 (process_program_headers): Likewise.
1819 (process_section_headers): Likewise.
1820 (process_section_groups): Likewise.
1821 (process_relocs): Likewise.
1822 (process_dynamic_section): Likewise.
1823 (process_version_sections): Likewise.
1824 (display_lto_symtab): Likewise.
1825 (process_symbol_table): Likewise.
1826 (process_syminfo): Likewise.
1827 (initialise_dumps_by_name): Likewise.
1828 (process_section_contents): Likewise.
1829 (process_notes_at): Likewise.
1830 (process_notes): Likewise.
1831 (open_file): Add is_separate parameter. Use to initialise the
1832 is_separate field in the filedata structure.
1833 (open_deug): Update call to open_file.
1834 (process_object): Add processing of the contents of separate
1835 debuginfo files, gated by the process_links variable.
1836 (process_archive): Update call to open_file.
1837 (process_file): Initialise the is_separate field in the filedata
1838 structure.
1839 * dwarf.c (load_separate_debug_info_file): Only report the
1840 loading of a separate file if debug links are being dumped.
1841 * objcopy.c (keep_section_symbols): New variable.
1842 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
1843 (strip_options): Add keep-section-symbols.
1844 (copy_options): Likewise.
1845 (copy_usage): Likewise.
1846 (strip_usage): Likewise.
1847 (copy_object): Keep section symbols if requested by command line
1848 option.
1849 (strip_main): Handle --keep-section-symbols.
1850 (copy_main): Likewise.
1851 * doc/binutils.texi: Document the new options.
1852 * NEWS: Mention the new features.
1853 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
1854 Update options passed to objdump. Use diff rather than cmp to
1855 compare the dumped data.
1856 * testsuite/binutils-all/objdump.WK2: Update regexp.
1857 * testsuite/binutils-all/objdump.WK3: Update regexp.
1858 * testsuite/binutils-all/objdump.exp: Use --process-links
1859 instead of --dwarf=follow-links.
1860 * testsuite/binutils-all/readelf.exp (readelf_test): Include
1861 readelf's output in the log when the test fails.
1862 Add the -P option to the -wKis test.
1863 * testsuite/binutils-all/readelf.wKis: Update expected output.
1864
fd5c076a
AM
18652021-03-03 Alan Modra <amodra@gmail.com>
1866
1867 PR 27493
1868 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
1869 * NEWS: Mention feature.
1870
ecd65684
L
18712021-03-01 H.J. Lu <hongjiu.lu@intel.com>
1872
1873 PR binutils/27486
1874 * dwarf.c (load_separate_debug_info): Issue warning only if
1875 do_debug_links is set.
1876 * testsuite/binutils-all/compress.exp: Run objdump and readelf
1877 with missing debug file.
1878
6a1224ec
AM
18792021-03-01 Alan Modra <amodra@gmail.com>
1880
1881 PR 27128
1882 * doc/binutils.texi: Add nm --with-symbol-versions and
1883 --without-symbol-versions documentation.
1884 * nm.c (with_symbol_versions): New variable.
1885 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
1886 (long_options): Make --with-symbol-versions entry twiddle the flag.
1887 Add --without-symbol-versions.
1888 (print_symname): Strip version when !with_symbol_versions. Add
1889 dynamic version info under control of with_symbol_versions.
1890 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
1891
7fe1b138
FS
18922021-02-26 Fangrui Song <maskray@google.com>
1893
1894 PR 27408
1895 * readelf.c (quiet): New option flag.
1896 (enum long_option_values): New enum to hold long option value.
1897 (long_options): Add --quiet.
1898 (usage): Mention --quiet.
1899 (display_rel_file): If quiet is enabled, suppress "no symbols".
1900 (main): Handle the new option.
1901 * NEWS: Mention --quiet.
1902 * docs/binutils.texi: Document --quiet.
1903
0e12f6c8
TV
19042021-02-26 Tom de Vries <tdevries@suse.de>
1905
1906 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
1907
32e4f96c
TV
19082021-02-26 Tom de Vries <tdevries@suse.de>
1909
1910 PR 27390
1911 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
1912 DW_FORM_addrx*.
1913 (read_and_display_attr_value): Likewise.
1914
e38332c2
NC
19152021-02-25 Nick Clifton <nickc@redhat.com>
1916
1917 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
1918 forms.
1919 (read_and_display_attr_value): Handle sup forms.
1920 (display_debug_sup): New function. Displays the contents of a
1921 .debug_sup section.
1922 (load_debug_sup_file): New function. Loads the contents of a file
1923 referenced by a .debug_sup section.
1924 (check_for_and_load_links): Call load_debug_sup_file.
1925 (debug_displays): Add entry for .debug_sup.
1926 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
1927 * readelf.c (process_section_headers): Add support for debug_sup.
1928 * doc/debug.options.texi: Note that the =links option will display
1929 the contents of .debug_sup sections.
1930 * NEWS: Mention the new support.
1931
40b02646
AM
19322021-02-25 Alan Modra <amodra@gmail.com>
1933
1934 PR 27456
1935 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
1936
9d3fcfe0
NC
19372021-02-24 Nick Clifton <nickc@redhat.com>
1938
1939 PR 27285
1940 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
1941 when adding together the section sizes.
1942
c74147bb
NC
19432021-02-24 Nick Clifton <nickc@redhat.com>
1944
1945 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
1946 build notes.
1947 * readelf.c (print_gnu_build_attribute_description): Likewise.
1948
c42c71a1
AM
19492021-02-24 Alan Modra <amodra@gmail.com>
1950 Siddhesh Poyarekar <siddhesh@gotplt.org>
1951
1952 PR 27456
1953 * bucomm.h (smart_rename): Update prototype.
1954 * rename.c (smart_rename): Add fromfd and preserve_dates params.
1955 Pass fromfd and target_stat to simple_copy. Call set_times
1956 when preserve_dates.
1957 (simple_copy): Accept fromfd rather than from filename. Add
1958 target_stat param. Rewind fromfd rather than opening. Open
1959 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
1960 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
1961 closing output temp file, and pass tmpfd to smart_rename.
1962 * arsup.c (temp_fd): Rename from real_fd.
1963 (ar_save): Dup temp_fd and pass to smart_rename.
1964 * objcopy.c (strip_main, copy_main): Likewise, and pass
1965 preserve_dates.
1966
cca8873d
AM
19672021-02-24 Alan Modra <amodra@gmail.com>
1968
1969 PR 27456
1970 * rename.c: Tidy throughout.
1971 (smart_rename): Always copy. Remove windows specific code.
1972
4d496013
AM
19732021-02-20 Alan Modra <amodra@gmail.com>
1974
1975 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
1976 (run_dump_test): Fail if expecting errors from a file like we do
1977 for error strings, if no error is seen.
1978
0be51eb4
AM
19792021-02-19 Alan Modra <amodra@gmail.com>
1980
1981 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
1982
3685de75
SP
19832021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
1984
1985 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
1986 SMART_RENAME.
1987 * arsup.c (ar_save): Likewise.
1988 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
1989 temporary file and adjust call to SMART_RENAME.
1990 (copy_main): Likewise.
1991 * rename.c [!S_ISLNK]: Remove definitions.
1992 (try_preserve_permissions): Remove function.
1993 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
1994 rename system call only if TO does not exist.
1995 * bucomm.h (smart_rename): Adjust declaration.
1996
85684222
NC
19972021-02-18 Nick Clifton <nickc@redhat.com>
1998
1999 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
2000 address that is higher than the end address.
2001
b9b204b3
AM
20022021-02-17 Alan Modra <amodra@gmail.com>
2003
2004 * dwarf.c: Include limits.h.
2005 (CHAR_BIT): Provide backup define.
2006 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
2007 signed overflow checking.
2008 * testsuite/binutils-all/pr26548.s,
2009 * testsuite/binutils-all/pr26548.d,
2010 * testsuite/binutils-all/pr26548e.d: New tests.
2011 * testsuite/binutils-all/readelf.exp: Run them.
2012 (readelf_test): Drop unused "xfails" parameter. Update all uses.
2013
e6ca1878
JB
20142021-02-16 Jan Beulich <jbeulich@suse.com>
2015
2016 * dwarf.c (process_debug_info): Initialize "dwo_id".
2017
208599d9
AM
20182021-02-15 Alan Modra <amodra@gmail.com>
2019
2020 * objdump.c (load_specific_debug_section): Don't call
2021 bfd_cache_section_contents. Rearrange so that
2022 bfd_get_full_section_contents is not called on path where
2023 bfd_simple_get_relocated_section_contents is called.
2024 Don't set section->user_data.
2025 (free_debug_section): Always free section->start. Don't twiddle
2026 section flags.
2027 * readelf.c (load_specific_debug_section): Don't set user_data.
2028 * dwarf.h (struct dwarf_section): Remove use_data field.
2029 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
2030
1781a9d0
AM
20312021-02-15 Alan Modra <amodra@gmail.com>
2032
2033 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
2034 * testsuite/binutils-all/objdump.exp: Likewise.
2035
1944212b
AM
20362021-02-14 Alan Modra <amodra@gmail.com>
2037
2038 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
2039 to the symbol array.
2040 (slurp_dynamic_symtab): Likewise.
2041 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
2042
0d0a0d86
AM
20432021-02-14 Alan Modra <amodra@gmail.com>
2044
2045 * Makefile.in: Regenerate.
2046 * doc/Makefile.in: Regenerate.
2047
adeab0c5
MF
20482021-02-13 Mike Frysinger <vapier@gentoo.org>
2049
2050 * aclocal.m4: Regenerate.
2051
c46b7066
NC
20522021-02-12 Nick Clifton <nickc@redhat.com>
2053
2054 * configure.ac (follow-debug-links): Add option to enable or
2055 disable the following of debug links by default. Set the
2056 default for the option to be 'follow'.
2057 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
2058 (dwarf_select_sections_by_names): Add no-follow-links option.
2059 (dwarf_select_sections_by_letter): Add 'N' option.
2060 * objdump.c (usage): Add conditional text describing the
2061 follow links option.
2062 (slurp_symtab): Ensure that there is a NULL entry at the end
2063 of the symbol table.
2064 (slurp_dynamic_symtab): Likewise.
2065 (dump_bfd): When extending the symbol table, ensure that there
2066 is still a NULL entry at the end.
2067 * readelf.c (usage): Add conditional text describing the
2068 follow links option.
2069 * doc/binutils.texi: Update documentation for objcopy and
2070 readelf.
2071 * doc/debug.options.texi: Update documentation of the
2072 follow-links option.
2073 * config.in: Regenerate.
2074 * configure: Regenerate.
2075 * testsuite/binutils-all/compress.exp: Add the -WN option to
2076 objdump command lines that are not expecting to follow links.
2077 * testsuite/binutils-all/readelf.exp: Add the
2078 --debug-dump=no-follow-links option to tests that are not
2079 expecting to follow debug links.
2080 * NEWS: Mention the new behaviour.
2081
17e04eff
AM
20822021-02-12 Alan Modra <amodra@gmail.com>
2083
2084 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
2085 gas or ld fails to build a testcase rather than "unresolved".
2086 Report "fail" when readelf returns an error status rather than
2087 "unresolved".
2088 * testsuite/binutils-all/ar.exp: Likewise.
2089 * testsuite/binutils-all/compress.exp: Likewise.
2090 * testsuite/binutils-all/readelf.exp: Likewise.
2091
8f054a7a
AM
20922021-02-12 Alan Modra <amodra@gmail.com>
2093
2094 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
2095 "c" with "ccc" labels.
2096
528a4f87
TV
20972021-02-12 Tom de Vries <tdevries@suse.de>
2098
2099 * dwarf.h (debug_info): Fix typo in comment.
2100
95abb394
TV
21012021-02-12 Tom de Vries <tdevries@suse.de>
2102
2103 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
2104 entries.
2105
d60f7998
TV
21062021-02-12 Tom de Vries <tdevries@suse.de>
2107
2108 * dwarf.c (process_debug_info): Print DWO ID.
2109
1cfcf300
AM
21102021-02-11 Alan Modra <amodra@gmail.com>
2111
2112 PR 27290
2113 PR 27293
2114 PR 27295
2115 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
2116 Use bfd_malloc_and_get_section.
2117 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
2118 check namesz. Return NULL if descsz is too small. Ensure
2119 string table is terminated.
2120 (elf32_avr_get_device_info): Formatting. Add note_size param.
2121 Sanity check note.
2122 (elf32_avr_dump_mem_usage): Adjust to suit.
2123
d9d9d8ef
TV
21242021-02-10 Tom de Vries <tdevries@suse.de>
2125
2126 PR binutils/27391
2127 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
2128
52ff20fe
TV
21292021-02-10 Tom de Vries <tdevries@suse.de>
2130
2131 PR binutils/27371
2132 * dwarf.c (display_debug_ranges): Filter range lists according to
2133 section.
2134
5f128a25
TV
21352021-02-09 Tom de Vries <tdevries@suse.de>
2136
2137 PR binutils/27370
2138 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
2139
9b87f84a
TV
21402021-02-09 Tom de Vries <tdevries@suse.de>
2141
2142 PR binutils/27386
2143 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
2144 DW_UT_split_compile.
2145
a57d1773
AM
21462021-02-09 Alan Modra <amodra@gmail.com>
2147
2148 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
2149 symbianelf.
2150
de8d4203
AM
21512021-02-07 Alan Modra <amodra@gmail.com>
2152
2153 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
2154 uninitialised on invalid input.
2155
51a25252
AM
21562021-02-06 Alan Modra <amodra@gmail.com>
2157
2158 PR 27349
2159 * rename.c (smart_rename): Test for existence and type of output
2160 file with lstat.
2161
e37d88e5
NC
21622021-02-05 Nick Clifton <nickc@redhat.com>
2163
2164 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
2165
887854ba
EZ
21662021-02-05 Eli Zaretskii <eliz@gnu.org>
2167
2168 PR 27252
2169 * elfedit.c (check_file):
2170 * bucomm.c (get_file_size): Fix typos in comments.
2171
c180f095
AM
21722021-02-05 Alan Modra <amodra@gmail.com>
2173
2174 PR 27345
2175 * arsup.c (ar_save): Use stat rather than lstat.
2176
95b91a04
AM
21772021-02-03 Alan Modra <amodra@gmail.com>
2178
2179 PR 27270
2180 PR 27284
2181 PR 26945
2182 * ar.c: Don't include libbfd.h.
2183 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
2184 bfd_stat rather than fstat on iostream. Move stat and fd tests
2185 outside of _WIN32 ifdef. Delete skip_stat variable.
2186 * arsup.c (temp_name, real_ofd): New static variables.
2187 (ar_open): Use make_tempname and bfd_fdopenw.
2188 (ar_save): Adjust to suit ar_open changes. Move stat output
2189 of _WIN32 ifdef.
2190 * objcopy.c: Don't include libbfd.h.
2191 (copy_file): Use bfd_stat.
2192
5424d7ed
L
21932021-02-02 H.J. Lu <hongjiu.lu@intel.com>
2194
2195 PR binutils/27281
2196 * readelf.c (process_section_headers): Add 'R' and 'D' to
2197 "Key to Flags:".
2198 * testsuite/binutils-all/retain1a.d: Updated.
2199
72a51a06
NC
22002021-01-30 Nick Clifton <nickc@redhat.com>
2201
2202 * README-how-to-make-a-release: Small updates after the 2.35.2
2203 release.
2204
cc3edc52
EZ
22052021-01-28 Eli Zaretskii <eliz@gnu.org>
2206
2207 PR 4356
2208 * windres.c (quot): Use double quotes to protect strings on
2209 Windows platforms.
2210
a7ad3cb1
EZ
22112021-01-28 Eli Zaretskii <eliz@gnu.org>
2212
2213 PR 27252
2214 * bucomm.c (get_file_size): Add code to handle /dev/null on
2215 Windows systems.
2216 * elfedit.c (check_file): Likewise.
2217
67965ba2
NC
22182021-01-27 Nick Clifton <nickc@redhat.com>
2219
2220 * objcopy.c (copy_main): Remove conditional control of the calls
2221 to free, simplifying the code and making it easier to detect
2222 typos.
2223
e37709f0
FC
22242021-01-26 Frederic Cambus <fred@statdns.com>
2225
2226 * objcopy.c (copy_main): Fix a double free happening when both
2227 --localize-symbols and --globalize-symbols options are invoked
2228 together.
2229
9b351c9b
NC
22302021-01-24 Nick Clifton <nickc@redhat.com>
2231
2232 * README-how-to-make-a-release: Minor updates after the 2.36 release.
2233
ad92f33d
AM
22342021-01-16 Alan Modra <amodra@gmail.com>
2235
2236 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
2237
3624a6c1
AM
22382021-01-15 Alan Modra <amodra@gmail.com>
2239
2240 PR 26539
2241 * readelf.c (uncompress_section_contents): Always call inflateEnd.
2242
c14dee84
AO
22432021-01-14 Alexandre Oliva <oliva@gnu.org>
2244
2245 * MAINTAINERS: Update my email address.
2246
5a10699f
NC
22472021-01-14 Nick Clifton <nickc@redhat.com>
2248
2249 * po/sv.po: Updated Swedish translation.
2250
5347ed60
AM
22512021-01-13 Alan Modra <amodra@gmail.com>
2252
2253 * Makefile.in: Regenerate.
2254 * doc/Makefile.in: Regenerate.
2255
2ce40d1a
ZF
22562021-01-13 Zebediah Figura <z.figura12@gmail.com>
2257
2258 PR 27037
2259 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
2260 and before exit.
2261 (i386_x64_trampoline): Add SEH annotations.
2262 (struct mac): Add how_seh field.
2263 (make_delay_head): If how_set field is true add SEh instructions.
2264
d546b610
L
22652021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2266
2267 PR binutils/26792
2268 * configure.ac: Use GNU_MAKE_JOBSERVER.
2269 * aclocal.m4: Regenerated.
2270 * configure: Likewise.
2271
6d104cac
NC
22722021-01-12 Nick Clifton <nickc@redhat.com>
2273
2274 * po/fr.po: Updated French translation.
2275
83b33c6c
L
22762021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2277
2278 PR ld/27173
2279 * configure: Regenerated.
2280
a8aa72b9
NC
22812021-01-11 Nick Clifton <nickc@redhat.com>
2282
2283 * po/pt.po: Updated Portuguese translation.
2284 * po/sr.po: Updated Serbian translation.
2285 * po/uk.po: Updated Ukranian translation.
2286
a4966cd9
L
22872021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2288
2289 * configure: Regenerated.
2290
573fe3fb
NC
22912021-01-09 Nick Clifton <nickc@redhat.com>
2292
2293 * configure: Regenerate.
2294 * po/binutils.pot: Regenerate.
2295
055bc77a
NC
22962021-01-09 Nick Clifton <nickc@redhat.com>
2297
2298 * 2.36 release branch crated.
573fe3fb
NC
2299 * README-how-to-make-a-release: Add note about updating Makefiles
2300 and libtool files.
2301 * BRANCHES: Add binutils-2.36-branch.
055bc77a 2302
64307045
AM
23032021-01-09 Alan Modra <amodra@gmail.com>
2304
2305 * configure: Regenerate.
2306
f4782128
ST
23072021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2308
2309 * configure: Regenerate.
2310
d1bcae83
L
23112021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2312
2313 PR 27109
2314 * objcopy.c (copy_object): Handle section symbols for
2315 non-relocatable inputs.
2316 * testsuite/binutils-all/readelf.exp (readelf_test): Check
2317 is_elf_unused_section_symbols.
2318 * testsuite/binutils-all/readelf.s-64: Updated.
2319 * testsuite/binutils-all/readelf.ss: Likewise.
2320 * testsuite/binutils-all/readelf.ss-64: Likewise.
2321 * testsuite/binutils-all/readelf.s-64-unused: New file.
2322 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
2323 * testsuite/binutils-all/readelf.ss-unused: Likewise.
2324 * testsuite/lib/binutils-common.exp
2325 (is_elf_unused_section_symbols): New proc.
2326
6987d5a1
RT
23272021-01-06 Reuben Thomas <rrt@sc3d.org>
2328
2329 * binutils/readelf.c: Correct grammar in comment.
2330
f9a6a8f0
AM
23312021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2332
2333 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
2334 * doc/binutils.texi: Correct grammar.
2335 * readelf.c (process_version_sections): Correct spelling of auxiliary
2336 in warning.
2337 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
2338
250d07de
AM
23392021-01-01 Alan Modra <amodra@gmail.com>
2340
2341 Update year range in copyright notice of all files.
2342
c2795844 2343For older changes see ChangeLog-2020
3499769a 2344\f
d87bef3a 2345Copyright (C) 2021-2023 Free Software Foundation, Inc.
3499769a
AM
2346
2347Copying and distribution of this file, with or without modification,
2348are permitted in any medium without royalty provided the copyright
2349notice and this notice are preserved.
2350
2351Local Variables:
2352mode: change-log
2353left-margin: 8
2354fill-column: 74
2355version-control: never
2356End: