]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/ChangeLog
gdbsupport: remove FUNCTION_NAME
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
1 2021-11-09 Nick Clifton <nickc@redhat.com>
2
3 * nm.c: Add --unicode option to control how unicode characters are
4 handled.
5 * objdump.c: Likewise.
6 * readelf.c: Likewise.
7 * strings.c: Likewise.
8 * binutils.texi: Document the new feature.
9 * NEWS: Document the new feature.
10 * testsuite/binutils-all/unicode.exp: New file.
11 * testsuite/binutils-all/nm.hex.unicode
12 * testsuite/binutils-all/strings.escape.unicode
13 * testsuite/binutils-all/objdump.highlight.unicode
14 * testsuite/binutils-all/readelf.invalid.unicode
15
16 2021-11-03 Tom Tromey <tromey@adacore.com>
17
18 * dwarf.c (display_debug_loc): Use section name in warnings.
19
20 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
21
22 * objdump.c (usage): --ctf now has an optional argument.
23 (main): Adjust accordingly.
24 (dump_ctf): Default it.
25 * doc/ctf.options.texi: Adjust.
26
27 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
28
29 * objdump.c (usage): --ctf-parent now takes a name, not a section.
30 (dump_ctf): Don't open a separate section; use the parent_name in
31 ctf_dict_open instead. Use ctf_archive_next, not ctf_archive_iter,
32 so we can pass down a member count.
33 (dump_ctf_archive_member): Add the member count; don't return
34 anything. Import parents into children no matter what the
35 parent's name, while still avoiding displaying the header for the
36 common parent name of ".ctf".
37 * readelf.c (usage): Adjust similarly.
38 (dump_section_as_ctf): Likewise.
39 (dump_ctf_archive_member): Likewise. Never stop iterating over
40 archive members, even if ctf_dump of one member fails.
41 * doc/ctf.options.texi: Adjust.
42
43 2021-10-19 Nick Clifton <nickc@redhat.com>
44
45 * nm.c (filter_symbols): Test for a NULL name before checking to
46 see if the symbol is __gnu_lto_slim.
47 * objcopy.c (filter_symbols): Likewise.
48
49 2021-09-30 Nick Clifton <nickc@redhat.com>
50
51 * objcopy.c (filter_symbols): Fail if attempting to dredefine
52 symbols in an LTO object file.
53
54 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
55
56 * configure: Regenerate.
57
58 2021-09-20 Andrew Burgess <andrew.burgess@embecosm.com>
59
60 * testsuite/binutils-all/riscv/riscv.exp: New file.
61 * testsuite/binutils-all/riscv/unknown.d: New file.
62 * testsuite/binutils-all/riscv/unknown.s: New file.
63
64 2021-09-07 Luis Machado <luis.machado@linaro.org>
65
66 Revert: [AArch64] MTE corefile support
67
68 2021-05-21 Luis Machado <luis.machado@linaro.org>
69
70 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
71
72 2021-08-11 Nick Clifton <nickc@redhat.com>
73
74 * po/pt.po: Updated Portuguese translation.
75
76 2021-08-10 Nick Clifton <nickc@redhat.com>
77
78 * po/sr.po: Updated Serbian translation.
79
80 2021-07-16 Nick Clifton <nickc@redhat.com>
81
82 * po/sv.po: Updated Swedish translation.
83
84 2021-07-14 Clément Chigot <clement.chigot@atos.net>
85
86 * dwarf.h (struct dwarf_section): Add XCOFF name.
87 * dwarf.c (struct dwarf_section_display): Update.
88 * objdump.c (load_debug_section): Add XCOFF name handler.
89 (dump_dwarf_section): Likewise.
90
91 2021-07-12 Nick Clifton <nickc@redhat.com>
92
93 * po/fr.po: Updated French translation.
94
95 2021-07-10 Alan Modra <amodra@gmail.com>
96
97 PR 28069
98 * dwarf.c (display_discr_list): Remove assertions. Delete "end"
99 parameter, use initial "data" pointer as the end. Formatting.
100 Don't count down bytes as they are read.
101 (read_and_display_attr_value): Adjust display_discr_list call.
102 (read_and_print_leb128): Don't pass __FILE__ and __LINE__ to
103 report_leb_status.
104 * dwarf.h (report_leb_status): Don't report file and line
105 numbers. Delete file and lnum parameters,
106 (READ_ULEB, READ_SLEB): Adjust.
107
108 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
109
110 * configure.ac: Check for strnlen declaration.
111 * configure, config.in: Regenerate.
112
113 2021-07-05 Alan Modra <amodra@gmail.com>
114
115 PR 28047
116 * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter.
117 Check DW_FORM_ref1 etc. arg against cu_end rather than end of
118 section. Adjust all callers.
119
120 2021-07-03 Nick Clifton <nickc@redhat.com>
121
122 * configure: Regenerate.
123 * po/opcodes.pot: Regenerate.
124 * README-how-to-make-a-release: Update.
125
126 2021-07-03 Nick Clifton <nickc@redhat.com>
127
128 * 2.37 release branch created.
129
130 2021-07-02 Alan Modra <amodra@gmail.com>
131
132 PR 28048
133 * dwarf.c (get_type_signedness): Don't run off end of buffer
134 printing DW_FORM_string attribute.
135
136 2021-07-01 Nick Clifton <nickc@redhat.com>
137
138 PR 28029
139 * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk.
140
141 2021-07-01 Andrei Homescu <ah@immunant.com>
142
143 * readelf.c (process_archive): Reset file position to the
144 beginning when calling process_object for thin archive members.
145 * testsuite/binutils-all/readelf.exp: Add test.
146 * testsuite/binutils-all/readelf.h.thin: New file.
147
148 2021-06-30 Tom Tromey <tom@tromey.com>
149
150 * dwarf.c (read_and_display_attr_value): Handle
151 DW_FORM_implicit_const.
152
153 2021-06-30 Richard Henderson <richard.henderson@linaro.org>
154
155 * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf
156 and DW_CFA_def_cfa_offset_sf have a signed offset.
157
158 2021-06-19 Alan Modra <amodra@gmail.com>
159
160 * dwarf.c (display_debug_lines_decoded): Use memcpy rather than
161 strncpy when trimming file name length to MAX_FILENAME_LENGTH.
162 Don't make an unnecessary copy when length is good.
163
164 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
165
166 * readelf.c (print_gnu_property_note): Handle
167 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
168 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
169
170 2021-06-15 Nick Clifton <nickc@redhat.com>
171
172 * readelf.c (get_note_type): Add support for NT_GO_BUILDID.
173
174 2021-06-15 Alan Modra <amodra@gmail.com>
175
176 * readelf.c (locate_dynamic_section, is_pie): New functions.
177 (get_file_type): Replace e_type parameter with filedata. Call
178 is_pie for ET_DYN. Update all callers.
179 (process_program_headers): Use local variables dynamic_addr and
180 dynamic_size, updating filedata on exit from function. Set
181 dynamic_size of 1 to indicate no dynamic section or segment.
182 Update tests of dynamic_size throughout.
183 * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output.
184
185 2021-06-14 Eric Botcazou <ebotcazou@adacore.com>
186
187 * dwarf.c (struct abbrev_attr): Change type of implicit_const.
188 (add_abbrev_attr): Likewise.
189 (process_abbrev_set): Likewise.
190 (display_debug_abbrev): Adjust to above change.
191
192 2021-06-12 Alan Modra <amodra@gmail.com>
193
194 * readelf.c (process_file_header): Don't clear section_headers.
195
196 2021-06-12 Alan Modra <amodra@gmail.com>
197
198 * readelf.c (get_section_headers): Don't test e_shoff here, leave
199 that to get_32bit_section_headers or get_64bit_section_headers.
200 (process_object): Throw away section header read to print file
201 header extension.
202
203 2021-06-11 Alan Modra <amodra@gmail.com>
204
205 * readelf.c (struct filedata): Move archive_file_offset and
206 archive_file_size earlier.
207 (free_filedata): Clear using memset.
208
209 2021-06-11 Alan Modra <amodra@gmail.com>
210
211 * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
212 (get_elf_symbols): ..this new function throughout.
213 (get_32bit_section_headers): Don't free section_headers.
214 (get_64bit_section_headers): Likewise.
215 (get_section_headers): New function, use throughout in place of
216 32bit and 64bit variants.
217 (get_dynamic_section): Similarly.
218 (process_section_headers): Don't free filedata memory here.
219 (get_file_header): Don't get section headers here..
220 (process_object): ..Read them here instead. Don't exit without
221 freeing filedata memory.
222
223 2021-06-09 Nick Clifton <nickc@redhat.com>
224
225 * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list.
226
227 2021-06-07 Jan Beulich <jbeulich@suse.com>
228
229 * dwarf.c (display_debug_aranges): Add u suffix to constant.
230
231 2021-05-29 Alan Modra <amodra@gmail.com>
232
233 * objdump (usage): Add missing \n.
234
235 2021-05-29 Alan Modra <amodra@gmail.com>
236
237 * readelf.c (parse_args): Call dwarf_select_sections_all on
238 --debug-dump without optarg.
239 (usage): Associate -w and --debug-dump options closely.
240 Split up help message. Remove extraneous blank lines around
241 ctf help.
242 * objdump.c (usage): Similarly.
243
244 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
245
246 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0
247 operand disassembly.
248 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
249
250 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
251
252 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000'
253 machine for disassembly.
254 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise.
255 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
256 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise.
257
258 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
259
260 PR ld/27905
261 * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9.
262
263 2021-05-27 Alan Modra <amodra@gmail.com>
264
265 * readelf (usage): Order -w letters to match --debug-dump= and
266 move common '=' for --debug-dump out of brackets.
267
268 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
269
270 PR ld/27905
271 * readelf.c (decode_x86_feature_2): Support
272 GNU_PROPERTY_X86_FEATURE_2_CODE16.
273
274 2021-05-23 Tiezhu Yang <yangtiezhu@loongson.cn>
275
276 * readelf.c (get_machine_name): Change Loongson Loongarch to
277 LoongArch.
278
279 2021-05-21 Luis Machado <luis.machado@linaro.org>
280
281 * readelf.c (get_note_type): Add missing NT_ARM_* entries.
282
283 2021-05-21 Luis Machado <luis.machado@linaro.org>
284
285 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
286
287 2021-05-19 Eli Schwartz <eschwartz@archlinux.org>
288
289 * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set.
290
291 2021-05-19 Alan Modra <amodra@gmail.com>
292
293 PR 27884
294 * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return
295 param with map_return, and return map for DW_FORM_ref_addr.
296 (get_type_signedness): Adjust calls to get_type_abbrev_from_form.
297 Pass returned cu map start and end to recursive call.
298 (read_and_display_attr_value): Similarly.
299
300 2021-05-19 Alan Modra <amodra@gmail.com>
301
302 PR 27879
303 * sysdump.c (getBARRAY): Sanity check size against max.
304 (getINT): Avoid UB shift left.
305
306 2021-05-15 Alan Modra <amodra@gmail.com>
307
308 * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow.
309 Delete dead code.
310
311 2021-05-15 Alan Modra <amodra@gmail.com>
312
313 * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in
314 length calculations.
315
316 2021-05-15 Alan Modra <amodra@gmail.com>
317
318 * dwarf.c (display_debug_names): Complain when header length is
319 too small. Avoid pointer UB. Sanity check augmentation string,
320 CU table, TU table and foreign TU table sizes.
321
322 2021-05-15 Alan Modra <amodra@gmail.com>
323
324 * dwarf.c (display_debug_frames): Delete initial_length_size.
325 Avoid pointer UB. Constrain data reads to length given in header.
326 Sanity check cie header length. Only skip up to next FDE on
327 finding augmentation data too long.
328
329 2021-05-15 Alan Modra <amodra@gmail.com>
330
331 * dwarf.c (read_cie): Add more sanity checks to ensure data
332 pointer is not bumped past end.
333
334 2021-05-15 Alan Modra <amodra@gmail.com>
335
336 * dwarf.c (display_debug_ranges): Delete initial_length_size.
337 Correct fallback size calculated on finding a reloc. Constrain
338 data reads to length given in header. Avoid pointer UB.
339
340 2021-05-15 Alan Modra <amodra@gmail.com>
341
342 * dwarf.c (display_debug_rnglists_list): Avoid pointer UB.
343
344 2021-05-15 Alan Modra <amodra@gmail.com>
345
346 * dwarf.c (display_debug_str_offsets): Constrain reads to length
347 given in header.
348
349 2021-05-15 Alan Modra <amodra@gmail.com>
350
351 * dwarf.c (display_debug_aranges): Delete initial_length_size.
352 Use end_ranges to constrain data reads to header length. Avoid
353 pointer UB.
354
355 2021-05-15 Alan Modra <amodra@gmail.com>
356
357 * dwarf.c (display_loc_list): Avoid pointer UB. Correct check
358 before reading uleb length. Warn on excess length.
359
360 2021-05-15 Alan Modra <amodra@gmail.com>
361
362 * dwarf.c (display_debug_macro): Print strings that might not
363 be zero terminated with %*s. Don't bump curr if unterminated.
364
365 2021-05-15 Alan Modra <amodra@gmail.com>
366
367 * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
368 Simplify length sanity check, and check for too small lengths.
369 Constrain data reads to header length. Avoid pointer UB.
370
371 2021-05-15 Alan Modra <amodra@gmail.com>
372
373 * dwarf.c (display_debug_macinfo): Print strings that might not
374 be zero terminated with %*s. Don't bump curr if unterminated.
375
376 2021-05-15 Alan Modra <amodra@gmail.com>
377
378 * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size.
379 Simplify length check. Constrain reads to length given by header.
380
381 2021-05-15 Alan Modra <amodra@gmail.com>
382
383 * dwarf.c (display_debug_lines_decoded): Don't use strnlen when
384 we have already checked for NUL termination.
385
386 2021-05-15 Alan Modra <amodra@gmail.com>
387
388 * dwarf.c (read_debug_line_header): Delete initial_length_size.
389 Avoid pointer UB. Keep within length specified by header.
390 Delete dead code.
391
392 2021-05-15 Alan Modra <amodra@gmail.com>
393
394 * dwarf.c (process_debug_info): Always do the first CU length
395 scan for sanity checks. Remove initial_length_size var and
396 instead calculate end_cu. Use end_cu to limit data reads.
397 Delete now dead code checking length.
398
399 2021-05-15 Alan Modra <amodra@gmail.com>
400
401 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
402
403 2021-05-15 Alan Modra <amodra@gmail.com>
404
405 * bucomm.h (_mul_overflow): Define.
406 * dwarf.c (get_encoded_value): Avoid pointer UB.
407
408 2021-05-13 Alan Modra <amodra@gmail.com>
409
410 PR 27861
411 * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
412 header length.
413
414 2021-05-13 Alan Modra <amodra@gmail.com>
415
416 PR 27860
417 * dwarf.c (display_debug_frames): Sanity check cie_off before
418 attempting to read cie.
419
420 2021-05-12 Alan Modra <amodra@gmail.com>
421
422 * dwarf.c (process_extended_line_op): Don't bump data pointer past
423 end when strnlen doesn't find string terminator.
424 (decode_location_expression): Remove dead code.
425 (skip_attr_bytes): Remove const from end param. Ensure data
426 pointer doesn't pass end.
427 (get_type_signedness): Remove const from end param.
428 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
429 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
430 (display_debug_pubnames_worker): Likewise.
431 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
432 than blindly incrementing data pointer.
433 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
434 compare pointers, compare lengths.
435
436 2021-05-12 Alan Modra <amodra@gmail.com>
437
438 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
439 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
440 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
441 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
442 SAFE_BYTE_GET followed by increment.
443 (process_debug_info): Likewise, and test bytes remaining before
444 incrementing section_begin rather than using pointer comparison.
445 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
446 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
447
448 2021-05-12 Alan Modra <amodra@gmail.com>
449
450 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
451 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
452 SAFE_BYTE_GET_AND_INC.
453 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
454 (process_debug_info, process_cu_tu_index): Likewise.
455 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
456 (byte_get, byte_get_little_endian, byte_get_big_endian),
457 (byte_get_signed): Make size param unsigned. Remove code dealing
458 with 4-byte elf_vma.
459 (byte_get_64): Delete.
460 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
461 (byte_get, byte_get_little_endian, byte_get_big_endian),
462 (byte_get_signed): Update prototypes.
463 (byte_get_64): Delete.
464
465 2021-05-12 Alan Modra <amodra@gmail.com>
466
467 PR 27836
468 * dwarf.c (display_debug_frames): Don't compare pointers derived
469 from user input. Test offset against bounds instead.
470
471 2021-05-12 Alan Modra <amodra@gmail.com>
472
473 PR 27853
474 * dwarf.c (display_formatted_table): Test for data >= end rather
475 than data == end.
476 (process_extended_line_op): Likewise.
477 (display_debug_lines_raw): Likewise.
478 (display_debug_lines_decoded): Likewise.
479
480 2021-05-12 Alan Modra <amodra@gmail.com>
481
482 PR 27849
483 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
484 Sanity check section size for version and padding too. Correct
485 index sanity check. Handle multiple tables in .debug_str_offsets.
486
487 2021-05-11 Hans-Peter Nilsson <hp@axis.com>
488
489 * dwarf.c (process_abbrev_set): Properly parenthesize before
490 casting to unsigned long.
491
492 2021-05-11 Alan Modra <amodra@gmail.com>
493
494 PR 27845
495 * dwarf.c (process_abbrev_set): Replace start and end parameters
496 with section, abbrev_base, abbrev_size, abbrev_offset. Update
497 all callers. Sanity check parameters correctly and emit warnings
498 here rather than..
499 (process_debug_info): ..here.
500
501 2021-05-10 Thomas Wolff <towo@towo.net>
502
503 PR 4356
504 PR 26865
505 PR 27594
506 * windres.c (quot): Revert previous delta. Do not use double
507 quotes when spaces are detected in options.
508 * doc/binutils.texi (windres): Remove suggestion that the
509 --preprocessor option can take arguments.
510
511 2021-05-10 Alan Modra <amodra@gmail.com>
512
513 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
514 END rather than adding amount to PTR.
515 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
516
517 2021-05-09 Alan Modra <amodra@gmail.com>
518
519 * objcopy.c (eq_string): Delete.
520 (create_symbol_htab): Use htab_eq_string.
521
522 2021-05-08 Mike Frysinger <vapier@gentoo.org>
523
524 * README-how-to-make-a-release: Update html & pdf entries.
525
526 2021-05-08 Mike Frysinger <vapier@gentoo.org>
527
528 * doc/Makefile.am (html-local, binutils/index.html): New targets.
529 * doc/Makefile.in: Regenerate.
530
531 2021-05-08 Mike Frysinger <vapier@gentoo.org>
532
533 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
534 * doc/Makefile.in: Regenerate.
535
536 2021-05-07 Nick Clifton <nickc@redhat.com>
537
538 * readelf.c (no_processor_specific_unwind): New function.
539 (process_unwind): Use no_processor_specific_unwind for X86
540 targets.
541
542 2021-05-07 Michael Forney <mforney@mforney.org>
543
544 * dwarf.c: Don't omit second operand of '?' operator.
545
546 2021-04-30 Nick Clifton <nickc@redhat.com>
547
548 PR 27796
549 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
550 .debug_sup section.
551
552 2021-04-29 Nick Clifton <nickc@redhat.com>
553
554 PR 27594
555 * doc/binutils.texi (windres): Correct the description of the
556 default value of the --preprocessor argument.
557
558 2021-04-27 Nick Clifton <nickc@redhat.com>
559
560 PR 27779
561 * dwarf.c (parse_gnu_debuglink): Reject empty names.
562 (parse_gnu_debugaltlink): Likewise.
563
564 2021-04-22 Clément Chigot <clement.chigot@atos.net>
565
566 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
567 aux structures.
568
569 2021-04-21 Nick Lott <nick.lott@gmail.com>
570
571 PR 27672
572 * readelf.c (sym_base): New variable.
573 (enum print_mode): Add more modes.
574 (print_vma): Add suport for new modes.
575 (options): Add sym-base.
576 (usage): Add sym-base.
577 (parse_args): Add support for --sym-base.
578 (print_dynamic_symbol_size): New function.
579 (print_dynamic_symbol): Use new function.
580 * doc/binutils.texi: Document the new feature.
581 * NEWS: Mention the new feature.
582
583 2021-04-21 Nick Clifton <nickc@redhat.com>
584
585 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
586 Adjust expected output to allow for named section symbols.
587 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
588 Likewise.
589 * testsuite/binutils-all/readelf.s-64: Likewise.
590 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
591 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
592 * testsuite/binutils-all/readelf.ss-unused: Likewise.
593
594 2021-04-21 Luo Longjun <luolongjun@huawei.com>
595
596 * readelf.c (print_dynamic_symbol): Print the section name for
597 section symbols without a name of their own.
598
599 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
600
601 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
602 add him to Past Maintainers.
603 Update my email address.
604
605 2021-04-19 Nick Clifton <nickc@redhat.com>
606
607 PR 21702
608 * arsup.c (ar_addmod): Enable plugin support, if available.
609
610 2021-04-19 Nick Clifton <nickc@redhat.com>
611
612 * rename.c: (get_stat_atime_ns): Add prototype.
613 (get_stat_mtime_ns): Add prototype.
614
615 2021-04-16 Alan Modra <amodra@gmail.com>
616
617 PR 27725
618 * rename.c (get_stat_atime, get_stat_mtime): Make static.
619 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
620
621 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
622
623 PR 27725
624 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
625 (get_stat_mtime_ns): Likewise.
626
627 2021-04-15 Alan Modra <amodra@gmail.com>
628
629 PR 27725
630 * configure.ac: Check for sys/time.h and utimensat. Use standard
631 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
632 members of struct stat.
633 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
634 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
635 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
636 (get_stat_atime, get_stat_mtime): Likewise.
637 (set_times): Choose first available of utimensat, utimes, utime.
638 Use above inline functions to set timespec and timeval values.
639 * configure: Regenerate.
640 * config.in: Regenerate.
641 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
642 file timestamp when --preserve-dates is used.
643
644 2021-04-15 Alan Modra <amodra@gmail.com>
645
646 PR 27456
647 * rename.c (smart_rename): When TO and FROM are equal, just set
648 file timestamp.
649 * objcopy.c (strip_main, copy_main): Always call smart_rename.
650
651 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
652
653 PR binutils/27708
654 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
655 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
656 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
657 test.
658
659 2021-04-14 Mark Harmstone <mark@harmstone.com>
660
661 PR 27686
662 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
663 end of the structure.
664
665 2021-04-14 Frederic Cambus <fred@statdns.com>
666
667 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
668 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
669
670 2021-04-14 Alan Modra <amodra@gmail.com>
671
672 PR 27716
673 * objdump.c (show_line): Don't limit paths to PATH_MAX.
674 * readelf.c (struct filedata): Change program_interpreter from
675 a char array to a char pointer.
676 (process_program_headers): Sanity check PT_INTERP p_filesz.
677 Malloc program_interpreter using p_filesz and read directly from
678 file.
679 (process_dynamic_section): Check program_interpreter is non-NULL.
680 (free_filedata): New function, split out from..
681 (process_object): ..here.
682 (close_debug_file): Call free_filedata.
683 * sysdep.h: Don't include sys/param.h.
684 (PATH_MAX): Don't define.
685 * configure.ac: Don't check for sys/param.h.
686 * configure: Regenerate.
687
688 2021-04-13 Frederic Cambus <fred@statdns.com>
689
690 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
691 check for NT_NETBSD_PAX.
692
693 2021-04-12 Alan Modra <amodra@gmail.com>
694
695 * configure.ac (--enable-checking): Add support.
696 * config.in: Regenerate.
697 * configure: Regenerate.
698
699 2021-04-09 Alan Modra <amodra@gmail.com>
700
701 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
702 dynrelcount.
703 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
704 (disassemble_section, disassemble_data): Likewise.
705
706 2021-04-06 Alan Modra <amodra@gmail.com>
707
708 * objdump.c (objdump_symbol_at_address): Return asymbol*.
709
710 2021-04-06 Alan Modra <amodra@gmail.com>
711
712 * NEWS: Mention C99 requirement.
713 * README: Likewise. Modernise examples and "Reporting bugs".
714
715 2021-04-05 Alan Modra <amodra@gmail.com>
716
717 * configure.ac: Assume long long is available. Don't test for
718 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
719 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
720 strcoll, setlocale, setmode or location of time_t. Don't check
721 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
722 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
723 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
724 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
725 locale.h, string.h and stdlib.h unconditionally. Remove various
726 fallback declarations. Assume long long is available.
727 * addr2line.c: Don't test HAVE_SETLOCALE.
728 * ar.c: Likewise.
729 * coffdump.c: Likewise.
730 * dlltool.c: Likewise.
731 * dllwrap.c: Likewise.
732 * elfedit.c: Likewise.
733 * nm.c: Likewise.
734 * objcopy.c: Likewise.
735 * objdump.c: Likewise.
736 * readelf.c: Likewise.
737 * size.c: Likewise.
738 * srconv.c: Likewise.
739 * strings.c: Likewise.
740 * sysdump.c: Likewise.
741 * windmc.c: Likewise.
742 * windres.c: Likewise.
743 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
744 * dwarf.c: Include limits.h unconditionally. Assume long long
745 is available.
746 * nm.c: Don't test HAVE_STRCOLL.
747 * readelf.c: Don't test HAVE_WCHAR_H.
748 * strings.c: Assume long long is available.
749 * syslex.l: Include string.h unconditionally.
750 * aclocal.m4: Regenerate.
751 * config.in: Regenerate.
752 * configure: Regenerate.
753 * Makefile.in: Regenerate.
754 * doc/Makefile.in: Regenerate.
755
756 2021-04-01 Martin Liska <mliska@suse.cz>
757
758 * elfcomm.h (strneq): Remove strneq and use startswith.
759 * readelf.c (ia64_process_unwind): Likewise.
760 (process_note): Likewise.
761
762 2021-04-01 Martin Liska <mliska@suse.cz>
763
764 * dllwrap.c: Use startswith function.
765 * objcopy.c (is_dwo_section): Likewise.
766 (handle_remove_section_option): Likewise.
767 (copy_main): Likewise.
768 * objdump.c (is_significant_symbol_name): Likewise.
769
770 2021-04-01 Martin Liska <mliska@suse.cz>
771
772 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
773 startswith.
774 (display_debug_lines_decoded): Likewise.
775 (display_debug_links): Likewise.
776 * elfcomm.c (setup_archive): Likewise.
777 * elfcomm.h (const_strneq): Likewise.
778 * readelf.c (process_section_headers): Likewise.
779 (slurp_ia64_unwind_table): Likewise.
780 (slurp_hppa_unwind_table): Likewise.
781 (decode_arm_unwind): Likewise.
782 (display_debug_section): Likewise.
783 (process_note): Likewise.
784
785 2021-03-31 Alan Modra <amodra@gmail.com>
786
787 * sysdep.h (POISON_BFD_BOOLEAN): Define.
788 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
789 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
790 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
791 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
792 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
793 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
794 * windmc.c, * windmc.h, * windres.c, * winduni.c,
795 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
796 and TRUE with true throughout.
797
798 2021-03-31 Alan Modra <amodra@gmail.com>
799
800 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
801 * dwarf.c: Likewise.
802
803 2021-03-31 Alan Modra <amodra@gmail.com>
804
805 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
806
807 2021-03-29 Alan Modra <amodra@gmail.com>
808
809 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
810 * dwarf.c (read_and_display_attr_value): Likewise.
811 (display_debug_str_offsets): Likewise.
812 * objdump.c (dump_bfd): Likewise.
813 * readelf.c (dump_section_as_strings): Likewise.
814 (dump_section_as_bytes): Likewise.
815
816 2021-03-29 Alan Modra <amodra@gmail.com>
817
818 * objdump.c (process_links): Use type int.
819 * readelf.c (request_dump): Don't increment do_dump, set it.
820 * windint.h (target_is_bigendian): Use type bfd_boolean.
821 * windmc.c (target_is_bigendian): Likewise.
822 * windres.c (target_is_bigendian): Likewise.
823
824 2021-03-22 Martin Liska <mliska@suse.cz>
825
826 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
827 with startswith.
828 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
829 * objcopy.c (is_mergeable_note_section): Likewise.
830 * objdump.c (dump_dwarf_section): Likewise.
831 * prdbg.c (pr_method_type): Likewise.
832 (pr_class_baseclass): Likewise.
833 (tg_class_baseclass): Likewise.
834 * readelf.c (process_lto_symbol_tables): Likewise.
835 * stabs.c (ULLHIGH): Likewise.
836 (parse_stab_argtypes): Likewise.
837 (stab_demangle_function_name): Likewise.
838
839 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
840
841 * readelf.c (get_machine_name): Add EM_INTELGT.
842
843 2021-03-18 Nick Clifton <nickc@redhat.com>
844
845 PR 27478
846 * readelf.c (dump_section_as_strings): Mention separate filename.
847 (dump_section_as_bytes): Likewise.
848 (dump_section_as_ctf): Likewise.
849 (initialise_dumkps_byname): Only issue a warning for missing
850 sections if processing the main file.
851 (process_section_contents): Only issue a warning for unsumped
852 section numbers in the main file.
853 (initialise_dump_sects): New function. Contains code extracted
854 from ...
855 (process_object): ... here. Also call initialise_dump_sects for
856 separate files.
857
858 2021-03-16 Nick Clifton <nickc@redhat.com>
859
860 PR 27534
861 * readelf.c (display_debug_section): Also retain .debug_addr
862 sections.
863
864 2021-03-16 Nick Clifton <nickc@redhat.com>
865
866 PR 27533
867 * readelf.c (process_section_contents): Only dump debug
868 information for separate files unless process_links is enabled.
869 (process_object): Always call process_section_contents for
870 separate info files.
871
872 2021-03-15 Nick Clifton <nickc@redhat.com>
873
874 PR 27487
875 * nm.c (FORMAT_JUST_SYMBOLS): Define.
876 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
877 (long_options): Add just-symbols.
878 (set_output_format): Add support for just-symbols.
879 (get_print_format): Likewise.
880 (do_not_print_object_filename): New function.
881 (do_not_print_archive_filename): New function.
882 (do_not_print_archive_member): New function.
883 (do_not_print_symbol_filename): New function.
884 (just_print_symbol_name): New function.
885 (main): Handle --just-symbols.
886 * NEWS: Mention the new feature.
887 * doc/binutils.texi: Document the new feature.
888
889 2021-03-12 Clément Chigot <clement.chigot@atos.net>
890
891 * od-xcoff.c: Replace RTB by TRL entry.
892
893 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
894 Andrew Burgess <andrew.burgess@embecosm.com>
895
896 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
897
898 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
899 Andrew Burgess <andrew.burgess@embecosm.com>
900
901 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
902
903 2021-03-05 Nick Clifton <nickc@redhat.com>
904
905 PR 27387
906 * dwarf.c (display_debug_macro): Handle the displaying of
907 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
908 .debug_macro.dwo sections.
909
910 2021-03-04 Nick Clifton <nickc@redhat.com>
911
912 PR 27478
913 * objdump.c (process_links): New variable.
914 (usage): Add --process-links.
915 (long_options): Likewise.
916 (dump_bfd): Stop processing once the bfd has been loaded unless
917 this is the main file or process_links has been enabled.
918 (main): Handle the process-links option.
919 * readelf.c (process_links): New variable.
920 (struct filedata): Add is_separate field.
921 (options): Add --process-links.
922 (usage): Likewise.
923 (parse_args): Likewise.
924 (process_file_header): Include the filename when dumping
925 information for separate debuginfo files.
926 (process_program_headers): Likewise.
927 (process_section_headers): Likewise.
928 (process_section_groups): Likewise.
929 (process_relocs): Likewise.
930 (process_dynamic_section): Likewise.
931 (process_version_sections): Likewise.
932 (display_lto_symtab): Likewise.
933 (process_symbol_table): Likewise.
934 (process_syminfo): Likewise.
935 (initialise_dumps_by_name): Likewise.
936 (process_section_contents): Likewise.
937 (process_notes_at): Likewise.
938 (process_notes): Likewise.
939 (open_file): Add is_separate parameter. Use to initialise the
940 is_separate field in the filedata structure.
941 (open_deug): Update call to open_file.
942 (process_object): Add processing of the contents of separate
943 debuginfo files, gated by the process_links variable.
944 (process_archive): Update call to open_file.
945 (process_file): Initialise the is_separate field in the filedata
946 structure.
947 * dwarf.c (load_separate_debug_info_file): Only report the
948 loading of a separate file if debug links are being dumped.
949 * objcopy.c (keep_section_symbols): New variable.
950 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
951 (strip_options): Add keep-section-symbols.
952 (copy_options): Likewise.
953 (copy_usage): Likewise.
954 (strip_usage): Likewise.
955 (copy_object): Keep section symbols if requested by command line
956 option.
957 (strip_main): Handle --keep-section-symbols.
958 (copy_main): Likewise.
959 * doc/binutils.texi: Document the new options.
960 * NEWS: Mention the new features.
961 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
962 Update options passed to objdump. Use diff rather than cmp to
963 compare the dumped data.
964 * testsuite/binutils-all/objdump.WK2: Update regexp.
965 * testsuite/binutils-all/objdump.WK3: Update regexp.
966 * testsuite/binutils-all/objdump.exp: Use --process-links
967 instead of --dwarf=follow-links.
968 * testsuite/binutils-all/readelf.exp (readelf_test): Include
969 readelf's output in the log when the test fails.
970 Add the -P option to the -wKis test.
971 * testsuite/binutils-all/readelf.wKis: Update expected output.
972
973 2021-03-03 Alan Modra <amodra@gmail.com>
974
975 PR 27493
976 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
977 * NEWS: Mention feature.
978
979 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
980
981 PR binutils/27486
982 * dwarf.c (load_separate_debug_info): Issue warning only if
983 do_debug_links is set.
984 * testsuite/binutils-all/compress.exp: Run objdump and readelf
985 with missing debug file.
986
987 2021-03-01 Alan Modra <amodra@gmail.com>
988
989 PR 27128
990 * doc/binutils.texi: Add nm --with-symbol-versions and
991 --without-symbol-versions documentation.
992 * nm.c (with_symbol_versions): New variable.
993 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
994 (long_options): Make --with-symbol-versions entry twiddle the flag.
995 Add --without-symbol-versions.
996 (print_symname): Strip version when !with_symbol_versions. Add
997 dynamic version info under control of with_symbol_versions.
998 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
999
1000 2021-02-26 Fangrui Song <maskray@google.com>
1001
1002 PR 27408
1003 * readelf.c (quiet): New option flag.
1004 (enum long_option_values): New enum to hold long option value.
1005 (long_options): Add --quiet.
1006 (usage): Mention --quiet.
1007 (display_rel_file): If quiet is enabled, suppress "no symbols".
1008 (main): Handle the new option.
1009 * NEWS: Mention --quiet.
1010 * docs/binutils.texi: Document --quiet.
1011
1012 2021-02-26 Tom de Vries <tdevries@suse.de>
1013
1014 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
1015
1016 2021-02-26 Tom de Vries <tdevries@suse.de>
1017
1018 PR 27390
1019 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
1020 DW_FORM_addrx*.
1021 (read_and_display_attr_value): Likewise.
1022
1023 2021-02-25 Nick Clifton <nickc@redhat.com>
1024
1025 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
1026 forms.
1027 (read_and_display_attr_value): Handle sup forms.
1028 (display_debug_sup): New function. Displays the contents of a
1029 .debug_sup section.
1030 (load_debug_sup_file): New function. Loads the contents of a file
1031 referenced by a .debug_sup section.
1032 (check_for_and_load_links): Call load_debug_sup_file.
1033 (debug_displays): Add entry for .debug_sup.
1034 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
1035 * readelf.c (process_section_headers): Add support for debug_sup.
1036 * doc/debug.options.texi: Note that the =links option will display
1037 the contents of .debug_sup sections.
1038 * NEWS: Mention the new support.
1039
1040 2021-02-25 Alan Modra <amodra@gmail.com>
1041
1042 PR 27456
1043 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
1044
1045 2021-02-24 Nick Clifton <nickc@redhat.com>
1046
1047 PR 27285
1048 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
1049 when adding together the section sizes.
1050
1051 2021-02-24 Nick Clifton <nickc@redhat.com>
1052
1053 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
1054 build notes.
1055 * readelf.c (print_gnu_build_attribute_description): Likewise.
1056
1057 2021-02-24 Alan Modra <amodra@gmail.com>
1058 Siddhesh Poyarekar <siddhesh@gotplt.org>
1059
1060 PR 27456
1061 * bucomm.h (smart_rename): Update prototype.
1062 * rename.c (smart_rename): Add fromfd and preserve_dates params.
1063 Pass fromfd and target_stat to simple_copy. Call set_times
1064 when preserve_dates.
1065 (simple_copy): Accept fromfd rather than from filename. Add
1066 target_stat param. Rewind fromfd rather than opening. Open
1067 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
1068 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
1069 closing output temp file, and pass tmpfd to smart_rename.
1070 * arsup.c (temp_fd): Rename from real_fd.
1071 (ar_save): Dup temp_fd and pass to smart_rename.
1072 * objcopy.c (strip_main, copy_main): Likewise, and pass
1073 preserve_dates.
1074
1075 2021-02-24 Alan Modra <amodra@gmail.com>
1076
1077 PR 27456
1078 * rename.c: Tidy throughout.
1079 (smart_rename): Always copy. Remove windows specific code.
1080
1081 2021-02-20 Alan Modra <amodra@gmail.com>
1082
1083 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
1084 (run_dump_test): Fail if expecting errors from a file like we do
1085 for error strings, if no error is seen.
1086
1087 2021-02-19 Alan Modra <amodra@gmail.com>
1088
1089 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
1090
1091 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
1092
1093 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
1094 SMART_RENAME.
1095 * arsup.c (ar_save): Likewise.
1096 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
1097 temporary file and adjust call to SMART_RENAME.
1098 (copy_main): Likewise.
1099 * rename.c [!S_ISLNK]: Remove definitions.
1100 (try_preserve_permissions): Remove function.
1101 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
1102 rename system call only if TO does not exist.
1103 * bucomm.h (smart_rename): Adjust declaration.
1104
1105 2021-02-18 Nick Clifton <nickc@redhat.com>
1106
1107 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
1108 address that is higher than the end address.
1109
1110 2021-02-17 Alan Modra <amodra@gmail.com>
1111
1112 * dwarf.c: Include limits.h.
1113 (CHAR_BIT): Provide backup define.
1114 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
1115 signed overflow checking.
1116 * testsuite/binutils-all/pr26548.s,
1117 * testsuite/binutils-all/pr26548.d,
1118 * testsuite/binutils-all/pr26548e.d: New tests.
1119 * testsuite/binutils-all/readelf.exp: Run them.
1120 (readelf_test): Drop unused "xfails" parameter. Update all uses.
1121
1122 2021-02-16 Jan Beulich <jbeulich@suse.com>
1123
1124 * dwarf.c (process_debug_info): Initialize "dwo_id".
1125
1126 2021-02-15 Alan Modra <amodra@gmail.com>
1127
1128 * objdump.c (load_specific_debug_section): Don't call
1129 bfd_cache_section_contents. Rearrange so that
1130 bfd_get_full_section_contents is not called on path where
1131 bfd_simple_get_relocated_section_contents is called.
1132 Don't set section->user_data.
1133 (free_debug_section): Always free section->start. Don't twiddle
1134 section flags.
1135 * readelf.c (load_specific_debug_section): Don't set user_data.
1136 * dwarf.h (struct dwarf_section): Remove use_data field.
1137 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
1138
1139 2021-02-15 Alan Modra <amodra@gmail.com>
1140
1141 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
1142 * testsuite/binutils-all/objdump.exp: Likewise.
1143
1144 2021-02-14 Alan Modra <amodra@gmail.com>
1145
1146 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
1147 to the symbol array.
1148 (slurp_dynamic_symtab): Likewise.
1149 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
1150
1151 2021-02-14 Alan Modra <amodra@gmail.com>
1152
1153 * Makefile.in: Regenerate.
1154 * doc/Makefile.in: Regenerate.
1155
1156 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1157
1158 * aclocal.m4: Regenerate.
1159
1160 2021-02-12 Nick Clifton <nickc@redhat.com>
1161
1162 * configure.ac (follow-debug-links): Add option to enable or
1163 disable the following of debug links by default. Set the
1164 default for the option to be 'follow'.
1165 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
1166 (dwarf_select_sections_by_names): Add no-follow-links option.
1167 (dwarf_select_sections_by_letter): Add 'N' option.
1168 * objdump.c (usage): Add conditional text describing the
1169 follow links option.
1170 (slurp_symtab): Ensure that there is a NULL entry at the end
1171 of the symbol table.
1172 (slurp_dynamic_symtab): Likewise.
1173 (dump_bfd): When extending the symbol table, ensure that there
1174 is still a NULL entry at the end.
1175 * readelf.c (usage): Add conditional text describing the
1176 follow links option.
1177 * doc/binutils.texi: Update documentation for objcopy and
1178 readelf.
1179 * doc/debug.options.texi: Update documentation of the
1180 follow-links option.
1181 * config.in: Regenerate.
1182 * configure: Regenerate.
1183 * testsuite/binutils-all/compress.exp: Add the -WN option to
1184 objdump command lines that are not expecting to follow links.
1185 * testsuite/binutils-all/readelf.exp: Add the
1186 --debug-dump=no-follow-links option to tests that are not
1187 expecting to follow debug links.
1188 * NEWS: Mention the new behaviour.
1189
1190 2021-02-12 Alan Modra <amodra@gmail.com>
1191
1192 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
1193 gas or ld fails to build a testcase rather than "unresolved".
1194 Report "fail" when readelf returns an error status rather than
1195 "unresolved".
1196 * testsuite/binutils-all/ar.exp: Likewise.
1197 * testsuite/binutils-all/compress.exp: Likewise.
1198 * testsuite/binutils-all/readelf.exp: Likewise.
1199
1200 2021-02-12 Alan Modra <amodra@gmail.com>
1201
1202 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
1203 "c" with "ccc" labels.
1204
1205 2021-02-12 Tom de Vries <tdevries@suse.de>
1206
1207 * dwarf.h (debug_info): Fix typo in comment.
1208
1209 2021-02-12 Tom de Vries <tdevries@suse.de>
1210
1211 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
1212 entries.
1213
1214 2021-02-12 Tom de Vries <tdevries@suse.de>
1215
1216 * dwarf.c (process_debug_info): Print DWO ID.
1217
1218 2021-02-11 Alan Modra <amodra@gmail.com>
1219
1220 PR 27290
1221 PR 27293
1222 PR 27295
1223 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
1224 Use bfd_malloc_and_get_section.
1225 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
1226 check namesz. Return NULL if descsz is too small. Ensure
1227 string table is terminated.
1228 (elf32_avr_get_device_info): Formatting. Add note_size param.
1229 Sanity check note.
1230 (elf32_avr_dump_mem_usage): Adjust to suit.
1231
1232 2021-02-10 Tom de Vries <tdevries@suse.de>
1233
1234 PR binutils/27391
1235 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
1236
1237 2021-02-10 Tom de Vries <tdevries@suse.de>
1238
1239 PR binutils/27371
1240 * dwarf.c (display_debug_ranges): Filter range lists according to
1241 section.
1242
1243 2021-02-09 Tom de Vries <tdevries@suse.de>
1244
1245 PR binutils/27370
1246 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
1247
1248 2021-02-09 Tom de Vries <tdevries@suse.de>
1249
1250 PR binutils/27386
1251 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
1252 DW_UT_split_compile.
1253
1254 2021-02-09 Alan Modra <amodra@gmail.com>
1255
1256 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
1257 symbianelf.
1258
1259 2021-02-07 Alan Modra <amodra@gmail.com>
1260
1261 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
1262 uninitialised on invalid input.
1263
1264 2021-02-06 Alan Modra <amodra@gmail.com>
1265
1266 PR 27349
1267 * rename.c (smart_rename): Test for existence and type of output
1268 file with lstat.
1269
1270 2021-02-05 Nick Clifton <nickc@redhat.com>
1271
1272 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
1273
1274 2021-02-05 Eli Zaretskii <eliz@gnu.org>
1275
1276 PR 27252
1277 * elfedit.c (check_file):
1278 * bucomm.c (get_file_size): Fix typos in comments.
1279
1280 2021-02-05 Alan Modra <amodra@gmail.com>
1281
1282 PR 27345
1283 * arsup.c (ar_save): Use stat rather than lstat.
1284
1285 2021-02-03 Alan Modra <amodra@gmail.com>
1286
1287 PR 27270
1288 PR 27284
1289 PR 26945
1290 * ar.c: Don't include libbfd.h.
1291 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
1292 bfd_stat rather than fstat on iostream. Move stat and fd tests
1293 outside of _WIN32 ifdef. Delete skip_stat variable.
1294 * arsup.c (temp_name, real_ofd): New static variables.
1295 (ar_open): Use make_tempname and bfd_fdopenw.
1296 (ar_save): Adjust to suit ar_open changes. Move stat output
1297 of _WIN32 ifdef.
1298 * objcopy.c: Don't include libbfd.h.
1299 (copy_file): Use bfd_stat.
1300
1301 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
1302
1303 PR binutils/27281
1304 * readelf.c (process_section_headers): Add 'R' and 'D' to
1305 "Key to Flags:".
1306 * testsuite/binutils-all/retain1a.d: Updated.
1307
1308 2021-01-30 Nick Clifton <nickc@redhat.com>
1309
1310 * README-how-to-make-a-release: Small updates after the 2.35.2
1311 release.
1312
1313 2021-01-28 Eli Zaretskii <eliz@gnu.org>
1314
1315 PR 4356
1316 * windres.c (quot): Use double quotes to protect strings on
1317 Windows platforms.
1318
1319 2021-01-28 Eli Zaretskii <eliz@gnu.org>
1320
1321 PR 27252
1322 * bucomm.c (get_file_size): Add code to handle /dev/null on
1323 Windows systems.
1324 * elfedit.c (check_file): Likewise.
1325
1326 2021-01-27 Nick Clifton <nickc@redhat.com>
1327
1328 * objcopy.c (copy_main): Remove conditional control of the calls
1329 to free, simplifying the code and making it easier to detect
1330 typos.
1331
1332 2021-01-26 Frederic Cambus <fred@statdns.com>
1333
1334 * objcopy.c (copy_main): Fix a double free happening when both
1335 --localize-symbols and --globalize-symbols options are invoked
1336 together.
1337
1338 2021-01-24 Nick Clifton <nickc@redhat.com>
1339
1340 * README-how-to-make-a-release: Minor updates after the 2.36 release.
1341
1342 2021-01-16 Alan Modra <amodra@gmail.com>
1343
1344 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
1345
1346 2021-01-15 Alan Modra <amodra@gmail.com>
1347
1348 PR 26539
1349 * readelf.c (uncompress_section_contents): Always call inflateEnd.
1350
1351 2021-01-14 Alexandre Oliva <oliva@gnu.org>
1352
1353 * MAINTAINERS: Update my email address.
1354
1355 2021-01-14 Nick Clifton <nickc@redhat.com>
1356
1357 * po/sv.po: Updated Swedish translation.
1358
1359 2021-01-13 Alan Modra <amodra@gmail.com>
1360
1361 * Makefile.in: Regenerate.
1362 * doc/Makefile.in: Regenerate.
1363
1364 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
1365
1366 PR 27037
1367 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
1368 and before exit.
1369 (i386_x64_trampoline): Add SEH annotations.
1370 (struct mac): Add how_seh field.
1371 (make_delay_head): If how_set field is true add SEh instructions.
1372
1373 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1374
1375 PR binutils/26792
1376 * configure.ac: Use GNU_MAKE_JOBSERVER.
1377 * aclocal.m4: Regenerated.
1378 * configure: Likewise.
1379
1380 2021-01-12 Nick Clifton <nickc@redhat.com>
1381
1382 * po/fr.po: Updated French translation.
1383
1384 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1385
1386 PR ld/27173
1387 * configure: Regenerated.
1388
1389 2021-01-11 Nick Clifton <nickc@redhat.com>
1390
1391 * po/pt.po: Updated Portuguese translation.
1392 * po/sr.po: Updated Serbian translation.
1393 * po/uk.po: Updated Ukranian translation.
1394
1395 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1396
1397 * configure: Regenerated.
1398
1399 2021-01-09 Nick Clifton <nickc@redhat.com>
1400
1401 * configure: Regenerate.
1402 * po/binutils.pot: Regenerate.
1403
1404 2021-01-09 Nick Clifton <nickc@redhat.com>
1405
1406 * 2.36 release branch crated.
1407 * README-how-to-make-a-release: Add note about updating Makefiles
1408 and libtool files.
1409 * BRANCHES: Add binutils-2.36-branch.
1410
1411 2021-01-09 Alan Modra <amodra@gmail.com>
1412
1413 * configure: Regenerate.
1414
1415 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1416
1417 * configure: Regenerate.
1418
1419 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 PR 27109
1422 * objcopy.c (copy_object): Handle section symbols for
1423 non-relocatable inputs.
1424 * testsuite/binutils-all/readelf.exp (readelf_test): Check
1425 is_elf_unused_section_symbols.
1426 * testsuite/binutils-all/readelf.s-64: Updated.
1427 * testsuite/binutils-all/readelf.ss: Likewise.
1428 * testsuite/binutils-all/readelf.ss-64: Likewise.
1429 * testsuite/binutils-all/readelf.s-64-unused: New file.
1430 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1431 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1432 * testsuite/lib/binutils-common.exp
1433 (is_elf_unused_section_symbols): New proc.
1434
1435 2021-01-06 Reuben Thomas <rrt@sc3d.org>
1436
1437 * binutils/readelf.c: Correct grammar in comment.
1438
1439 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1440
1441 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
1442 * doc/binutils.texi: Correct grammar.
1443 * readelf.c (process_version_sections): Correct spelling of auxiliary
1444 in warning.
1445 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
1446
1447 2021-01-01 Alan Modra <amodra@gmail.com>
1448
1449 Update year range in copyright notice of all files.
1450
1451 For older changes see ChangeLog-2020
1452 \f
1453 Copyright (C) 2021 Free Software Foundation, Inc.
1454
1455 Copying and distribution of this file, with or without modification,
1456 are permitted in any medium without royalty provided the copyright
1457 notice and this notice are preserved.
1458
1459 Local Variables:
1460 mode: change-log
1461 left-margin: 8
1462 fill-column: 74
1463 version-control: never
1464 End: