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