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