]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
sim: mn10300: enable -Werror
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
0121f438
EB
12021-06-14 Eric Botcazou <ebotcazou@adacore.com>
2
3 * dwarf.c (struct abbrev_attr): Change type of implicit_const.
4 (add_abbrev_attr): Likewise.
5 (process_abbrev_set): Likewise.
6 (display_debug_abbrev): Adjust to above change.
7
8c60e272
AM
82021-06-12 Alan Modra <amodra@gmail.com>
9
10 * readelf.c (process_file_header): Don't clear section_headers.
11
e331b18d
AM
122021-06-12 Alan Modra <amodra@gmail.com>
13
14 * readelf.c (get_section_headers): Don't test e_shoff here, leave
15 that to get_32bit_section_headers or get_64bit_section_headers.
16 (process_object): Throw away section header read to print file
17 header extension.
18
066f8fbe
AM
192021-06-11 Alan Modra <amodra@gmail.com>
20
21 * readelf.c (struct filedata): Move archive_file_offset and
22 archive_file_size earlier.
23 (free_filedata): Clear using memset.
24
4de91c10
AM
252021-06-11 Alan Modra <amodra@gmail.com>
26
27 * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
28 (get_elf_symbols): ..this new function throughout.
29 (get_32bit_section_headers): Don't free section_headers.
30 (get_64bit_section_headers): Likewise.
31 (get_section_headers): New function, use throughout in place of
32 32bit and 64bit variants.
33 (get_dynamic_section): Similarly.
34 (process_section_headers): Don't free filedata memory here.
35 (get_file_header): Don't get section headers here..
36 (process_object): ..Read them here instead. Don't exit without
37 freeing filedata memory.
38
cc96519f
NC
392021-06-09 Nick Clifton <nickc@redhat.com>
40
41 * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list.
42
6bee34a1
JB
432021-06-07 Jan Beulich <jbeulich@suse.com>
44
45 * dwarf.c (display_debug_aranges): Add u suffix to constant.
46
63e47e10
AM
472021-05-29 Alan Modra <amodra@gmail.com>
48
49 * objdump (usage): Add missing \n.
50
d6249f5f
AM
512021-05-29 Alan Modra <amodra@gmail.com>
52
53 * readelf.c (parse_args): Call dwarf_select_sections_all on
54 --debug-dump without optarg.
55 (usage): Associate -w and --debug-dump options closely.
56 Split up help message. Remove extraneous blank lines around
57 ctf help.
58 * objdump.c (usage): Similarly.
59
9204ccd4
MR
602021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
61
62 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0
63 operand disassembly.
64 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
65
9623cc5d
MR
662021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
67
68 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000'
69 machine for disassembly.
70 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise.
71 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
72 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise.
73
1273b2f8
L
742021-05-28 H.J. Lu <hongjiu.lu@intel.com>
75
76 PR ld/27905
77 * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9.
78
6643bb00
AM
792021-05-27 Alan Modra <amodra@gmail.com>
80
81 * readelf (usage): Order -w letters to match --debug-dump= and
82 move common '=' for --debug-dump out of brackets.
83
50c95a73
L
842021-05-26 H.J. Lu <hongjiu.lu@intel.com>
85
86 PR ld/27905
87 * readelf.c (decode_x86_feature_2): Support
88 GNU_PROPERTY_X86_FEATURE_2_CODE16.
89
01a8c731
CX
902021-05-23 Tiezhu Yang <yangtiezhu@loongson.cn>
91
92 * readelf.c (get_machine_name): Change Loongson Loongarch to
93 LoongArch.
94
3b2bef8b
LM
952021-05-21 Luis Machado <luis.machado@linaro.org>
96
97 * readelf.c (get_note_type): Add missing NT_ARM_* entries.
98
894982bf
LM
992021-05-21 Luis Machado <luis.machado@linaro.org>
100
101 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
102
c485e475
ES
1032021-05-19 Eli Schwartz <eschwartz@archlinux.org>
104
105 * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set.
106
1b3892be
AM
1072021-05-19 Alan Modra <amodra@gmail.com>
108
109 PR 27884
110 * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return
111 param with map_return, and return map for DW_FORM_ref_addr.
112 (get_type_signedness): Adjust calls to get_type_abbrev_from_form.
113 Pass returned cu map start and end to recursive call.
114 (read_and_display_attr_value): Similarly.
115
9d9e2a34
AM
1162021-05-19 Alan Modra <amodra@gmail.com>
117
118 PR 27879
119 * sysdump.c (getBARRAY): Sanity check size against max.
120 (getINT): Avoid UB shift left.
121
b9c0d703
AM
1222021-05-15 Alan Modra <amodra@gmail.com>
123
124 * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow.
125 Delete dead code.
126
bb19bf12
AM
1272021-05-15 Alan Modra <amodra@gmail.com>
128
129 * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in
130 length calculations.
131
d7870f63
AM
1322021-05-15 Alan Modra <amodra@gmail.com>
133
134 * dwarf.c (display_debug_names): Complain when header length is
135 too small. Avoid pointer UB. Sanity check augmentation string,
136 CU table, TU table and foreign TU table sizes.
137
5897a389
AM
1382021-05-15 Alan Modra <amodra@gmail.com>
139
140 * dwarf.c (display_debug_frames): Delete initial_length_size.
141 Avoid pointer UB. Constrain data reads to length given in header.
142 Sanity check cie header length. Only skip up to next FDE on
143 finding augmentation data too long.
144
c93c4a85
AM
1452021-05-15 Alan Modra <amodra@gmail.com>
146
147 * dwarf.c (read_cie): Add more sanity checks to ensure data
148 pointer is not bumped past end.
149
b4951546
AM
1502021-05-15 Alan Modra <amodra@gmail.com>
151
152 * dwarf.c (display_debug_ranges): Delete initial_length_size.
153 Correct fallback size calculated on finding a reloc. Constrain
154 data reads to length given in header. Avoid pointer UB.
155
669f463d
AM
1562021-05-15 Alan Modra <amodra@gmail.com>
157
158 * dwarf.c (display_debug_rnglists_list): Avoid pointer UB.
159
5250d2f0
AM
1602021-05-15 Alan Modra <amodra@gmail.com>
161
162 * dwarf.c (display_debug_str_offsets): Constrain reads to length
163 given in header.
164
6ca07350
AM
1652021-05-15 Alan Modra <amodra@gmail.com>
166
167 * dwarf.c (display_debug_aranges): Delete initial_length_size.
168 Use end_ranges to constrain data reads to header length. Avoid
169 pointer UB.
170
78480097
AM
1712021-05-15 Alan Modra <amodra@gmail.com>
172
173 * dwarf.c (display_loc_list): Avoid pointer UB. Correct check
174 before reading uleb length. Warn on excess length.
175
b0d461ec
AM
1762021-05-15 Alan Modra <amodra@gmail.com>
177
178 * dwarf.c (display_debug_macro): Print strings that might not
179 be zero terminated with %*s. Don't bump curr if unterminated.
180
46d1214d
AM
1812021-05-15 Alan Modra <amodra@gmail.com>
182
183 * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
184 Simplify length sanity check, and check for too small lengths.
185 Constrain data reads to header length. Avoid pointer UB.
186
c03df922
AM
1872021-05-15 Alan Modra <amodra@gmail.com>
188
189 * dwarf.c (display_debug_macinfo): Print strings that might not
190 be zero terminated with %*s. Don't bump curr if unterminated.
191
35b2c89e
AM
1922021-05-15 Alan Modra <amodra@gmail.com>
193
194 * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size.
195 Simplify length check. Constrain reads to length given by header.
196
56051e28
AM
1972021-05-15 Alan Modra <amodra@gmail.com>
198
199 * dwarf.c (display_debug_lines_decoded): Don't use strnlen when
200 we have already checked for NUL termination.
201
37195e23
AM
2022021-05-15 Alan Modra <amodra@gmail.com>
203
204 * dwarf.c (read_debug_line_header): Delete initial_length_size.
205 Avoid pointer UB. Keep within length specified by header.
206 Delete dead code.
207
edba4e4a
AM
2082021-05-15 Alan Modra <amodra@gmail.com>
209
210 * dwarf.c (process_debug_info): Always do the first CU length
211 scan for sanity checks. Remove initial_length_size var and
212 instead calculate end_cu. Use end_cu to limit data reads.
213 Delete now dead code checking length.
214
ebb17864
AM
2152021-05-15 Alan Modra <amodra@gmail.com>
216
217 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
218
fc5e0925
AM
2192021-05-15 Alan Modra <amodra@gmail.com>
220
221 * bucomm.h (_mul_overflow): Define.
222 * dwarf.c (get_encoded_value): Avoid pointer UB.
223
b96a1bcb
AM
2242021-05-13 Alan Modra <amodra@gmail.com>
225
226 PR 27861
227 * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
228 header length.
229
d21f875d
AM
2302021-05-13 Alan Modra <amodra@gmail.com>
231
232 PR 27860
233 * dwarf.c (display_debug_frames): Sanity check cie_off before
234 attempting to read cie.
235
a7077ce7
AM
2362021-05-12 Alan Modra <amodra@gmail.com>
237
238 * dwarf.c (process_extended_line_op): Don't bump data pointer past
239 end when strnlen doesn't find string terminator.
240 (decode_location_expression): Remove dead code.
241 (skip_attr_bytes): Remove const from end param. Ensure data
242 pointer doesn't pass end.
243 (get_type_signedness): Remove const from end param.
244 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
245 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
246 (display_debug_pubnames_worker): Likewise.
247 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
248 than blindly incrementing data pointer.
249 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
250 compare pointers, compare lengths.
251
6d1ad6f7
AM
2522021-05-12 Alan Modra <amodra@gmail.com>
253
254 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
255 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
256 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
257 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
258 SAFE_BYTE_GET followed by increment.
259 (process_debug_info): Likewise, and test bytes remaining before
260 incrementing section_begin rather than using pointer comparison.
261 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
262 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
263
af2ddf69
AM
2642021-05-12 Alan Modra <amodra@gmail.com>
265
266 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
267 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
268 SAFE_BYTE_GET_AND_INC.
269 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
270 (process_debug_info, process_cu_tu_index): Likewise.
271 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
272 (byte_get, byte_get_little_endian, byte_get_big_endian),
273 (byte_get_signed): Make size param unsigned. Remove code dealing
274 with 4-byte elf_vma.
275 (byte_get_64): Delete.
276 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
277 (byte_get, byte_get_little_endian, byte_get_big_endian),
278 (byte_get_signed): Update prototypes.
279 (byte_get_64): Delete.
280
0d872fca
AM
2812021-05-12 Alan Modra <amodra@gmail.com>
282
283 PR 27836
284 * dwarf.c (display_debug_frames): Don't compare pointers derived
285 from user input. Test offset against bounds instead.
286
55b26492
AM
2872021-05-12 Alan Modra <amodra@gmail.com>
288
289 PR 27853
290 * dwarf.c (display_formatted_table): Test for data >= end rather
291 than data == end.
292 (process_extended_line_op): Likewise.
293 (display_debug_lines_raw): Likewise.
294 (display_debug_lines_decoded): Likewise.
295
5ab39075
AM
2962021-05-12 Alan Modra <amodra@gmail.com>
297
298 PR 27849
299 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
300 Sanity check section size for version and padding too. Correct
301 index sanity check. Handle multiple tables in .debug_str_offsets.
302
d30182b5
HPN
3032021-05-11 Hans-Peter Nilsson <hp@axis.com>
304
305 * dwarf.c (process_abbrev_set): Properly parenthesize before
306 casting to unsigned long.
307
f2f9554b
AM
3082021-05-11 Alan Modra <amodra@gmail.com>
309
310 PR 27845
311 * dwarf.c (process_abbrev_set): Replace start and end parameters
312 with section, abbrev_base, abbrev_size, abbrev_offset. Update
313 all callers. Sanity check parameters correctly and emit warnings
314 here rather than..
315 (process_debug_info): ..here.
316
749c7002
TW
3172021-05-10 Thomas Wolff <towo@towo.net>
318
319 PR 4356
320 PR 26865
321 PR 27594
322 * windres.c (quot): Revert previous delta. Do not use double
323 quotes when spaces are detected in options.
324 * doc/binutils.texi (windres): Remove suggestion that the
325 --preprocessor option can take arguments.
326
2d4b4986
AM
3272021-05-10 Alan Modra <amodra@gmail.com>
328
329 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
330 END rather than adding amount to PTR.
331 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
332
b05a0fc7
AM
3332021-05-09 Alan Modra <amodra@gmail.com>
334
335 * objcopy.c (eq_string): Delete.
336 (create_symbol_htab): Use htab_eq_string.
337
354c317e
MF
3382021-05-08 Mike Frysinger <vapier@gentoo.org>
339
340 * README-how-to-make-a-release: Update html & pdf entries.
341
cf758b39
MF
3422021-05-08 Mike Frysinger <vapier@gentoo.org>
343
344 * doc/Makefile.am (html-local, binutils/index.html): New targets.
345 * doc/Makefile.in: Regenerate.
346
2faf902d
MF
3472021-05-08 Mike Frysinger <vapier@gentoo.org>
348
349 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
350 * doc/Makefile.in: Regenerate.
351
3ecc00ec
NC
3522021-05-07 Nick Clifton <nickc@redhat.com>
353
354 * readelf.c (no_processor_specific_unwind): New function.
355 (process_unwind): Use no_processor_specific_unwind for X86
356 targets.
357
4896932e
MF
3582021-05-07 Michael Forney <mforney@mforney.org>
359
360 * dwarf.c: Don't omit second operand of '?' operator.
361
bfbfa6e7
NC
3622021-04-30 Nick Clifton <nickc@redhat.com>
363
364 PR 27796
365 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
366 .debug_sup section.
367
5edb8e3f
NC
3682021-04-29 Nick Clifton <nickc@redhat.com>
369
370 PR 27594
371 * doc/binutils.texi (windres): Correct the description of the
372 default value of the --preprocessor argument.
373
3d64c987
NC
3742021-04-27 Nick Clifton <nickc@redhat.com>
375
376 PR 27779
377 * dwarf.c (parse_gnu_debuglink): Reject empty names.
378 (parse_gnu_debugaltlink): Likewise.
379
b11b2969
CC
3802021-04-22 Clément Chigot <clement.chigot@atos.net>
381
382 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
383 aux structures.
384
047c3dbf
NL
3852021-04-21 Nick Lott <nick.lott@gmail.com>
386
387 PR 27672
388 * readelf.c (sym_base): New variable.
389 (enum print_mode): Add more modes.
390 (print_vma): Add suport for new modes.
391 (options): Add sym-base.
392 (usage): Add sym-base.
393 (parse_args): Add support for --sym-base.
394 (print_dynamic_symbol_size): New function.
395 (print_dynamic_symbol): Use new function.
396 * doc/binutils.texi: Document the new feature.
397 * NEWS: Mention the new feature.
398
23356397
NC
3992021-04-21 Nick Clifton <nickc@redhat.com>
400
401 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
402 Adjust expected output to allow for named section symbols.
403 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
404 Likewise.
405 * testsuite/binutils-all/readelf.s-64: Likewise.
406 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
407 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
408 * testsuite/binutils-all/readelf.ss-unused: Likewise.
409
4102021-04-21 Luo Longjun <luolongjun@huawei.com>
411
412 * readelf.c (print_dynamic_symbol): Print the section name for
413 section symbols without a name of their own.
414
aee4e85e
AK
4152021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
416
417 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
418 add him to Past Maintainers.
419 Update my email address.
420
229597a1
NC
4212021-04-19 Nick Clifton <nickc@redhat.com>
422
423 PR 21702
424 * arsup.c (ar_addmod): Enable plugin support, if available.
425
4dee4f3e
NC
4262021-04-19 Nick Clifton <nickc@redhat.com>
427
428 * rename.c: (get_stat_atime_ns): Add prototype.
429 (get_stat_mtime_ns): Add prototype.
430
ad7c4616
AM
4312021-04-16 Alan Modra <amodra@gmail.com>
432
433 PR 27725
434 * rename.c (get_stat_atime, get_stat_mtime): Make static.
435 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
436
4c79248a
PS
4372021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
438
439 PR 27725
440 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
441 (get_stat_mtime_ns): Likewise.
442
985e0264
AM
4432021-04-15 Alan Modra <amodra@gmail.com>
444
445 PR 27725
446 * configure.ac: Check for sys/time.h and utimensat. Use standard
447 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
448 members of struct stat.
449 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
450 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
451 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
452 (get_stat_atime, get_stat_mtime): Likewise.
453 (set_times): Choose first available of utimensat, utimes, utime.
454 Use above inline functions to set timespec and timeval values.
455 * configure: Regenerate.
456 * config.in: Regenerate.
457 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
458 file timestamp when --preserve-dates is used.
459
d0ecdcdd
AM
4602021-04-15 Alan Modra <amodra@gmail.com>
461
462 PR 27456
463 * rename.c (smart_rename): When TO and FROM are equal, just set
464 file timestamp.
465 * objcopy.c (strip_main, copy_main): Always call smart_rename.
466
9917b559
L
4672021-04-14 H.J. Lu <hongjiu.lu@intel.com>
468
469 PR binutils/27708
470 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
471 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
472 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
473 test.
474
6be872a4
MH
4752021-04-14 Mark Harmstone <mark@harmstone.com>
476
477 PR 27686
478 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
479 end of the structure.
480
5f47741b
FC
4812021-04-14 Frederic Cambus <fred@statdns.com>
482
483 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
484 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
485
13acb58d
AM
4862021-04-14 Alan Modra <amodra@gmail.com>
487
488 PR 27716
489 * objdump.c (show_line): Don't limit paths to PATH_MAX.
490 * readelf.c (struct filedata): Change program_interpreter from
491 a char array to a char pointer.
492 (process_program_headers): Sanity check PT_INTERP p_filesz.
493 Malloc program_interpreter using p_filesz and read directly from
494 file.
495 (process_dynamic_section): Check program_interpreter is non-NULL.
496 (free_filedata): New function, split out from..
497 (process_object): ..here.
498 (close_debug_file): Call free_filedata.
499 * sysdep.h: Don't include sys/param.h.
500 (PATH_MAX): Don't define.
501 * configure.ac: Don't check for sys/param.h.
502 * configure: Regenerate.
503
0fa29e2d
FC
5042021-04-13 Frederic Cambus <fred@statdns.com>
505
506 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
507 check for NT_NETBSD_PAX.
508
43e05cd4
AM
5092021-04-12 Alan Modra <amodra@gmail.com>
510
511 * configure.ac (--enable-checking): Add support.
512 * config.in: Regenerate.
513 * configure: Regenerate.
514
c3f72de4
AM
5152021-04-09 Alan Modra <amodra@gmail.com>
516
517 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
518 dynrelcount.
519 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
520 (disassemble_section, disassemble_data): Likewise.
521
a2e66773
AM
5222021-04-06 Alan Modra <amodra@gmail.com>
523
524 * objdump.c (objdump_symbol_at_address): Return asymbol*.
525
4db29512
AM
5262021-04-06 Alan Modra <amodra@gmail.com>
527
528 * NEWS: Mention C99 requirement.
529 * README: Likewise. Modernise examples and "Reporting bugs".
530
87b9f255
AM
5312021-04-05 Alan Modra <amodra@gmail.com>
532
533 * configure.ac: Assume long long is available. Don't test for
534 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
535 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
536 strcoll, setlocale, setmode or location of time_t. Don't check
537 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
538 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
539 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
540 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
541 locale.h, string.h and stdlib.h unconditionally. Remove various
542 fallback declarations. Assume long long is available.
543 * addr2line.c: Don't test HAVE_SETLOCALE.
544 * ar.c: Likewise.
545 * coffdump.c: Likewise.
546 * dlltool.c: Likewise.
547 * dllwrap.c: Likewise.
548 * elfedit.c: Likewise.
549 * nm.c: Likewise.
550 * objcopy.c: Likewise.
551 * objdump.c: Likewise.
552 * readelf.c: Likewise.
553 * size.c: Likewise.
554 * srconv.c: Likewise.
555 * strings.c: Likewise.
556 * sysdump.c: Likewise.
557 * windmc.c: Likewise.
558 * windres.c: Likewise.
559 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
560 * dwarf.c: Include limits.h unconditionally. Assume long long
561 is available.
562 * nm.c: Don't test HAVE_STRCOLL.
563 * readelf.c: Don't test HAVE_WCHAR_H.
564 * strings.c: Assume long long is available.
565 * syslex.l: Include string.h unconditionally.
566 * aclocal.m4: Regenerate.
567 * config.in: Regenerate.
568 * configure: Regenerate.
569 * Makefile.in: Regenerate.
570 * doc/Makefile.in: Regenerate.
571
e9b095a5
ML
5722021-04-01 Martin Liska <mliska@suse.cz>
573
574 * elfcomm.h (strneq): Remove strneq and use startswith.
575 * readelf.c (ia64_process_unwind): Likewise.
576 (process_note): Likewise.
577
3f3328b8
ML
5782021-04-01 Martin Liska <mliska@suse.cz>
579
580 * dllwrap.c: Use startswith function.
581 * objcopy.c (is_dwo_section): Likewise.
582 (handle_remove_section_option): Likewise.
583 (copy_main): Likewise.
584 * objdump.c (is_significant_symbol_name): Likewise.
585
24d127aa
ML
5862021-04-01 Martin Liska <mliska@suse.cz>
587
588 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
589 startswith.
590 (display_debug_lines_decoded): Likewise.
591 (display_debug_links): Likewise.
592 * elfcomm.c (setup_archive): Likewise.
593 * elfcomm.h (const_strneq): Likewise.
594 * readelf.c (process_section_headers): Likewise.
595 (slurp_ia64_unwind_table): Likewise.
596 (slurp_hppa_unwind_table): Likewise.
597 (decode_arm_unwind): Likewise.
598 (display_debug_section): Likewise.
599 (process_note): Likewise.
600
015dc7e1
AM
6012021-03-31 Alan Modra <amodra@gmail.com>
602
603 * sysdep.h (POISON_BFD_BOOLEAN): Define.
604 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
605 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
606 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
607 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
608 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
609 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
610 * windmc.c, * windmc.h, * windres.c, * winduni.c,
611 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
612 and TRUE with true throughout.
613
3dfb1b6d
AM
6142021-03-31 Alan Modra <amodra@gmail.com>
615
616 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
617 * dwarf.c: Likewise.
618
57ae980e
AM
6192021-03-31 Alan Modra <amodra@gmail.com>
620
621 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
622
63b4cc53
AM
6232021-03-29 Alan Modra <amodra@gmail.com>
624
625 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
626 * dwarf.c (read_and_display_attr_value): Likewise.
627 (display_debug_str_offsets): Likewise.
628 * objdump.c (dump_bfd): Likewise.
629 * readelf.c (dump_section_as_strings): Likewise.
630 (dump_section_as_bytes): Likewise.
631
1be305ff
AM
6322021-03-29 Alan Modra <amodra@gmail.com>
633
634 * objdump.c (process_links): Use type int.
635 * readelf.c (request_dump): Don't increment do_dump, set it.
636 * windint.h (target_is_bigendian): Use type bfd_boolean.
637 * windmc.c (target_is_bigendian): Likewise.
638 * windres.c (target_is_bigendian): Likewise.
639
08dedd66
ML
6402021-03-22 Martin Liska <mliska@suse.cz>
641
1be305ff
AM
642 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
643 with startswith.
08dedd66
ML
644 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
645 * objcopy.c (is_mergeable_note_section): Likewise.
646 * objdump.c (dump_dwarf_section): Likewise.
647 * prdbg.c (pr_method_type): Likewise.
648 (pr_class_baseclass): Likewise.
649 (tg_class_baseclass): Likewise.
650 * readelf.c (process_lto_symbol_tables): Likewise.
651 * stabs.c (ULLHIGH): Likewise.
652 (parse_stab_argtypes): Likewise.
653 (stab_demangle_function_name): Likewise.
654
7b9f9859
L
6552021-03-19 H.J. Lu <hongjiu.lu@intel.com>
656
657 * readelf.c (get_machine_name): Add EM_INTELGT.
658
835f2fae
NC
6592021-03-18 Nick Clifton <nickc@redhat.com>
660
661 PR 27478
662 * readelf.c (dump_section_as_strings): Mention separate filename.
663 (dump_section_as_bytes): Likewise.
664 (dump_section_as_ctf): Likewise.
665 (initialise_dumkps_byname): Only issue a warning for missing
666 sections if processing the main file.
667 (process_section_contents): Only issue a warning for unsumped
668 section numbers in the main file.
669 (initialise_dump_sects): New function. Contains code extracted
670 from ...
671 (process_object): ... here. Also call initialise_dump_sects for
672 separate files.
673
44266f36
NC
6742021-03-16 Nick Clifton <nickc@redhat.com>
675
676 PR 27534
677 * readelf.c (display_debug_section): Also retain .debug_addr
678 sections.
679
d6bfbc39
NC
6802021-03-16 Nick Clifton <nickc@redhat.com>
681
682 PR 27533
683 * readelf.c (process_section_contents): Only dump debug
684 information for separate files unless process_links is enabled.
685 (process_object): Always call process_section_contents for
686 separate info files.
687
1996d0f1
NC
6882021-03-15 Nick Clifton <nickc@redhat.com>
689
690 PR 27487
691 * nm.c (FORMAT_JUST_SYMBOLS): Define.
692 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
693 (long_options): Add just-symbols.
694 (set_output_format): Add support for just-symbols.
695 (get_print_format): Likewise.
696 (do_not_print_object_filename): New function.
697 (do_not_print_archive_filename): New function.
698 (do_not_print_archive_member): New function.
699 (do_not_print_symbol_filename): New function.
700 (just_print_symbol_name): New function.
701 (main): Handle --just-symbols.
702 * NEWS: Mention the new feature.
703 * doc/binutils.texi: Document the new feature.
704
2c1bef53
CC
7052021-03-12 Clément Chigot <clement.chigot@atos.net>
706
707 * od-xcoff.c: Replace RTB by TRL entry.
708
db6092f3
AB
7092021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
710 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
713
b63a5e38
AB
7142021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
715 Andrew Burgess <andrew.burgess@embecosm.com>
716
717 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
718
d296b736
NC
7192021-03-05 Nick Clifton <nickc@redhat.com>
720
721 PR 27387
722 * dwarf.c (display_debug_macro): Handle the displaying of
723 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
724 .debug_macro.dwo sections.
725
ca0e11aa
NC
7262021-03-04 Nick Clifton <nickc@redhat.com>
727
728 PR 27478
729 * objdump.c (process_links): New variable.
730 (usage): Add --process-links.
731 (long_options): Likewise.
732 (dump_bfd): Stop processing once the bfd has been loaded unless
733 this is the main file or process_links has been enabled.
734 (main): Handle the process-links option.
735 * readelf.c (process_links): New variable.
736 (struct filedata): Add is_separate field.
737 (options): Add --process-links.
738 (usage): Likewise.
739 (parse_args): Likewise.
740 (process_file_header): Include the filename when dumping
741 information for separate debuginfo files.
742 (process_program_headers): Likewise.
743 (process_section_headers): Likewise.
744 (process_section_groups): Likewise.
745 (process_relocs): Likewise.
746 (process_dynamic_section): Likewise.
747 (process_version_sections): Likewise.
748 (display_lto_symtab): Likewise.
749 (process_symbol_table): Likewise.
750 (process_syminfo): Likewise.
751 (initialise_dumps_by_name): Likewise.
752 (process_section_contents): Likewise.
753 (process_notes_at): Likewise.
754 (process_notes): Likewise.
755 (open_file): Add is_separate parameter. Use to initialise the
756 is_separate field in the filedata structure.
757 (open_deug): Update call to open_file.
758 (process_object): Add processing of the contents of separate
759 debuginfo files, gated by the process_links variable.
760 (process_archive): Update call to open_file.
761 (process_file): Initialise the is_separate field in the filedata
762 structure.
763 * dwarf.c (load_separate_debug_info_file): Only report the
764 loading of a separate file if debug links are being dumped.
765 * objcopy.c (keep_section_symbols): New variable.
766 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
767 (strip_options): Add keep-section-symbols.
768 (copy_options): Likewise.
769 (copy_usage): Likewise.
770 (strip_usage): Likewise.
771 (copy_object): Keep section symbols if requested by command line
772 option.
773 (strip_main): Handle --keep-section-symbols.
774 (copy_main): Likewise.
775 * doc/binutils.texi: Document the new options.
776 * NEWS: Mention the new features.
777 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
778 Update options passed to objdump. Use diff rather than cmp to
779 compare the dumped data.
780 * testsuite/binutils-all/objdump.WK2: Update regexp.
781 * testsuite/binutils-all/objdump.WK3: Update regexp.
782 * testsuite/binutils-all/objdump.exp: Use --process-links
783 instead of --dwarf=follow-links.
784 * testsuite/binutils-all/readelf.exp (readelf_test): Include
785 readelf's output in the log when the test fails.
786 Add the -P option to the -wKis test.
787 * testsuite/binutils-all/readelf.wKis: Update expected output.
788
fd5c076a
AM
7892021-03-03 Alan Modra <amodra@gmail.com>
790
791 PR 27493
792 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
793 * NEWS: Mention feature.
794
ecd65684
L
7952021-03-01 H.J. Lu <hongjiu.lu@intel.com>
796
797 PR binutils/27486
798 * dwarf.c (load_separate_debug_info): Issue warning only if
799 do_debug_links is set.
800 * testsuite/binutils-all/compress.exp: Run objdump and readelf
801 with missing debug file.
802
6a1224ec
AM
8032021-03-01 Alan Modra <amodra@gmail.com>
804
805 PR 27128
806 * doc/binutils.texi: Add nm --with-symbol-versions and
807 --without-symbol-versions documentation.
808 * nm.c (with_symbol_versions): New variable.
809 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
810 (long_options): Make --with-symbol-versions entry twiddle the flag.
811 Add --without-symbol-versions.
812 (print_symname): Strip version when !with_symbol_versions. Add
813 dynamic version info under control of with_symbol_versions.
814 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
815
7fe1b138
FS
8162021-02-26 Fangrui Song <maskray@google.com>
817
818 PR 27408
819 * readelf.c (quiet): New option flag.
820 (enum long_option_values): New enum to hold long option value.
821 (long_options): Add --quiet.
822 (usage): Mention --quiet.
823 (display_rel_file): If quiet is enabled, suppress "no symbols".
824 (main): Handle the new option.
825 * NEWS: Mention --quiet.
826 * docs/binutils.texi: Document --quiet.
827
0e12f6c8
TV
8282021-02-26 Tom de Vries <tdevries@suse.de>
829
830 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
831
32e4f96c
TV
8322021-02-26 Tom de Vries <tdevries@suse.de>
833
834 PR 27390
835 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
836 DW_FORM_addrx*.
837 (read_and_display_attr_value): Likewise.
838
e38332c2
NC
8392021-02-25 Nick Clifton <nickc@redhat.com>
840
841 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
842 forms.
843 (read_and_display_attr_value): Handle sup forms.
844 (display_debug_sup): New function. Displays the contents of a
845 .debug_sup section.
846 (load_debug_sup_file): New function. Loads the contents of a file
847 referenced by a .debug_sup section.
848 (check_for_and_load_links): Call load_debug_sup_file.
849 (debug_displays): Add entry for .debug_sup.
850 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
851 * readelf.c (process_section_headers): Add support for debug_sup.
852 * doc/debug.options.texi: Note that the =links option will display
853 the contents of .debug_sup sections.
854 * NEWS: Mention the new support.
855
40b02646
AM
8562021-02-25 Alan Modra <amodra@gmail.com>
857
858 PR 27456
859 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
860
9d3fcfe0
NC
8612021-02-24 Nick Clifton <nickc@redhat.com>
862
863 PR 27285
864 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
865 when adding together the section sizes.
866
c74147bb
NC
8672021-02-24 Nick Clifton <nickc@redhat.com>
868
869 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
870 build notes.
871 * readelf.c (print_gnu_build_attribute_description): Likewise.
872
c42c71a1
AM
8732021-02-24 Alan Modra <amodra@gmail.com>
874 Siddhesh Poyarekar <siddhesh@gotplt.org>
875
876 PR 27456
877 * bucomm.h (smart_rename): Update prototype.
878 * rename.c (smart_rename): Add fromfd and preserve_dates params.
879 Pass fromfd and target_stat to simple_copy. Call set_times
880 when preserve_dates.
881 (simple_copy): Accept fromfd rather than from filename. Add
882 target_stat param. Rewind fromfd rather than opening. Open
883 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
884 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
885 closing output temp file, and pass tmpfd to smart_rename.
886 * arsup.c (temp_fd): Rename from real_fd.
887 (ar_save): Dup temp_fd and pass to smart_rename.
888 * objcopy.c (strip_main, copy_main): Likewise, and pass
889 preserve_dates.
890
cca8873d
AM
8912021-02-24 Alan Modra <amodra@gmail.com>
892
893 PR 27456
894 * rename.c: Tidy throughout.
895 (smart_rename): Always copy. Remove windows specific code.
896
4d496013
AM
8972021-02-20 Alan Modra <amodra@gmail.com>
898
899 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
900 (run_dump_test): Fail if expecting errors from a file like we do
901 for error strings, if no error is seen.
902
0be51eb4
AM
9032021-02-19 Alan Modra <amodra@gmail.com>
904
905 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
906
3685de75
SP
9072021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
908
909 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
910 SMART_RENAME.
911 * arsup.c (ar_save): Likewise.
912 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
913 temporary file and adjust call to SMART_RENAME.
914 (copy_main): Likewise.
915 * rename.c [!S_ISLNK]: Remove definitions.
916 (try_preserve_permissions): Remove function.
917 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
918 rename system call only if TO does not exist.
919 * bucomm.h (smart_rename): Adjust declaration.
920
85684222
NC
9212021-02-18 Nick Clifton <nickc@redhat.com>
922
923 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
924 address that is higher than the end address.
925
b9b204b3
AM
9262021-02-17 Alan Modra <amodra@gmail.com>
927
928 * dwarf.c: Include limits.h.
929 (CHAR_BIT): Provide backup define.
930 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
931 signed overflow checking.
932 * testsuite/binutils-all/pr26548.s,
933 * testsuite/binutils-all/pr26548.d,
934 * testsuite/binutils-all/pr26548e.d: New tests.
935 * testsuite/binutils-all/readelf.exp: Run them.
936 (readelf_test): Drop unused "xfails" parameter. Update all uses.
937
e6ca1878
JB
9382021-02-16 Jan Beulich <jbeulich@suse.com>
939
940 * dwarf.c (process_debug_info): Initialize "dwo_id".
941
208599d9
AM
9422021-02-15 Alan Modra <amodra@gmail.com>
943
944 * objdump.c (load_specific_debug_section): Don't call
945 bfd_cache_section_contents. Rearrange so that
946 bfd_get_full_section_contents is not called on path where
947 bfd_simple_get_relocated_section_contents is called.
948 Don't set section->user_data.
949 (free_debug_section): Always free section->start. Don't twiddle
950 section flags.
951 * readelf.c (load_specific_debug_section): Don't set user_data.
952 * dwarf.h (struct dwarf_section): Remove use_data field.
953 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
954
1781a9d0
AM
9552021-02-15 Alan Modra <amodra@gmail.com>
956
957 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
958 * testsuite/binutils-all/objdump.exp: Likewise.
959
1944212b
AM
9602021-02-14 Alan Modra <amodra@gmail.com>
961
962 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
963 to the symbol array.
964 (slurp_dynamic_symtab): Likewise.
965 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
966
0d0a0d86
AM
9672021-02-14 Alan Modra <amodra@gmail.com>
968
969 * Makefile.in: Regenerate.
970 * doc/Makefile.in: Regenerate.
971
adeab0c5
MF
9722021-02-13 Mike Frysinger <vapier@gentoo.org>
973
974 * aclocal.m4: Regenerate.
975
c46b7066
NC
9762021-02-12 Nick Clifton <nickc@redhat.com>
977
978 * configure.ac (follow-debug-links): Add option to enable or
979 disable the following of debug links by default. Set the
980 default for the option to be 'follow'.
981 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
982 (dwarf_select_sections_by_names): Add no-follow-links option.
983 (dwarf_select_sections_by_letter): Add 'N' option.
984 * objdump.c (usage): Add conditional text describing the
985 follow links option.
986 (slurp_symtab): Ensure that there is a NULL entry at the end
987 of the symbol table.
988 (slurp_dynamic_symtab): Likewise.
989 (dump_bfd): When extending the symbol table, ensure that there
990 is still a NULL entry at the end.
991 * readelf.c (usage): Add conditional text describing the
992 follow links option.
993 * doc/binutils.texi: Update documentation for objcopy and
994 readelf.
995 * doc/debug.options.texi: Update documentation of the
996 follow-links option.
997 * config.in: Regenerate.
998 * configure: Regenerate.
999 * testsuite/binutils-all/compress.exp: Add the -WN option to
1000 objdump command lines that are not expecting to follow links.
1001 * testsuite/binutils-all/readelf.exp: Add the
1002 --debug-dump=no-follow-links option to tests that are not
1003 expecting to follow debug links.
1004 * NEWS: Mention the new behaviour.
1005
17e04eff
AM
10062021-02-12 Alan Modra <amodra@gmail.com>
1007
1008 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
1009 gas or ld fails to build a testcase rather than "unresolved".
1010 Report "fail" when readelf returns an error status rather than
1011 "unresolved".
1012 * testsuite/binutils-all/ar.exp: Likewise.
1013 * testsuite/binutils-all/compress.exp: Likewise.
1014 * testsuite/binutils-all/readelf.exp: Likewise.
1015
8f054a7a
AM
10162021-02-12 Alan Modra <amodra@gmail.com>
1017
1018 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
1019 "c" with "ccc" labels.
1020
528a4f87
TV
10212021-02-12 Tom de Vries <tdevries@suse.de>
1022
1023 * dwarf.h (debug_info): Fix typo in comment.
1024
95abb394
TV
10252021-02-12 Tom de Vries <tdevries@suse.de>
1026
1027 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
1028 entries.
1029
d60f7998
TV
10302021-02-12 Tom de Vries <tdevries@suse.de>
1031
1032 * dwarf.c (process_debug_info): Print DWO ID.
1033
1cfcf300
AM
10342021-02-11 Alan Modra <amodra@gmail.com>
1035
1036 PR 27290
1037 PR 27293
1038 PR 27295
1039 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
1040 Use bfd_malloc_and_get_section.
1041 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
1042 check namesz. Return NULL if descsz is too small. Ensure
1043 string table is terminated.
1044 (elf32_avr_get_device_info): Formatting. Add note_size param.
1045 Sanity check note.
1046 (elf32_avr_dump_mem_usage): Adjust to suit.
1047
d9d9d8ef
TV
10482021-02-10 Tom de Vries <tdevries@suse.de>
1049
1050 PR binutils/27391
1051 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
1052
52ff20fe
TV
10532021-02-10 Tom de Vries <tdevries@suse.de>
1054
1055 PR binutils/27371
1056 * dwarf.c (display_debug_ranges): Filter range lists according to
1057 section.
1058
5f128a25
TV
10592021-02-09 Tom de Vries <tdevries@suse.de>
1060
1061 PR binutils/27370
1062 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
1063
9b87f84a
TV
10642021-02-09 Tom de Vries <tdevries@suse.de>
1065
1066 PR binutils/27386
1067 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
1068 DW_UT_split_compile.
1069
a57d1773
AM
10702021-02-09 Alan Modra <amodra@gmail.com>
1071
1072 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
1073 symbianelf.
1074
de8d4203
AM
10752021-02-07 Alan Modra <amodra@gmail.com>
1076
1077 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
1078 uninitialised on invalid input.
1079
51a25252
AM
10802021-02-06 Alan Modra <amodra@gmail.com>
1081
1082 PR 27349
1083 * rename.c (smart_rename): Test for existence and type of output
1084 file with lstat.
1085
e37d88e5
NC
10862021-02-05 Nick Clifton <nickc@redhat.com>
1087
1088 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
1089
887854ba
EZ
10902021-02-05 Eli Zaretskii <eliz@gnu.org>
1091
1092 PR 27252
1093 * elfedit.c (check_file):
1094 * bucomm.c (get_file_size): Fix typos in comments.
1095
c180f095
AM
10962021-02-05 Alan Modra <amodra@gmail.com>
1097
1098 PR 27345
1099 * arsup.c (ar_save): Use stat rather than lstat.
1100
95b91a04
AM
11012021-02-03 Alan Modra <amodra@gmail.com>
1102
1103 PR 27270
1104 PR 27284
1105 PR 26945
1106 * ar.c: Don't include libbfd.h.
1107 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
1108 bfd_stat rather than fstat on iostream. Move stat and fd tests
1109 outside of _WIN32 ifdef. Delete skip_stat variable.
1110 * arsup.c (temp_name, real_ofd): New static variables.
1111 (ar_open): Use make_tempname and bfd_fdopenw.
1112 (ar_save): Adjust to suit ar_open changes. Move stat output
1113 of _WIN32 ifdef.
1114 * objcopy.c: Don't include libbfd.h.
1115 (copy_file): Use bfd_stat.
1116
5424d7ed
L
11172021-02-02 H.J. Lu <hongjiu.lu@intel.com>
1118
1119 PR binutils/27281
1120 * readelf.c (process_section_headers): Add 'R' and 'D' to
1121 "Key to Flags:".
1122 * testsuite/binutils-all/retain1a.d: Updated.
1123
72a51a06
NC
11242021-01-30 Nick Clifton <nickc@redhat.com>
1125
1126 * README-how-to-make-a-release: Small updates after the 2.35.2
1127 release.
1128
cc3edc52
EZ
11292021-01-28 Eli Zaretskii <eliz@gnu.org>
1130
1131 PR 4356
1132 * windres.c (quot): Use double quotes to protect strings on
1133 Windows platforms.
1134
a7ad3cb1
EZ
11352021-01-28 Eli Zaretskii <eliz@gnu.org>
1136
1137 PR 27252
1138 * bucomm.c (get_file_size): Add code to handle /dev/null on
1139 Windows systems.
1140 * elfedit.c (check_file): Likewise.
1141
67965ba2
NC
11422021-01-27 Nick Clifton <nickc@redhat.com>
1143
1144 * objcopy.c (copy_main): Remove conditional control of the calls
1145 to free, simplifying the code and making it easier to detect
1146 typos.
1147
e37709f0
FC
11482021-01-26 Frederic Cambus <fred@statdns.com>
1149
1150 * objcopy.c (copy_main): Fix a double free happening when both
1151 --localize-symbols and --globalize-symbols options are invoked
1152 together.
1153
9b351c9b
NC
11542021-01-24 Nick Clifton <nickc@redhat.com>
1155
1156 * README-how-to-make-a-release: Minor updates after the 2.36 release.
1157
ad92f33d
AM
11582021-01-16 Alan Modra <amodra@gmail.com>
1159
1160 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
1161
3624a6c1
AM
11622021-01-15 Alan Modra <amodra@gmail.com>
1163
1164 PR 26539
1165 * readelf.c (uncompress_section_contents): Always call inflateEnd.
1166
c14dee84
AO
11672021-01-14 Alexandre Oliva <oliva@gnu.org>
1168
1169 * MAINTAINERS: Update my email address.
1170
5a10699f
NC
11712021-01-14 Nick Clifton <nickc@redhat.com>
1172
1173 * po/sv.po: Updated Swedish translation.
1174
5347ed60
AM
11752021-01-13 Alan Modra <amodra@gmail.com>
1176
1177 * Makefile.in: Regenerate.
1178 * doc/Makefile.in: Regenerate.
1179
2ce40d1a
ZF
11802021-01-13 Zebediah Figura <z.figura12@gmail.com>
1181
1182 PR 27037
1183 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
1184 and before exit.
1185 (i386_x64_trampoline): Add SEH annotations.
1186 (struct mac): Add how_seh field.
1187 (make_delay_head): If how_set field is true add SEh instructions.
1188
d546b610
L
11892021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1190
1191 PR binutils/26792
1192 * configure.ac: Use GNU_MAKE_JOBSERVER.
1193 * aclocal.m4: Regenerated.
1194 * configure: Likewise.
1195
6d104cac
NC
11962021-01-12 Nick Clifton <nickc@redhat.com>
1197
1198 * po/fr.po: Updated French translation.
1199
83b33c6c
L
12002021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1201
1202 PR ld/27173
1203 * configure: Regenerated.
1204
a8aa72b9
NC
12052021-01-11 Nick Clifton <nickc@redhat.com>
1206
1207 * po/pt.po: Updated Portuguese translation.
1208 * po/sr.po: Updated Serbian translation.
1209 * po/uk.po: Updated Ukranian translation.
1210
a4966cd9
L
12112021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1212
1213 * configure: Regenerated.
1214
573fe3fb
NC
12152021-01-09 Nick Clifton <nickc@redhat.com>
1216
1217 * configure: Regenerate.
1218 * po/binutils.pot: Regenerate.
1219
055bc77a
NC
12202021-01-09 Nick Clifton <nickc@redhat.com>
1221
1222 * 2.36 release branch crated.
573fe3fb
NC
1223 * README-how-to-make-a-release: Add note about updating Makefiles
1224 and libtool files.
1225 * BRANCHES: Add binutils-2.36-branch.
055bc77a 1226
64307045
AM
12272021-01-09 Alan Modra <amodra@gmail.com>
1228
1229 * configure: Regenerate.
1230
f4782128
ST
12312021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1232
1233 * configure: Regenerate.
1234
d1bcae83
L
12352021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1236
1237 PR 27109
1238 * objcopy.c (copy_object): Handle section symbols for
1239 non-relocatable inputs.
1240 * testsuite/binutils-all/readelf.exp (readelf_test): Check
1241 is_elf_unused_section_symbols.
1242 * testsuite/binutils-all/readelf.s-64: Updated.
1243 * testsuite/binutils-all/readelf.ss: Likewise.
1244 * testsuite/binutils-all/readelf.ss-64: Likewise.
1245 * testsuite/binutils-all/readelf.s-64-unused: New file.
1246 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1247 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1248 * testsuite/lib/binutils-common.exp
1249 (is_elf_unused_section_symbols): New proc.
1250
6987d5a1
RT
12512021-01-06 Reuben Thomas <rrt@sc3d.org>
1252
1253 * binutils/readelf.c: Correct grammar in comment.
1254
f9a6a8f0
AM
12552021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1256
1257 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
1258 * doc/binutils.texi: Correct grammar.
1259 * readelf.c (process_version_sections): Correct spelling of auxiliary
1260 in warning.
1261 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
1262
250d07de
AM
12632021-01-01 Alan Modra <amodra@gmail.com>
1264
1265 Update year range in copyright notice of all files.
1266
c2795844 1267For older changes see ChangeLog-2020
3499769a 1268\f
c2795844 1269Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
1270
1271Copying and distribution of this file, with or without modification,
1272are permitted in any medium without royalty provided the copyright
1273notice and this notice are preserved.
1274
1275Local Variables:
1276mode: change-log
1277left-margin: 8
1278fill-column: 74
1279version-control: never
1280End: