]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Synchronize libiberty sources (and include/demangle.h) with GCC master version
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
4ff0bb2d
AM
12021-07-02 Alan Modra <amodra@gmail.com>
2
3 PR 28048
4 * dwarf.c (get_type_signedness): Don't run off end of buffer
5 printing DW_FORM_string attribute.
6
1b8d1f5f
NC
72021-07-01 Nick Clifton <nickc@redhat.com>
8
9 PR 28029
10 * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk.
11
75a2da57
AH
122021-07-01 Andrei Homescu <ah@immunant.com>
13
14 * readelf.c (process_archive): Reset file position to the
15 beginning when calling process_object for thin archive members.
16 * testsuite/binutils-all/readelf.exp: Add test.
17 * testsuite/binutils-all/readelf.h.thin: New file.
18
c63fc368
NC
192021-06-30 Tom Tromey <tom@tromey.com>
20
21 * dwarf.c (read_and_display_attr_value): Handle
22 DW_FORM_implicit_const.
23
280c57ff
RH
242021-06-30 Richard Henderson <richard.henderson@linaro.org>
25
26 * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf
27 and DW_CFA_def_cfa_offset_sf have a signed offset.
28
539b54f0
AM
292021-06-19 Alan Modra <amodra@gmail.com>
30
31 * dwarf.c (display_debug_lines_decoded): Use memcpy rather than
32 strncpy when trimming file name length to MAX_FILENAME_LENGTH.
33 Don't make an unnecessary copy when length is good.
34
5a767724
L
352021-06-18 H.J. Lu <hongjiu.lu@intel.com>
36
37 * readelf.c (print_gnu_property_note): Handle
38 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
39 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
40
c8795e1f
NC
412021-06-15 Nick Clifton <nickc@redhat.com>
42
43 * readelf.c (get_note_type): Add support for NT_GO_BUILDID.
44
93df3340
AM
452021-06-15 Alan Modra <amodra@gmail.com>
46
47 * readelf.c (locate_dynamic_section, is_pie): New functions.
48 (get_file_type): Replace e_type parameter with filedata. Call
49 is_pie for ET_DYN. Update all callers.
50 (process_program_headers): Use local variables dynamic_addr and
51 dynamic_size, updating filedata on exit from function. Set
52 dynamic_size of 1 to indicate no dynamic section or segment.
53 Update tests of dynamic_size throughout.
54 * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output.
55
0121f438
EB
562021-06-14 Eric Botcazou <ebotcazou@adacore.com>
57
58 * dwarf.c (struct abbrev_attr): Change type of implicit_const.
59 (add_abbrev_attr): Likewise.
60 (process_abbrev_set): Likewise.
61 (display_debug_abbrev): Adjust to above change.
62
8c60e272
AM
632021-06-12 Alan Modra <amodra@gmail.com>
64
65 * readelf.c (process_file_header): Don't clear section_headers.
66
e331b18d
AM
672021-06-12 Alan Modra <amodra@gmail.com>
68
69 * readelf.c (get_section_headers): Don't test e_shoff here, leave
70 that to get_32bit_section_headers or get_64bit_section_headers.
71 (process_object): Throw away section header read to print file
72 header extension.
73
066f8fbe
AM
742021-06-11 Alan Modra <amodra@gmail.com>
75
76 * readelf.c (struct filedata): Move archive_file_offset and
77 archive_file_size earlier.
78 (free_filedata): Clear using memset.
79
4de91c10
AM
802021-06-11 Alan Modra <amodra@gmail.com>
81
82 * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
83 (get_elf_symbols): ..this new function throughout.
84 (get_32bit_section_headers): Don't free section_headers.
85 (get_64bit_section_headers): Likewise.
86 (get_section_headers): New function, use throughout in place of
87 32bit and 64bit variants.
88 (get_dynamic_section): Similarly.
89 (process_section_headers): Don't free filedata memory here.
90 (get_file_header): Don't get section headers here..
91 (process_object): ..Read them here instead. Don't exit without
92 freeing filedata memory.
93
cc96519f
NC
942021-06-09 Nick Clifton <nickc@redhat.com>
95
96 * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list.
97
6bee34a1
JB
982021-06-07 Jan Beulich <jbeulich@suse.com>
99
100 * dwarf.c (display_debug_aranges): Add u suffix to constant.
101
63e47e10
AM
1022021-05-29 Alan Modra <amodra@gmail.com>
103
104 * objdump (usage): Add missing \n.
105
d6249f5f
AM
1062021-05-29 Alan Modra <amodra@gmail.com>
107
108 * readelf.c (parse_args): Call dwarf_select_sections_all on
109 --debug-dump without optarg.
110 (usage): Associate -w and --debug-dump options closely.
111 Split up help message. Remove extraneous blank lines around
112 ctf help.
113 * objdump.c (usage): Similarly.
114
9204ccd4
MR
1152021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
116
117 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0
118 operand disassembly.
119 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
120
9623cc5d
MR
1212021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
122
123 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000'
124 machine for disassembly.
125 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise.
126 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
127 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise.
128
1273b2f8
L
1292021-05-28 H.J. Lu <hongjiu.lu@intel.com>
130
131 PR ld/27905
132 * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9.
133
6643bb00
AM
1342021-05-27 Alan Modra <amodra@gmail.com>
135
136 * readelf (usage): Order -w letters to match --debug-dump= and
137 move common '=' for --debug-dump out of brackets.
138
50c95a73
L
1392021-05-26 H.J. Lu <hongjiu.lu@intel.com>
140
141 PR ld/27905
142 * readelf.c (decode_x86_feature_2): Support
143 GNU_PROPERTY_X86_FEATURE_2_CODE16.
144
01a8c731
CX
1452021-05-23 Tiezhu Yang <yangtiezhu@loongson.cn>
146
147 * readelf.c (get_machine_name): Change Loongson Loongarch to
148 LoongArch.
149
3b2bef8b
LM
1502021-05-21 Luis Machado <luis.machado@linaro.org>
151
152 * readelf.c (get_note_type): Add missing NT_ARM_* entries.
153
894982bf
LM
1542021-05-21 Luis Machado <luis.machado@linaro.org>
155
156 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
157
c485e475
ES
1582021-05-19 Eli Schwartz <eschwartz@archlinux.org>
159
160 * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set.
161
1b3892be
AM
1622021-05-19 Alan Modra <amodra@gmail.com>
163
164 PR 27884
165 * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return
166 param with map_return, and return map for DW_FORM_ref_addr.
167 (get_type_signedness): Adjust calls to get_type_abbrev_from_form.
168 Pass returned cu map start and end to recursive call.
169 (read_and_display_attr_value): Similarly.
170
9d9e2a34
AM
1712021-05-19 Alan Modra <amodra@gmail.com>
172
173 PR 27879
174 * sysdump.c (getBARRAY): Sanity check size against max.
175 (getINT): Avoid UB shift left.
176
b9c0d703
AM
1772021-05-15 Alan Modra <amodra@gmail.com>
178
179 * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow.
180 Delete dead code.
181
bb19bf12
AM
1822021-05-15 Alan Modra <amodra@gmail.com>
183
184 * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in
185 length calculations.
186
d7870f63
AM
1872021-05-15 Alan Modra <amodra@gmail.com>
188
189 * dwarf.c (display_debug_names): Complain when header length is
190 too small. Avoid pointer UB. Sanity check augmentation string,
191 CU table, TU table and foreign TU table sizes.
192
5897a389
AM
1932021-05-15 Alan Modra <amodra@gmail.com>
194
195 * dwarf.c (display_debug_frames): Delete initial_length_size.
196 Avoid pointer UB. Constrain data reads to length given in header.
197 Sanity check cie header length. Only skip up to next FDE on
198 finding augmentation data too long.
199
c93c4a85
AM
2002021-05-15 Alan Modra <amodra@gmail.com>
201
202 * dwarf.c (read_cie): Add more sanity checks to ensure data
203 pointer is not bumped past end.
204
b4951546
AM
2052021-05-15 Alan Modra <amodra@gmail.com>
206
207 * dwarf.c (display_debug_ranges): Delete initial_length_size.
208 Correct fallback size calculated on finding a reloc. Constrain
209 data reads to length given in header. Avoid pointer UB.
210
669f463d
AM
2112021-05-15 Alan Modra <amodra@gmail.com>
212
213 * dwarf.c (display_debug_rnglists_list): Avoid pointer UB.
214
5250d2f0
AM
2152021-05-15 Alan Modra <amodra@gmail.com>
216
217 * dwarf.c (display_debug_str_offsets): Constrain reads to length
218 given in header.
219
6ca07350
AM
2202021-05-15 Alan Modra <amodra@gmail.com>
221
222 * dwarf.c (display_debug_aranges): Delete initial_length_size.
223 Use end_ranges to constrain data reads to header length. Avoid
224 pointer UB.
225
78480097
AM
2262021-05-15 Alan Modra <amodra@gmail.com>
227
228 * dwarf.c (display_loc_list): Avoid pointer UB. Correct check
229 before reading uleb length. Warn on excess length.
230
b0d461ec
AM
2312021-05-15 Alan Modra <amodra@gmail.com>
232
233 * dwarf.c (display_debug_macro): Print strings that might not
234 be zero terminated with %*s. Don't bump curr if unterminated.
235
46d1214d
AM
2362021-05-15 Alan Modra <amodra@gmail.com>
237
238 * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
239 Simplify length sanity check, and check for too small lengths.
240 Constrain data reads to header length. Avoid pointer UB.
241
c03df922
AM
2422021-05-15 Alan Modra <amodra@gmail.com>
243
244 * dwarf.c (display_debug_macinfo): Print strings that might not
245 be zero terminated with %*s. Don't bump curr if unterminated.
246
35b2c89e
AM
2472021-05-15 Alan Modra <amodra@gmail.com>
248
249 * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size.
250 Simplify length check. Constrain reads to length given by header.
251
56051e28
AM
2522021-05-15 Alan Modra <amodra@gmail.com>
253
254 * dwarf.c (display_debug_lines_decoded): Don't use strnlen when
255 we have already checked for NUL termination.
256
37195e23
AM
2572021-05-15 Alan Modra <amodra@gmail.com>
258
259 * dwarf.c (read_debug_line_header): Delete initial_length_size.
260 Avoid pointer UB. Keep within length specified by header.
261 Delete dead code.
262
edba4e4a
AM
2632021-05-15 Alan Modra <amodra@gmail.com>
264
265 * dwarf.c (process_debug_info): Always do the first CU length
266 scan for sanity checks. Remove initial_length_size var and
267 instead calculate end_cu. Use end_cu to limit data reads.
268 Delete now dead code checking length.
269
ebb17864
AM
2702021-05-15 Alan Modra <amodra@gmail.com>
271
272 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
273
fc5e0925
AM
2742021-05-15 Alan Modra <amodra@gmail.com>
275
276 * bucomm.h (_mul_overflow): Define.
277 * dwarf.c (get_encoded_value): Avoid pointer UB.
278
b96a1bcb
AM
2792021-05-13 Alan Modra <amodra@gmail.com>
280
281 PR 27861
282 * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
283 header length.
284
d21f875d
AM
2852021-05-13 Alan Modra <amodra@gmail.com>
286
287 PR 27860
288 * dwarf.c (display_debug_frames): Sanity check cie_off before
289 attempting to read cie.
290
a7077ce7
AM
2912021-05-12 Alan Modra <amodra@gmail.com>
292
293 * dwarf.c (process_extended_line_op): Don't bump data pointer past
294 end when strnlen doesn't find string terminator.
295 (decode_location_expression): Remove dead code.
296 (skip_attr_bytes): Remove const from end param. Ensure data
297 pointer doesn't pass end.
298 (get_type_signedness): Remove const from end param.
299 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
300 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
301 (display_debug_pubnames_worker): Likewise.
302 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
303 than blindly incrementing data pointer.
304 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
305 compare pointers, compare lengths.
306
6d1ad6f7
AM
3072021-05-12 Alan Modra <amodra@gmail.com>
308
309 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
310 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
311 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
312 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
313 SAFE_BYTE_GET followed by increment.
314 (process_debug_info): Likewise, and test bytes remaining before
315 incrementing section_begin rather than using pointer comparison.
316 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
317 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
318
af2ddf69
AM
3192021-05-12 Alan Modra <amodra@gmail.com>
320
321 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
322 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
323 SAFE_BYTE_GET_AND_INC.
324 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
325 (process_debug_info, process_cu_tu_index): Likewise.
326 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
327 (byte_get, byte_get_little_endian, byte_get_big_endian),
328 (byte_get_signed): Make size param unsigned. Remove code dealing
329 with 4-byte elf_vma.
330 (byte_get_64): Delete.
331 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
332 (byte_get, byte_get_little_endian, byte_get_big_endian),
333 (byte_get_signed): Update prototypes.
334 (byte_get_64): Delete.
335
0d872fca
AM
3362021-05-12 Alan Modra <amodra@gmail.com>
337
338 PR 27836
339 * dwarf.c (display_debug_frames): Don't compare pointers derived
340 from user input. Test offset against bounds instead.
341
55b26492
AM
3422021-05-12 Alan Modra <amodra@gmail.com>
343
344 PR 27853
345 * dwarf.c (display_formatted_table): Test for data >= end rather
346 than data == end.
347 (process_extended_line_op): Likewise.
348 (display_debug_lines_raw): Likewise.
349 (display_debug_lines_decoded): Likewise.
350
5ab39075
AM
3512021-05-12 Alan Modra <amodra@gmail.com>
352
353 PR 27849
354 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
355 Sanity check section size for version and padding too. Correct
356 index sanity check. Handle multiple tables in .debug_str_offsets.
357
d30182b5
HPN
3582021-05-11 Hans-Peter Nilsson <hp@axis.com>
359
360 * dwarf.c (process_abbrev_set): Properly parenthesize before
361 casting to unsigned long.
362
f2f9554b
AM
3632021-05-11 Alan Modra <amodra@gmail.com>
364
365 PR 27845
366 * dwarf.c (process_abbrev_set): Replace start and end parameters
367 with section, abbrev_base, abbrev_size, abbrev_offset. Update
368 all callers. Sanity check parameters correctly and emit warnings
369 here rather than..
370 (process_debug_info): ..here.
371
749c7002
TW
3722021-05-10 Thomas Wolff <towo@towo.net>
373
374 PR 4356
375 PR 26865
376 PR 27594
377 * windres.c (quot): Revert previous delta. Do not use double
378 quotes when spaces are detected in options.
379 * doc/binutils.texi (windres): Remove suggestion that the
380 --preprocessor option can take arguments.
381
2d4b4986
AM
3822021-05-10 Alan Modra <amodra@gmail.com>
383
384 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
385 END rather than adding amount to PTR.
386 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
387
b05a0fc7
AM
3882021-05-09 Alan Modra <amodra@gmail.com>
389
390 * objcopy.c (eq_string): Delete.
391 (create_symbol_htab): Use htab_eq_string.
392
354c317e
MF
3932021-05-08 Mike Frysinger <vapier@gentoo.org>
394
395 * README-how-to-make-a-release: Update html & pdf entries.
396
cf758b39
MF
3972021-05-08 Mike Frysinger <vapier@gentoo.org>
398
399 * doc/Makefile.am (html-local, binutils/index.html): New targets.
400 * doc/Makefile.in: Regenerate.
401
2faf902d
MF
4022021-05-08 Mike Frysinger <vapier@gentoo.org>
403
404 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
405 * doc/Makefile.in: Regenerate.
406
3ecc00ec
NC
4072021-05-07 Nick Clifton <nickc@redhat.com>
408
409 * readelf.c (no_processor_specific_unwind): New function.
410 (process_unwind): Use no_processor_specific_unwind for X86
411 targets.
412
4896932e
MF
4132021-05-07 Michael Forney <mforney@mforney.org>
414
415 * dwarf.c: Don't omit second operand of '?' operator.
416
bfbfa6e7
NC
4172021-04-30 Nick Clifton <nickc@redhat.com>
418
419 PR 27796
420 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
421 .debug_sup section.
422
5edb8e3f
NC
4232021-04-29 Nick Clifton <nickc@redhat.com>
424
425 PR 27594
426 * doc/binutils.texi (windres): Correct the description of the
427 default value of the --preprocessor argument.
428
3d64c987
NC
4292021-04-27 Nick Clifton <nickc@redhat.com>
430
431 PR 27779
432 * dwarf.c (parse_gnu_debuglink): Reject empty names.
433 (parse_gnu_debugaltlink): Likewise.
434
b11b2969
CC
4352021-04-22 Clément Chigot <clement.chigot@atos.net>
436
437 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
438 aux structures.
439
047c3dbf
NL
4402021-04-21 Nick Lott <nick.lott@gmail.com>
441
442 PR 27672
443 * readelf.c (sym_base): New variable.
444 (enum print_mode): Add more modes.
445 (print_vma): Add suport for new modes.
446 (options): Add sym-base.
447 (usage): Add sym-base.
448 (parse_args): Add support for --sym-base.
449 (print_dynamic_symbol_size): New function.
450 (print_dynamic_symbol): Use new function.
451 * doc/binutils.texi: Document the new feature.
452 * NEWS: Mention the new feature.
453
23356397
NC
4542021-04-21 Nick Clifton <nickc@redhat.com>
455
456 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
457 Adjust expected output to allow for named section symbols.
458 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
459 Likewise.
460 * testsuite/binutils-all/readelf.s-64: Likewise.
461 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
462 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
463 * testsuite/binutils-all/readelf.ss-unused: Likewise.
464
4652021-04-21 Luo Longjun <luolongjun@huawei.com>
466
467 * readelf.c (print_dynamic_symbol): Print the section name for
468 section symbols without a name of their own.
469
aee4e85e
AK
4702021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
471
472 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
473 add him to Past Maintainers.
474 Update my email address.
475
229597a1
NC
4762021-04-19 Nick Clifton <nickc@redhat.com>
477
478 PR 21702
479 * arsup.c (ar_addmod): Enable plugin support, if available.
480
4dee4f3e
NC
4812021-04-19 Nick Clifton <nickc@redhat.com>
482
483 * rename.c: (get_stat_atime_ns): Add prototype.
484 (get_stat_mtime_ns): Add prototype.
485
ad7c4616
AM
4862021-04-16 Alan Modra <amodra@gmail.com>
487
488 PR 27725
489 * rename.c (get_stat_atime, get_stat_mtime): Make static.
490 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
491
4c79248a
PS
4922021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
493
494 PR 27725
495 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
496 (get_stat_mtime_ns): Likewise.
497
985e0264
AM
4982021-04-15 Alan Modra <amodra@gmail.com>
499
500 PR 27725
501 * configure.ac: Check for sys/time.h and utimensat. Use standard
502 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
503 members of struct stat.
504 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
505 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
506 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
507 (get_stat_atime, get_stat_mtime): Likewise.
508 (set_times): Choose first available of utimensat, utimes, utime.
509 Use above inline functions to set timespec and timeval values.
510 * configure: Regenerate.
511 * config.in: Regenerate.
512 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
513 file timestamp when --preserve-dates is used.
514
d0ecdcdd
AM
5152021-04-15 Alan Modra <amodra@gmail.com>
516
517 PR 27456
518 * rename.c (smart_rename): When TO and FROM are equal, just set
519 file timestamp.
520 * objcopy.c (strip_main, copy_main): Always call smart_rename.
521
9917b559
L
5222021-04-14 H.J. Lu <hongjiu.lu@intel.com>
523
524 PR binutils/27708
525 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
526 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
527 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
528 test.
529
6be872a4
MH
5302021-04-14 Mark Harmstone <mark@harmstone.com>
531
532 PR 27686
533 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
534 end of the structure.
535
5f47741b
FC
5362021-04-14 Frederic Cambus <fred@statdns.com>
537
538 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
539 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
540
13acb58d
AM
5412021-04-14 Alan Modra <amodra@gmail.com>
542
543 PR 27716
544 * objdump.c (show_line): Don't limit paths to PATH_MAX.
545 * readelf.c (struct filedata): Change program_interpreter from
546 a char array to a char pointer.
547 (process_program_headers): Sanity check PT_INTERP p_filesz.
548 Malloc program_interpreter using p_filesz and read directly from
549 file.
550 (process_dynamic_section): Check program_interpreter is non-NULL.
551 (free_filedata): New function, split out from..
552 (process_object): ..here.
553 (close_debug_file): Call free_filedata.
554 * sysdep.h: Don't include sys/param.h.
555 (PATH_MAX): Don't define.
556 * configure.ac: Don't check for sys/param.h.
557 * configure: Regenerate.
558
0fa29e2d
FC
5592021-04-13 Frederic Cambus <fred@statdns.com>
560
561 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
562 check for NT_NETBSD_PAX.
563
43e05cd4
AM
5642021-04-12 Alan Modra <amodra@gmail.com>
565
566 * configure.ac (--enable-checking): Add support.
567 * config.in: Regenerate.
568 * configure: Regenerate.
569
c3f72de4
AM
5702021-04-09 Alan Modra <amodra@gmail.com>
571
572 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
573 dynrelcount.
574 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
575 (disassemble_section, disassemble_data): Likewise.
576
a2e66773
AM
5772021-04-06 Alan Modra <amodra@gmail.com>
578
579 * objdump.c (objdump_symbol_at_address): Return asymbol*.
580
4db29512
AM
5812021-04-06 Alan Modra <amodra@gmail.com>
582
583 * NEWS: Mention C99 requirement.
584 * README: Likewise. Modernise examples and "Reporting bugs".
585
87b9f255
AM
5862021-04-05 Alan Modra <amodra@gmail.com>
587
588 * configure.ac: Assume long long is available. Don't test for
589 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
590 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
591 strcoll, setlocale, setmode or location of time_t. Don't check
592 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
593 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
594 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
595 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
596 locale.h, string.h and stdlib.h unconditionally. Remove various
597 fallback declarations. Assume long long is available.
598 * addr2line.c: Don't test HAVE_SETLOCALE.
599 * ar.c: Likewise.
600 * coffdump.c: Likewise.
601 * dlltool.c: Likewise.
602 * dllwrap.c: Likewise.
603 * elfedit.c: Likewise.
604 * nm.c: Likewise.
605 * objcopy.c: Likewise.
606 * objdump.c: Likewise.
607 * readelf.c: Likewise.
608 * size.c: Likewise.
609 * srconv.c: Likewise.
610 * strings.c: Likewise.
611 * sysdump.c: Likewise.
612 * windmc.c: Likewise.
613 * windres.c: Likewise.
614 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
615 * dwarf.c: Include limits.h unconditionally. Assume long long
616 is available.
617 * nm.c: Don't test HAVE_STRCOLL.
618 * readelf.c: Don't test HAVE_WCHAR_H.
619 * strings.c: Assume long long is available.
620 * syslex.l: Include string.h unconditionally.
621 * aclocal.m4: Regenerate.
622 * config.in: Regenerate.
623 * configure: Regenerate.
624 * Makefile.in: Regenerate.
625 * doc/Makefile.in: Regenerate.
626
e9b095a5
ML
6272021-04-01 Martin Liska <mliska@suse.cz>
628
629 * elfcomm.h (strneq): Remove strneq and use startswith.
630 * readelf.c (ia64_process_unwind): Likewise.
631 (process_note): Likewise.
632
3f3328b8
ML
6332021-04-01 Martin Liska <mliska@suse.cz>
634
635 * dllwrap.c: Use startswith function.
636 * objcopy.c (is_dwo_section): Likewise.
637 (handle_remove_section_option): Likewise.
638 (copy_main): Likewise.
639 * objdump.c (is_significant_symbol_name): Likewise.
640
24d127aa
ML
6412021-04-01 Martin Liska <mliska@suse.cz>
642
643 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
644 startswith.
645 (display_debug_lines_decoded): Likewise.
646 (display_debug_links): Likewise.
647 * elfcomm.c (setup_archive): Likewise.
648 * elfcomm.h (const_strneq): Likewise.
649 * readelf.c (process_section_headers): Likewise.
650 (slurp_ia64_unwind_table): Likewise.
651 (slurp_hppa_unwind_table): Likewise.
652 (decode_arm_unwind): Likewise.
653 (display_debug_section): Likewise.
654 (process_note): Likewise.
655
015dc7e1
AM
6562021-03-31 Alan Modra <amodra@gmail.com>
657
658 * sysdep.h (POISON_BFD_BOOLEAN): Define.
659 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
660 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
661 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
662 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
663 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
664 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
665 * windmc.c, * windmc.h, * windres.c, * winduni.c,
666 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
667 and TRUE with true throughout.
668
3dfb1b6d
AM
6692021-03-31 Alan Modra <amodra@gmail.com>
670
671 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
672 * dwarf.c: Likewise.
673
57ae980e
AM
6742021-03-31 Alan Modra <amodra@gmail.com>
675
676 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
677
63b4cc53
AM
6782021-03-29 Alan Modra <amodra@gmail.com>
679
680 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
681 * dwarf.c (read_and_display_attr_value): Likewise.
682 (display_debug_str_offsets): Likewise.
683 * objdump.c (dump_bfd): Likewise.
684 * readelf.c (dump_section_as_strings): Likewise.
685 (dump_section_as_bytes): Likewise.
686
1be305ff
AM
6872021-03-29 Alan Modra <amodra@gmail.com>
688
689 * objdump.c (process_links): Use type int.
690 * readelf.c (request_dump): Don't increment do_dump, set it.
691 * windint.h (target_is_bigendian): Use type bfd_boolean.
692 * windmc.c (target_is_bigendian): Likewise.
693 * windres.c (target_is_bigendian): Likewise.
694
08dedd66
ML
6952021-03-22 Martin Liska <mliska@suse.cz>
696
1be305ff
AM
697 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
698 with startswith.
08dedd66
ML
699 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
700 * objcopy.c (is_mergeable_note_section): Likewise.
701 * objdump.c (dump_dwarf_section): Likewise.
702 * prdbg.c (pr_method_type): Likewise.
703 (pr_class_baseclass): Likewise.
704 (tg_class_baseclass): Likewise.
705 * readelf.c (process_lto_symbol_tables): Likewise.
706 * stabs.c (ULLHIGH): Likewise.
707 (parse_stab_argtypes): Likewise.
708 (stab_demangle_function_name): Likewise.
709
7b9f9859
L
7102021-03-19 H.J. Lu <hongjiu.lu@intel.com>
711
712 * readelf.c (get_machine_name): Add EM_INTELGT.
713
835f2fae
NC
7142021-03-18 Nick Clifton <nickc@redhat.com>
715
716 PR 27478
717 * readelf.c (dump_section_as_strings): Mention separate filename.
718 (dump_section_as_bytes): Likewise.
719 (dump_section_as_ctf): Likewise.
720 (initialise_dumkps_byname): Only issue a warning for missing
721 sections if processing the main file.
722 (process_section_contents): Only issue a warning for unsumped
723 section numbers in the main file.
724 (initialise_dump_sects): New function. Contains code extracted
725 from ...
726 (process_object): ... here. Also call initialise_dump_sects for
727 separate files.
728
44266f36
NC
7292021-03-16 Nick Clifton <nickc@redhat.com>
730
731 PR 27534
732 * readelf.c (display_debug_section): Also retain .debug_addr
733 sections.
734
d6bfbc39
NC
7352021-03-16 Nick Clifton <nickc@redhat.com>
736
737 PR 27533
738 * readelf.c (process_section_contents): Only dump debug
739 information for separate files unless process_links is enabled.
740 (process_object): Always call process_section_contents for
741 separate info files.
742
1996d0f1
NC
7432021-03-15 Nick Clifton <nickc@redhat.com>
744
745 PR 27487
746 * nm.c (FORMAT_JUST_SYMBOLS): Define.
747 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
748 (long_options): Add just-symbols.
749 (set_output_format): Add support for just-symbols.
750 (get_print_format): Likewise.
751 (do_not_print_object_filename): New function.
752 (do_not_print_archive_filename): New function.
753 (do_not_print_archive_member): New function.
754 (do_not_print_symbol_filename): New function.
755 (just_print_symbol_name): New function.
756 (main): Handle --just-symbols.
757 * NEWS: Mention the new feature.
758 * doc/binutils.texi: Document the new feature.
759
2c1bef53
CC
7602021-03-12 Clément Chigot <clement.chigot@atos.net>
761
762 * od-xcoff.c: Replace RTB by TRL entry.
763
db6092f3
AB
7642021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
765 Andrew Burgess <andrew.burgess@embecosm.com>
766
767 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
768
b63a5e38
AB
7692021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
770 Andrew Burgess <andrew.burgess@embecosm.com>
771
772 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
773
d296b736
NC
7742021-03-05 Nick Clifton <nickc@redhat.com>
775
776 PR 27387
777 * dwarf.c (display_debug_macro): Handle the displaying of
778 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
779 .debug_macro.dwo sections.
780
ca0e11aa
NC
7812021-03-04 Nick Clifton <nickc@redhat.com>
782
783 PR 27478
784 * objdump.c (process_links): New variable.
785 (usage): Add --process-links.
786 (long_options): Likewise.
787 (dump_bfd): Stop processing once the bfd has been loaded unless
788 this is the main file or process_links has been enabled.
789 (main): Handle the process-links option.
790 * readelf.c (process_links): New variable.
791 (struct filedata): Add is_separate field.
792 (options): Add --process-links.
793 (usage): Likewise.
794 (parse_args): Likewise.
795 (process_file_header): Include the filename when dumping
796 information for separate debuginfo files.
797 (process_program_headers): Likewise.
798 (process_section_headers): Likewise.
799 (process_section_groups): Likewise.
800 (process_relocs): Likewise.
801 (process_dynamic_section): Likewise.
802 (process_version_sections): Likewise.
803 (display_lto_symtab): Likewise.
804 (process_symbol_table): Likewise.
805 (process_syminfo): Likewise.
806 (initialise_dumps_by_name): Likewise.
807 (process_section_contents): Likewise.
808 (process_notes_at): Likewise.
809 (process_notes): Likewise.
810 (open_file): Add is_separate parameter. Use to initialise the
811 is_separate field in the filedata structure.
812 (open_deug): Update call to open_file.
813 (process_object): Add processing of the contents of separate
814 debuginfo files, gated by the process_links variable.
815 (process_archive): Update call to open_file.
816 (process_file): Initialise the is_separate field in the filedata
817 structure.
818 * dwarf.c (load_separate_debug_info_file): Only report the
819 loading of a separate file if debug links are being dumped.
820 * objcopy.c (keep_section_symbols): New variable.
821 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
822 (strip_options): Add keep-section-symbols.
823 (copy_options): Likewise.
824 (copy_usage): Likewise.
825 (strip_usage): Likewise.
826 (copy_object): Keep section symbols if requested by command line
827 option.
828 (strip_main): Handle --keep-section-symbols.
829 (copy_main): Likewise.
830 * doc/binutils.texi: Document the new options.
831 * NEWS: Mention the new features.
832 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
833 Update options passed to objdump. Use diff rather than cmp to
834 compare the dumped data.
835 * testsuite/binutils-all/objdump.WK2: Update regexp.
836 * testsuite/binutils-all/objdump.WK3: Update regexp.
837 * testsuite/binutils-all/objdump.exp: Use --process-links
838 instead of --dwarf=follow-links.
839 * testsuite/binutils-all/readelf.exp (readelf_test): Include
840 readelf's output in the log when the test fails.
841 Add the -P option to the -wKis test.
842 * testsuite/binutils-all/readelf.wKis: Update expected output.
843
fd5c076a
AM
8442021-03-03 Alan Modra <amodra@gmail.com>
845
846 PR 27493
847 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
848 * NEWS: Mention feature.
849
ecd65684
L
8502021-03-01 H.J. Lu <hongjiu.lu@intel.com>
851
852 PR binutils/27486
853 * dwarf.c (load_separate_debug_info): Issue warning only if
854 do_debug_links is set.
855 * testsuite/binutils-all/compress.exp: Run objdump and readelf
856 with missing debug file.
857
6a1224ec
AM
8582021-03-01 Alan Modra <amodra@gmail.com>
859
860 PR 27128
861 * doc/binutils.texi: Add nm --with-symbol-versions and
862 --without-symbol-versions documentation.
863 * nm.c (with_symbol_versions): New variable.
864 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
865 (long_options): Make --with-symbol-versions entry twiddle the flag.
866 Add --without-symbol-versions.
867 (print_symname): Strip version when !with_symbol_versions. Add
868 dynamic version info under control of with_symbol_versions.
869 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
870
7fe1b138
FS
8712021-02-26 Fangrui Song <maskray@google.com>
872
873 PR 27408
874 * readelf.c (quiet): New option flag.
875 (enum long_option_values): New enum to hold long option value.
876 (long_options): Add --quiet.
877 (usage): Mention --quiet.
878 (display_rel_file): If quiet is enabled, suppress "no symbols".
879 (main): Handle the new option.
880 * NEWS: Mention --quiet.
881 * docs/binutils.texi: Document --quiet.
882
0e12f6c8
TV
8832021-02-26 Tom de Vries <tdevries@suse.de>
884
885 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
886
32e4f96c
TV
8872021-02-26 Tom de Vries <tdevries@suse.de>
888
889 PR 27390
890 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
891 DW_FORM_addrx*.
892 (read_and_display_attr_value): Likewise.
893
e38332c2
NC
8942021-02-25 Nick Clifton <nickc@redhat.com>
895
896 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
897 forms.
898 (read_and_display_attr_value): Handle sup forms.
899 (display_debug_sup): New function. Displays the contents of a
900 .debug_sup section.
901 (load_debug_sup_file): New function. Loads the contents of a file
902 referenced by a .debug_sup section.
903 (check_for_and_load_links): Call load_debug_sup_file.
904 (debug_displays): Add entry for .debug_sup.
905 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
906 * readelf.c (process_section_headers): Add support for debug_sup.
907 * doc/debug.options.texi: Note that the =links option will display
908 the contents of .debug_sup sections.
909 * NEWS: Mention the new support.
910
40b02646
AM
9112021-02-25 Alan Modra <amodra@gmail.com>
912
913 PR 27456
914 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
915
9d3fcfe0
NC
9162021-02-24 Nick Clifton <nickc@redhat.com>
917
918 PR 27285
919 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
920 when adding together the section sizes.
921
c74147bb
NC
9222021-02-24 Nick Clifton <nickc@redhat.com>
923
924 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
925 build notes.
926 * readelf.c (print_gnu_build_attribute_description): Likewise.
927
c42c71a1
AM
9282021-02-24 Alan Modra <amodra@gmail.com>
929 Siddhesh Poyarekar <siddhesh@gotplt.org>
930
931 PR 27456
932 * bucomm.h (smart_rename): Update prototype.
933 * rename.c (smart_rename): Add fromfd and preserve_dates params.
934 Pass fromfd and target_stat to simple_copy. Call set_times
935 when preserve_dates.
936 (simple_copy): Accept fromfd rather than from filename. Add
937 target_stat param. Rewind fromfd rather than opening. Open
938 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
939 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
940 closing output temp file, and pass tmpfd to smart_rename.
941 * arsup.c (temp_fd): Rename from real_fd.
942 (ar_save): Dup temp_fd and pass to smart_rename.
943 * objcopy.c (strip_main, copy_main): Likewise, and pass
944 preserve_dates.
945
cca8873d
AM
9462021-02-24 Alan Modra <amodra@gmail.com>
947
948 PR 27456
949 * rename.c: Tidy throughout.
950 (smart_rename): Always copy. Remove windows specific code.
951
4d496013
AM
9522021-02-20 Alan Modra <amodra@gmail.com>
953
954 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
955 (run_dump_test): Fail if expecting errors from a file like we do
956 for error strings, if no error is seen.
957
0be51eb4
AM
9582021-02-19 Alan Modra <amodra@gmail.com>
959
960 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
961
3685de75
SP
9622021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
963
964 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
965 SMART_RENAME.
966 * arsup.c (ar_save): Likewise.
967 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
968 temporary file and adjust call to SMART_RENAME.
969 (copy_main): Likewise.
970 * rename.c [!S_ISLNK]: Remove definitions.
971 (try_preserve_permissions): Remove function.
972 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
973 rename system call only if TO does not exist.
974 * bucomm.h (smart_rename): Adjust declaration.
975
85684222
NC
9762021-02-18 Nick Clifton <nickc@redhat.com>
977
978 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
979 address that is higher than the end address.
980
b9b204b3
AM
9812021-02-17 Alan Modra <amodra@gmail.com>
982
983 * dwarf.c: Include limits.h.
984 (CHAR_BIT): Provide backup define.
985 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
986 signed overflow checking.
987 * testsuite/binutils-all/pr26548.s,
988 * testsuite/binutils-all/pr26548.d,
989 * testsuite/binutils-all/pr26548e.d: New tests.
990 * testsuite/binutils-all/readelf.exp: Run them.
991 (readelf_test): Drop unused "xfails" parameter. Update all uses.
992
e6ca1878
JB
9932021-02-16 Jan Beulich <jbeulich@suse.com>
994
995 * dwarf.c (process_debug_info): Initialize "dwo_id".
996
208599d9
AM
9972021-02-15 Alan Modra <amodra@gmail.com>
998
999 * objdump.c (load_specific_debug_section): Don't call
1000 bfd_cache_section_contents. Rearrange so that
1001 bfd_get_full_section_contents is not called on path where
1002 bfd_simple_get_relocated_section_contents is called.
1003 Don't set section->user_data.
1004 (free_debug_section): Always free section->start. Don't twiddle
1005 section flags.
1006 * readelf.c (load_specific_debug_section): Don't set user_data.
1007 * dwarf.h (struct dwarf_section): Remove use_data field.
1008 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
1009
1781a9d0
AM
10102021-02-15 Alan Modra <amodra@gmail.com>
1011
1012 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
1013 * testsuite/binutils-all/objdump.exp: Likewise.
1014
1944212b
AM
10152021-02-14 Alan Modra <amodra@gmail.com>
1016
1017 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
1018 to the symbol array.
1019 (slurp_dynamic_symtab): Likewise.
1020 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
1021
0d0a0d86
AM
10222021-02-14 Alan Modra <amodra@gmail.com>
1023
1024 * Makefile.in: Regenerate.
1025 * doc/Makefile.in: Regenerate.
1026
adeab0c5
MF
10272021-02-13 Mike Frysinger <vapier@gentoo.org>
1028
1029 * aclocal.m4: Regenerate.
1030
c46b7066
NC
10312021-02-12 Nick Clifton <nickc@redhat.com>
1032
1033 * configure.ac (follow-debug-links): Add option to enable or
1034 disable the following of debug links by default. Set the
1035 default for the option to be 'follow'.
1036 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
1037 (dwarf_select_sections_by_names): Add no-follow-links option.
1038 (dwarf_select_sections_by_letter): Add 'N' option.
1039 * objdump.c (usage): Add conditional text describing the
1040 follow links option.
1041 (slurp_symtab): Ensure that there is a NULL entry at the end
1042 of the symbol table.
1043 (slurp_dynamic_symtab): Likewise.
1044 (dump_bfd): When extending the symbol table, ensure that there
1045 is still a NULL entry at the end.
1046 * readelf.c (usage): Add conditional text describing the
1047 follow links option.
1048 * doc/binutils.texi: Update documentation for objcopy and
1049 readelf.
1050 * doc/debug.options.texi: Update documentation of the
1051 follow-links option.
1052 * config.in: Regenerate.
1053 * configure: Regenerate.
1054 * testsuite/binutils-all/compress.exp: Add the -WN option to
1055 objdump command lines that are not expecting to follow links.
1056 * testsuite/binutils-all/readelf.exp: Add the
1057 --debug-dump=no-follow-links option to tests that are not
1058 expecting to follow debug links.
1059 * NEWS: Mention the new behaviour.
1060
17e04eff
AM
10612021-02-12 Alan Modra <amodra@gmail.com>
1062
1063 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
1064 gas or ld fails to build a testcase rather than "unresolved".
1065 Report "fail" when readelf returns an error status rather than
1066 "unresolved".
1067 * testsuite/binutils-all/ar.exp: Likewise.
1068 * testsuite/binutils-all/compress.exp: Likewise.
1069 * testsuite/binutils-all/readelf.exp: Likewise.
1070
8f054a7a
AM
10712021-02-12 Alan Modra <amodra@gmail.com>
1072
1073 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
1074 "c" with "ccc" labels.
1075
528a4f87
TV
10762021-02-12 Tom de Vries <tdevries@suse.de>
1077
1078 * dwarf.h (debug_info): Fix typo in comment.
1079
95abb394
TV
10802021-02-12 Tom de Vries <tdevries@suse.de>
1081
1082 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
1083 entries.
1084
d60f7998
TV
10852021-02-12 Tom de Vries <tdevries@suse.de>
1086
1087 * dwarf.c (process_debug_info): Print DWO ID.
1088
1cfcf300
AM
10892021-02-11 Alan Modra <amodra@gmail.com>
1090
1091 PR 27290
1092 PR 27293
1093 PR 27295
1094 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
1095 Use bfd_malloc_and_get_section.
1096 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
1097 check namesz. Return NULL if descsz is too small. Ensure
1098 string table is terminated.
1099 (elf32_avr_get_device_info): Formatting. Add note_size param.
1100 Sanity check note.
1101 (elf32_avr_dump_mem_usage): Adjust to suit.
1102
d9d9d8ef
TV
11032021-02-10 Tom de Vries <tdevries@suse.de>
1104
1105 PR binutils/27391
1106 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
1107
52ff20fe
TV
11082021-02-10 Tom de Vries <tdevries@suse.de>
1109
1110 PR binutils/27371
1111 * dwarf.c (display_debug_ranges): Filter range lists according to
1112 section.
1113
5f128a25
TV
11142021-02-09 Tom de Vries <tdevries@suse.de>
1115
1116 PR binutils/27370
1117 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
1118
9b87f84a
TV
11192021-02-09 Tom de Vries <tdevries@suse.de>
1120
1121 PR binutils/27386
1122 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
1123 DW_UT_split_compile.
1124
a57d1773
AM
11252021-02-09 Alan Modra <amodra@gmail.com>
1126
1127 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
1128 symbianelf.
1129
de8d4203
AM
11302021-02-07 Alan Modra <amodra@gmail.com>
1131
1132 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
1133 uninitialised on invalid input.
1134
51a25252
AM
11352021-02-06 Alan Modra <amodra@gmail.com>
1136
1137 PR 27349
1138 * rename.c (smart_rename): Test for existence and type of output
1139 file with lstat.
1140
e37d88e5
NC
11412021-02-05 Nick Clifton <nickc@redhat.com>
1142
1143 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
1144
887854ba
EZ
11452021-02-05 Eli Zaretskii <eliz@gnu.org>
1146
1147 PR 27252
1148 * elfedit.c (check_file):
1149 * bucomm.c (get_file_size): Fix typos in comments.
1150
c180f095
AM
11512021-02-05 Alan Modra <amodra@gmail.com>
1152
1153 PR 27345
1154 * arsup.c (ar_save): Use stat rather than lstat.
1155
95b91a04
AM
11562021-02-03 Alan Modra <amodra@gmail.com>
1157
1158 PR 27270
1159 PR 27284
1160 PR 26945
1161 * ar.c: Don't include libbfd.h.
1162 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
1163 bfd_stat rather than fstat on iostream. Move stat and fd tests
1164 outside of _WIN32 ifdef. Delete skip_stat variable.
1165 * arsup.c (temp_name, real_ofd): New static variables.
1166 (ar_open): Use make_tempname and bfd_fdopenw.
1167 (ar_save): Adjust to suit ar_open changes. Move stat output
1168 of _WIN32 ifdef.
1169 * objcopy.c: Don't include libbfd.h.
1170 (copy_file): Use bfd_stat.
1171
5424d7ed
L
11722021-02-02 H.J. Lu <hongjiu.lu@intel.com>
1173
1174 PR binutils/27281
1175 * readelf.c (process_section_headers): Add 'R' and 'D' to
1176 "Key to Flags:".
1177 * testsuite/binutils-all/retain1a.d: Updated.
1178
72a51a06
NC
11792021-01-30 Nick Clifton <nickc@redhat.com>
1180
1181 * README-how-to-make-a-release: Small updates after the 2.35.2
1182 release.
1183
cc3edc52
EZ
11842021-01-28 Eli Zaretskii <eliz@gnu.org>
1185
1186 PR 4356
1187 * windres.c (quot): Use double quotes to protect strings on
1188 Windows platforms.
1189
a7ad3cb1
EZ
11902021-01-28 Eli Zaretskii <eliz@gnu.org>
1191
1192 PR 27252
1193 * bucomm.c (get_file_size): Add code to handle /dev/null on
1194 Windows systems.
1195 * elfedit.c (check_file): Likewise.
1196
67965ba2
NC
11972021-01-27 Nick Clifton <nickc@redhat.com>
1198
1199 * objcopy.c (copy_main): Remove conditional control of the calls
1200 to free, simplifying the code and making it easier to detect
1201 typos.
1202
e37709f0
FC
12032021-01-26 Frederic Cambus <fred@statdns.com>
1204
1205 * objcopy.c (copy_main): Fix a double free happening when both
1206 --localize-symbols and --globalize-symbols options are invoked
1207 together.
1208
9b351c9b
NC
12092021-01-24 Nick Clifton <nickc@redhat.com>
1210
1211 * README-how-to-make-a-release: Minor updates after the 2.36 release.
1212
ad92f33d
AM
12132021-01-16 Alan Modra <amodra@gmail.com>
1214
1215 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
1216
3624a6c1
AM
12172021-01-15 Alan Modra <amodra@gmail.com>
1218
1219 PR 26539
1220 * readelf.c (uncompress_section_contents): Always call inflateEnd.
1221
c14dee84
AO
12222021-01-14 Alexandre Oliva <oliva@gnu.org>
1223
1224 * MAINTAINERS: Update my email address.
1225
5a10699f
NC
12262021-01-14 Nick Clifton <nickc@redhat.com>
1227
1228 * po/sv.po: Updated Swedish translation.
1229
5347ed60
AM
12302021-01-13 Alan Modra <amodra@gmail.com>
1231
1232 * Makefile.in: Regenerate.
1233 * doc/Makefile.in: Regenerate.
1234
2ce40d1a
ZF
12352021-01-13 Zebediah Figura <z.figura12@gmail.com>
1236
1237 PR 27037
1238 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
1239 and before exit.
1240 (i386_x64_trampoline): Add SEH annotations.
1241 (struct mac): Add how_seh field.
1242 (make_delay_head): If how_set field is true add SEh instructions.
1243
d546b610
L
12442021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1245
1246 PR binutils/26792
1247 * configure.ac: Use GNU_MAKE_JOBSERVER.
1248 * aclocal.m4: Regenerated.
1249 * configure: Likewise.
1250
6d104cac
NC
12512021-01-12 Nick Clifton <nickc@redhat.com>
1252
1253 * po/fr.po: Updated French translation.
1254
83b33c6c
L
12552021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1256
1257 PR ld/27173
1258 * configure: Regenerated.
1259
a8aa72b9
NC
12602021-01-11 Nick Clifton <nickc@redhat.com>
1261
1262 * po/pt.po: Updated Portuguese translation.
1263 * po/sr.po: Updated Serbian translation.
1264 * po/uk.po: Updated Ukranian translation.
1265
a4966cd9
L
12662021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1267
1268 * configure: Regenerated.
1269
573fe3fb
NC
12702021-01-09 Nick Clifton <nickc@redhat.com>
1271
1272 * configure: Regenerate.
1273 * po/binutils.pot: Regenerate.
1274
055bc77a
NC
12752021-01-09 Nick Clifton <nickc@redhat.com>
1276
1277 * 2.36 release branch crated.
573fe3fb
NC
1278 * README-how-to-make-a-release: Add note about updating Makefiles
1279 and libtool files.
1280 * BRANCHES: Add binutils-2.36-branch.
055bc77a 1281
64307045
AM
12822021-01-09 Alan Modra <amodra@gmail.com>
1283
1284 * configure: Regenerate.
1285
f4782128
ST
12862021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1287
1288 * configure: Regenerate.
1289
d1bcae83
L
12902021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1291
1292 PR 27109
1293 * objcopy.c (copy_object): Handle section symbols for
1294 non-relocatable inputs.
1295 * testsuite/binutils-all/readelf.exp (readelf_test): Check
1296 is_elf_unused_section_symbols.
1297 * testsuite/binutils-all/readelf.s-64: Updated.
1298 * testsuite/binutils-all/readelf.ss: Likewise.
1299 * testsuite/binutils-all/readelf.ss-64: Likewise.
1300 * testsuite/binutils-all/readelf.s-64-unused: New file.
1301 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1302 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1303 * testsuite/lib/binutils-common.exp
1304 (is_elf_unused_section_symbols): New proc.
1305
6987d5a1
RT
13062021-01-06 Reuben Thomas <rrt@sc3d.org>
1307
1308 * binutils/readelf.c: Correct grammar in comment.
1309
f9a6a8f0
AM
13102021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1311
1312 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
1313 * doc/binutils.texi: Correct grammar.
1314 * readelf.c (process_version_sections): Correct spelling of auxiliary
1315 in warning.
1316 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
1317
250d07de
AM
13182021-01-01 Alan Modra <amodra@gmail.com>
1319
1320 Update year range in copyright notice of all files.
1321
c2795844 1322For older changes see ChangeLog-2020
3499769a 1323\f
c2795844 1324Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
1325
1326Copying and distribution of this file, with or without modification,
1327are permitted in any medium without royalty provided the copyright
1328notice and this notice are preserved.
1329
1330Local Variables:
1331mode: change-log
1332left-margin: 8
1333fill-column: 74
1334version-control: never
1335End: