Change version number to 2.41.50 and regenerate files
[binutils-gdb.git] / binutils / ChangeLog
1 2023-07-03 Nick Clifton <nickc@redhat.com>
2
3 * README-how-to-make-a-release: Change some version numbers.
4 * configure: Regenerate.
5 * po/binutils.pot: Regenerate.
6
7 2023-07-03 Nick Clifton <nickc@redhat.com>
8
9 2.41 Branch Point.
10
11 2023-06-30 Nick Clifton <nickc@redhat.com>
12
13 PR 30598
14 * strings.c (set_string_min): New function.
15 (main): Use it.
16 (print_unicode_stream): Calculate buffer size using a size_t.
17
18 2023-06-30 Nick Clifton <nickc@redhat.com>
19
20 PR 30595
21 * strings.c (main): Check for an excessively large minimum string
22 length.
23
24 2023-06-21 Nick Clifton <nickc@redhat.com>
25
26 * testsuite/lib/binutils-common.exp (prune_warnings_extra): Prune
27 warnings about -z execstack creating an executable stack.
28
29 2023-05-30 Nick Clifton <nickc@redhat.com>
30
31 * od-pe.c (targ_info): New array.
32 (get_target_specific_info): New function
33 (decode_machine_number): Retire. Use get_target_specific_info
34 instead.
35 (is_pe_object_magic): Likewise.
36 (dump_pe_file_header): Display more information.
37 Rework layout to be similar to that from 'objdump -p'.
38 Add code to handle larger than normnal AOUT headers.
39
40 2023-05-30 Nick Clifton <nickc@redhat.com>
41
42 * od-pe.c (decode_machine_number): Add ARMMAGIC value of 0xa00.
43 (is_pe_object_magic): Likewise.
44
45 2023-05-26 Nick Clifton <nickc@redhat.com>
46
47 * od-pe.c: New file: Dumps fields in PE format headers.
48 * configure.ac (od_vectors): Add objdump_private_desc_pe for PE
49 format targets.
50 (od_files): Add od-pe for PE format targets.
51 * configure: Regenerate.
52 * Makefile.am (CFILES): Add od-pe.c
53 (EXTRA_objdump_SOURCE): Likewise.
54 * Makefile.in: Generate.
55 * NEWS: Mention the new feature.
56 * doc/binutils.texi: Document the new support.
57 * objdump.c (wide_output): Change from local to global.
58 * objdump.h (wide_output): Prototype.
59 (objdump_private_desc_pe): Prototype.
60 * testsuite/binutils-all/objdump.exp: Add a test of the new feature.
61
62 2023-05-09 Enze Li <enze.li@gmx.com>
63
64 * README: Correct a typo.
65
66 2023-05-02 Nick Clifton <nickc@redhat.com>
67
68 * MAINTAINERS: Remove Dimity Diky as MSP430 maintainer.
69
70 2023-04-20 Nick Clifton <nickc@redhat.com>
71
72 * SECURITY.txt: New file.
73
74 2023-04-19 Nick Clifton <nickc@redhat.com>
75
76 PR 30355
77 * dwarf.c (read_and_display_attr_value): Correctly handle
78 DW_loclistx attributes that index a version 5 .debug_loclists
79 section.
80
81 2023-04-17 Nick Clifton <nickc@redhat.com>
82
83 PR 30142
84 * rescoff.c (write_coff_file): Add the SEC_READONLY flag to the
85 .rsrc section.
86
87 2023-04-11 Nick Clifton <nickc@redhat.com>
88
89 PR 30327
90 * dwarf.c (read_and_display_attr_value): Warn if the number of
91 views is greater than the number of locations.
92
93 PR 30313
94 * dwarf.c (display_debug_lines_decoded): Check for an overlarge
95 number of files or directories.
96
97 PR 30312
98 * dwarf.c (prealloc_cu_tu_list): Always allocate at least one
99 entry.
100
101 PR 30311
102 * readelf.c (uncompress_section_contents): Check for a
103 suspiciously large uncompressed size.
104
105 2023-03-30 Nick Clifton <nickc@redhat.com>
106
107 PR 30284
108 * dwarf.c (read_and_display_attr_value): Detect and ignore
109 negative base values.
110
111 2023-03-23 Frederic Cambus <fred@statdns.com>
112
113 * readelf.c (get_segment_type): Handle PT_OPENBSD_MUTABLE segment
114 type.
115
116 2023-03-14 Nick Clifton <nickc@redhat.com>
117
118 PR 30227
119 * dwarf.c (process_cu_tu_index): Prevent excessive memory
120 allocation when nused is large and ncols is zero.
121
122 2023-02-09 Tom Tromey <tromey@adacore.com>
123
124 * dwarf-mode.el: Bump version to 1.8.
125 (dwarf-insert-substructure): Tighten regexp.
126 (dwarf-refresh-all): New defun.
127 (dwarf-mode-map): Bind "A" to dwarf-refresh-all.
128 (dwarf-mode): Remove old FIXME.
129
130 2023-02-07 Nick Clifton <nickc@redhat.com>
131
132 PR 30080
133 * doc/binutils.texi (nm): Update description of the 'n' symbol
134 type.
135
136 2023-01-31 Nick Clifton <nickc@redhat.com>
137
138 * po/sv.po: Updated Swedish translation.
139
140 2023-01-23 Nick Clifton <nickc@redhat.com>
141
142 * po/sv.po: Updated Swedish translation.
143
144 2023-01-18 Nick Clifton <nickc@redhat.com>
145
146 PR 29993
147 * objcopy.c (merge_gnu_build_notes): Remember the last non-deleted
148 note in order to speed up the scan for matching notes.
149
150 2023-01-16 Nick Clifton <nickc@redhat.com>
151
152 * po/sv.po: Updated Swedish translation.
153
154 2023-01-09 Nick Clifton <nickc@redhat.com>
155
156 * po/bg.po: Updated Bulgarian translation.
157 * po/ro.po: Updated Romainian translation.
158
159 2023-01-05 Nick Clifton <nickc@redhat.com>
160
161 * MAINTAINERS: Remove Stephen Casner as the PDP11 maintainer.
162
163 2023-01-03 Nick Clifton <nickc@redhat.com>
164
165 * po/fr.po: Updated French translation.
166 * po/uk.po: Updated Ukrainian translation.
167
168 2023-01-03 Luis Machado <luis.machado@arm.com>
169
170 * readelf.c (get_note_type): Add support for NT_ARM_SSVE and
171 NT_ARM_ZA note types.
172
173 2022-12-31 Nick Clifton <nickc@redhat.com>
174
175 * 2.40 branch created.
176
177 2022-12-31 Nick Clifton <nickc@redhat.com>
178
179 * po/ro.po: Updated Romanian translation.
180
181 2022-12-21 Nick Clifton <nickc@redhat.com>
182
183 PR 29924
184 * objdump.c (load_specific_debug_section): Check for excessively
185 large sections.
186
187 2022-12-19 Tom Tromey <tromey@adacore.com>
188
189 * dwarf-mode.el (dwarf-do-refresh): Avoid compiler warning.
190
191 2022-12-19 Nick Clifton <nickc@redhat.com>
192
193 PR 29914
194 * dwarf.c (fetch_indexed_value): Fail if the section is not big
195 enough to contain a header size field.
196 (display_debug_addr): Fail if the computed address size is too big
197 or too small.
198
199 2022-12-16 Nick Clifton <nickc@redhat.com>
200
201 PR 29908
202 * dwarf.c (display_debug_addr): Check for corrupt header lengths.
203
204 2022-12-01 Nick Clifton <nickc@redhat.com>
205
206 PR 25202
207 * objcopy.c (copy_object): Set VerilogDataEndianness to the
208 endianness of the input file.
209 (copy_main): Verifiy the value set by the --verilog-data-width
210 option.
211 * testsuite/binutils-all/objcopy.exp: Add tests of the new behaviour.
212 * testsuite/binutils-all/verilog-I4.hex: New file.
213
214 2022-11-21 Nick Clifton <nickc@redhat.com>
215
216 PR 29764
217 * doc/binutils.texi (objdump): Note that the -m option supports
218 the <architecture>:<machine> syntax.
219
220 2022-11-04 Nick Clifton <nickc@redhat.com>
221
222 * README-how-to-make-a-release: Add instructions for uploading the
223 gprofng documentation.
224
225 2022-10-31 Nick Clifton <nickc@redhat.com>
226
227 PR 29457
228 * configure.ac: Add --enable-colored-disassembly.
229 * objdump.c: Add --disassembler-color=terminal.
230 * doc/binutils.texi (objdump): Document the new option.
231 * NEWS: Mention new feature.
232 * config.in: Regenerate in.
233 * configure: Regenerate.
234
235 2022-10-19 Nick Clifton <nickc@redhat.com>
236
237 * MAINTAINERS: Add section on patches, copyright and DCO.
238
239 2022-10-12 Nick Clifton <nickc@redhat.com>
240
241 PR 29665
242 * objcopy.c (copy_object): Use the input filename when
243 reporting that a .gnu_debuglink section already exists.
244
245 2022-10-03 Nick Clifton <nickc@redhat.com>
246
247 * readelf.c (get_32bit_section_headers): Return false if the
248 e_shoff field is zero.
249 (get_64bit_section_headers): Likewise.
250
251 2022-09-28 Nick Clifton <nickc@redhat.com>
252
253 PR 29628
254 * size.c (usage): Add -f.
255 * doc/binutils.texi (size): Add -f.
256
257 2022-09-20 Nick Clifton <nickc@redhat.com>
258
259 * objcopy.c (copy_object): Do not issue a warning message when
260 encountering empty .gnu.build.attribute sections.
261
262 2022-09-14 Rupesh Potharla <Rupesh.Potharla@amd.com>
263
264 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend
265 regexps to allow for output genreated by the Clang compiler.
266
267 2022-09-12 Aaron Merey <amerey@redhat.com>
268
269 * objcopy.c (might_need_separate_debug_info): Add with_source_code to
270 the options that cause this function to return true.
271 (main.c): Add with_source_code to the options that enable
272 dump_any_debugging.
273
274 2022-09-09 Nick Clifton <nickc@redhat.com>
275
276 PR 29532
277 * objcopy.c (setup_section): Leave group sections intact when
278 creating separate debuginfo files.
279
280 2022-09-08 Nick Clifton <nickc@redhat.com>
281
282 PR 29523
283 * dwarf.c (display_debug_lines_decoded): Correctly handle DWARF-5
284 directory and filename tables.
285
286 2022-09-02 Aaron Merey <amerey@redhat.com>
287
288 PR 29075
289 * objdump.c (find_separate_debug): New function. Finds the bfd
290 corresponding to the separate debuginfod of a given bfd.
291 (find_alt_debug): New function. Finds the bfd corresponding to the
292 .gnu_debugaltlink of a given bfd.
293 (slurp_file): Add bfd parameter. If a source file cannot be found
294 attempt to download it from debuginfod, if enabled.
295 (try_print_file_open): Add bfd parameter and pass it to slurp_file.
296 (show_line): If debuginfod is enabled, call
297 bfd_find_nearest_line_with_alt instead of bfd_find_nearest_line.
298
299 2022-09-01 Nick Clifton <nickc@redhat.com>
300
301 PR 29534
302 * dllwrap.c: Replace uses of choose_temp_base() with
303 make_temp_file().
304 * dlltool.c: Likewise.
305 * resrc.c: Likewise.
306
307 2022-08-23 Nick Clifton <nickc@redhat.com>
308
309 PR 29489
310 * dlltool.c (deterministic): New variable.
311 (gen_lib_file): If deterministic is true set the
312 BFD_DETERMINISTIC_OUTPUT flag.
313 (usage): Mention --deterministic-libraries and
314 --non-deterministic-libraries.
315 (long_options): Add new options.
316 (main): Parse new options.
317 * doc/binutils.texi: Document the new options.
318 * NEWS: Mention the new feature.
319
320 2022-08-22 Nick Clifton <nickc@redhat.com>
321
322 * readelf.c (check_magic_number): New function. Checks the magic
323 bytes at the start of a file. If they are not the ELF format
324 magic values, then attempts to generate a helpful error message.
325 (process_file_header): Call check_magic_number.
326
327 2022-08-09 Nick Clifton <nickc@redhat.com>
328
329 PR 29457
330 * objdump.c (disassembler_color): Change type to an enum.
331 (disassembler_extended_color): Remove.
332 (usage): Update.
333 (objdump_color_for_assembler_style): Update.
334 (main): Update initialisation of disassembler_color. If not
335 initialised via a command line option, set based upon terminal
336 output.
337 * doc/binutils.texi: Update description of disassmbler-color
338 option.
339 * testsuite/binutils-all/arc/objdump.exp: Add
340 --disassembler-color=off option when disassembling.
341 * testsuite/binutils-all/arm/objdump.exp: Likewise.
342
343 2022-08-08 Nick Clifton <nickc@redhat.com>
344
345 * README-how-to-make-a-release: Add a link to the NEWS files in
346 the release announcement email.
347
348 2022-07-08 Nick Clifton <nickc@redhat.com>
349
350 * 2.39 branch created.
351
352 2022-07-01 Nick Clifton <nickc@redhat.com>
353
354 * dwarf.c (display_debug_rnglists): Add newline at end of listing.
355
356 2022-06-30 Nick Clifton <nickc@redhat.com>
357
358 * dwarf.c (dwarf_select_sections_by_name): If the entry's value is
359 zero then clear the corresponding variable.
360 (dwarf_select_sections_by_letters): Likewise.
361 * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
362 debuginfod tests to fail.
363
364 2022-06-28 Nick Clifton <nickc@redhat.com>
365
366 PR 29267
367 * dwarf.c (display_debug_rnglists): New function, broken out of..
368 (display_debug_ranges): ... here.
369 (read_and_display_attr_value): Correct calculation of index
370 displayed for DW_FORM_loclistx and DW_FORM_rnglistx.
371 * testsuite/binutils-all/x86-64/pr26808.dump: Update expected
372 output.
373
374 2022-06-27 Nick Clifton <nickc@redhat.com>
375
376 PR 29289
377 * dwarf.c (display_debug_names): Replace assert with a warning
378 message.
379
380 2022-06-27 Nick Clifton <nickc@redhat.com>
381
382 PR 29290
383 * dwarf.c (read_and_display_attr_value): Check that debug_info_p
384 is set before dereferencing it.
385
386 2022-06-27 Nick Clifton <nickc@redhat.com>
387
388 * dwarf.c (fetch_indexed_string): Do not use length of first table
389 in string section as the length of every table in the section.
390
391 * testsuite/binutils-all/pr26112.r: Update expected output.
392
393 2022-06-22 Kumar N, Bhuvanendra <Kavitha.Natarajan@amd.com>
394
395 * dwarf.c (fetch_indexed_string): Added new parameter
396 str_offsets_base to calculate the string offset.
397 (read_and_display_attr_value): Read DW_AT_str_offsets_base
398 attribute.
399 (process_debug_info): While allocating memory and initializing
400 debug_information, do it for do_debug_info also, if its true.
401 (load_separate_debug_files): Load .debug_str_offsets if exists.
402 * dwarf.h (struct debug_info): Add str_offsets_base field.
403
404 2022-06-22 Marcus Nilsson <brainbomb@gmail.com>
405
406 * readelf.c: (slurp_relr_relocs) Use malloc instead of xmalloc
407 when allocating space for relocations.
408
409 2022-06-21 Kumar N, Bhuvanendra <Kavitha.Natarajan@amd.com>
410
411 * dwarf.h (struct debug_info): Add rnglists_base field.
412 * dwarf.c (read_and_display_attr_value): Read attribute DW_AT_rnglists_base.
413 (display_debug_rnglists_list): While handling DW_RLE_base_addressx,
414 DW_RLE_startx_endx, DW_RLE_startx_length items, pass the proper parameter
415 value to fetch_indexed_addr(), i.e. fetch the proper entry in .debug_addr section.
416 (display_debug_ranges): Add rnglists_base to the .debug_rnglists base address.
417 (load_separate_debug_files): Load .debug_addr section, if exists.
418
419 2022-05-20 Nick Clifton <nickc@redhat.com>
420
421 * dwarf.c (dwarf_select_sections_by_names): Return zero if no
422 sections were selected.
423 (dwarf_select_sections_by_letters): Likewise.
424 * dwarf.h: (dwarf_select_sections_by_names): Update prototype.
425 (dwarf_select_sections_by_letters): Update prototype.
426 * objdump.c (might_need_separate_debug_info): New function.
427 (dump_bfd): Call new function before attempting to load separate
428 debug info files.
429 (main): Do not enable dwarf section dumping for -WK or -WN.
430 * readelf.c (parse_args): Do not enable dwarf section dumping for
431 -wK or -wN.
432 (might_need_separate_debug_info): New function.
433 (process_object): Call new function before attempting to load
434 separate debug info files.
435 * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
436 debuginfod tests to pass.
437 * testsuite/binutils-all/objdump.Wk: Add extra regexps.
438 * testsuite/binutils-all/readelf.k: Add extra regexps.
439
440 2022-05-19 Nick Clifton <nickc@redhat.com>
441
442 * dlltool.c (run): Initialise errmsg_fmt.
443 * dllwrap.c (run): Likewise.
444 * resrc.c (run_cmd): Likewise.
445 * mclex.c (mc_add_keyword): Initialise usz.
446 * srconv.c (wd_hd): Initialise hd.spare2.
447 * windmc.c (mc_add_node_lang): Initialise s.
448 (mc_generate_bin_item): Initialise cvt_txt.
449 (main): Initialise u.
450
451 2022-05-18 Nick Clifton <nickc@redhat.com>
452
453 PR 29135
454 * nm.c (non_weak): New variable.
455 (filter_symbols): When non-weak is true, ignore weak symbols.
456 (long_options): Add --no-weak.
457 (usage): Mention --no-weak.
458 (main): Handle -W/--no-weak.
459 * doc/binutils.texi: Document new feature.
460 * NEWS: Mention the new feature.
461 * testsuite/binutils-all/nm.exp: Add test of new feature.
462 * testsuite/binutils-all/no-weak.s: New test source file.
463
464 2022-04-25 Nick Clifton <nickc@redhat.com>
465
466 PR 29072
467 * testsuite/lib/binutils-common.exp (prune_warnings_extra): Filter
468 out notes about the executable stacjk behaviour beign deprecated.
469
470 2022-04-12 Nick Clifton <nickc@redhat.com>
471
472 PR 28992
473 * objcopy.c (is_strip_section_1): Do not delete debuglink sections
474 when stripping debug information.
475
476 2022-04-06 Nick Clifton <nickc@redhat.com>
477
478 PR 28981
479 * dwarf.c (fetch_indexed_value): Rename to fecth_indexed_addr and
480 return the address, rather than a string.
481 (fetch_indexed_value): New function - returns a value indexed by a
482 DW_FORM_loclistx or DW_FORM_rnglistx form.
483 (read_and_display_attr_value): Add support for DW_FORM_loclistx
484 and DW_FORM_rnglistx.
485 (process_debug_info): Load the loclists and rnglists sections.
486 (display_loclists_list): Add support for DW_LLE_base_addressx,
487 DW_LLE_startx_endx, DW_LLE_startx_length and
488 DW_LLE_default_location.
489 (display_offset_entry_loclists): New function. Displays a
490 .debug_loclists section that contains offset entry tables.
491 (display_debug_loc): Call the new function.
492 (display_debug_rnglists_list): Add support for
493 DW_RLE_base_addressx, DW_RLE_startx_endx and DW_RLE_startx_length.
494 (display_debug_ranges): Display the contents of the section's
495 header.
496 * dwarf.h (struct debug_info): Add loclists_base field.
497 * testsuite/binutils-all/dw5.W: Update expected output.
498 * testsuite/binutils-all/x86-64/pr26808.dump: Likewise.
499
500 2022-04-01 John Baldwin <jhb@FreeBSD.org>
501
502 * readelf.c (get_freebsd_elfcore_note_type): Handle
503 NT_FREEBSD_X86_SEGBASES.
504
505 2022-03-31 Nick Clifton <nickc@redhat.com>
506
507 * arlex.l: Accept the plus character as part of a filename.
508
509 2022-03-16 Fangrui Song <maskray@google.com>
510
511 PR binutils/28926
512 * objcopy.c (filter_symbols): Apply weaken to STB_GNU_UNIQUE symbols
513 * NEWS: Mention feature.
514 * testsuite/binutils-all/objcopy.exp (objcopy_test_symbol_manipulation): New test.
515 * testsuite/binutils-all/weaken-gnu-unique.s: New.
516
517 2022-03-16 Martin Storsjö <martin@martin.st>
518
519 PR 28885
520 * dlltool.c (main): use imp_name rather than dll_name when
521 generating a temporary file name.
522
523 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
524
525 * readelf.c (dump_relocations): Handle EM_AMDGPU.
526
527 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
528
529 * Makefile.am (readelf_CFLAGS): New.
530 (readelf_LDADD): Add MSGPACK_LIBS.
531 * Makefile.in: Re-generate.
532 * config.in: Re-generate.
533 * configure: Re-generate.
534 * configure.ac: Add --with-msgpack flag and check for msgpack
535 using pkg-config.
536 * readelf.c: Include msgpack.h if HAVE_MSGPACK.
537 (print_note_contents_hex): New.
538 (print_indents): New.
539 (dump_msgpack_obj): New.
540 (dump_msgpack): New.
541 (print_amdgpu_note): New.
542 (process_note): Handle NT_AMDGPU_METADATA note contents.
543 Use print_note_contents_hex.
544
545 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
546
547 * readelf.c (get_amdgpu_elf_note_type): New.
548 (process_note): Handle "AMDGPU" notes.
549
550 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
551
552 * readelf.c: Include elf/amdgcn.h.
553 (decode_AMDGPU_machine_flags): New.
554 (get_machine_flags): Handle flags for EM_AMDGPU machine type.
555
556 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
557
558 * readelf.c (get_osabi_name): Handle EM_AMDGPU OS ABIs.
559
560 2022-03-16 Nick Clifton <nickc@redhat.com>
561
562 * po/sr.po: Updated Serbian translation.
563
564 2022-03-15 Tom Tromey <tromey@adacore.com>
565
566 * dwarf-mode.el: Now 1.7.
567 (dwarf--sentinel): Switch to the process buffer.
568
569 2022-03-11 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
570
571 * MAINTAINERS: Add gprofng maintainer.
572 * README-how-to-make-a-release: Add gprofng.
573
574 2022-03-10 Nick Clifton <nickc@redhat.com>
575
576 * dwarf.c (use_debuginfod): New variable. Set to 1.
577 (load_separate_debug_info): Only call
578 debuginfod_fetch_separate_debug_info is use_debuginfod is true.
579 (dwarf_select_sections_by_names): Add do-not-use-debuginfod and
580 use-debuginfod options.
581 (dwarf_select_sections_by_letters): Add D and E options.
582 * dwarf.h (use_debuginfod): New extern.
583 * objdump.c (usage): Mention the new options.
584 * readelf.c (usage): Likewise.
585 * doc/binutils.texi: Document the new options.
586 * doc/debug-options.texi: Describe the new options.
587 * NEWS: Mention the new feature.
588 * testsuite/binutils-all/debuginfod.exp: Add tests of the new
589 options.
590
591 2021-03-06 Maciej W. Rozycki <macro@orcam.me.uk>
592
593 * testsuite/binutils-all/mips/mips1-branch-alias.d: New test.
594 * testsuite/binutils-all/mips/mips1-branch-noalias.d: New test.
595 * testsuite/binutils-all/mips/mips2-branch-alias.d: New test.
596 * testsuite/binutils-all/mips/mips2-branch-noalias.d: New test.
597 * testsuite/binutils-all/mips/mips32r6-branch-alias.d: New test.
598 * testsuite/binutils-all/mips/mips32r6-branch-noalias.d: New
599 test.
600 * testsuite/binutils-all/mips/micromips-branch-alias.d: New
601 test.
602 * testsuite/binutils-all/mips/micromips-branch-noalias.d: New
603 test.
604 * testsuite/binutils-all/mips/mips-branch-alias.s: New test
605 source.
606 * testsuite/binutils-all/mips/micromips-branch-alias.s: New test
607 source.
608 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
609
610 2022-03-04 Simon Marchi <simon.marchi@polymtl.ca>
611
612 * readelf.c (process_dynamic_section): Fix indentation.
613
614 2022-02-09 Nick Clifton <nickc@redhat.com>
615
616 * README-how-to-make-a-release: Update after the 2.38 release.
617
618 2022-01-27 Nick Clifton <nickc@redhat.com>
619
620 * po/sv.po: Updated Swedish translation.
621
622 2022-01-24 Nick Clifton <nickc@redhat.com>
623
624 * po/bg.po: Updated Bulgarian translation.
625 * po/fr.po: Updated French translation.
626 * po/ro.po: Updated Romanian translation.
627 * po/uk.po: Updated Ukranian translation.
628
629 2022-01-22 Martin Storsjö <martin@martin.st>
630
631 * dlltool.c (main): Allow inferring tmp_prefix from the dll name
632 from a def file.
633
634 2022-01-22 Nick Clifton <nickc@redhat.com>
635
636 * configure: Regenerate.
637 * po/binutils.pot: Regenerate.
638
639 2022-01-22 Nick Clifton <nickc@redhat.com>
640
641 * 2.38 release branch created.
642
643 2022-01-17 Nick Clifton <nickc@redhat.com>
644
645 * Makefile.in: Regenerate.
646
647 2022-01-11 Fangrui Song <maskray@google.com>
648
649 PR binutils/28759
650 * ar.c (long_options): Add --thin.
651 (usage) Add --thin. Deprecate -T without diagnostics.
652 * doc/binutils.texi: Add doc.
653 * NEWS: Mention --thin.
654 * binutils/testsuite/binutils-all/ar.exp: Add tests.
655
656 2022-01-11 Martin Storsjö <martin@martin.st>
657
658 * dlltool.c (main): If a prefix has not been provided, attempt to
659 use a deterministic one based upon the dll name.
660
661 2022-01-07 Pavel Mayorov <pmayorov@cloudlinux.com>
662
663 PR 28718
664 * dwarf.c: Revert previous delta.
665 (debug_get_real_type): Reject indirect types that point to
666 indirect types.
667 (debug_get_type_name, debug_get_type_size, debug_write_type):
668 Likewise.
669
670 2022-01-06 Nick Clifton <nickc@redhat.com>
671
672 * debug.c (debug_write_type): Allow for malicious recursion via
673 indirect debug types.
674
675 2022-01-04 Nick Clifton <nickc@redhat.com>
676
677 PR 28716
678 * dwarf.c (load_build_id_debug_file): Remove spurious printf.
679
680 2021-12-16 Nick Clifton <nickc@redhat.com>
681
682 PR 28697
683 * dwarf.c (load_build_id_debug_file): New function.
684 (try_build_id_prefix): New function.
685 (check_for_and_load_links): Call load_build_id_debug_file.
686 (debug_displays): Add entry for .note.gnu.build-id.
687 * dwarf.h (enum dwarf_section_display_enum): Add
688 note_gnu_build_id.
689 * testsuite/binutils-all/debuginfod.exp (test_fetch_debuglink):
690 Fix regexp for loads via debuglink section.
691
692 2021-12-03 Chenghua Xu <xuchenghua@loongson.cn>
693
694 * MAINTAINERS: Add myself and Zhensong Liu
695 as the LoongArch maintainer.
696
697 2021-12-02 Nick Clifton <nickc@redhat.com>
698
699 PR 28645
700 * dwarf.c (process_cu_tu_index): Add test for overruning section
701 whilst processing slots.
702
703 2021-11-30 Roland McGrath <mcgrathr@google.com>
704
705 * doc/local.mk: Give each man page target its missing dependency on
706 doc/$(am__dirstamp).
707
708 2021-11-30 Nick Clifton <nickc@redhat.com>
709
710 * dwarf.c (find_debug_info_for_offset): Use dwarf_vma type for
711 offsets, sizes and ranges.
712 (display_loc_list): Likewise. Also use print_dwarf_vma to print
713 the offset.
714 (display_loclists_list): Likewise.
715 (display_loc_list_dwo): Likewise.
716 (display_debug_str): Likewise.
717 (display_debug_aranges): Likewise.
718 (display_debug_ranges_list): Likewise.
719 (display_debug_rnglists_list): Likewise.
720 (display_debug_ranges): Likewise.
721
722 2021-11-29 Nick Clifton <nickc@redhat.com>
723
724 PR 28632
725 * strings.c (usage): Update desciption of -n option.
726 * doc/binutils.texi: Likewise.
727
728 2021-11-24 Nick Clifton <nickc@redhat.com>
729
730 PR 28564
731 * sysdump.c (getCHARS): Check for an out of bounds read.
732
733 2021-11-16 Fangrui Song <maskray@google.com>
734
735 * readelf.c (enum relocation_type): New.
736 (slurp_relr_relocs): New.
737 (dump_relocations): Change is_rela to rel_type.
738 Dump RELR.
739 (dynamic_relocations): Add DT_RELR.
740 (process_relocs): Check SHT_RELR and DT_RELR.
741 (process_dynamic_section): Store into dynamic_info for
742 DT_RELR/DT_RELRENT/DT_RELRSZ.
743
744 2021-11-09 Nick Clifton <nickc@redhat.com>
745
746 * nm.c: Add --unicode option to control how unicode characters are
747 handled.
748 * objdump.c: Likewise.
749 * readelf.c: Likewise.
750 * strings.c: Likewise.
751 * binutils.texi: Document the new feature.
752 * NEWS: Document the new feature.
753 * testsuite/binutils-all/unicode.exp: New file.
754 * testsuite/binutils-all/nm.hex.unicode
755 * testsuite/binutils-all/strings.escape.unicode
756 * testsuite/binutils-all/objdump.highlight.unicode
757 * testsuite/binutils-all/readelf.invalid.unicode
758
759 2021-11-03 Tom Tromey <tromey@adacore.com>
760
761 * dwarf.c (display_debug_loc): Use section name in warnings.
762
763 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
764
765 * objdump.c (usage): --ctf now has an optional argument.
766 (main): Adjust accordingly.
767 (dump_ctf): Default it.
768 * doc/ctf.options.texi: Adjust.
769
770 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
771
772 * objdump.c (usage): --ctf-parent now takes a name, not a section.
773 (dump_ctf): Don't open a separate section; use the parent_name in
774 ctf_dict_open instead. Use ctf_archive_next, not ctf_archive_iter,
775 so we can pass down a member count.
776 (dump_ctf_archive_member): Add the member count; don't return
777 anything. Import parents into children no matter what the
778 parent's name, while still avoiding displaying the header for the
779 common parent name of ".ctf".
780 * readelf.c (usage): Adjust similarly.
781 (dump_section_as_ctf): Likewise.
782 (dump_ctf_archive_member): Likewise. Never stop iterating over
783 archive members, even if ctf_dump of one member fails.
784 * doc/ctf.options.texi: Adjust.
785
786 2021-10-19 Nick Clifton <nickc@redhat.com>
787
788 * nm.c (filter_symbols): Test for a NULL name before checking to
789 see if the symbol is __gnu_lto_slim.
790 * objcopy.c (filter_symbols): Likewise.
791
792 2021-09-30 Nick Clifton <nickc@redhat.com>
793
794 * objcopy.c (filter_symbols): Fail if attempting to dredefine
795 symbols in an LTO object file.
796
797 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
798
799 * configure: Regenerate.
800
801 2021-09-20 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 * testsuite/binutils-all/riscv/riscv.exp: New file.
804 * testsuite/binutils-all/riscv/unknown.d: New file.
805 * testsuite/binutils-all/riscv/unknown.s: New file.
806
807 2021-09-07 Luis Machado <luis.machado@linaro.org>
808
809 Revert: [AArch64] MTE corefile support
810
811 2021-05-21 Luis Machado <luis.machado@linaro.org>
812
813 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
814
815 2021-08-11 Nick Clifton <nickc@redhat.com>
816
817 * po/pt.po: Updated Portuguese translation.
818
819 2021-08-10 Nick Clifton <nickc@redhat.com>
820
821 * po/sr.po: Updated Serbian translation.
822
823 2021-07-16 Nick Clifton <nickc@redhat.com>
824
825 * po/sv.po: Updated Swedish translation.
826
827 2021-07-14 Clément Chigot <clement.chigot@atos.net>
828
829 * dwarf.h (struct dwarf_section): Add XCOFF name.
830 * dwarf.c (struct dwarf_section_display): Update.
831 * objdump.c (load_debug_section): Add XCOFF name handler.
832 (dump_dwarf_section): Likewise.
833
834 2021-07-12 Nick Clifton <nickc@redhat.com>
835
836 * po/fr.po: Updated French translation.
837
838 2021-07-10 Alan Modra <amodra@gmail.com>
839
840 PR 28069
841 * dwarf.c (display_discr_list): Remove assertions. Delete "end"
842 parameter, use initial "data" pointer as the end. Formatting.
843 Don't count down bytes as they are read.
844 (read_and_display_attr_value): Adjust display_discr_list call.
845 (read_and_print_leb128): Don't pass __FILE__ and __LINE__ to
846 report_leb_status.
847 * dwarf.h (report_leb_status): Don't report file and line
848 numbers. Delete file and lnum parameters,
849 (READ_ULEB, READ_SLEB): Adjust.
850
851 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
852
853 * configure.ac: Check for strnlen declaration.
854 * configure, config.in: Regenerate.
855
856 2021-07-05 Alan Modra <amodra@gmail.com>
857
858 PR 28047
859 * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter.
860 Check DW_FORM_ref1 etc. arg against cu_end rather than end of
861 section. Adjust all callers.
862
863 2021-07-03 Nick Clifton <nickc@redhat.com>
864
865 * configure: Regenerate.
866 * po/opcodes.pot: Regenerate.
867 * README-how-to-make-a-release: Update.
868
869 2021-07-03 Nick Clifton <nickc@redhat.com>
870
871 * 2.37 release branch created.
872
873 2021-07-02 Alan Modra <amodra@gmail.com>
874
875 PR 28048
876 * dwarf.c (get_type_signedness): Don't run off end of buffer
877 printing DW_FORM_string attribute.
878
879 2021-07-01 Nick Clifton <nickc@redhat.com>
880
881 PR 28029
882 * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk.
883
884 2021-07-01 Andrei Homescu <ah@immunant.com>
885
886 * readelf.c (process_archive): Reset file position to the
887 beginning when calling process_object for thin archive members.
888 * testsuite/binutils-all/readelf.exp: Add test.
889 * testsuite/binutils-all/readelf.h.thin: New file.
890
891 2021-06-30 Tom Tromey <tom@tromey.com>
892
893 * dwarf.c (read_and_display_attr_value): Handle
894 DW_FORM_implicit_const.
895
896 2021-06-30 Richard Henderson <richard.henderson@linaro.org>
897
898 * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf
899 and DW_CFA_def_cfa_offset_sf have a signed offset.
900
901 2021-06-19 Alan Modra <amodra@gmail.com>
902
903 * dwarf.c (display_debug_lines_decoded): Use memcpy rather than
904 strncpy when trimming file name length to MAX_FILENAME_LENGTH.
905 Don't make an unnecessary copy when length is good.
906
907 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
908
909 * readelf.c (print_gnu_property_note): Handle
910 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
911 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
912
913 2021-06-15 Nick Clifton <nickc@redhat.com>
914
915 * readelf.c (get_note_type): Add support for NT_GO_BUILDID.
916
917 2021-06-15 Alan Modra <amodra@gmail.com>
918
919 * readelf.c (locate_dynamic_section, is_pie): New functions.
920 (get_file_type): Replace e_type parameter with filedata. Call
921 is_pie for ET_DYN. Update all callers.
922 (process_program_headers): Use local variables dynamic_addr and
923 dynamic_size, updating filedata on exit from function. Set
924 dynamic_size of 1 to indicate no dynamic section or segment.
925 Update tests of dynamic_size throughout.
926 * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output.
927
928 2021-06-14 Eric Botcazou <ebotcazou@adacore.com>
929
930 * dwarf.c (struct abbrev_attr): Change type of implicit_const.
931 (add_abbrev_attr): Likewise.
932 (process_abbrev_set): Likewise.
933 (display_debug_abbrev): Adjust to above change.
934
935 2021-06-12 Alan Modra <amodra@gmail.com>
936
937 * readelf.c (process_file_header): Don't clear section_headers.
938
939 2021-06-12 Alan Modra <amodra@gmail.com>
940
941 * readelf.c (get_section_headers): Don't test e_shoff here, leave
942 that to get_32bit_section_headers or get_64bit_section_headers.
943 (process_object): Throw away section header read to print file
944 header extension.
945
946 2021-06-11 Alan Modra <amodra@gmail.com>
947
948 * readelf.c (struct filedata): Move archive_file_offset and
949 archive_file_size earlier.
950 (free_filedata): Clear using memset.
951
952 2021-06-11 Alan Modra <amodra@gmail.com>
953
954 * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
955 (get_elf_symbols): ..this new function throughout.
956 (get_32bit_section_headers): Don't free section_headers.
957 (get_64bit_section_headers): Likewise.
958 (get_section_headers): New function, use throughout in place of
959 32bit and 64bit variants.
960 (get_dynamic_section): Similarly.
961 (process_section_headers): Don't free filedata memory here.
962 (get_file_header): Don't get section headers here..
963 (process_object): ..Read them here instead. Don't exit without
964 freeing filedata memory.
965
966 2021-06-09 Nick Clifton <nickc@redhat.com>
967
968 * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list.
969
970 2021-06-07 Jan Beulich <jbeulich@suse.com>
971
972 * dwarf.c (display_debug_aranges): Add u suffix to constant.
973
974 2021-05-29 Alan Modra <amodra@gmail.com>
975
976 * objdump (usage): Add missing \n.
977
978 2021-05-29 Alan Modra <amodra@gmail.com>
979
980 * readelf.c (parse_args): Call dwarf_select_sections_all on
981 --debug-dump without optarg.
982 (usage): Associate -w and --debug-dump options closely.
983 Split up help message. Remove extraneous blank lines around
984 ctf help.
985 * objdump.c (usage): Similarly.
986
987 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
988
989 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0
990 operand disassembly.
991 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
992
993 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
994
995 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000'
996 machine for disassembly.
997 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise.
998 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
999 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise.
1000
1001 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
1002
1003 PR ld/27905
1004 * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9.
1005
1006 2021-05-27 Alan Modra <amodra@gmail.com>
1007
1008 * readelf (usage): Order -w letters to match --debug-dump= and
1009 move common '=' for --debug-dump out of brackets.
1010
1011 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
1012
1013 PR ld/27905
1014 * readelf.c (decode_x86_feature_2): Support
1015 GNU_PROPERTY_X86_FEATURE_2_CODE16.
1016
1017 2021-05-23 Tiezhu Yang <yangtiezhu@loongson.cn>
1018
1019 * readelf.c (get_machine_name): Change Loongson Loongarch to
1020 LoongArch.
1021
1022 2021-05-21 Luis Machado <luis.machado@linaro.org>
1023
1024 * readelf.c (get_note_type): Add missing NT_ARM_* entries.
1025
1026 2021-05-21 Luis Machado <luis.machado@linaro.org>
1027
1028 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
1029
1030 2021-05-19 Eli Schwartz <eschwartz@archlinux.org>
1031
1032 * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set.
1033
1034 2021-05-19 Alan Modra <amodra@gmail.com>
1035
1036 PR 27884
1037 * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return
1038 param with map_return, and return map for DW_FORM_ref_addr.
1039 (get_type_signedness): Adjust calls to get_type_abbrev_from_form.
1040 Pass returned cu map start and end to recursive call.
1041 (read_and_display_attr_value): Similarly.
1042
1043 2021-05-19 Alan Modra <amodra@gmail.com>
1044
1045 PR 27879
1046 * sysdump.c (getBARRAY): Sanity check size against max.
1047 (getINT): Avoid UB shift left.
1048
1049 2021-05-15 Alan Modra <amodra@gmail.com>
1050
1051 * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow.
1052 Delete dead code.
1053
1054 2021-05-15 Alan Modra <amodra@gmail.com>
1055
1056 * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in
1057 length calculations.
1058
1059 2021-05-15 Alan Modra <amodra@gmail.com>
1060
1061 * dwarf.c (display_debug_names): Complain when header length is
1062 too small. Avoid pointer UB. Sanity check augmentation string,
1063 CU table, TU table and foreign TU table sizes.
1064
1065 2021-05-15 Alan Modra <amodra@gmail.com>
1066
1067 * dwarf.c (display_debug_frames): Delete initial_length_size.
1068 Avoid pointer UB. Constrain data reads to length given in header.
1069 Sanity check cie header length. Only skip up to next FDE on
1070 finding augmentation data too long.
1071
1072 2021-05-15 Alan Modra <amodra@gmail.com>
1073
1074 * dwarf.c (read_cie): Add more sanity checks to ensure data
1075 pointer is not bumped past end.
1076
1077 2021-05-15 Alan Modra <amodra@gmail.com>
1078
1079 * dwarf.c (display_debug_ranges): Delete initial_length_size.
1080 Correct fallback size calculated on finding a reloc. Constrain
1081 data reads to length given in header. Avoid pointer UB.
1082
1083 2021-05-15 Alan Modra <amodra@gmail.com>
1084
1085 * dwarf.c (display_debug_rnglists_list): Avoid pointer UB.
1086
1087 2021-05-15 Alan Modra <amodra@gmail.com>
1088
1089 * dwarf.c (display_debug_str_offsets): Constrain reads to length
1090 given in header.
1091
1092 2021-05-15 Alan Modra <amodra@gmail.com>
1093
1094 * dwarf.c (display_debug_aranges): Delete initial_length_size.
1095 Use end_ranges to constrain data reads to header length. Avoid
1096 pointer UB.
1097
1098 2021-05-15 Alan Modra <amodra@gmail.com>
1099
1100 * dwarf.c (display_loc_list): Avoid pointer UB. Correct check
1101 before reading uleb length. Warn on excess length.
1102
1103 2021-05-15 Alan Modra <amodra@gmail.com>
1104
1105 * dwarf.c (display_debug_macro): Print strings that might not
1106 be zero terminated with %*s. Don't bump curr if unterminated.
1107
1108 2021-05-15 Alan Modra <amodra@gmail.com>
1109
1110 * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
1111 Simplify length sanity check, and check for too small lengths.
1112 Constrain data reads to header length. Avoid pointer UB.
1113
1114 2021-05-15 Alan Modra <amodra@gmail.com>
1115
1116 * dwarf.c (display_debug_macinfo): Print strings that might not
1117 be zero terminated with %*s. Don't bump curr if unterminated.
1118
1119 2021-05-15 Alan Modra <amodra@gmail.com>
1120
1121 * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size.
1122 Simplify length check. Constrain reads to length given by header.
1123
1124 2021-05-15 Alan Modra <amodra@gmail.com>
1125
1126 * dwarf.c (display_debug_lines_decoded): Don't use strnlen when
1127 we have already checked for NUL termination.
1128
1129 2021-05-15 Alan Modra <amodra@gmail.com>
1130
1131 * dwarf.c (read_debug_line_header): Delete initial_length_size.
1132 Avoid pointer UB. Keep within length specified by header.
1133 Delete dead code.
1134
1135 2021-05-15 Alan Modra <amodra@gmail.com>
1136
1137 * dwarf.c (process_debug_info): Always do the first CU length
1138 scan for sanity checks. Remove initial_length_size var and
1139 instead calculate end_cu. Use end_cu to limit data reads.
1140 Delete now dead code checking length.
1141
1142 2021-05-15 Alan Modra <amodra@gmail.com>
1143
1144 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
1145
1146 2021-05-15 Alan Modra <amodra@gmail.com>
1147
1148 * bucomm.h (_mul_overflow): Define.
1149 * dwarf.c (get_encoded_value): Avoid pointer UB.
1150
1151 2021-05-13 Alan Modra <amodra@gmail.com>
1152
1153 PR 27861
1154 * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
1155 header length.
1156
1157 2021-05-13 Alan Modra <amodra@gmail.com>
1158
1159 PR 27860
1160 * dwarf.c (display_debug_frames): Sanity check cie_off before
1161 attempting to read cie.
1162
1163 2021-05-12 Alan Modra <amodra@gmail.com>
1164
1165 * dwarf.c (process_extended_line_op): Don't bump data pointer past
1166 end when strnlen doesn't find string terminator.
1167 (decode_location_expression): Remove dead code.
1168 (skip_attr_bytes): Remove const from end param. Ensure data
1169 pointer doesn't pass end.
1170 (get_type_signedness): Remove const from end param.
1171 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
1172 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
1173 (display_debug_pubnames_worker): Likewise.
1174 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
1175 than blindly incrementing data pointer.
1176 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
1177 compare pointers, compare lengths.
1178
1179 2021-05-12 Alan Modra <amodra@gmail.com>
1180
1181 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
1182 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
1183 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
1184 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
1185 SAFE_BYTE_GET followed by increment.
1186 (process_debug_info): Likewise, and test bytes remaining before
1187 incrementing section_begin rather than using pointer comparison.
1188 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
1189 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
1190
1191 2021-05-12 Alan Modra <amodra@gmail.com>
1192
1193 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
1194 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
1195 SAFE_BYTE_GET_AND_INC.
1196 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
1197 (process_debug_info, process_cu_tu_index): Likewise.
1198 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
1199 (byte_get, byte_get_little_endian, byte_get_big_endian),
1200 (byte_get_signed): Make size param unsigned. Remove code dealing
1201 with 4-byte elf_vma.
1202 (byte_get_64): Delete.
1203 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
1204 (byte_get, byte_get_little_endian, byte_get_big_endian),
1205 (byte_get_signed): Update prototypes.
1206 (byte_get_64): Delete.
1207
1208 2021-05-12 Alan Modra <amodra@gmail.com>
1209
1210 PR 27836
1211 * dwarf.c (display_debug_frames): Don't compare pointers derived
1212 from user input. Test offset against bounds instead.
1213
1214 2021-05-12 Alan Modra <amodra@gmail.com>
1215
1216 PR 27853
1217 * dwarf.c (display_formatted_table): Test for data >= end rather
1218 than data == end.
1219 (process_extended_line_op): Likewise.
1220 (display_debug_lines_raw): Likewise.
1221 (display_debug_lines_decoded): Likewise.
1222
1223 2021-05-12 Alan Modra <amodra@gmail.com>
1224
1225 PR 27849
1226 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
1227 Sanity check section size for version and padding too. Correct
1228 index sanity check. Handle multiple tables in .debug_str_offsets.
1229
1230 2021-05-11 Hans-Peter Nilsson <hp@axis.com>
1231
1232 * dwarf.c (process_abbrev_set): Properly parenthesize before
1233 casting to unsigned long.
1234
1235 2021-05-11 Alan Modra <amodra@gmail.com>
1236
1237 PR 27845
1238 * dwarf.c (process_abbrev_set): Replace start and end parameters
1239 with section, abbrev_base, abbrev_size, abbrev_offset. Update
1240 all callers. Sanity check parameters correctly and emit warnings
1241 here rather than..
1242 (process_debug_info): ..here.
1243
1244 2021-05-10 Thomas Wolff <towo@towo.net>
1245
1246 PR 4356
1247 PR 26865
1248 PR 27594
1249 * windres.c (quot): Revert previous delta. Do not use double
1250 quotes when spaces are detected in options.
1251 * doc/binutils.texi (windres): Remove suggestion that the
1252 --preprocessor option can take arguments.
1253
1254 2021-05-10 Alan Modra <amodra@gmail.com>
1255
1256 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
1257 END rather than adding amount to PTR.
1258 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
1259
1260 2021-05-09 Alan Modra <amodra@gmail.com>
1261
1262 * objcopy.c (eq_string): Delete.
1263 (create_symbol_htab): Use htab_eq_string.
1264
1265 2021-05-08 Mike Frysinger <vapier@gentoo.org>
1266
1267 * README-how-to-make-a-release: Update html & pdf entries.
1268
1269 2021-05-08 Mike Frysinger <vapier@gentoo.org>
1270
1271 * doc/Makefile.am (html-local, binutils/index.html): New targets.
1272 * doc/Makefile.in: Regenerate.
1273
1274 2021-05-08 Mike Frysinger <vapier@gentoo.org>
1275
1276 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
1277 * doc/Makefile.in: Regenerate.
1278
1279 2021-05-07 Nick Clifton <nickc@redhat.com>
1280
1281 * readelf.c (no_processor_specific_unwind): New function.
1282 (process_unwind): Use no_processor_specific_unwind for X86
1283 targets.
1284
1285 2021-05-07 Michael Forney <mforney@mforney.org>
1286
1287 * dwarf.c: Don't omit second operand of '?' operator.
1288
1289 2021-04-30 Nick Clifton <nickc@redhat.com>
1290
1291 PR 27796
1292 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
1293 .debug_sup section.
1294
1295 2021-04-29 Nick Clifton <nickc@redhat.com>
1296
1297 PR 27594
1298 * doc/binutils.texi (windres): Correct the description of the
1299 default value of the --preprocessor argument.
1300
1301 2021-04-27 Nick Clifton <nickc@redhat.com>
1302
1303 PR 27779
1304 * dwarf.c (parse_gnu_debuglink): Reject empty names.
1305 (parse_gnu_debugaltlink): Likewise.
1306
1307 2021-04-22 Clément Chigot <clement.chigot@atos.net>
1308
1309 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
1310 aux structures.
1311
1312 2021-04-21 Nick Lott <nick.lott@gmail.com>
1313
1314 PR 27672
1315 * readelf.c (sym_base): New variable.
1316 (enum print_mode): Add more modes.
1317 (print_vma): Add suport for new modes.
1318 (options): Add sym-base.
1319 (usage): Add sym-base.
1320 (parse_args): Add support for --sym-base.
1321 (print_dynamic_symbol_size): New function.
1322 (print_dynamic_symbol): Use new function.
1323 * doc/binutils.texi: Document the new feature.
1324 * NEWS: Mention the new feature.
1325
1326 2021-04-21 Nick Clifton <nickc@redhat.com>
1327
1328 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
1329 Adjust expected output to allow for named section symbols.
1330 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
1331 Likewise.
1332 * testsuite/binutils-all/readelf.s-64: Likewise.
1333 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1334 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
1335 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1336
1337 2021-04-21 Luo Longjun <luolongjun@huawei.com>
1338
1339 * readelf.c (print_dynamic_symbol): Print the section name for
1340 section symbols without a name of their own.
1341
1342 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
1343
1344 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
1345 add him to Past Maintainers.
1346 Update my email address.
1347
1348 2021-04-19 Nick Clifton <nickc@redhat.com>
1349
1350 PR 21702
1351 * arsup.c (ar_addmod): Enable plugin support, if available.
1352
1353 2021-04-19 Nick Clifton <nickc@redhat.com>
1354
1355 * rename.c: (get_stat_atime_ns): Add prototype.
1356 (get_stat_mtime_ns): Add prototype.
1357
1358 2021-04-16 Alan Modra <amodra@gmail.com>
1359
1360 PR 27725
1361 * rename.c (get_stat_atime, get_stat_mtime): Make static.
1362 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
1363
1364 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
1365
1366 PR 27725
1367 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
1368 (get_stat_mtime_ns): Likewise.
1369
1370 2021-04-15 Alan Modra <amodra@gmail.com>
1371
1372 PR 27725
1373 * configure.ac: Check for sys/time.h and utimensat. Use standard
1374 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
1375 members of struct stat.
1376 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
1377 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
1378 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
1379 (get_stat_atime, get_stat_mtime): Likewise.
1380 (set_times): Choose first available of utimensat, utimes, utime.
1381 Use above inline functions to set timespec and timeval values.
1382 * configure: Regenerate.
1383 * config.in: Regenerate.
1384 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
1385 file timestamp when --preserve-dates is used.
1386
1387 2021-04-15 Alan Modra <amodra@gmail.com>
1388
1389 PR 27456
1390 * rename.c (smart_rename): When TO and FROM are equal, just set
1391 file timestamp.
1392 * objcopy.c (strip_main, copy_main): Always call smart_rename.
1393
1394 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
1395
1396 PR binutils/27708
1397 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
1398 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
1399 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
1400 test.
1401
1402 2021-04-14 Mark Harmstone <mark@harmstone.com>
1403
1404 PR 27686
1405 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
1406 end of the structure.
1407
1408 2021-04-14 Frederic Cambus <fred@statdns.com>
1409
1410 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
1411 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
1412
1413 2021-04-14 Alan Modra <amodra@gmail.com>
1414
1415 PR 27716
1416 * objdump.c (show_line): Don't limit paths to PATH_MAX.
1417 * readelf.c (struct filedata): Change program_interpreter from
1418 a char array to a char pointer.
1419 (process_program_headers): Sanity check PT_INTERP p_filesz.
1420 Malloc program_interpreter using p_filesz and read directly from
1421 file.
1422 (process_dynamic_section): Check program_interpreter is non-NULL.
1423 (free_filedata): New function, split out from..
1424 (process_object): ..here.
1425 (close_debug_file): Call free_filedata.
1426 * sysdep.h: Don't include sys/param.h.
1427 (PATH_MAX): Don't define.
1428 * configure.ac: Don't check for sys/param.h.
1429 * configure: Regenerate.
1430
1431 2021-04-13 Frederic Cambus <fred@statdns.com>
1432
1433 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
1434 check for NT_NETBSD_PAX.
1435
1436 2021-04-12 Alan Modra <amodra@gmail.com>
1437
1438 * configure.ac (--enable-checking): Add support.
1439 * config.in: Regenerate.
1440 * configure: Regenerate.
1441
1442 2021-04-09 Alan Modra <amodra@gmail.com>
1443
1444 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
1445 dynrelcount.
1446 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
1447 (disassemble_section, disassemble_data): Likewise.
1448
1449 2021-04-06 Alan Modra <amodra@gmail.com>
1450
1451 * objdump.c (objdump_symbol_at_address): Return asymbol*.
1452
1453 2021-04-06 Alan Modra <amodra@gmail.com>
1454
1455 * NEWS: Mention C99 requirement.
1456 * README: Likewise. Modernise examples and "Reporting bugs".
1457
1458 2021-04-05 Alan Modra <amodra@gmail.com>
1459
1460 * configure.ac: Assume long long is available. Don't test for
1461 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
1462 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
1463 strcoll, setlocale, setmode or location of time_t. Don't check
1464 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
1465 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
1466 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
1467 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
1468 locale.h, string.h and stdlib.h unconditionally. Remove various
1469 fallback declarations. Assume long long is available.
1470 * addr2line.c: Don't test HAVE_SETLOCALE.
1471 * ar.c: Likewise.
1472 * coffdump.c: Likewise.
1473 * dlltool.c: Likewise.
1474 * dllwrap.c: Likewise.
1475 * elfedit.c: Likewise.
1476 * nm.c: Likewise.
1477 * objcopy.c: Likewise.
1478 * objdump.c: Likewise.
1479 * readelf.c: Likewise.
1480 * size.c: Likewise.
1481 * srconv.c: Likewise.
1482 * strings.c: Likewise.
1483 * sysdump.c: Likewise.
1484 * windmc.c: Likewise.
1485 * windres.c: Likewise.
1486 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
1487 * dwarf.c: Include limits.h unconditionally. Assume long long
1488 is available.
1489 * nm.c: Don't test HAVE_STRCOLL.
1490 * readelf.c: Don't test HAVE_WCHAR_H.
1491 * strings.c: Assume long long is available.
1492 * syslex.l: Include string.h unconditionally.
1493 * aclocal.m4: Regenerate.
1494 * config.in: Regenerate.
1495 * configure: Regenerate.
1496 * Makefile.in: Regenerate.
1497 * doc/Makefile.in: Regenerate.
1498
1499 2021-04-01 Martin Liska <mliska@suse.cz>
1500
1501 * elfcomm.h (strneq): Remove strneq and use startswith.
1502 * readelf.c (ia64_process_unwind): Likewise.
1503 (process_note): Likewise.
1504
1505 2021-04-01 Martin Liska <mliska@suse.cz>
1506
1507 * dllwrap.c: Use startswith function.
1508 * objcopy.c (is_dwo_section): Likewise.
1509 (handle_remove_section_option): Likewise.
1510 (copy_main): Likewise.
1511 * objdump.c (is_significant_symbol_name): Likewise.
1512
1513 2021-04-01 Martin Liska <mliska@suse.cz>
1514
1515 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
1516 startswith.
1517 (display_debug_lines_decoded): Likewise.
1518 (display_debug_links): Likewise.
1519 * elfcomm.c (setup_archive): Likewise.
1520 * elfcomm.h (const_strneq): Likewise.
1521 * readelf.c (process_section_headers): Likewise.
1522 (slurp_ia64_unwind_table): Likewise.
1523 (slurp_hppa_unwind_table): Likewise.
1524 (decode_arm_unwind): Likewise.
1525 (display_debug_section): Likewise.
1526 (process_note): Likewise.
1527
1528 2021-03-31 Alan Modra <amodra@gmail.com>
1529
1530 * sysdep.h (POISON_BFD_BOOLEAN): Define.
1531 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
1532 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
1533 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
1534 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
1535 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
1536 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
1537 * windmc.c, * windmc.h, * windres.c, * winduni.c,
1538 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
1539 and TRUE with true throughout.
1540
1541 2021-03-31 Alan Modra <amodra@gmail.com>
1542
1543 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
1544 * dwarf.c: Likewise.
1545
1546 2021-03-31 Alan Modra <amodra@gmail.com>
1547
1548 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
1549
1550 2021-03-29 Alan Modra <amodra@gmail.com>
1551
1552 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
1553 * dwarf.c (read_and_display_attr_value): Likewise.
1554 (display_debug_str_offsets): Likewise.
1555 * objdump.c (dump_bfd): Likewise.
1556 * readelf.c (dump_section_as_strings): Likewise.
1557 (dump_section_as_bytes): Likewise.
1558
1559 2021-03-29 Alan Modra <amodra@gmail.com>
1560
1561 * objdump.c (process_links): Use type int.
1562 * readelf.c (request_dump): Don't increment do_dump, set it.
1563 * windint.h (target_is_bigendian): Use type bfd_boolean.
1564 * windmc.c (target_is_bigendian): Likewise.
1565 * windres.c (target_is_bigendian): Likewise.
1566
1567 2021-03-22 Martin Liska <mliska@suse.cz>
1568
1569 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
1570 with startswith.
1571 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
1572 * objcopy.c (is_mergeable_note_section): Likewise.
1573 * objdump.c (dump_dwarf_section): Likewise.
1574 * prdbg.c (pr_method_type): Likewise.
1575 (pr_class_baseclass): Likewise.
1576 (tg_class_baseclass): Likewise.
1577 * readelf.c (process_lto_symbol_tables): Likewise.
1578 * stabs.c (ULLHIGH): Likewise.
1579 (parse_stab_argtypes): Likewise.
1580 (stab_demangle_function_name): Likewise.
1581
1582 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1583
1584 * readelf.c (get_machine_name): Add EM_INTELGT.
1585
1586 2021-03-18 Nick Clifton <nickc@redhat.com>
1587
1588 PR 27478
1589 * readelf.c (dump_section_as_strings): Mention separate filename.
1590 (dump_section_as_bytes): Likewise.
1591 (dump_section_as_ctf): Likewise.
1592 (initialise_dumkps_byname): Only issue a warning for missing
1593 sections if processing the main file.
1594 (process_section_contents): Only issue a warning for unsumped
1595 section numbers in the main file.
1596 (initialise_dump_sects): New function. Contains code extracted
1597 from ...
1598 (process_object): ... here. Also call initialise_dump_sects for
1599 separate files.
1600
1601 2021-03-16 Nick Clifton <nickc@redhat.com>
1602
1603 PR 27534
1604 * readelf.c (display_debug_section): Also retain .debug_addr
1605 sections.
1606
1607 2021-03-16 Nick Clifton <nickc@redhat.com>
1608
1609 PR 27533
1610 * readelf.c (process_section_contents): Only dump debug
1611 information for separate files unless process_links is enabled.
1612 (process_object): Always call process_section_contents for
1613 separate info files.
1614
1615 2021-03-15 Nick Clifton <nickc@redhat.com>
1616
1617 PR 27487
1618 * nm.c (FORMAT_JUST_SYMBOLS): Define.
1619 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
1620 (long_options): Add just-symbols.
1621 (set_output_format): Add support for just-symbols.
1622 (get_print_format): Likewise.
1623 (do_not_print_object_filename): New function.
1624 (do_not_print_archive_filename): New function.
1625 (do_not_print_archive_member): New function.
1626 (do_not_print_symbol_filename): New function.
1627 (just_print_symbol_name): New function.
1628 (main): Handle --just-symbols.
1629 * NEWS: Mention the new feature.
1630 * doc/binutils.texi: Document the new feature.
1631
1632 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1633
1634 * od-xcoff.c: Replace RTB by TRL entry.
1635
1636 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1637 Andrew Burgess <andrew.burgess@embecosm.com>
1638
1639 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
1640
1641 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1642 Andrew Burgess <andrew.burgess@embecosm.com>
1643
1644 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
1645
1646 2021-03-05 Nick Clifton <nickc@redhat.com>
1647
1648 PR 27387
1649 * dwarf.c (display_debug_macro): Handle the displaying of
1650 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
1651 .debug_macro.dwo sections.
1652
1653 2021-03-04 Nick Clifton <nickc@redhat.com>
1654
1655 PR 27478
1656 * objdump.c (process_links): New variable.
1657 (usage): Add --process-links.
1658 (long_options): Likewise.
1659 (dump_bfd): Stop processing once the bfd has been loaded unless
1660 this is the main file or process_links has been enabled.
1661 (main): Handle the process-links option.
1662 * readelf.c (process_links): New variable.
1663 (struct filedata): Add is_separate field.
1664 (options): Add --process-links.
1665 (usage): Likewise.
1666 (parse_args): Likewise.
1667 (process_file_header): Include the filename when dumping
1668 information for separate debuginfo files.
1669 (process_program_headers): Likewise.
1670 (process_section_headers): Likewise.
1671 (process_section_groups): Likewise.
1672 (process_relocs): Likewise.
1673 (process_dynamic_section): Likewise.
1674 (process_version_sections): Likewise.
1675 (display_lto_symtab): Likewise.
1676 (process_symbol_table): Likewise.
1677 (process_syminfo): Likewise.
1678 (initialise_dumps_by_name): Likewise.
1679 (process_section_contents): Likewise.
1680 (process_notes_at): Likewise.
1681 (process_notes): Likewise.
1682 (open_file): Add is_separate parameter. Use to initialise the
1683 is_separate field in the filedata structure.
1684 (open_deug): Update call to open_file.
1685 (process_object): Add processing of the contents of separate
1686 debuginfo files, gated by the process_links variable.
1687 (process_archive): Update call to open_file.
1688 (process_file): Initialise the is_separate field in the filedata
1689 structure.
1690 * dwarf.c (load_separate_debug_info_file): Only report the
1691 loading of a separate file if debug links are being dumped.
1692 * objcopy.c (keep_section_symbols): New variable.
1693 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
1694 (strip_options): Add keep-section-symbols.
1695 (copy_options): Likewise.
1696 (copy_usage): Likewise.
1697 (strip_usage): Likewise.
1698 (copy_object): Keep section symbols if requested by command line
1699 option.
1700 (strip_main): Handle --keep-section-symbols.
1701 (copy_main): Likewise.
1702 * doc/binutils.texi: Document the new options.
1703 * NEWS: Mention the new features.
1704 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
1705 Update options passed to objdump. Use diff rather than cmp to
1706 compare the dumped data.
1707 * testsuite/binutils-all/objdump.WK2: Update regexp.
1708 * testsuite/binutils-all/objdump.WK3: Update regexp.
1709 * testsuite/binutils-all/objdump.exp: Use --process-links
1710 instead of --dwarf=follow-links.
1711 * testsuite/binutils-all/readelf.exp (readelf_test): Include
1712 readelf's output in the log when the test fails.
1713 Add the -P option to the -wKis test.
1714 * testsuite/binutils-all/readelf.wKis: Update expected output.
1715
1716 2021-03-03 Alan Modra <amodra@gmail.com>
1717
1718 PR 27493
1719 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
1720 * NEWS: Mention feature.
1721
1722 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
1723
1724 PR binutils/27486
1725 * dwarf.c (load_separate_debug_info): Issue warning only if
1726 do_debug_links is set.
1727 * testsuite/binutils-all/compress.exp: Run objdump and readelf
1728 with missing debug file.
1729
1730 2021-03-01 Alan Modra <amodra@gmail.com>
1731
1732 PR 27128
1733 * doc/binutils.texi: Add nm --with-symbol-versions and
1734 --without-symbol-versions documentation.
1735 * nm.c (with_symbol_versions): New variable.
1736 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
1737 (long_options): Make --with-symbol-versions entry twiddle the flag.
1738 Add --without-symbol-versions.
1739 (print_symname): Strip version when !with_symbol_versions. Add
1740 dynamic version info under control of with_symbol_versions.
1741 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
1742
1743 2021-02-26 Fangrui Song <maskray@google.com>
1744
1745 PR 27408
1746 * readelf.c (quiet): New option flag.
1747 (enum long_option_values): New enum to hold long option value.
1748 (long_options): Add --quiet.
1749 (usage): Mention --quiet.
1750 (display_rel_file): If quiet is enabled, suppress "no symbols".
1751 (main): Handle the new option.
1752 * NEWS: Mention --quiet.
1753 * docs/binutils.texi: Document --quiet.
1754
1755 2021-02-26 Tom de Vries <tdevries@suse.de>
1756
1757 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
1758
1759 2021-02-26 Tom de Vries <tdevries@suse.de>
1760
1761 PR 27390
1762 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
1763 DW_FORM_addrx*.
1764 (read_and_display_attr_value): Likewise.
1765
1766 2021-02-25 Nick Clifton <nickc@redhat.com>
1767
1768 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
1769 forms.
1770 (read_and_display_attr_value): Handle sup forms.
1771 (display_debug_sup): New function. Displays the contents of a
1772 .debug_sup section.
1773 (load_debug_sup_file): New function. Loads the contents of a file
1774 referenced by a .debug_sup section.
1775 (check_for_and_load_links): Call load_debug_sup_file.
1776 (debug_displays): Add entry for .debug_sup.
1777 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
1778 * readelf.c (process_section_headers): Add support for debug_sup.
1779 * doc/debug.options.texi: Note that the =links option will display
1780 the contents of .debug_sup sections.
1781 * NEWS: Mention the new support.
1782
1783 2021-02-25 Alan Modra <amodra@gmail.com>
1784
1785 PR 27456
1786 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
1787
1788 2021-02-24 Nick Clifton <nickc@redhat.com>
1789
1790 PR 27285
1791 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
1792 when adding together the section sizes.
1793
1794 2021-02-24 Nick Clifton <nickc@redhat.com>
1795
1796 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
1797 build notes.
1798 * readelf.c (print_gnu_build_attribute_description): Likewise.
1799
1800 2021-02-24 Alan Modra <amodra@gmail.com>
1801 Siddhesh Poyarekar <siddhesh@gotplt.org>
1802
1803 PR 27456
1804 * bucomm.h (smart_rename): Update prototype.
1805 * rename.c (smart_rename): Add fromfd and preserve_dates params.
1806 Pass fromfd and target_stat to simple_copy. Call set_times
1807 when preserve_dates.
1808 (simple_copy): Accept fromfd rather than from filename. Add
1809 target_stat param. Rewind fromfd rather than opening. Open
1810 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
1811 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
1812 closing output temp file, and pass tmpfd to smart_rename.
1813 * arsup.c (temp_fd): Rename from real_fd.
1814 (ar_save): Dup temp_fd and pass to smart_rename.
1815 * objcopy.c (strip_main, copy_main): Likewise, and pass
1816 preserve_dates.
1817
1818 2021-02-24 Alan Modra <amodra@gmail.com>
1819
1820 PR 27456
1821 * rename.c: Tidy throughout.
1822 (smart_rename): Always copy. Remove windows specific code.
1823
1824 2021-02-20 Alan Modra <amodra@gmail.com>
1825
1826 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
1827 (run_dump_test): Fail if expecting errors from a file like we do
1828 for error strings, if no error is seen.
1829
1830 2021-02-19 Alan Modra <amodra@gmail.com>
1831
1832 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
1833
1834 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
1835
1836 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
1837 SMART_RENAME.
1838 * arsup.c (ar_save): Likewise.
1839 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
1840 temporary file and adjust call to SMART_RENAME.
1841 (copy_main): Likewise.
1842 * rename.c [!S_ISLNK]: Remove definitions.
1843 (try_preserve_permissions): Remove function.
1844 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
1845 rename system call only if TO does not exist.
1846 * bucomm.h (smart_rename): Adjust declaration.
1847
1848 2021-02-18 Nick Clifton <nickc@redhat.com>
1849
1850 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
1851 address that is higher than the end address.
1852
1853 2021-02-17 Alan Modra <amodra@gmail.com>
1854
1855 * dwarf.c: Include limits.h.
1856 (CHAR_BIT): Provide backup define.
1857 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
1858 signed overflow checking.
1859 * testsuite/binutils-all/pr26548.s,
1860 * testsuite/binutils-all/pr26548.d,
1861 * testsuite/binutils-all/pr26548e.d: New tests.
1862 * testsuite/binutils-all/readelf.exp: Run them.
1863 (readelf_test): Drop unused "xfails" parameter. Update all uses.
1864
1865 2021-02-16 Jan Beulich <jbeulich@suse.com>
1866
1867 * dwarf.c (process_debug_info): Initialize "dwo_id".
1868
1869 2021-02-15 Alan Modra <amodra@gmail.com>
1870
1871 * objdump.c (load_specific_debug_section): Don't call
1872 bfd_cache_section_contents. Rearrange so that
1873 bfd_get_full_section_contents is not called on path where
1874 bfd_simple_get_relocated_section_contents is called.
1875 Don't set section->user_data.
1876 (free_debug_section): Always free section->start. Don't twiddle
1877 section flags.
1878 * readelf.c (load_specific_debug_section): Don't set user_data.
1879 * dwarf.h (struct dwarf_section): Remove use_data field.
1880 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
1881
1882 2021-02-15 Alan Modra <amodra@gmail.com>
1883
1884 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
1885 * testsuite/binutils-all/objdump.exp: Likewise.
1886
1887 2021-02-14 Alan Modra <amodra@gmail.com>
1888
1889 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
1890 to the symbol array.
1891 (slurp_dynamic_symtab): Likewise.
1892 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
1893
1894 2021-02-14 Alan Modra <amodra@gmail.com>
1895
1896 * Makefile.in: Regenerate.
1897 * doc/Makefile.in: Regenerate.
1898
1899 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1900
1901 * aclocal.m4: Regenerate.
1902
1903 2021-02-12 Nick Clifton <nickc@redhat.com>
1904
1905 * configure.ac (follow-debug-links): Add option to enable or
1906 disable the following of debug links by default. Set the
1907 default for the option to be 'follow'.
1908 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
1909 (dwarf_select_sections_by_names): Add no-follow-links option.
1910 (dwarf_select_sections_by_letter): Add 'N' option.
1911 * objdump.c (usage): Add conditional text describing the
1912 follow links option.
1913 (slurp_symtab): Ensure that there is a NULL entry at the end
1914 of the symbol table.
1915 (slurp_dynamic_symtab): Likewise.
1916 (dump_bfd): When extending the symbol table, ensure that there
1917 is still a NULL entry at the end.
1918 * readelf.c (usage): Add conditional text describing the
1919 follow links option.
1920 * doc/binutils.texi: Update documentation for objcopy and
1921 readelf.
1922 * doc/debug.options.texi: Update documentation of the
1923 follow-links option.
1924 * config.in: Regenerate.
1925 * configure: Regenerate.
1926 * testsuite/binutils-all/compress.exp: Add the -WN option to
1927 objdump command lines that are not expecting to follow links.
1928 * testsuite/binutils-all/readelf.exp: Add the
1929 --debug-dump=no-follow-links option to tests that are not
1930 expecting to follow debug links.
1931 * NEWS: Mention the new behaviour.
1932
1933 2021-02-12 Alan Modra <amodra@gmail.com>
1934
1935 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
1936 gas or ld fails to build a testcase rather than "unresolved".
1937 Report "fail" when readelf returns an error status rather than
1938 "unresolved".
1939 * testsuite/binutils-all/ar.exp: Likewise.
1940 * testsuite/binutils-all/compress.exp: Likewise.
1941 * testsuite/binutils-all/readelf.exp: Likewise.
1942
1943 2021-02-12 Alan Modra <amodra@gmail.com>
1944
1945 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
1946 "c" with "ccc" labels.
1947
1948 2021-02-12 Tom de Vries <tdevries@suse.de>
1949
1950 * dwarf.h (debug_info): Fix typo in comment.
1951
1952 2021-02-12 Tom de Vries <tdevries@suse.de>
1953
1954 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
1955 entries.
1956
1957 2021-02-12 Tom de Vries <tdevries@suse.de>
1958
1959 * dwarf.c (process_debug_info): Print DWO ID.
1960
1961 2021-02-11 Alan Modra <amodra@gmail.com>
1962
1963 PR 27290
1964 PR 27293
1965 PR 27295
1966 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
1967 Use bfd_malloc_and_get_section.
1968 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
1969 check namesz. Return NULL if descsz is too small. Ensure
1970 string table is terminated.
1971 (elf32_avr_get_device_info): Formatting. Add note_size param.
1972 Sanity check note.
1973 (elf32_avr_dump_mem_usage): Adjust to suit.
1974
1975 2021-02-10 Tom de Vries <tdevries@suse.de>
1976
1977 PR binutils/27391
1978 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
1979
1980 2021-02-10 Tom de Vries <tdevries@suse.de>
1981
1982 PR binutils/27371
1983 * dwarf.c (display_debug_ranges): Filter range lists according to
1984 section.
1985
1986 2021-02-09 Tom de Vries <tdevries@suse.de>
1987
1988 PR binutils/27370
1989 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
1990
1991 2021-02-09 Tom de Vries <tdevries@suse.de>
1992
1993 PR binutils/27386
1994 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
1995 DW_UT_split_compile.
1996
1997 2021-02-09 Alan Modra <amodra@gmail.com>
1998
1999 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
2000 symbianelf.
2001
2002 2021-02-07 Alan Modra <amodra@gmail.com>
2003
2004 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
2005 uninitialised on invalid input.
2006
2007 2021-02-06 Alan Modra <amodra@gmail.com>
2008
2009 PR 27349
2010 * rename.c (smart_rename): Test for existence and type of output
2011 file with lstat.
2012
2013 2021-02-05 Nick Clifton <nickc@redhat.com>
2014
2015 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
2016
2017 2021-02-05 Eli Zaretskii <eliz@gnu.org>
2018
2019 PR 27252
2020 * elfedit.c (check_file):
2021 * bucomm.c (get_file_size): Fix typos in comments.
2022
2023 2021-02-05 Alan Modra <amodra@gmail.com>
2024
2025 PR 27345
2026 * arsup.c (ar_save): Use stat rather than lstat.
2027
2028 2021-02-03 Alan Modra <amodra@gmail.com>
2029
2030 PR 27270
2031 PR 27284
2032 PR 26945
2033 * ar.c: Don't include libbfd.h.
2034 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
2035 bfd_stat rather than fstat on iostream. Move stat and fd tests
2036 outside of _WIN32 ifdef. Delete skip_stat variable.
2037 * arsup.c (temp_name, real_ofd): New static variables.
2038 (ar_open): Use make_tempname and bfd_fdopenw.
2039 (ar_save): Adjust to suit ar_open changes. Move stat output
2040 of _WIN32 ifdef.
2041 * objcopy.c: Don't include libbfd.h.
2042 (copy_file): Use bfd_stat.
2043
2044 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 PR binutils/27281
2047 * readelf.c (process_section_headers): Add 'R' and 'D' to
2048 "Key to Flags:".
2049 * testsuite/binutils-all/retain1a.d: Updated.
2050
2051 2021-01-30 Nick Clifton <nickc@redhat.com>
2052
2053 * README-how-to-make-a-release: Small updates after the 2.35.2
2054 release.
2055
2056 2021-01-28 Eli Zaretskii <eliz@gnu.org>
2057
2058 PR 4356
2059 * windres.c (quot): Use double quotes to protect strings on
2060 Windows platforms.
2061
2062 2021-01-28 Eli Zaretskii <eliz@gnu.org>
2063
2064 PR 27252
2065 * bucomm.c (get_file_size): Add code to handle /dev/null on
2066 Windows systems.
2067 * elfedit.c (check_file): Likewise.
2068
2069 2021-01-27 Nick Clifton <nickc@redhat.com>
2070
2071 * objcopy.c (copy_main): Remove conditional control of the calls
2072 to free, simplifying the code and making it easier to detect
2073 typos.
2074
2075 2021-01-26 Frederic Cambus <fred@statdns.com>
2076
2077 * objcopy.c (copy_main): Fix a double free happening when both
2078 --localize-symbols and --globalize-symbols options are invoked
2079 together.
2080
2081 2021-01-24 Nick Clifton <nickc@redhat.com>
2082
2083 * README-how-to-make-a-release: Minor updates after the 2.36 release.
2084
2085 2021-01-16 Alan Modra <amodra@gmail.com>
2086
2087 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
2088
2089 2021-01-15 Alan Modra <amodra@gmail.com>
2090
2091 PR 26539
2092 * readelf.c (uncompress_section_contents): Always call inflateEnd.
2093
2094 2021-01-14 Alexandre Oliva <oliva@gnu.org>
2095
2096 * MAINTAINERS: Update my email address.
2097
2098 2021-01-14 Nick Clifton <nickc@redhat.com>
2099
2100 * po/sv.po: Updated Swedish translation.
2101
2102 2021-01-13 Alan Modra <amodra@gmail.com>
2103
2104 * Makefile.in: Regenerate.
2105 * doc/Makefile.in: Regenerate.
2106
2107 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
2108
2109 PR 27037
2110 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
2111 and before exit.
2112 (i386_x64_trampoline): Add SEH annotations.
2113 (struct mac): Add how_seh field.
2114 (make_delay_head): If how_set field is true add SEh instructions.
2115
2116 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2117
2118 PR binutils/26792
2119 * configure.ac: Use GNU_MAKE_JOBSERVER.
2120 * aclocal.m4: Regenerated.
2121 * configure: Likewise.
2122
2123 2021-01-12 Nick Clifton <nickc@redhat.com>
2124
2125 * po/fr.po: Updated French translation.
2126
2127 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2128
2129 PR ld/27173
2130 * configure: Regenerated.
2131
2132 2021-01-11 Nick Clifton <nickc@redhat.com>
2133
2134 * po/pt.po: Updated Portuguese translation.
2135 * po/sr.po: Updated Serbian translation.
2136 * po/uk.po: Updated Ukranian translation.
2137
2138 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2139
2140 * configure: Regenerated.
2141
2142 2021-01-09 Nick Clifton <nickc@redhat.com>
2143
2144 * configure: Regenerate.
2145 * po/binutils.pot: Regenerate.
2146
2147 2021-01-09 Nick Clifton <nickc@redhat.com>
2148
2149 * 2.36 release branch crated.
2150 * README-how-to-make-a-release: Add note about updating Makefiles
2151 and libtool files.
2152 * BRANCHES: Add binutils-2.36-branch.
2153
2154 2021-01-09 Alan Modra <amodra@gmail.com>
2155
2156 * configure: Regenerate.
2157
2158 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2159
2160 * configure: Regenerate.
2161
2162 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2163
2164 PR 27109
2165 * objcopy.c (copy_object): Handle section symbols for
2166 non-relocatable inputs.
2167 * testsuite/binutils-all/readelf.exp (readelf_test): Check
2168 is_elf_unused_section_symbols.
2169 * testsuite/binutils-all/readelf.s-64: Updated.
2170 * testsuite/binutils-all/readelf.ss: Likewise.
2171 * testsuite/binutils-all/readelf.ss-64: Likewise.
2172 * testsuite/binutils-all/readelf.s-64-unused: New file.
2173 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
2174 * testsuite/binutils-all/readelf.ss-unused: Likewise.
2175 * testsuite/lib/binutils-common.exp
2176 (is_elf_unused_section_symbols): New proc.
2177
2178 2021-01-06 Reuben Thomas <rrt@sc3d.org>
2179
2180 * binutils/readelf.c: Correct grammar in comment.
2181
2182 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2183
2184 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
2185 * doc/binutils.texi: Correct grammar.
2186 * readelf.c (process_version_sections): Correct spelling of auxiliary
2187 in warning.
2188 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
2189
2190 2021-01-01 Alan Modra <amodra@gmail.com>
2191
2192 Update year range in copyright notice of all files.
2193
2194 For older changes see ChangeLog-2020
2195 \f
2196 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2197
2198 Copying and distribution of this file, with or without modification,
2199 are permitted in any medium without royalty provided the copyright
2200 notice and this notice are preserved.
2201
2202 Local Variables:
2203 mode: change-log
2204 left-margin: 8
2205 fill-column: 74
2206 version-control: never
2207 End: