]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Fix a snafu in the new tests for reproducible archives that assumed a umask of 22.
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
854f72b3
NC
12023-09-26 Nick Clifton <nickc@redhat.com>
2
3 * testsuite/binutils-all/ar.exp: Remove assumption of the setting
4 of umask when creating test archive files.
5
84102ebc
VA
62023-09-25 Vsevolod Alekseyev <sevaa@sprynet.com>
7
8 PR 30792
9 * dwarf.h (struct debug_info): Remove range_versions field.
10 * dwarf.c (fetch_indexed_offset): New function.
11 (read_and_display_attr_value): Use it for DW_FORM_rnglistx.
12 Remove code to initialise range_versions.
13 (skip_attribute): New function.
14 (read_bases): Read and reccord all range and address bases in a CU.
15 (process_debug_info): Call read_bases.
16 (display_debug_rnglists): Rename to display_debug_rnglists_unit_header
17 and only display the range list header information.
18 (display_debug_ranges): Adjust.
19
b6ac461a
NC
202023-09-05 Nick Clifton <nickc@redhat.com>
21
22 PR 30684
23 * readelf.c (extra_sym_info): New variable.
24 (section_name_valid): Also check for filedata being NULL.
25 (section_name_print): Delete.
26 (section_index_real): New function. Returns true if the given
27 section index references a real section.
28 (print_symbol): Rename to print_sumbol_name.
29 (printable_section_name): Use a rotating array of static buffers
30 for the return string.
31 (printable_section_name_from_index): Merge code from
32 dump_relocations and get_symbol_index_type into here.
33 (long_option_values): Add OPTION_NO_EXTRA_SYM_INFO.
34 (options): Add "extra-sym-info" and "no-extra-sym-info".
35 (usage): Mention new options.
36 (parse_args): Parse new options.
37 (get_symbol_index_type): Delete.
38 (print_dynamic_symbol_size): Rename to print_symbol_size.
39 (print_dynamic_symbol): Rename to print_symbol.
40 (print_symbol_table_heading): New function.
41 (process_symbol_table): Use new function.
42 * doc/binutils.texi: Document the new option.
43 * NEWS: Mention the new feature.
44
589d38af
NC
452023-08-23 Nick Clifton <nickc@redhat.com>
46
d367563d 47 PR 30781
589d38af
NC
48 * dwarf.h (debug_info): Add range_versions field.
49 * dwarf.c (read_and_display_attr_value): When recording a range
50 arribute also ecord the dwarf version number.
51 (is_range_list_for_this_section): New function.
52 (display_debug_ranges): Only show debug ranges whose version is
53 suitable for the secction being displayed.
54
b5c37946 552023-07-30 Jose E. Marchesi <jose.marchesi@oracle.com>
1e18ffc9 56
b5c37946
SJ
57 * readelf.c (get_machine_flags): Recognize and pretty print BPF
58 machine flags.
59
602023-07-24 Johannes Schauer Marin Rodrigues <josch@debian.org>
61
62 * doc/binutils.texi (objcopy): Document change in behaviour of
63 objcopy's --preserve-dates command line option.
64
652023-07-09 Fangrui Song <maskray@google.com>
66
67 PR 30592
68 * NEWS: Mention the new feature for objcopy.
69 * doc/binutils.texi: Mention "large".
70 * objcopy.c (parse_flags): Parse "large".
71 (check_new_section_flags): Error if "large" is used with a
72 non-x86-64 ELF target.
73 * testsuite/binutils-all/x86-64/large-sections.d: New.
74 * testsuite/binutils-all/x86-64/large-sections.s: New.
75 * testsuite/binutils-all/x86-64/large-sections-i386.d: New.
76 * testsuite/binutils-all/x86-64/large-sections-2.d: New.
77 * testsuite/binutils-all/x86-64/large-sections-2-x32.d: New.
5e24da90 78
87485f53
NC
792023-07-03 Nick Clifton <nickc@redhat.com>
80
81 * README-how-to-make-a-release: Change some version numbers.
82 * configure: Regenerate.
83 * po/binutils.pot: Regenerate.
84
d501d384
NC
852023-07-03 Nick Clifton <nickc@redhat.com>
86
87 2.41 Branch Point.
88
3713e829
NC
892023-06-30 Nick Clifton <nickc@redhat.com>
90
91 PR 30598
92 * strings.c (set_string_min): New function.
93 (main): Use it.
94 (print_unicode_stream): Calculate buffer size using a size_t.
95
0d1cd7d9
NC
962023-06-30 Nick Clifton <nickc@redhat.com>
97
98 PR 30595
99 * strings.c (main): Check for an excessively large minimum string
100 length.
101
340640f7
NC
1022023-06-21 Nick Clifton <nickc@redhat.com>
103
104 * testsuite/lib/binutils-common.exp (prune_warnings_extra): Prune
105 warnings about -z execstack creating an executable stack.
106
10d6a2b1
NC
1072023-05-30 Nick Clifton <nickc@redhat.com>
108
109 * od-pe.c (targ_info): New array.
110 (get_target_specific_info): New function
111 (decode_machine_number): Retire. Use get_target_specific_info
112 instead.
113 (is_pe_object_magic): Likewise.
114 (dump_pe_file_header): Display more information.
115 Rework layout to be similar to that from 'objdump -p'.
116 Add code to handle larger than normnal AOUT headers.
117
7b9e7db0
NC
1182023-05-30 Nick Clifton <nickc@redhat.com>
119
120 * od-pe.c (decode_machine_number): Add ARMMAGIC value of 0xa00.
121 (is_pe_object_magic): Likewise.
122
45b8517a
NC
1232023-05-26 Nick Clifton <nickc@redhat.com>
124
125 * od-pe.c: New file: Dumps fields in PE format headers.
126 * configure.ac (od_vectors): Add objdump_private_desc_pe for PE
127 format targets.
128 (od_files): Add od-pe for PE format targets.
129 * configure: Regenerate.
130 * Makefile.am (CFILES): Add od-pe.c
131 (EXTRA_objdump_SOURCE): Likewise.
132 * Makefile.in: Generate.
133 * NEWS: Mention the new feature.
134 * doc/binutils.texi: Document the new support.
135 * objdump.c (wide_output): Change from local to global.
136 * objdump.h (wide_output): Prototype.
137 (objdump_private_desc_pe): Prototype.
138 * testsuite/binutils-all/objdump.exp: Add a test of the new feature.
139
d9cc4b06
EL
1402023-05-09 Enze Li <enze.li@gmx.com>
141
142 * README: Correct a typo.
143
b545d423
NC
1442023-05-02 Nick Clifton <nickc@redhat.com>
145
146 * MAINTAINERS: Remove Dimity Diky as MSP430 maintainer.
147
8e7785b4
NC
1482023-04-20 Nick Clifton <nickc@redhat.com>
149
150 * SECURITY.txt: New file.
151
28ab94f5
NC
1522023-04-19 Nick Clifton <nickc@redhat.com>
153
154 PR 30355
155 * dwarf.c (read_and_display_attr_value): Correctly handle
156 DW_loclistx attributes that index a version 5 .debug_loclists
157 section.
158
c53c6186
NC
1592023-04-17 Nick Clifton <nickc@redhat.com>
160
161 PR 30142
162 * rescoff.c (write_coff_file): Add the SEC_READONLY flag to the
28ab94f5 163 .rsrc section.
c53c6186 164
45f5fe46
NC
1652023-04-11 Nick Clifton <nickc@redhat.com>
166
7bb9e56c
NC
167 PR 30327
168 * dwarf.c (read_and_display_attr_value): Warn if the number of
169 views is greater than the number of locations.
170
9f1c612b
NC
171 PR 30313
172 * dwarf.c (display_debug_lines_decoded): Check for an overlarge
173 number of files or directories.
174
688fe114
NC
175 PR 30312
176 * dwarf.c (prealloc_cu_tu_list): Always allocate at least one
177 entry.
178
45f5fe46
NC
179 PR 30311
180 * readelf.c (uncompress_section_contents): Check for a
181 suspiciously large uncompressed size.
182
8d17c53b
NC
1832023-03-30 Nick Clifton <nickc@redhat.com>
184
185 PR 30284
186 * dwarf.c (read_and_display_attr_value): Detect and ignore
187 negative base values.
188
80251d41
FC
1892023-03-23 Frederic Cambus <fred@statdns.com>
190
191 * readelf.c (get_segment_type): Handle PT_OPENBSD_MUTABLE segment
192 type.
193
97b75c42
NC
1942023-03-14 Nick Clifton <nickc@redhat.com>
195
196 PR 30227
197 * dwarf.c (process_cu_tu_index): Prevent excessive memory
198 allocation when nused is large and ncols is zero.
199
93c80543
TT
2002023-02-09 Tom Tromey <tromey@adacore.com>
201
202 * dwarf-mode.el: Bump version to 1.8.
203 (dwarf-insert-substructure): Tighten regexp.
204 (dwarf-refresh-all): New defun.
205 (dwarf-mode-map): Bind "A" to dwarf-refresh-all.
206 (dwarf-mode): Remove old FIXME.
207
3a8be578
NC
2082023-02-07 Nick Clifton <nickc@redhat.com>
209
210 PR 30080
211 * doc/binutils.texi (nm): Update description of the 'n' symbol
212 type.
213
be527f28
NC
2142023-01-31 Nick Clifton <nickc@redhat.com>
215
216 * po/sv.po: Updated Swedish translation.
217
b960c86c
NC
2182023-01-23 Nick Clifton <nickc@redhat.com>
219
220 * po/sv.po: Updated Swedish translation.
221
94e76498
NC
2222023-01-18 Nick Clifton <nickc@redhat.com>
223
224 PR 29993
225 * objcopy.c (merge_gnu_build_notes): Remember the last non-deleted
226 note in order to speed up the scan for matching notes.
227
69373ba1
NC
2282023-01-16 Nick Clifton <nickc@redhat.com>
229
230 * po/sv.po: Updated Swedish translation.
231
4004cf83
NC
2322023-01-09 Nick Clifton <nickc@redhat.com>
233
234 * po/bg.po: Updated Bulgarian translation.
235 * po/ro.po: Updated Romainian translation.
236
c362d597
NC
2372023-01-05 Nick Clifton <nickc@redhat.com>
238
239 * MAINTAINERS: Remove Stephen Casner as the PDP11 maintainer.
240
11982f9f
NC
2412023-01-03 Nick Clifton <nickc@redhat.com>
242
243 * po/fr.po: Updated French translation.
244 * po/uk.po: Updated Ukrainian translation.
245
a8f175d9
LM
2462023-01-03 Luis Machado <luis.machado@arm.com>
247
248 * readelf.c (get_note_type): Add support for NT_ARM_SSVE and
249 NT_ARM_ZA note types.
250
a72b0718
NC
2512022-12-31 Nick Clifton <nickc@redhat.com>
252
253 * 2.40 branch created.
254
826eed80
NC
2552022-12-31 Nick Clifton <nickc@redhat.com>
256
257 * po/ro.po: Updated Romanian translation.
258
75393a2d
NC
2592022-12-21 Nick Clifton <nickc@redhat.com>
260
261 PR 29924
262 * objdump.c (load_specific_debug_section): Check for excessively
263 large sections.
264
0d120726
TT
2652022-12-19 Tom Tromey <tromey@adacore.com>
266
267 * dwarf-mode.el (dwarf-do-refresh): Avoid compiler warning.
268
42f39fde
NC
2692022-12-19 Nick Clifton <nickc@redhat.com>
270
271 PR 29914
272 * dwarf.c (fetch_indexed_value): Fail if the section is not big
273 enough to contain a header size field.
274 (display_debug_addr): Fail if the computed address size is too big
275 or too small.
276
fa501b69
NC
2772022-12-16 Nick Clifton <nickc@redhat.com>
278
279 PR 29908
280 * dwarf.c (display_debug_addr): Check for corrupt header lengths.
281
6ef35c04
NC
2822022-12-01 Nick Clifton <nickc@redhat.com>
283
284 PR 25202
285 * objcopy.c (copy_object): Set VerilogDataEndianness to the
286 endianness of the input file.
287 (copy_main): Verifiy the value set by the --verilog-data-width
288 option.
289 * testsuite/binutils-all/objcopy.exp: Add tests of the new behaviour.
290 * testsuite/binutils-all/verilog-I4.hex: New file.
291
1a7e622b
NC
2922022-11-21 Nick Clifton <nickc@redhat.com>
293
294 PR 29764
295 * doc/binutils.texi (objdump): Note that the -m option supports
296 the <architecture>:<machine> syntax.
297
1da0b075
NC
2982022-11-04 Nick Clifton <nickc@redhat.com>
299
300 * README-how-to-make-a-release: Add instructions for uploading the
301 gprofng documentation.
302
18bf5643
NC
3032022-10-31 Nick Clifton <nickc@redhat.com>
304
305 PR 29457
306 * configure.ac: Add --enable-colored-disassembly.
307 * objdump.c: Add --disassembler-color=terminal.
308 * doc/binutils.texi (objdump): Document the new option.
309 * NEWS: Mention new feature.
310 * config.in: Regenerate in.
311 * configure: Regenerate.
312
f2ba47d6
NC
3132022-10-19 Nick Clifton <nickc@redhat.com>
314
315 * MAINTAINERS: Add section on patches, copyright and DCO.
316
7fd882d4
NC
3172022-10-12 Nick Clifton <nickc@redhat.com>
318
319 PR 29665
f2ba47d6 320 * objcopy.c (copy_object): Use the input filename when
7fd882d4
NC
321 reporting that a .gnu_debuglink section already exists.
322
907b52f4
NC
3232022-10-03 Nick Clifton <nickc@redhat.com>
324
325 * readelf.c (get_32bit_section_headers): Return false if the
326 e_shoff field is zero.
327 (get_64bit_section_headers): Likewise.
328
be5f79aa
NC
3292022-09-28 Nick Clifton <nickc@redhat.com>
330
331 PR 29628
332 * size.c (usage): Add -f.
333 * doc/binutils.texi (size): Add -f.
334
1588d98b
NC
3352022-09-20 Nick Clifton <nickc@redhat.com>
336
337 * objcopy.c (copy_object): Do not issue a warning message when
338 encountering empty .gnu.build.attribute sections.
339
e959744e
RP
3402022-09-14 Rupesh Potharla <Rupesh.Potharla@amd.com>
341
342 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend
343 regexps to allow for output genreated by the Clang compiler.
344
e9a241e8
AM
3452022-09-12 Aaron Merey <amerey@redhat.com>
346
347 * objcopy.c (might_need_separate_debug_info): Add with_source_code to
348 the options that cause this function to return true.
349 (main.c): Add with_source_code to the options that enable
350 dump_any_debugging.
351
efc1521e
NC
3522022-09-09 Nick Clifton <nickc@redhat.com>
353
354 PR 29532
355 * objcopy.c (setup_section): Leave group sections intact when
356 creating separate debuginfo files.
357
2caffd34
NC
3582022-09-08 Nick Clifton <nickc@redhat.com>
359
360 PR 29523
361 * dwarf.c (display_debug_lines_decoded): Correctly handle DWARF-5
362 directory and filename tables.
363
d647c797
AM
3642022-09-02 Aaron Merey <amerey@redhat.com>
365
366 PR 29075
367 * objdump.c (find_separate_debug): New function. Finds the bfd
368 corresponding to the separate debuginfod of a given bfd.
369 (find_alt_debug): New function. Finds the bfd corresponding to the
370 .gnu_debugaltlink of a given bfd.
371 (slurp_file): Add bfd parameter. If a source file cannot be found
372 attempt to download it from debuginfod, if enabled.
373 (try_print_file_open): Add bfd parameter and pass it to slurp_file.
374 (show_line): If debuginfod is enabled, call
375 bfd_find_nearest_line_with_alt instead of bfd_find_nearest_line.
376
f4492fb6
NC
3772022-09-01 Nick Clifton <nickc@redhat.com>
378
379 PR 29534
380 * dllwrap.c: Replace uses of choose_temp_base() with
381 make_temp_file().
382 * dlltool.c: Likewise.
383 * resrc.c: Likewise.
384
25ee24d9
NC
3852022-08-23 Nick Clifton <nickc@redhat.com>
386
387 PR 29489
388 * dlltool.c (deterministic): New variable.
389 (gen_lib_file): If deterministic is true set the
390 BFD_DETERMINISTIC_OUTPUT flag.
391 (usage): Mention --deterministic-libraries and
392 --non-deterministic-libraries.
393 (long_options): Add new options.
394 (main): Parse new options.
395 * doc/binutils.texi: Document the new options.
396 * NEWS: Mention the new feature.
397
521f7268
NC
3982022-08-22 Nick Clifton <nickc@redhat.com>
399
400 * readelf.c (check_magic_number): New function. Checks the magic
401 bytes at the start of a file. If they are not the ELF format
402 magic values, then attempts to generate a helpful error message.
403 (process_file_header): Call check_magic_number.
404
a88c79b7
NC
4052022-08-09 Nick Clifton <nickc@redhat.com>
406
407 PR 29457
408 * objdump.c (disassembler_color): Change type to an enum.
409 (disassembler_extended_color): Remove.
410 (usage): Update.
411 (objdump_color_for_assembler_style): Update.
412 (main): Update initialisation of disassembler_color. If not
413 initialised via a command line option, set based upon terminal
414 output.
415 * doc/binutils.texi: Update description of disassmbler-color
416 option.
417 * testsuite/binutils-all/arc/objdump.exp: Add
418 --disassembler-color=off option when disassembling.
419 * testsuite/binutils-all/arm/objdump.exp: Likewise.
420
e838f9c2
NC
4212022-08-08 Nick Clifton <nickc@redhat.com>
422
423 * README-how-to-make-a-release: Add a link to the NEWS files in
424 the release announcement email.
425
0bd09323
NC
4262022-07-08 Nick Clifton <nickc@redhat.com>
427
428 * 2.39 branch created.
429
1dd02423
NC
4302022-07-01 Nick Clifton <nickc@redhat.com>
431
432 * dwarf.c (display_debug_rnglists): Add newline at end of listing.
433
aa40d66b
NC
4342022-06-30 Nick Clifton <nickc@redhat.com>
435
436 * dwarf.c (dwarf_select_sections_by_name): If the entry's value is
437 zero then clear the corresponding variable.
438 (dwarf_select_sections_by_letters): Likewise.
439 * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
440 debuginfod tests to fail.
441
dbcbf67c
NC
4422022-06-28 Nick Clifton <nickc@redhat.com>
443
444 PR 29267
445 * dwarf.c (display_debug_rnglists): New function, broken out of..
446 (display_debug_ranges): ... here.
447 (read_and_display_attr_value): Correct calculation of index
448 displayed for DW_FORM_loclistx and DW_FORM_rnglistx.
449 * testsuite/binutils-all/x86-64/pr26808.dump: Update expected
450 output.
451
e3e5ae04
NC
4522022-06-27 Nick Clifton <nickc@redhat.com>
453
454 PR 29289
455 * dwarf.c (display_debug_names): Replace assert with a warning
456 message.
457
e98e7d9a
NC
4582022-06-27 Nick Clifton <nickc@redhat.com>
459
460 PR 29290
461 * dwarf.c (read_and_display_attr_value): Check that debug_info_p
462 is set before dereferencing it.
463
a3f1431a
NC
4642022-06-27 Nick Clifton <nickc@redhat.com>
465
466 * dwarf.c (fetch_indexed_string): Do not use length of first table
467 in string section as the length of every table in the section.
e98e7d9a 468
a3f1431a
NC
469 * testsuite/binutils-all/pr26112.r: Update expected output.
470
f18acc9c
KB
4712022-06-22 Kumar N, Bhuvanendra <Kavitha.Natarajan@amd.com>
472
473 * dwarf.c (fetch_indexed_string): Added new parameter
474 str_offsets_base to calculate the string offset.
475 (read_and_display_attr_value): Read DW_AT_str_offsets_base
476 attribute.
477 (process_debug_info): While allocating memory and initializing
478 debug_information, do it for do_debug_info also, if its true.
479 (load_separate_debug_files): Load .debug_str_offsets if exists.
480 * dwarf.h (struct debug_info): Add str_offsets_base field.
481
4491a7c1
MN
4822022-06-22 Marcus Nilsson <brainbomb@gmail.com>
483
484 * readelf.c: (slurp_relr_relocs) Use malloc instead of xmalloc
485 when allocating space for relocations.
486
f18acc9c 4872022-06-21 Kumar N, Bhuvanendra <Kavitha.Natarajan@amd.com>
ec41dd75
NC
488
489 * dwarf.h (struct debug_info): Add rnglists_base field.
490 * dwarf.c (read_and_display_attr_value): Read attribute DW_AT_rnglists_base.
491 (display_debug_rnglists_list): While handling DW_RLE_base_addressx,
492 DW_RLE_startx_endx, DW_RLE_startx_length items, pass the proper parameter
493 value to fetch_indexed_addr(), i.e. fetch the proper entry in .debug_addr section.
494 (display_debug_ranges): Add rnglists_base to the .debug_rnglists base address.
495 (load_separate_debug_files): Load .debug_addr section, if exists.
496
94585d6d
NC
4972022-05-20 Nick Clifton <nickc@redhat.com>
498
499 * dwarf.c (dwarf_select_sections_by_names): Return zero if no
500 sections were selected.
501 (dwarf_select_sections_by_letters): Likewise.
502 * dwarf.h: (dwarf_select_sections_by_names): Update prototype.
503 (dwarf_select_sections_by_letters): Update prototype.
504 * objdump.c (might_need_separate_debug_info): New function.
505 (dump_bfd): Call new function before attempting to load separate
506 debug info files.
507 (main): Do not enable dwarf section dumping for -WK or -WN.
508 * readelf.c (parse_args): Do not enable dwarf section dumping for
509 -wK or -wN.
510 (might_need_separate_debug_info): New function.
511 (process_object): Call new function before attempting to load
512 separate debug info files.
513 * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
514 debuginfod tests to pass.
515 * testsuite/binutils-all/objdump.Wk: Add extra regexps.
516 * testsuite/binutils-all/readelf.k: Add extra regexps.
517
95086e1e
NC
5182022-05-19 Nick Clifton <nickc@redhat.com>
519
520 * dlltool.c (run): Initialise errmsg_fmt.
521 * dllwrap.c (run): Likewise.
522 * resrc.c (run_cmd): Likewise.
523 * mclex.c (mc_add_keyword): Initialise usz.
524 * srconv.c (wd_hd): Initialise hd.spare2.
525 * windmc.c (mc_add_node_lang): Initialise s.
526 (mc_generate_bin_item): Initialise cvt_txt.
527 (main): Initialise u.
528
2c3cc81e
NC
5292022-05-18 Nick Clifton <nickc@redhat.com>
530
531 PR 29135
532 * nm.c (non_weak): New variable.
533 (filter_symbols): When non-weak is true, ignore weak symbols.
534 (long_options): Add --no-weak.
535 (usage): Mention --no-weak.
536 (main): Handle -W/--no-weak.
537 * doc/binutils.texi: Document new feature.
538 * NEWS: Mention the new feature.
539 * testsuite/binutils-all/nm.exp: Add test of new feature.
540 * testsuite/binutils-all/no-weak.s: New test source file.
541
0d38576a
NC
5422022-04-25 Nick Clifton <nickc@redhat.com>
543
544 PR 29072
545 * testsuite/lib/binutils-common.exp (prune_warnings_extra): Filter
546 out notes about the executable stacjk behaviour beign deprecated.
547
278c98c8
NC
5482022-04-12 Nick Clifton <nickc@redhat.com>
549
550 PR 28992
551 * objcopy.c (is_strip_section_1): Do not delete debuglink sections
552 when stripping debug information.
553
19c26da6
NC
5542022-04-06 Nick Clifton <nickc@redhat.com>
555
556 PR 28981
557 * dwarf.c (fetch_indexed_value): Rename to fecth_indexed_addr and
558 return the address, rather than a string.
559 (fetch_indexed_value): New function - returns a value indexed by a
560 DW_FORM_loclistx or DW_FORM_rnglistx form.
561 (read_and_display_attr_value): Add support for DW_FORM_loclistx
562 and DW_FORM_rnglistx.
563 (process_debug_info): Load the loclists and rnglists sections.
564 (display_loclists_list): Add support for DW_LLE_base_addressx,
565 DW_LLE_startx_endx, DW_LLE_startx_length and
566 DW_LLE_default_location.
567 (display_offset_entry_loclists): New function. Displays a
568 .debug_loclists section that contains offset entry tables.
569 (display_debug_loc): Call the new function.
570 (display_debug_rnglists_list): Add support for
571 DW_RLE_base_addressx, DW_RLE_startx_endx and DW_RLE_startx_length.
572 (display_debug_ranges): Display the contents of the section's
573 header.
574 * dwarf.h (struct debug_info): Add loclists_base field.
575 * testsuite/binutils-all/dw5.W: Update expected output.
576 * testsuite/binutils-all/x86-64/pr26808.dump: Likewise.
577
a171378a
JB
5782022-04-01 John Baldwin <jhb@FreeBSD.org>
579
580 * readelf.c (get_freebsd_elfcore_note_type): Handle
581 NT_FREEBSD_X86_SEGBASES.
582
add0eb9d
NC
5832022-03-31 Nick Clifton <nickc@redhat.com>
584
585 * arlex.l: Accept the plus character as part of a filename.
586
260ecdce
FS
5872022-03-16 Fangrui Song <maskray@google.com>
588
589 PR binutils/28926
590 * objcopy.c (filter_symbols): Apply weaken to STB_GNU_UNIQUE symbols
591 * NEWS: Mention feature.
592 * testsuite/binutils-all/objcopy.exp (objcopy_test_symbol_manipulation): New test.
593 * testsuite/binutils-all/weaken-gnu-unique.s: New.
594
d65c0ddd
MS
5952022-03-16 Martin Storsjö <martin@martin.st>
596
597 PR 28885
598 * dlltool.c (main): use imp_name rather than dll_name when
599 generating a temporary file name.
600
0c857ef4
SM
6012022-03-16 Simon Marchi <simon.marchi@efficios.com>
602
603 * readelf.c (dump_relocations): Handle EM_AMDGPU.
604
2952f10c
SM
6052022-03-16 Simon Marchi <simon.marchi@efficios.com>
606
607 * Makefile.am (readelf_CFLAGS): New.
608 (readelf_LDADD): Add MSGPACK_LIBS.
609 * Makefile.in: Re-generate.
610 * config.in: Re-generate.
611 * configure: Re-generate.
612 * configure.ac: Add --with-msgpack flag and check for msgpack
613 using pkg-config.
614 * readelf.c: Include msgpack.h if HAVE_MSGPACK.
615 (print_note_contents_hex): New.
616 (print_indents): New.
617 (dump_msgpack_obj): New.
618 (dump_msgpack): New.
619 (print_amdgpu_note): New.
620 (process_note): Handle NT_AMDGPU_METADATA note contents.
621 Use print_note_contents_hex.
622
28cdbb18
SM
6232022-03-16 Simon Marchi <simon.marchi@efficios.com>
624
625 * readelf.c (get_amdgpu_elf_note_type): New.
626 (process_note): Handle "AMDGPU" notes.
627
c077c580
SM
6282022-03-16 Simon Marchi <simon.marchi@efficios.com>
629
630 * readelf.c: Include elf/amdgcn.h.
631 (decode_AMDGPU_machine_flags): New.
632 (get_machine_flags): Handle flags for EM_AMDGPU machine type.
633
37870be8
SM
6342022-03-16 Simon Marchi <simon.marchi@efficios.com>
635
636 * readelf.c (get_osabi_name): Handle EM_AMDGPU OS ABIs.
637
f4f95df3
NC
6382022-03-16 Nick Clifton <nickc@redhat.com>
639
640 * po/sr.po: Updated Serbian translation.
641
cda8dc94
TT
6422022-03-15 Tom Tromey <tromey@adacore.com>
643
644 * dwarf-mode.el: Now 1.7.
645 (dwarf--sentinel): Switch to the process buffer.
646
bb368aad
VM
6472022-03-11 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
648
649 * MAINTAINERS: Add gprofng maintainer.
650 * README-how-to-make-a-release: Add gprofng.
651
bed566bb
NC
6522022-03-10 Nick Clifton <nickc@redhat.com>
653
654 * dwarf.c (use_debuginfod): New variable. Set to 1.
655 (load_separate_debug_info): Only call
656 debuginfod_fetch_separate_debug_info is use_debuginfod is true.
657 (dwarf_select_sections_by_names): Add do-not-use-debuginfod and
658 use-debuginfod options.
659 (dwarf_select_sections_by_letters): Add D and E options.
660 * dwarf.h (use_debuginfod): New extern.
661 * objdump.c (usage): Mention the new options.
662 * readelf.c (usage): Likewise.
663 * doc/binutils.texi: Document the new options.
664 * doc/debug-options.texi: Describe the new options.
665 * NEWS: Mention the new feature.
666 * testsuite/binutils-all/debuginfod.exp: Add tests of the new
667 options.
668
d17e797f
MR
6692021-03-06 Maciej W. Rozycki <macro@orcam.me.uk>
670
671 * testsuite/binutils-all/mips/mips1-branch-alias.d: New test.
672 * testsuite/binutils-all/mips/mips1-branch-noalias.d: New test.
673 * testsuite/binutils-all/mips/mips2-branch-alias.d: New test.
674 * testsuite/binutils-all/mips/mips2-branch-noalias.d: New test.
675 * testsuite/binutils-all/mips/mips32r6-branch-alias.d: New test.
676 * testsuite/binutils-all/mips/mips32r6-branch-noalias.d: New
677 test.
678 * testsuite/binutils-all/mips/micromips-branch-alias.d: New
679 test.
680 * testsuite/binutils-all/mips/micromips-branch-noalias.d: New
681 test.
682 * testsuite/binutils-all/mips/mips-branch-alias.s: New test
683 source.
684 * testsuite/binutils-all/mips/micromips-branch-alias.s: New test
685 source.
686 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
687
84a9f195
SM
6882022-03-04 Simon Marchi <simon.marchi@polymtl.ca>
689
690 * readelf.c (process_dynamic_section): Fix indentation.
691
0f38fd87
NC
6922022-02-09 Nick Clifton <nickc@redhat.com>
693
694 * README-how-to-make-a-release: Update after the 2.38 release.
695
5fa0c223
NC
6962022-01-27 Nick Clifton <nickc@redhat.com>
697
698 * po/sv.po: Updated Swedish translation.
699
5fe73d46
NC
7002022-01-24 Nick Clifton <nickc@redhat.com>
701
702 * po/bg.po: Updated Bulgarian translation.
703 * po/fr.po: Updated French translation.
704 * po/ro.po: Updated Romanian translation.
705 * po/uk.po: Updated Ukranian translation.
706
58de646b
MS
7072022-01-22 Martin Storsjö <martin@martin.st>
708
709 * dlltool.c (main): Allow inferring tmp_prefix from the dll name
710 from a def file.
711
f908e960
NC
7122022-01-22 Nick Clifton <nickc@redhat.com>
713
714 * configure: Regenerate.
715 * po/binutils.pot: Regenerate.
716
a74e1cb3
NC
7172022-01-22 Nick Clifton <nickc@redhat.com>
718
719 * 2.38 release branch created.
720
6c037fdb
NC
7212022-01-17 Nick Clifton <nickc@redhat.com>
722
723 * Makefile.in: Regenerate.
724
d1b69c50
FS
7252022-01-11 Fangrui Song <maskray@google.com>
726
727 PR binutils/28759
728 * ar.c (long_options): Add --thin.
729 (usage) Add --thin. Deprecate -T without diagnostics.
730 * doc/binutils.texi: Add doc.
731 * NEWS: Mention --thin.
732 * binutils/testsuite/binutils-all/ar.exp: Add tests.
733
c4a8df19
MS
7342022-01-11 Martin Storsjö <martin@martin.st>
735
736 * dlltool.c (main): If a prefix has not been provided, attempt to
737 use a deterministic one based upon the dll name.
738
0e9f1c04 7392022-01-07 Pavel Mayorov <pmayorov@cloudlinux.com>
af4004d1
NC
740
741 PR 28718
0e9f1c04
PM
742 * dwarf.c: Revert previous delta.
743 (debug_get_real_type): Reject indirect types that point to
744 indirect types.
745 (debug_get_type_name, debug_get_type_size, debug_write_type):
746 Likewise.
747
7482022-01-06 Nick Clifton <nickc@redhat.com>
749
af4004d1
NC
750 * debug.c (debug_write_type): Allow for malicious recursion via
751 indirect debug types.
752
e2c0cef9
NC
7532022-01-04 Nick Clifton <nickc@redhat.com>
754
755 PR 28716
756 * dwarf.c (load_build_id_debug_file): Remove spurious printf.
757
61ab1364
NC
7582021-12-16 Nick Clifton <nickc@redhat.com>
759
760 PR 28697
761 * dwarf.c (load_build_id_debug_file): New function.
762 (try_build_id_prefix): New function.
763 (check_for_and_load_links): Call load_build_id_debug_file.
764 (debug_displays): Add entry for .note.gnu.build-id.
765 * dwarf.h (enum dwarf_section_display_enum): Add
766 note_gnu_build_id.
767 * testsuite/binutils-all/debuginfod.exp (test_fetch_debuglink):
768 Fix regexp for loads via debuglink section.
769
066624ff
CX
7702021-12-03 Chenghua Xu <xuchenghua@loongson.cn>
771
772 * MAINTAINERS: Add myself and Zhensong Liu
773 as the LoongArch maintainer.
774
117e35f5
NC
7752021-12-02 Nick Clifton <nickc@redhat.com>
776
777 PR 28645
778 * dwarf.c (process_cu_tu_index): Add test for overruning section
779 whilst processing slots.
780
6e2acee1
RM
7812021-11-30 Roland McGrath <mcgrathr@google.com>
782
783 * doc/local.mk: Give each man page target its missing dependency on
784 doc/$(am__dirstamp).
785
9745b5a7
NC
7862021-11-30 Nick Clifton <nickc@redhat.com>
787
788 * dwarf.c (find_debug_info_for_offset): Use dwarf_vma type for
789 offsets, sizes and ranges.
790 (display_loc_list): Likewise. Also use print_dwarf_vma to print
791 the offset.
792 (display_loclists_list): Likewise.
793 (display_loc_list_dwo): Likewise.
794 (display_debug_str): Likewise.
795 (display_debug_aranges): Likewise.
796 (display_debug_ranges_list): Likewise.
797 (display_debug_rnglists_list): Likewise.
798 (display_debug_ranges): Likewise.
799
8fee99c3
NC
8002021-11-29 Nick Clifton <nickc@redhat.com>
801
802 PR 28632
803 * strings.c (usage): Update desciption of -n option.
804 * doc/binutils.texi: Likewise.
805
d8ed269e
NC
8062021-11-24 Nick Clifton <nickc@redhat.com>
807
808 PR 28564
809 * sysdump.c (getCHARS): Check for an out of bounds read.
810
a7fd1186
FS
8112021-11-16 Fangrui Song <maskray@google.com>
812
813 * readelf.c (enum relocation_type): New.
814 (slurp_relr_relocs): New.
815 (dump_relocations): Change is_rela to rel_type.
816 Dump RELR.
817 (dynamic_relocations): Add DT_RELR.
818 (process_relocs): Check SHT_RELR and DT_RELR.
819 (process_dynamic_section): Store into dynamic_info for
820 DT_RELR/DT_RELRENT/DT_RELRSZ.
821
b3aa80b4
NC
8222021-11-09 Nick Clifton <nickc@redhat.com>
823
824 * nm.c: Add --unicode option to control how unicode characters are
825 handled.
826 * objdump.c: Likewise.
827 * readelf.c: Likewise.
828 * strings.c: Likewise.
829 * binutils.texi: Document the new feature.
830 * NEWS: Document the new feature.
831 * testsuite/binutils-all/unicode.exp: New file.
832 * testsuite/binutils-all/nm.hex.unicode
833 * testsuite/binutils-all/strings.escape.unicode
834 * testsuite/binutils-all/objdump.highlight.unicode
835 * testsuite/binutils-all/readelf.invalid.unicode
836
dac784d0
TT
8372021-11-03 Tom Tromey <tromey@adacore.com>
838
839 * dwarf.c (display_debug_loc): Use section name in warnings.
840
10909ea8
NA
8412021-10-25 Nick Alcock <nick.alcock@oracle.com>
842
843 * objdump.c (usage): --ctf now has an optional argument.
844 (main): Adjust accordingly.
845 (dump_ctf): Default it.
846 * doc/ctf.options.texi: Adjust.
847
80b56fad
NA
8482021-10-25 Nick Alcock <nick.alcock@oracle.com>
849
850 * objdump.c (usage): --ctf-parent now takes a name, not a section.
851 (dump_ctf): Don't open a separate section; use the parent_name in
852 ctf_dict_open instead. Use ctf_archive_next, not ctf_archive_iter,
853 so we can pass down a member count.
854 (dump_ctf_archive_member): Add the member count; don't return
855 anything. Import parents into children no matter what the
856 parent's name, while still avoiding displaying the header for the
857 common parent name of ".ctf".
858 * readelf.c (usage): Adjust similarly.
859 (dump_section_as_ctf): Likewise.
860 (dump_ctf_archive_member): Likewise. Never stop iterating over
861 archive members, even if ctf_dump of one member fails.
862 * doc/ctf.options.texi: Adjust.
863
cf487499
NC
8642021-10-19 Nick Clifton <nickc@redhat.com>
865
866 * nm.c (filter_symbols): Test for a NULL name before checking to
867 see if the symbol is __gnu_lto_slim.
868 * objcopy.c (filter_symbols): Likewise.
869
7325ba79
NC
8702021-09-30 Nick Clifton <nickc@redhat.com>
871
872 * objcopy.c (filter_symbols): Fail if attempting to dredefine
873 symbols in an LTO object file.
874
b9004024
NA
8752021-09-27 Nick Alcock <nick.alcock@oracle.com>
876
877 * configure: Regenerate.
878
6a7f5766
AB
8792021-09-20 Andrew Burgess <andrew.burgess@embecosm.com>
880
881 * testsuite/binutils-all/riscv/riscv.exp: New file.
882 * testsuite/binutils-all/riscv/unknown.d: New file.
883 * testsuite/binutils-all/riscv/unknown.s: New file.
884
64dbf74d
LM
8852021-09-07 Luis Machado <luis.machado@linaro.org>
886
887 Revert: [AArch64] MTE corefile support
888
889 2021-05-21 Luis Machado <luis.machado@linaro.org>
890
891 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
892
4f212c55
NC
8932021-08-11 Nick Clifton <nickc@redhat.com>
894
895 * po/pt.po: Updated Portuguese translation.
896
3ee0cd9e
NC
8972021-08-10 Nick Clifton <nickc@redhat.com>
898
899 * po/sr.po: Updated Serbian translation.
900
c58830e4
NC
9012021-07-16 Nick Clifton <nickc@redhat.com>
902
903 * po/sv.po: Updated Swedish translation.
904
51d29b8c
CC
9052021-07-14 Clément Chigot <clement.chigot@atos.net>
906
907 * dwarf.h (struct dwarf_section): Add XCOFF name.
908 * dwarf.c (struct dwarf_section_display): Update.
909 * objdump.c (load_debug_section): Add XCOFF name handler.
910 (dump_dwarf_section): Likewise.
911
0200b0fe
NC
9122021-07-12 Nick Clifton <nickc@redhat.com>
913
914 * po/fr.po: Updated French translation.
915
9039747f
AM
9162021-07-10 Alan Modra <amodra@gmail.com>
917
918 PR 28069
919 * dwarf.c (display_discr_list): Remove assertions. Delete "end"
920 parameter, use initial "data" pointer as the end. Formatting.
921 Don't count down bytes as they are read.
922 (read_and_display_attr_value): Adjust display_discr_list call.
923 (read_and_print_leb128): Don't pass __FILE__ and __LINE__ to
924 report_leb_status.
925 * dwarf.h (report_leb_status): Don't report file and line
926 numbers. Delete file and lnum parameters,
927 (READ_ULEB, READ_SLEB): Adjust.
928
b737d304
RO
9292021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
930
931 * configure.ac: Check for strnlen declaration.
932 * configure, config.in: Regenerate.
933
40e1d303
AM
9342021-07-05 Alan Modra <amodra@gmail.com>
935
936 PR 28047
937 * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter.
938 Check DW_FORM_ref1 etc. arg against cu_end rather than end of
939 section. Adjust all callers.
940
346d80ef
NC
9412021-07-03 Nick Clifton <nickc@redhat.com>
942
943 * configure: Regenerate.
944 * po/opcodes.pot: Regenerate.
945 * README-how-to-make-a-release: Update.
946
51419248
NC
9472021-07-03 Nick Clifton <nickc@redhat.com>
948
949 * 2.37 release branch created.
950
4ff0bb2d
AM
9512021-07-02 Alan Modra <amodra@gmail.com>
952
953 PR 28048
954 * dwarf.c (get_type_signedness): Don't run off end of buffer
955 printing DW_FORM_string attribute.
956
1b8d1f5f
NC
9572021-07-01 Nick Clifton <nickc@redhat.com>
958
959 PR 28029
960 * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk.
961
75a2da57
AH
9622021-07-01 Andrei Homescu <ah@immunant.com>
963
964 * readelf.c (process_archive): Reset file position to the
965 beginning when calling process_object for thin archive members.
966 * testsuite/binutils-all/readelf.exp: Add test.
967 * testsuite/binutils-all/readelf.h.thin: New file.
968
c63fc368
NC
9692021-06-30 Tom Tromey <tom@tromey.com>
970
971 * dwarf.c (read_and_display_attr_value): Handle
972 DW_FORM_implicit_const.
973
280c57ff
RH
9742021-06-30 Richard Henderson <richard.henderson@linaro.org>
975
976 * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf
977 and DW_CFA_def_cfa_offset_sf have a signed offset.
978
539b54f0
AM
9792021-06-19 Alan Modra <amodra@gmail.com>
980
981 * dwarf.c (display_debug_lines_decoded): Use memcpy rather than
982 strncpy when trimming file name length to MAX_FILENAME_LENGTH.
983 Don't make an unnecessary copy when length is good.
984
5a767724
L
9852021-06-18 H.J. Lu <hongjiu.lu@intel.com>
986
987 * readelf.c (print_gnu_property_note): Handle
988 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
989 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
990
c8795e1f
NC
9912021-06-15 Nick Clifton <nickc@redhat.com>
992
993 * readelf.c (get_note_type): Add support for NT_GO_BUILDID.
994
93df3340
AM
9952021-06-15 Alan Modra <amodra@gmail.com>
996
997 * readelf.c (locate_dynamic_section, is_pie): New functions.
998 (get_file_type): Replace e_type parameter with filedata. Call
999 is_pie for ET_DYN. Update all callers.
1000 (process_program_headers): Use local variables dynamic_addr and
1001 dynamic_size, updating filedata on exit from function. Set
1002 dynamic_size of 1 to indicate no dynamic section or segment.
1003 Update tests of dynamic_size throughout.
1004 * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output.
1005
0121f438
EB
10062021-06-14 Eric Botcazou <ebotcazou@adacore.com>
1007
1008 * dwarf.c (struct abbrev_attr): Change type of implicit_const.
1009 (add_abbrev_attr): Likewise.
1010 (process_abbrev_set): Likewise.
1011 (display_debug_abbrev): Adjust to above change.
1012
8c60e272
AM
10132021-06-12 Alan Modra <amodra@gmail.com>
1014
1015 * readelf.c (process_file_header): Don't clear section_headers.
1016
e331b18d
AM
10172021-06-12 Alan Modra <amodra@gmail.com>
1018
1019 * readelf.c (get_section_headers): Don't test e_shoff here, leave
1020 that to get_32bit_section_headers or get_64bit_section_headers.
1021 (process_object): Throw away section header read to print file
1022 header extension.
1023
066f8fbe
AM
10242021-06-11 Alan Modra <amodra@gmail.com>
1025
1026 * readelf.c (struct filedata): Move archive_file_offset and
1027 archive_file_size earlier.
1028 (free_filedata): Clear using memset.
1029
4de91c10
AM
10302021-06-11 Alan Modra <amodra@gmail.com>
1031
1032 * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
1033 (get_elf_symbols): ..this new function throughout.
1034 (get_32bit_section_headers): Don't free section_headers.
1035 (get_64bit_section_headers): Likewise.
1036 (get_section_headers): New function, use throughout in place of
1037 32bit and 64bit variants.
1038 (get_dynamic_section): Similarly.
1039 (process_section_headers): Don't free filedata memory here.
1040 (get_file_header): Don't get section headers here..
1041 (process_object): ..Read them here instead. Don't exit without
1042 freeing filedata memory.
1043
cc96519f
NC
10442021-06-09 Nick Clifton <nickc@redhat.com>
1045
1046 * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list.
1047
6bee34a1
JB
10482021-06-07 Jan Beulich <jbeulich@suse.com>
1049
1050 * dwarf.c (display_debug_aranges): Add u suffix to constant.
1051
63e47e10
AM
10522021-05-29 Alan Modra <amodra@gmail.com>
1053
1054 * objdump (usage): Add missing \n.
1055
d6249f5f
AM
10562021-05-29 Alan Modra <amodra@gmail.com>
1057
1058 * readelf.c (parse_args): Call dwarf_select_sections_all on
1059 --debug-dump without optarg.
1060 (usage): Associate -w and --debug-dump options closely.
1061 Split up help message. Remove extraneous blank lines around
1062 ctf help.
1063 * objdump.c (usage): Similarly.
1064
9204ccd4
MR
10652021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1066
1067 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0
1068 operand disassembly.
1069 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
1070
9623cc5d
MR
10712021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
1072
1073 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000'
1074 machine for disassembly.
1075 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise.
1076 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
1077 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise.
1078
1273b2f8
L
10792021-05-28 H.J. Lu <hongjiu.lu@intel.com>
1080
1081 PR ld/27905
1082 * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9.
1083
6643bb00
AM
10842021-05-27 Alan Modra <amodra@gmail.com>
1085
1086 * readelf (usage): Order -w letters to match --debug-dump= and
1087 move common '=' for --debug-dump out of brackets.
1088
50c95a73
L
10892021-05-26 H.J. Lu <hongjiu.lu@intel.com>
1090
1091 PR ld/27905
1092 * readelf.c (decode_x86_feature_2): Support
1093 GNU_PROPERTY_X86_FEATURE_2_CODE16.
1094
01a8c731
CX
10952021-05-23 Tiezhu Yang <yangtiezhu@loongson.cn>
1096
1097 * readelf.c (get_machine_name): Change Loongson Loongarch to
1098 LoongArch.
1099
3b2bef8b
LM
11002021-05-21 Luis Machado <luis.machado@linaro.org>
1101
1102 * readelf.c (get_note_type): Add missing NT_ARM_* entries.
1103
894982bf
LM
11042021-05-21 Luis Machado <luis.machado@linaro.org>
1105
1106 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
1107
c485e475
ES
11082021-05-19 Eli Schwartz <eschwartz@archlinux.org>
1109
1110 * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set.
1111
1b3892be
AM
11122021-05-19 Alan Modra <amodra@gmail.com>
1113
1114 PR 27884
1115 * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return
1116 param with map_return, and return map for DW_FORM_ref_addr.
1117 (get_type_signedness): Adjust calls to get_type_abbrev_from_form.
1118 Pass returned cu map start and end to recursive call.
1119 (read_and_display_attr_value): Similarly.
1120
9d9e2a34
AM
11212021-05-19 Alan Modra <amodra@gmail.com>
1122
1123 PR 27879
1124 * sysdump.c (getBARRAY): Sanity check size against max.
1125 (getINT): Avoid UB shift left.
1126
b9c0d703
AM
11272021-05-15 Alan Modra <amodra@gmail.com>
1128
1129 * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow.
1130 Delete dead code.
1131
bb19bf12
AM
11322021-05-15 Alan Modra <amodra@gmail.com>
1133
1134 * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in
1135 length calculations.
1136
d7870f63
AM
11372021-05-15 Alan Modra <amodra@gmail.com>
1138
1139 * dwarf.c (display_debug_names): Complain when header length is
1140 too small. Avoid pointer UB. Sanity check augmentation string,
1141 CU table, TU table and foreign TU table sizes.
1142
5897a389
AM
11432021-05-15 Alan Modra <amodra@gmail.com>
1144
1145 * dwarf.c (display_debug_frames): Delete initial_length_size.
1146 Avoid pointer UB. Constrain data reads to length given in header.
1147 Sanity check cie header length. Only skip up to next FDE on
1148 finding augmentation data too long.
1149
c93c4a85
AM
11502021-05-15 Alan Modra <amodra@gmail.com>
1151
1152 * dwarf.c (read_cie): Add more sanity checks to ensure data
1153 pointer is not bumped past end.
1154
b4951546
AM
11552021-05-15 Alan Modra <amodra@gmail.com>
1156
1157 * dwarf.c (display_debug_ranges): Delete initial_length_size.
1158 Correct fallback size calculated on finding a reloc. Constrain
1159 data reads to length given in header. Avoid pointer UB.
1160
669f463d
AM
11612021-05-15 Alan Modra <amodra@gmail.com>
1162
1163 * dwarf.c (display_debug_rnglists_list): Avoid pointer UB.
1164
5250d2f0
AM
11652021-05-15 Alan Modra <amodra@gmail.com>
1166
1167 * dwarf.c (display_debug_str_offsets): Constrain reads to length
1168 given in header.
1169
6ca07350
AM
11702021-05-15 Alan Modra <amodra@gmail.com>
1171
1172 * dwarf.c (display_debug_aranges): Delete initial_length_size.
1173 Use end_ranges to constrain data reads to header length. Avoid
1174 pointer UB.
1175
78480097
AM
11762021-05-15 Alan Modra <amodra@gmail.com>
1177
1178 * dwarf.c (display_loc_list): Avoid pointer UB. Correct check
1179 before reading uleb length. Warn on excess length.
1180
b0d461ec
AM
11812021-05-15 Alan Modra <amodra@gmail.com>
1182
1183 * dwarf.c (display_debug_macro): Print strings that might not
1184 be zero terminated with %*s. Don't bump curr if unterminated.
1185
46d1214d
AM
11862021-05-15 Alan Modra <amodra@gmail.com>
1187
1188 * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
1189 Simplify length sanity check, and check for too small lengths.
1190 Constrain data reads to header length. Avoid pointer UB.
1191
c03df922
AM
11922021-05-15 Alan Modra <amodra@gmail.com>
1193
1194 * dwarf.c (display_debug_macinfo): Print strings that might not
1195 be zero terminated with %*s. Don't bump curr if unterminated.
1196
35b2c89e
AM
11972021-05-15 Alan Modra <amodra@gmail.com>
1198
1199 * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size.
1200 Simplify length check. Constrain reads to length given by header.
1201
56051e28
AM
12022021-05-15 Alan Modra <amodra@gmail.com>
1203
1204 * dwarf.c (display_debug_lines_decoded): Don't use strnlen when
1205 we have already checked for NUL termination.
1206
37195e23
AM
12072021-05-15 Alan Modra <amodra@gmail.com>
1208
1209 * dwarf.c (read_debug_line_header): Delete initial_length_size.
1210 Avoid pointer UB. Keep within length specified by header.
1211 Delete dead code.
1212
edba4e4a
AM
12132021-05-15 Alan Modra <amodra@gmail.com>
1214
1215 * dwarf.c (process_debug_info): Always do the first CU length
1216 scan for sanity checks. Remove initial_length_size var and
1217 instead calculate end_cu. Use end_cu to limit data reads.
1218 Delete now dead code checking length.
1219
ebb17864
AM
12202021-05-15 Alan Modra <amodra@gmail.com>
1221
1222 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
1223
fc5e0925
AM
12242021-05-15 Alan Modra <amodra@gmail.com>
1225
1226 * bucomm.h (_mul_overflow): Define.
1227 * dwarf.c (get_encoded_value): Avoid pointer UB.
1228
b96a1bcb
AM
12292021-05-13 Alan Modra <amodra@gmail.com>
1230
1231 PR 27861
1232 * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
1233 header length.
1234
d21f875d
AM
12352021-05-13 Alan Modra <amodra@gmail.com>
1236
1237 PR 27860
1238 * dwarf.c (display_debug_frames): Sanity check cie_off before
1239 attempting to read cie.
1240
a7077ce7
AM
12412021-05-12 Alan Modra <amodra@gmail.com>
1242
1243 * dwarf.c (process_extended_line_op): Don't bump data pointer past
1244 end when strnlen doesn't find string terminator.
1245 (decode_location_expression): Remove dead code.
1246 (skip_attr_bytes): Remove const from end param. Ensure data
1247 pointer doesn't pass end.
1248 (get_type_signedness): Remove const from end param.
1249 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
1250 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
1251 (display_debug_pubnames_worker): Likewise.
1252 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
1253 than blindly incrementing data pointer.
1254 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
1255 compare pointers, compare lengths.
1256
6d1ad6f7
AM
12572021-05-12 Alan Modra <amodra@gmail.com>
1258
1259 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
1260 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
1261 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
1262 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
1263 SAFE_BYTE_GET followed by increment.
1264 (process_debug_info): Likewise, and test bytes remaining before
1265 incrementing section_begin rather than using pointer comparison.
1266 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
1267 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
1268
af2ddf69
AM
12692021-05-12 Alan Modra <amodra@gmail.com>
1270
1271 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
1272 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
1273 SAFE_BYTE_GET_AND_INC.
1274 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
1275 (process_debug_info, process_cu_tu_index): Likewise.
1276 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
1277 (byte_get, byte_get_little_endian, byte_get_big_endian),
1278 (byte_get_signed): Make size param unsigned. Remove code dealing
1279 with 4-byte elf_vma.
1280 (byte_get_64): Delete.
1281 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
1282 (byte_get, byte_get_little_endian, byte_get_big_endian),
1283 (byte_get_signed): Update prototypes.
1284 (byte_get_64): Delete.
1285
0d872fca
AM
12862021-05-12 Alan Modra <amodra@gmail.com>
1287
1288 PR 27836
1289 * dwarf.c (display_debug_frames): Don't compare pointers derived
1290 from user input. Test offset against bounds instead.
1291
55b26492
AM
12922021-05-12 Alan Modra <amodra@gmail.com>
1293
1294 PR 27853
1295 * dwarf.c (display_formatted_table): Test for data >= end rather
1296 than data == end.
1297 (process_extended_line_op): Likewise.
1298 (display_debug_lines_raw): Likewise.
1299 (display_debug_lines_decoded): Likewise.
1300
5ab39075
AM
13012021-05-12 Alan Modra <amodra@gmail.com>
1302
1303 PR 27849
1304 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
1305 Sanity check section size for version and padding too. Correct
1306 index sanity check. Handle multiple tables in .debug_str_offsets.
1307
d30182b5
HPN
13082021-05-11 Hans-Peter Nilsson <hp@axis.com>
1309
1310 * dwarf.c (process_abbrev_set): Properly parenthesize before
1311 casting to unsigned long.
1312
f2f9554b
AM
13132021-05-11 Alan Modra <amodra@gmail.com>
1314
1315 PR 27845
1316 * dwarf.c (process_abbrev_set): Replace start and end parameters
1317 with section, abbrev_base, abbrev_size, abbrev_offset. Update
1318 all callers. Sanity check parameters correctly and emit warnings
1319 here rather than..
1320 (process_debug_info): ..here.
1321
749c7002
TW
13222021-05-10 Thomas Wolff <towo@towo.net>
1323
1324 PR 4356
1325 PR 26865
1326 PR 27594
1327 * windres.c (quot): Revert previous delta. Do not use double
1328 quotes when spaces are detected in options.
1329 * doc/binutils.texi (windres): Remove suggestion that the
1330 --preprocessor option can take arguments.
1331
2d4b4986
AM
13322021-05-10 Alan Modra <amodra@gmail.com>
1333
1334 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
1335 END rather than adding amount to PTR.
1336 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
1337
b05a0fc7
AM
13382021-05-09 Alan Modra <amodra@gmail.com>
1339
1340 * objcopy.c (eq_string): Delete.
1341 (create_symbol_htab): Use htab_eq_string.
1342
354c317e
MF
13432021-05-08 Mike Frysinger <vapier@gentoo.org>
1344
1345 * README-how-to-make-a-release: Update html & pdf entries.
1346
cf758b39
MF
13472021-05-08 Mike Frysinger <vapier@gentoo.org>
1348
1349 * doc/Makefile.am (html-local, binutils/index.html): New targets.
1350 * doc/Makefile.in: Regenerate.
1351
2faf902d
MF
13522021-05-08 Mike Frysinger <vapier@gentoo.org>
1353
1354 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
1355 * doc/Makefile.in: Regenerate.
1356
3ecc00ec
NC
13572021-05-07 Nick Clifton <nickc@redhat.com>
1358
1359 * readelf.c (no_processor_specific_unwind): New function.
1360 (process_unwind): Use no_processor_specific_unwind for X86
1361 targets.
1362
4896932e
MF
13632021-05-07 Michael Forney <mforney@mforney.org>
1364
1365 * dwarf.c: Don't omit second operand of '?' operator.
1366
bfbfa6e7
NC
13672021-04-30 Nick Clifton <nickc@redhat.com>
1368
1369 PR 27796
1370 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
1371 .debug_sup section.
1372
5edb8e3f
NC
13732021-04-29 Nick Clifton <nickc@redhat.com>
1374
1375 PR 27594
1376 * doc/binutils.texi (windres): Correct the description of the
1377 default value of the --preprocessor argument.
1378
3d64c987
NC
13792021-04-27 Nick Clifton <nickc@redhat.com>
1380
1381 PR 27779
1382 * dwarf.c (parse_gnu_debuglink): Reject empty names.
1383 (parse_gnu_debugaltlink): Likewise.
1384
b11b2969
CC
13852021-04-22 Clément Chigot <clement.chigot@atos.net>
1386
1387 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
1388 aux structures.
1389
047c3dbf
NL
13902021-04-21 Nick Lott <nick.lott@gmail.com>
1391
1392 PR 27672
1393 * readelf.c (sym_base): New variable.
1394 (enum print_mode): Add more modes.
1395 (print_vma): Add suport for new modes.
1396 (options): Add sym-base.
1397 (usage): Add sym-base.
1398 (parse_args): Add support for --sym-base.
1399 (print_dynamic_symbol_size): New function.
1400 (print_dynamic_symbol): Use new function.
1401 * doc/binutils.texi: Document the new feature.
1402 * NEWS: Mention the new feature.
1403
23356397
NC
14042021-04-21 Nick Clifton <nickc@redhat.com>
1405
1406 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
1407 Adjust expected output to allow for named section symbols.
1408 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
1409 Likewise.
1410 * testsuite/binutils-all/readelf.s-64: Likewise.
1411 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1412 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
1413 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1414
14152021-04-21 Luo Longjun <luolongjun@huawei.com>
1416
1417 * readelf.c (print_dynamic_symbol): Print the section name for
1418 section symbols without a name of their own.
1419
aee4e85e
AK
14202021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
1421
1422 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
1423 add him to Past Maintainers.
1424 Update my email address.
1425
229597a1
NC
14262021-04-19 Nick Clifton <nickc@redhat.com>
1427
1428 PR 21702
1429 * arsup.c (ar_addmod): Enable plugin support, if available.
1430
4dee4f3e
NC
14312021-04-19 Nick Clifton <nickc@redhat.com>
1432
1433 * rename.c: (get_stat_atime_ns): Add prototype.
1434 (get_stat_mtime_ns): Add prototype.
1435
ad7c4616
AM
14362021-04-16 Alan Modra <amodra@gmail.com>
1437
1438 PR 27725
1439 * rename.c (get_stat_atime, get_stat_mtime): Make static.
1440 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
1441
4c79248a
PS
14422021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
1443
1444 PR 27725
1445 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
1446 (get_stat_mtime_ns): Likewise.
1447
985e0264
AM
14482021-04-15 Alan Modra <amodra@gmail.com>
1449
1450 PR 27725
1451 * configure.ac: Check for sys/time.h and utimensat. Use standard
1452 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
1453 members of struct stat.
1454 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
1455 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
1456 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
1457 (get_stat_atime, get_stat_mtime): Likewise.
1458 (set_times): Choose first available of utimensat, utimes, utime.
1459 Use above inline functions to set timespec and timeval values.
1460 * configure: Regenerate.
1461 * config.in: Regenerate.
1462 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
1463 file timestamp when --preserve-dates is used.
1464
d0ecdcdd
AM
14652021-04-15 Alan Modra <amodra@gmail.com>
1466
1467 PR 27456
1468 * rename.c (smart_rename): When TO and FROM are equal, just set
1469 file timestamp.
1470 * objcopy.c (strip_main, copy_main): Always call smart_rename.
1471
9917b559
L
14722021-04-14 H.J. Lu <hongjiu.lu@intel.com>
1473
1474 PR binutils/27708
1475 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
1476 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
1477 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
1478 test.
1479
6be872a4
MH
14802021-04-14 Mark Harmstone <mark@harmstone.com>
1481
1482 PR 27686
1483 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
1484 end of the structure.
1485
5f47741b
FC
14862021-04-14 Frederic Cambus <fred@statdns.com>
1487
1488 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
1489 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
1490
13acb58d
AM
14912021-04-14 Alan Modra <amodra@gmail.com>
1492
1493 PR 27716
1494 * objdump.c (show_line): Don't limit paths to PATH_MAX.
1495 * readelf.c (struct filedata): Change program_interpreter from
1496 a char array to a char pointer.
1497 (process_program_headers): Sanity check PT_INTERP p_filesz.
1498 Malloc program_interpreter using p_filesz and read directly from
1499 file.
1500 (process_dynamic_section): Check program_interpreter is non-NULL.
1501 (free_filedata): New function, split out from..
1502 (process_object): ..here.
1503 (close_debug_file): Call free_filedata.
1504 * sysdep.h: Don't include sys/param.h.
1505 (PATH_MAX): Don't define.
1506 * configure.ac: Don't check for sys/param.h.
1507 * configure: Regenerate.
1508
0fa29e2d
FC
15092021-04-13 Frederic Cambus <fred@statdns.com>
1510
1511 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
1512 check for NT_NETBSD_PAX.
1513
43e05cd4
AM
15142021-04-12 Alan Modra <amodra@gmail.com>
1515
1516 * configure.ac (--enable-checking): Add support.
1517 * config.in: Regenerate.
1518 * configure: Regenerate.
1519
c3f72de4
AM
15202021-04-09 Alan Modra <amodra@gmail.com>
1521
1522 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
1523 dynrelcount.
1524 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
1525 (disassemble_section, disassemble_data): Likewise.
1526
a2e66773
AM
15272021-04-06 Alan Modra <amodra@gmail.com>
1528
1529 * objdump.c (objdump_symbol_at_address): Return asymbol*.
1530
4db29512
AM
15312021-04-06 Alan Modra <amodra@gmail.com>
1532
1533 * NEWS: Mention C99 requirement.
1534 * README: Likewise. Modernise examples and "Reporting bugs".
1535
87b9f255
AM
15362021-04-05 Alan Modra <amodra@gmail.com>
1537
1538 * configure.ac: Assume long long is available. Don't test for
1539 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
1540 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
1541 strcoll, setlocale, setmode or location of time_t. Don't check
1542 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
1543 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
1544 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
1545 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
1546 locale.h, string.h and stdlib.h unconditionally. Remove various
1547 fallback declarations. Assume long long is available.
1548 * addr2line.c: Don't test HAVE_SETLOCALE.
1549 * ar.c: Likewise.
1550 * coffdump.c: Likewise.
1551 * dlltool.c: Likewise.
1552 * dllwrap.c: Likewise.
1553 * elfedit.c: Likewise.
1554 * nm.c: Likewise.
1555 * objcopy.c: Likewise.
1556 * objdump.c: Likewise.
1557 * readelf.c: Likewise.
1558 * size.c: Likewise.
1559 * srconv.c: Likewise.
1560 * strings.c: Likewise.
1561 * sysdump.c: Likewise.
1562 * windmc.c: Likewise.
1563 * windres.c: Likewise.
1564 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
1565 * dwarf.c: Include limits.h unconditionally. Assume long long
1566 is available.
1567 * nm.c: Don't test HAVE_STRCOLL.
1568 * readelf.c: Don't test HAVE_WCHAR_H.
1569 * strings.c: Assume long long is available.
1570 * syslex.l: Include string.h unconditionally.
1571 * aclocal.m4: Regenerate.
1572 * config.in: Regenerate.
1573 * configure: Regenerate.
1574 * Makefile.in: Regenerate.
1575 * doc/Makefile.in: Regenerate.
1576
e9b095a5
ML
15772021-04-01 Martin Liska <mliska@suse.cz>
1578
1579 * elfcomm.h (strneq): Remove strneq and use startswith.
1580 * readelf.c (ia64_process_unwind): Likewise.
1581 (process_note): Likewise.
1582
3f3328b8
ML
15832021-04-01 Martin Liska <mliska@suse.cz>
1584
1585 * dllwrap.c: Use startswith function.
1586 * objcopy.c (is_dwo_section): Likewise.
1587 (handle_remove_section_option): Likewise.
1588 (copy_main): Likewise.
1589 * objdump.c (is_significant_symbol_name): Likewise.
1590
24d127aa
ML
15912021-04-01 Martin Liska <mliska@suse.cz>
1592
1593 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
1594 startswith.
1595 (display_debug_lines_decoded): Likewise.
1596 (display_debug_links): Likewise.
1597 * elfcomm.c (setup_archive): Likewise.
1598 * elfcomm.h (const_strneq): Likewise.
1599 * readelf.c (process_section_headers): Likewise.
1600 (slurp_ia64_unwind_table): Likewise.
1601 (slurp_hppa_unwind_table): Likewise.
1602 (decode_arm_unwind): Likewise.
1603 (display_debug_section): Likewise.
1604 (process_note): Likewise.
1605
015dc7e1
AM
16062021-03-31 Alan Modra <amodra@gmail.com>
1607
1608 * sysdep.h (POISON_BFD_BOOLEAN): Define.
1609 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
1610 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
1611 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
1612 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
1613 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
1614 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
1615 * windmc.c, * windmc.h, * windres.c, * winduni.c,
1616 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
1617 and TRUE with true throughout.
1618
3dfb1b6d
AM
16192021-03-31 Alan Modra <amodra@gmail.com>
1620
1621 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
1622 * dwarf.c: Likewise.
1623
57ae980e
AM
16242021-03-31 Alan Modra <amodra@gmail.com>
1625
1626 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
1627
63b4cc53
AM
16282021-03-29 Alan Modra <amodra@gmail.com>
1629
1630 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
1631 * dwarf.c (read_and_display_attr_value): Likewise.
1632 (display_debug_str_offsets): Likewise.
1633 * objdump.c (dump_bfd): Likewise.
1634 * readelf.c (dump_section_as_strings): Likewise.
1635 (dump_section_as_bytes): Likewise.
1636
1be305ff
AM
16372021-03-29 Alan Modra <amodra@gmail.com>
1638
1639 * objdump.c (process_links): Use type int.
1640 * readelf.c (request_dump): Don't increment do_dump, set it.
1641 * windint.h (target_is_bigendian): Use type bfd_boolean.
1642 * windmc.c (target_is_bigendian): Likewise.
1643 * windres.c (target_is_bigendian): Likewise.
1644
08dedd66
ML
16452021-03-22 Martin Liska <mliska@suse.cz>
1646
1be305ff
AM
1647 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
1648 with startswith.
08dedd66
ML
1649 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
1650 * objcopy.c (is_mergeable_note_section): Likewise.
1651 * objdump.c (dump_dwarf_section): Likewise.
1652 * prdbg.c (pr_method_type): Likewise.
1653 (pr_class_baseclass): Likewise.
1654 (tg_class_baseclass): Likewise.
1655 * readelf.c (process_lto_symbol_tables): Likewise.
1656 * stabs.c (ULLHIGH): Likewise.
1657 (parse_stab_argtypes): Likewise.
1658 (stab_demangle_function_name): Likewise.
1659
7b9f9859
L
16602021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1661
1662 * readelf.c (get_machine_name): Add EM_INTELGT.
1663
835f2fae
NC
16642021-03-18 Nick Clifton <nickc@redhat.com>
1665
1666 PR 27478
1667 * readelf.c (dump_section_as_strings): Mention separate filename.
1668 (dump_section_as_bytes): Likewise.
1669 (dump_section_as_ctf): Likewise.
1670 (initialise_dumkps_byname): Only issue a warning for missing
1671 sections if processing the main file.
1672 (process_section_contents): Only issue a warning for unsumped
1673 section numbers in the main file.
1674 (initialise_dump_sects): New function. Contains code extracted
1675 from ...
1676 (process_object): ... here. Also call initialise_dump_sects for
1677 separate files.
1678
44266f36
NC
16792021-03-16 Nick Clifton <nickc@redhat.com>
1680
1681 PR 27534
1682 * readelf.c (display_debug_section): Also retain .debug_addr
1683 sections.
1684
d6bfbc39
NC
16852021-03-16 Nick Clifton <nickc@redhat.com>
1686
1687 PR 27533
1688 * readelf.c (process_section_contents): Only dump debug
1689 information for separate files unless process_links is enabled.
1690 (process_object): Always call process_section_contents for
1691 separate info files.
1692
1996d0f1
NC
16932021-03-15 Nick Clifton <nickc@redhat.com>
1694
1695 PR 27487
1696 * nm.c (FORMAT_JUST_SYMBOLS): Define.
1697 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
1698 (long_options): Add just-symbols.
1699 (set_output_format): Add support for just-symbols.
1700 (get_print_format): Likewise.
1701 (do_not_print_object_filename): New function.
1702 (do_not_print_archive_filename): New function.
1703 (do_not_print_archive_member): New function.
1704 (do_not_print_symbol_filename): New function.
1705 (just_print_symbol_name): New function.
1706 (main): Handle --just-symbols.
1707 * NEWS: Mention the new feature.
1708 * doc/binutils.texi: Document the new feature.
1709
2c1bef53
CC
17102021-03-12 Clément Chigot <clement.chigot@atos.net>
1711
1712 * od-xcoff.c: Replace RTB by TRL entry.
1713
db6092f3
AB
17142021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1715 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
1718
b63a5e38
AB
17192021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1720 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
1723
d296b736
NC
17242021-03-05 Nick Clifton <nickc@redhat.com>
1725
1726 PR 27387
1727 * dwarf.c (display_debug_macro): Handle the displaying of
1728 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
1729 .debug_macro.dwo sections.
1730
ca0e11aa
NC
17312021-03-04 Nick Clifton <nickc@redhat.com>
1732
1733 PR 27478
1734 * objdump.c (process_links): New variable.
1735 (usage): Add --process-links.
1736 (long_options): Likewise.
1737 (dump_bfd): Stop processing once the bfd has been loaded unless
1738 this is the main file or process_links has been enabled.
1739 (main): Handle the process-links option.
1740 * readelf.c (process_links): New variable.
1741 (struct filedata): Add is_separate field.
1742 (options): Add --process-links.
1743 (usage): Likewise.
1744 (parse_args): Likewise.
1745 (process_file_header): Include the filename when dumping
1746 information for separate debuginfo files.
1747 (process_program_headers): Likewise.
1748 (process_section_headers): Likewise.
1749 (process_section_groups): Likewise.
1750 (process_relocs): Likewise.
1751 (process_dynamic_section): Likewise.
1752 (process_version_sections): Likewise.
1753 (display_lto_symtab): Likewise.
1754 (process_symbol_table): Likewise.
1755 (process_syminfo): Likewise.
1756 (initialise_dumps_by_name): Likewise.
1757 (process_section_contents): Likewise.
1758 (process_notes_at): Likewise.
1759 (process_notes): Likewise.
1760 (open_file): Add is_separate parameter. Use to initialise the
1761 is_separate field in the filedata structure.
1762 (open_deug): Update call to open_file.
1763 (process_object): Add processing of the contents of separate
1764 debuginfo files, gated by the process_links variable.
1765 (process_archive): Update call to open_file.
1766 (process_file): Initialise the is_separate field in the filedata
1767 structure.
1768 * dwarf.c (load_separate_debug_info_file): Only report the
1769 loading of a separate file if debug links are being dumped.
1770 * objcopy.c (keep_section_symbols): New variable.
1771 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
1772 (strip_options): Add keep-section-symbols.
1773 (copy_options): Likewise.
1774 (copy_usage): Likewise.
1775 (strip_usage): Likewise.
1776 (copy_object): Keep section symbols if requested by command line
1777 option.
1778 (strip_main): Handle --keep-section-symbols.
1779 (copy_main): Likewise.
1780 * doc/binutils.texi: Document the new options.
1781 * NEWS: Mention the new features.
1782 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
1783 Update options passed to objdump. Use diff rather than cmp to
1784 compare the dumped data.
1785 * testsuite/binutils-all/objdump.WK2: Update regexp.
1786 * testsuite/binutils-all/objdump.WK3: Update regexp.
1787 * testsuite/binutils-all/objdump.exp: Use --process-links
1788 instead of --dwarf=follow-links.
1789 * testsuite/binutils-all/readelf.exp (readelf_test): Include
1790 readelf's output in the log when the test fails.
1791 Add the -P option to the -wKis test.
1792 * testsuite/binutils-all/readelf.wKis: Update expected output.
1793
fd5c076a
AM
17942021-03-03 Alan Modra <amodra@gmail.com>
1795
1796 PR 27493
1797 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
1798 * NEWS: Mention feature.
1799
ecd65684
L
18002021-03-01 H.J. Lu <hongjiu.lu@intel.com>
1801
1802 PR binutils/27486
1803 * dwarf.c (load_separate_debug_info): Issue warning only if
1804 do_debug_links is set.
1805 * testsuite/binutils-all/compress.exp: Run objdump and readelf
1806 with missing debug file.
1807
6a1224ec
AM
18082021-03-01 Alan Modra <amodra@gmail.com>
1809
1810 PR 27128
1811 * doc/binutils.texi: Add nm --with-symbol-versions and
1812 --without-symbol-versions documentation.
1813 * nm.c (with_symbol_versions): New variable.
1814 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
1815 (long_options): Make --with-symbol-versions entry twiddle the flag.
1816 Add --without-symbol-versions.
1817 (print_symname): Strip version when !with_symbol_versions. Add
1818 dynamic version info under control of with_symbol_versions.
1819 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
1820
7fe1b138
FS
18212021-02-26 Fangrui Song <maskray@google.com>
1822
1823 PR 27408
1824 * readelf.c (quiet): New option flag.
1825 (enum long_option_values): New enum to hold long option value.
1826 (long_options): Add --quiet.
1827 (usage): Mention --quiet.
1828 (display_rel_file): If quiet is enabled, suppress "no symbols".
1829 (main): Handle the new option.
1830 * NEWS: Mention --quiet.
1831 * docs/binutils.texi: Document --quiet.
1832
0e12f6c8
TV
18332021-02-26 Tom de Vries <tdevries@suse.de>
1834
1835 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
1836
32e4f96c
TV
18372021-02-26 Tom de Vries <tdevries@suse.de>
1838
1839 PR 27390
1840 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
1841 DW_FORM_addrx*.
1842 (read_and_display_attr_value): Likewise.
1843
e38332c2
NC
18442021-02-25 Nick Clifton <nickc@redhat.com>
1845
1846 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
1847 forms.
1848 (read_and_display_attr_value): Handle sup forms.
1849 (display_debug_sup): New function. Displays the contents of a
1850 .debug_sup section.
1851 (load_debug_sup_file): New function. Loads the contents of a file
1852 referenced by a .debug_sup section.
1853 (check_for_and_load_links): Call load_debug_sup_file.
1854 (debug_displays): Add entry for .debug_sup.
1855 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
1856 * readelf.c (process_section_headers): Add support for debug_sup.
1857 * doc/debug.options.texi: Note that the =links option will display
1858 the contents of .debug_sup sections.
1859 * NEWS: Mention the new support.
1860
40b02646
AM
18612021-02-25 Alan Modra <amodra@gmail.com>
1862
1863 PR 27456
1864 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
1865
9d3fcfe0
NC
18662021-02-24 Nick Clifton <nickc@redhat.com>
1867
1868 PR 27285
1869 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
1870 when adding together the section sizes.
1871
c74147bb
NC
18722021-02-24 Nick Clifton <nickc@redhat.com>
1873
1874 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
1875 build notes.
1876 * readelf.c (print_gnu_build_attribute_description): Likewise.
1877
c42c71a1
AM
18782021-02-24 Alan Modra <amodra@gmail.com>
1879 Siddhesh Poyarekar <siddhesh@gotplt.org>
1880
1881 PR 27456
1882 * bucomm.h (smart_rename): Update prototype.
1883 * rename.c (smart_rename): Add fromfd and preserve_dates params.
1884 Pass fromfd and target_stat to simple_copy. Call set_times
1885 when preserve_dates.
1886 (simple_copy): Accept fromfd rather than from filename. Add
1887 target_stat param. Rewind fromfd rather than opening. Open
1888 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
1889 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
1890 closing output temp file, and pass tmpfd to smart_rename.
1891 * arsup.c (temp_fd): Rename from real_fd.
1892 (ar_save): Dup temp_fd and pass to smart_rename.
1893 * objcopy.c (strip_main, copy_main): Likewise, and pass
1894 preserve_dates.
1895
cca8873d
AM
18962021-02-24 Alan Modra <amodra@gmail.com>
1897
1898 PR 27456
1899 * rename.c: Tidy throughout.
1900 (smart_rename): Always copy. Remove windows specific code.
1901
4d496013
AM
19022021-02-20 Alan Modra <amodra@gmail.com>
1903
1904 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
1905 (run_dump_test): Fail if expecting errors from a file like we do
1906 for error strings, if no error is seen.
1907
0be51eb4
AM
19082021-02-19 Alan Modra <amodra@gmail.com>
1909
1910 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
1911
3685de75
SP
19122021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
1913
1914 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
1915 SMART_RENAME.
1916 * arsup.c (ar_save): Likewise.
1917 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
1918 temporary file and adjust call to SMART_RENAME.
1919 (copy_main): Likewise.
1920 * rename.c [!S_ISLNK]: Remove definitions.
1921 (try_preserve_permissions): Remove function.
1922 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
1923 rename system call only if TO does not exist.
1924 * bucomm.h (smart_rename): Adjust declaration.
1925
85684222
NC
19262021-02-18 Nick Clifton <nickc@redhat.com>
1927
1928 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
1929 address that is higher than the end address.
1930
b9b204b3
AM
19312021-02-17 Alan Modra <amodra@gmail.com>
1932
1933 * dwarf.c: Include limits.h.
1934 (CHAR_BIT): Provide backup define.
1935 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
1936 signed overflow checking.
1937 * testsuite/binutils-all/pr26548.s,
1938 * testsuite/binutils-all/pr26548.d,
1939 * testsuite/binutils-all/pr26548e.d: New tests.
1940 * testsuite/binutils-all/readelf.exp: Run them.
1941 (readelf_test): Drop unused "xfails" parameter. Update all uses.
1942
e6ca1878
JB
19432021-02-16 Jan Beulich <jbeulich@suse.com>
1944
1945 * dwarf.c (process_debug_info): Initialize "dwo_id".
1946
208599d9
AM
19472021-02-15 Alan Modra <amodra@gmail.com>
1948
1949 * objdump.c (load_specific_debug_section): Don't call
1950 bfd_cache_section_contents. Rearrange so that
1951 bfd_get_full_section_contents is not called on path where
1952 bfd_simple_get_relocated_section_contents is called.
1953 Don't set section->user_data.
1954 (free_debug_section): Always free section->start. Don't twiddle
1955 section flags.
1956 * readelf.c (load_specific_debug_section): Don't set user_data.
1957 * dwarf.h (struct dwarf_section): Remove use_data field.
1958 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
1959
1781a9d0
AM
19602021-02-15 Alan Modra <amodra@gmail.com>
1961
1962 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
1963 * testsuite/binutils-all/objdump.exp: Likewise.
1964
1944212b
AM
19652021-02-14 Alan Modra <amodra@gmail.com>
1966
1967 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
1968 to the symbol array.
1969 (slurp_dynamic_symtab): Likewise.
1970 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
1971
0d0a0d86
AM
19722021-02-14 Alan Modra <amodra@gmail.com>
1973
1974 * Makefile.in: Regenerate.
1975 * doc/Makefile.in: Regenerate.
1976
adeab0c5
MF
19772021-02-13 Mike Frysinger <vapier@gentoo.org>
1978
1979 * aclocal.m4: Regenerate.
1980
c46b7066
NC
19812021-02-12 Nick Clifton <nickc@redhat.com>
1982
1983 * configure.ac (follow-debug-links): Add option to enable or
1984 disable the following of debug links by default. Set the
1985 default for the option to be 'follow'.
1986 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
1987 (dwarf_select_sections_by_names): Add no-follow-links option.
1988 (dwarf_select_sections_by_letter): Add 'N' option.
1989 * objdump.c (usage): Add conditional text describing the
1990 follow links option.
1991 (slurp_symtab): Ensure that there is a NULL entry at the end
1992 of the symbol table.
1993 (slurp_dynamic_symtab): Likewise.
1994 (dump_bfd): When extending the symbol table, ensure that there
1995 is still a NULL entry at the end.
1996 * readelf.c (usage): Add conditional text describing the
1997 follow links option.
1998 * doc/binutils.texi: Update documentation for objcopy and
1999 readelf.
2000 * doc/debug.options.texi: Update documentation of the
2001 follow-links option.
2002 * config.in: Regenerate.
2003 * configure: Regenerate.
2004 * testsuite/binutils-all/compress.exp: Add the -WN option to
2005 objdump command lines that are not expecting to follow links.
2006 * testsuite/binutils-all/readelf.exp: Add the
2007 --debug-dump=no-follow-links option to tests that are not
2008 expecting to follow debug links.
2009 * NEWS: Mention the new behaviour.
2010
17e04eff
AM
20112021-02-12 Alan Modra <amodra@gmail.com>
2012
2013 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
2014 gas or ld fails to build a testcase rather than "unresolved".
2015 Report "fail" when readelf returns an error status rather than
2016 "unresolved".
2017 * testsuite/binutils-all/ar.exp: Likewise.
2018 * testsuite/binutils-all/compress.exp: Likewise.
2019 * testsuite/binutils-all/readelf.exp: Likewise.
2020
8f054a7a
AM
20212021-02-12 Alan Modra <amodra@gmail.com>
2022
2023 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
2024 "c" with "ccc" labels.
2025
528a4f87
TV
20262021-02-12 Tom de Vries <tdevries@suse.de>
2027
2028 * dwarf.h (debug_info): Fix typo in comment.
2029
95abb394
TV
20302021-02-12 Tom de Vries <tdevries@suse.de>
2031
2032 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
2033 entries.
2034
d60f7998
TV
20352021-02-12 Tom de Vries <tdevries@suse.de>
2036
2037 * dwarf.c (process_debug_info): Print DWO ID.
2038
1cfcf300
AM
20392021-02-11 Alan Modra <amodra@gmail.com>
2040
2041 PR 27290
2042 PR 27293
2043 PR 27295
2044 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
2045 Use bfd_malloc_and_get_section.
2046 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
2047 check namesz. Return NULL if descsz is too small. Ensure
2048 string table is terminated.
2049 (elf32_avr_get_device_info): Formatting. Add note_size param.
2050 Sanity check note.
2051 (elf32_avr_dump_mem_usage): Adjust to suit.
2052
d9d9d8ef
TV
20532021-02-10 Tom de Vries <tdevries@suse.de>
2054
2055 PR binutils/27391
2056 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
2057
52ff20fe
TV
20582021-02-10 Tom de Vries <tdevries@suse.de>
2059
2060 PR binutils/27371
2061 * dwarf.c (display_debug_ranges): Filter range lists according to
2062 section.
2063
5f128a25
TV
20642021-02-09 Tom de Vries <tdevries@suse.de>
2065
2066 PR binutils/27370
2067 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
2068
9b87f84a
TV
20692021-02-09 Tom de Vries <tdevries@suse.de>
2070
2071 PR binutils/27386
2072 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
2073 DW_UT_split_compile.
2074
a57d1773
AM
20752021-02-09 Alan Modra <amodra@gmail.com>
2076
2077 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
2078 symbianelf.
2079
de8d4203
AM
20802021-02-07 Alan Modra <amodra@gmail.com>
2081
2082 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
2083 uninitialised on invalid input.
2084
51a25252
AM
20852021-02-06 Alan Modra <amodra@gmail.com>
2086
2087 PR 27349
2088 * rename.c (smart_rename): Test for existence and type of output
2089 file with lstat.
2090
e37d88e5
NC
20912021-02-05 Nick Clifton <nickc@redhat.com>
2092
2093 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
2094
887854ba
EZ
20952021-02-05 Eli Zaretskii <eliz@gnu.org>
2096
2097 PR 27252
2098 * elfedit.c (check_file):
2099 * bucomm.c (get_file_size): Fix typos in comments.
2100
c180f095
AM
21012021-02-05 Alan Modra <amodra@gmail.com>
2102
2103 PR 27345
2104 * arsup.c (ar_save): Use stat rather than lstat.
2105
95b91a04
AM
21062021-02-03 Alan Modra <amodra@gmail.com>
2107
2108 PR 27270
2109 PR 27284
2110 PR 26945
2111 * ar.c: Don't include libbfd.h.
2112 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
2113 bfd_stat rather than fstat on iostream. Move stat and fd tests
2114 outside of _WIN32 ifdef. Delete skip_stat variable.
2115 * arsup.c (temp_name, real_ofd): New static variables.
2116 (ar_open): Use make_tempname and bfd_fdopenw.
2117 (ar_save): Adjust to suit ar_open changes. Move stat output
2118 of _WIN32 ifdef.
2119 * objcopy.c: Don't include libbfd.h.
2120 (copy_file): Use bfd_stat.
2121
5424d7ed
L
21222021-02-02 H.J. Lu <hongjiu.lu@intel.com>
2123
2124 PR binutils/27281
2125 * readelf.c (process_section_headers): Add 'R' and 'D' to
2126 "Key to Flags:".
2127 * testsuite/binutils-all/retain1a.d: Updated.
2128
72a51a06
NC
21292021-01-30 Nick Clifton <nickc@redhat.com>
2130
2131 * README-how-to-make-a-release: Small updates after the 2.35.2
2132 release.
2133
cc3edc52
EZ
21342021-01-28 Eli Zaretskii <eliz@gnu.org>
2135
2136 PR 4356
2137 * windres.c (quot): Use double quotes to protect strings on
2138 Windows platforms.
2139
a7ad3cb1
EZ
21402021-01-28 Eli Zaretskii <eliz@gnu.org>
2141
2142 PR 27252
2143 * bucomm.c (get_file_size): Add code to handle /dev/null on
2144 Windows systems.
2145 * elfedit.c (check_file): Likewise.
2146
67965ba2
NC
21472021-01-27 Nick Clifton <nickc@redhat.com>
2148
2149 * objcopy.c (copy_main): Remove conditional control of the calls
2150 to free, simplifying the code and making it easier to detect
2151 typos.
2152
e37709f0
FC
21532021-01-26 Frederic Cambus <fred@statdns.com>
2154
2155 * objcopy.c (copy_main): Fix a double free happening when both
2156 --localize-symbols and --globalize-symbols options are invoked
2157 together.
2158
9b351c9b
NC
21592021-01-24 Nick Clifton <nickc@redhat.com>
2160
2161 * README-how-to-make-a-release: Minor updates after the 2.36 release.
2162
ad92f33d
AM
21632021-01-16 Alan Modra <amodra@gmail.com>
2164
2165 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
2166
3624a6c1
AM
21672021-01-15 Alan Modra <amodra@gmail.com>
2168
2169 PR 26539
2170 * readelf.c (uncompress_section_contents): Always call inflateEnd.
2171
c14dee84
AO
21722021-01-14 Alexandre Oliva <oliva@gnu.org>
2173
2174 * MAINTAINERS: Update my email address.
2175
5a10699f
NC
21762021-01-14 Nick Clifton <nickc@redhat.com>
2177
2178 * po/sv.po: Updated Swedish translation.
2179
5347ed60
AM
21802021-01-13 Alan Modra <amodra@gmail.com>
2181
2182 * Makefile.in: Regenerate.
2183 * doc/Makefile.in: Regenerate.
2184
2ce40d1a
ZF
21852021-01-13 Zebediah Figura <z.figura12@gmail.com>
2186
2187 PR 27037
2188 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
2189 and before exit.
2190 (i386_x64_trampoline): Add SEH annotations.
2191 (struct mac): Add how_seh field.
2192 (make_delay_head): If how_set field is true add SEh instructions.
2193
d546b610
L
21942021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2195
2196 PR binutils/26792
2197 * configure.ac: Use GNU_MAKE_JOBSERVER.
2198 * aclocal.m4: Regenerated.
2199 * configure: Likewise.
2200
6d104cac
NC
22012021-01-12 Nick Clifton <nickc@redhat.com>
2202
2203 * po/fr.po: Updated French translation.
2204
83b33c6c
L
22052021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2206
2207 PR ld/27173
2208 * configure: Regenerated.
2209
a8aa72b9
NC
22102021-01-11 Nick Clifton <nickc@redhat.com>
2211
2212 * po/pt.po: Updated Portuguese translation.
2213 * po/sr.po: Updated Serbian translation.
2214 * po/uk.po: Updated Ukranian translation.
2215
a4966cd9
L
22162021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2217
2218 * configure: Regenerated.
2219
573fe3fb
NC
22202021-01-09 Nick Clifton <nickc@redhat.com>
2221
2222 * configure: Regenerate.
2223 * po/binutils.pot: Regenerate.
2224
055bc77a
NC
22252021-01-09 Nick Clifton <nickc@redhat.com>
2226
2227 * 2.36 release branch crated.
573fe3fb
NC
2228 * README-how-to-make-a-release: Add note about updating Makefiles
2229 and libtool files.
2230 * BRANCHES: Add binutils-2.36-branch.
055bc77a 2231
64307045
AM
22322021-01-09 Alan Modra <amodra@gmail.com>
2233
2234 * configure: Regenerate.
2235
f4782128
ST
22362021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2237
2238 * configure: Regenerate.
2239
d1bcae83
L
22402021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2241
2242 PR 27109
2243 * objcopy.c (copy_object): Handle section symbols for
2244 non-relocatable inputs.
2245 * testsuite/binutils-all/readelf.exp (readelf_test): Check
2246 is_elf_unused_section_symbols.
2247 * testsuite/binutils-all/readelf.s-64: Updated.
2248 * testsuite/binutils-all/readelf.ss: Likewise.
2249 * testsuite/binutils-all/readelf.ss-64: Likewise.
2250 * testsuite/binutils-all/readelf.s-64-unused: New file.
2251 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
2252 * testsuite/binutils-all/readelf.ss-unused: Likewise.
2253 * testsuite/lib/binutils-common.exp
2254 (is_elf_unused_section_symbols): New proc.
2255
6987d5a1
RT
22562021-01-06 Reuben Thomas <rrt@sc3d.org>
2257
2258 * binutils/readelf.c: Correct grammar in comment.
2259
f9a6a8f0
AM
22602021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2261
2262 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
2263 * doc/binutils.texi: Correct grammar.
2264 * readelf.c (process_version_sections): Correct spelling of auxiliary
2265 in warning.
2266 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
2267
250d07de
AM
22682021-01-01 Alan Modra <amodra@gmail.com>
2269
2270 Update year range in copyright notice of all files.
2271
c2795844 2272For older changes see ChangeLog-2020
3499769a 2273\f
d87bef3a 2274Copyright (C) 2021-2023 Free Software Foundation, Inc.
3499769a
AM
2275
2276Copying and distribution of this file, with or without modification,
2277are permitted in any medium without royalty provided the copyright
2278notice and this notice are preserved.
2279
2280Local Variables:
2281mode: change-log
2282left-margin: 8
2283fill-column: 74
2284version-control: never
2285End: