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