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