]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Fix wrong method name
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
3e9373fc
L
12020-12-28 H.J. Lu <hongjiu.lu@intel.com>
2
3 * testsuite/binutils-all/compress.exp (test_gnu_debuglink): Pass
4 $gcc_gas_flag to target_compile.
5
dccc31de
AM
62020-12-24 Alan Modra <amodra@gmail.com>
7
8 * readelf.c (INT64_MIN): Define if not already defined.
9 (print_vms_time): Catch 64-bit overflow when converting from
10 vms time to posix time. Don't segfault if gmtime returns NULL.
11
279d901e
L
122020-12-23 H.J. Lu <hongjiu.lu@intel.com>
13
14 * NEWS: Mention LAM_U48 and LAM_U57 support.
15 * elfedit.c (elf_x86_feature): Support lam_u48 and lam_u57.
16 (usage): Add lam_u48 and lam_u57.
17 * readelf.c (decode_x86_feature_1): Support LAM_U48 and LAM_U57.
18 * doc/binutils.texi: Update elfedit with lam_u48 and lam_u57
19 support.
20 * testsuite/binutils-all/x86-64/lam-u48.d: New file.
21 * testsuite/binutils-all/x86-64/lam-u48.s: Likewise.
22 * testsuite/binutils-all/x86-64/lam-u57.d: Likewise.
23 * testsuite/binutils-all/x86-64/lam-u57.s: Likewise.
24
a5da3dee
VDM
252020-12-15 Vivek Das Mohapatra <vivek@collabora.com>
26
27 * readelf.c (get_dynamic_type): Handle DT_GNU_FLAGS_1.
28 (process_dynamic_section): Likewise.
29
4cf2ad72
CC
302020-12-11 Cary Coutant <ccoutant@gmail.com>
31
32 * readelf.c (get_machine_name): Update list of e_machine values.
33
b143e2d5
SH
342020-12-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
35
36 * ar.c (write_archive): Cast iostream pointer to FILE *.
37 * arsup.c (ar_save): Likewise.
38 * objcopy.c (copy_file): Likewise.
39
84614182
NC
402020-12-07 Nick Clifton <nickc@redhat.com>
41
42 * objcopy.c (is_mergeable_note_section): Remove reference to
43 SHF_GNU_BUILD_NOTE.
44
014cc7f8
SP
452020-12-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
46
47 PR 26945
48 * ar.c
49 (write_archive) [!defined (_WIN32) || defined (__CYGWIN32__)]:
50 Initialize TARGET_STAT and OFD to pass to SMART_RENAME.
51 * arsup.c
52 (ar_save) [defined (_WIN32) || defined (__CYGWIN32__)]:
53 Likewise.
54 * bucomm.h (smart_rename): Add new arguments to declaration.
55 * objcopy.c
56 (strip_main)[defined (_WIN32) || defined (__CYGWIN32__)]:
57 Initialize COPYFD and pass to SMART_RENAME.
58 (copy_main) [defined (_WIN32) || defined (__CYGWIN32__)]:
59 Likewise.
60 * rename.c (try_preserve_permissions): New function.
61 (smart_rename): Use it and add new arguments.
62
1a1c3b4c
SP
632020-12-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
64
65 PR 26945
66 * objcopy.c (copy_file): New argument IN_STAT. Return stat of
67 ibfd through it.
68 (strip_main): Remove redundant stat calls. adjust copy_file
69 calls.
70 (copy_main): Likewise.
71
365f5fb6
SP
722020-12-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
73
74 PR 26945
75 * bucomm.c (make_tempname): Add argument to return file
76 descriptor.
77 * bucomm.h (make_tempname): Likewise.
78 * ar.c: Include libbfd.h.
79 (write_archive): Adjust for change in make_tempname. Call
80 bfd_fdopenw instead of bfd_openw.
81 * objcopy.c: Include libbfd.h.
82 (copy_file): New argument OFD. Use bfd_fdopenw instead of
83 bfd_openw.
84 (strip_main): Adjust for change in make_tempname and
85 copy_file.
86 (copy_main): Likewise.
87
88
a315d390
NC
892020-12-07 Nick Clifton <nickc@redhat.com>
90
91 * README-how-to-make-a-release (point releases): Add a note to
92 update the milestone list on sourceware's bugzilla.
93
288f0ba2
AM
942020-12-04 Alan Modra <amodra@gmail.com>
95
96 * dwarf.c (frame_display_row): Do without static variable "sloc".
97 (cu_tu_indexes_read): Move to file scope.
98 (free_debug_memory): Reset it here, along with level_type_signed.
99 Free and clear a number of other static variables.
100 * readelf.c (arm_attr_public_tag <table>): Constify, updating..
101 (arm_attr_tag_*): ..all these uses.
102 (process_mips_specific): Free "rels" on error path.
103
21c33bcb
NC
1042020-11-27 Nick Clifton <nickc@redhat.com>
105
106 PR 26865
107 * windres.c (main): If the preprocessor name includes spaces,
108 ensure that it is quoted.
109
2c6f3e56
JL
1102020-11-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
111
112 * testsuite/lib/binutils-common.exp (supports_noinit_section): New.
113 (supports_persistent_section): New.
114
96c61be5
NA
1152020-11-23 Nick Alcock <nick.alcock@oracle.com>
116
117 * readelf.c (dump_section_as_ctf): Call ctf_arc_symsect_endianness.
118
6595cf3c
AM
1192020-11-25 Alan Modra <amodra@gmail.com>
120
121 * testsuite/binutils-all/nm.exp (ifunc): xfail more targets.
122
3d16b64e
NA
1232020-11-20 Nick Alcock <nick.alcock@oracle.com>
124
125 * readelf.c (dump_section_as_ctf): Use .dynsym and .dynstr, not
126 .symtab and .strtab.
127
83d59285
NA
1282020-11-20 Nick Alcock <nick.alcock@oracle.com>
129
130 * objdump.c (dump_ctf): Report errors from ctf_archive_iter.
131 * readelf.c (dump_section_as_ctf): Likewise.
132
ae41200b
NA
1332020-11-20 Nick Alcock <nick.alcock@oracle.com>
134
135 * objdump.c (dump_ctf): Use ctf_dict_open, not
136 ctf_arc_open_by_name.
137 * readelf.c (dump_section_as_ctf): Likewise.
138
139633c3
NA
1392020-11-20 Nick Alcock <nick.alcock@oracle.com>
140
141 * objdump.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
142 (dump_ctf_archive_member): Likewise.
143 (dump_ctf): Likewise. Use ctf_dict_close, not ctf_file_close.
144 * readelf.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
145 (dump_ctf_archive_member): Likewise.
146 (dump_section_as_ctf): Likewise. Use ctf_dict_close, not
147 ctf_file_close.
148
e6f6aa8d
NC
1492020-11-20 Nick Clifton <nickc@redhat.com>
150
151 PR 22967
152 * nm.c (ifunc_type_chars): New variable.
153 (long_options): Add --ifunc-chars.
154 (print_symbol): Use ifunc_type_chars for ifunc symbols.
155 (main): Handle the new option.
156 * doc/binutils.texi: Document the new option.
157 * configure.ac: Add --enable-f-for-ifunc-symbols option which
158 changes the default symbol displayed by nm.
159 * NEWS: Mention the new feature.
160 * testsuite/binutils-all/nm.exp: Test the new feature.
161 * config.in: Regenerate.
162 * configure: Regenerate.
163
8881640c
LZ
1642020-11-20 Linda Zhang <lindasc@qq.com>
165
166 PR 20979
167 * dllwrap.c (main): Deprecate and warn the use of dllwrap.
168
cc6fd584
JL
1692020-11-20 Jozef Lawrynowicz <jozef.l@mittosystems.com>
170
171 * testsuite/binutils-all/readelf-maskos-1a.d: Fix test for unrecognized
172 bit set in SHF_MASKOS range.
173 * testsuite/binutils-all/readelf-maskos-1b.d: Likewise.
174 * testsuite/binutils-all/readelf-maskos-unknown.s: New test.
175
99fabbc9
JL
1762020-11-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
177
178 * NEWS: Announce SHF_GNU_RETAIN support.
179 * readelf.c (get_elf_section_flags): Handle SHF_GNU_RETAIN.
180 Recognize SHF_GNU_RETAIN and SHF_GNU_MBIND only for supported OSABIs.
181 * testsuite/binutils-all/readelf.exp: Run new tests.
182 Don't run run_dump_test when there isn't an assembler available.
183 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Adjust
184 comment.
185 * testsuite/binutils-all/readelf-maskos-1a.d: New test.
186 * testsuite/binutils-all/readelf-maskos-1b.d: New test.
187 * testsuite/binutils-all/readelf-maskos.s: New test.
188 * testsuite/binutils-all/retain1.s: New test.
189 * testsuite/binutils-all/retain1a.d: New test.
190 * testsuite/binutils-all/retain1b.d: New test.
191
0833984d
HC
1922020-11-17 Howard Chu <hyc@symas.com>
193
194 * ar.c (main): Place the libdeps record in the second archive
195 slot.
196
50ea0877
NC
1972020-11-13 Nick Clifton <nickc@redhat.com>
198
199 PR 26829
200 * dwarf.c (struct dwo_info): Add cu_offset field.
201 (add_dwo_info): Add cu_offset parameter. Record in new dwo_info
202 struct.
203 (add_dwo_name): Add cu_offset field.
204 (add_dwo_dir): Add cu_offset field.
205 (add_dwo_id): Add cu_offset field.
206 (read_and_display_attr_value): Pass cu_offset to dwo recording
207 functions.
208 (load_separate_debug_files): Accumulate name, dir and id values
209 and display once for each CU.
210 * testsuite/binutils-all/dwo.sL Use a separate CU for the second
211 dwo link.
212 * testsuite/binutils-all/readelf.k2: Update expected output.
213
4d932715
BE
2142020-11-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
215
216 * dwarf.c (display_debug_rnglists_list): Only bias the
217 DW_RLS_offset_pair with the base address.
218
ed1afd86
NC
2192020-11-10 Nick Clifton <nickc@redhat.com>
220
221 * dwarf.c (skip_attr_bytes): Correctly handle DW_FORM_ref8.
222 (get_type_abbrev_from_form): Accept DW_FORM_ref8.
223
a76bf0e5
AS
2242020-11-09 Andreas Schwab <schwab@linux-m68k.org>
225
226 * Makefile.am (development.exp): Fix regexp.
227 * Makefile.in: Regenerate.
228
521d4b19
NC
2292020-11-09 Nick Clifton <nickc@redhat.com>
230
231 PR 26847
232 * dwarf.c (read_and_display_attr_value): In wide mode, display the
233 name of the form.
234
a4e91c46
AM
2352020-11-09 Alan Modra <amodra@gmail.com>
236
237 * elfedit (usage): Avoid false positive "may be used uninitialised".
238 Don't leak memory.
239
c9af3845
HC
2402020-11-09 Howard Chu <hyc@symas.com>
241
242 * ar.c (main): Use plugin_target rather than "target" when
243 resetting libdeps_bfd target.
244
9c905051
L
2452020-11-06 H.J. Lu <hongjiu.lu@intel.com>
246
247 * elfedit.c: Include "libiberty.h".
248 (usage): Update help message.
249
f3016d6c
HC
2502020-11-03 Howard Chu <hyc@symas.com>
251
252 * ar.c (long_options): Add --record-libdeps.
253 (usage): Mention the new option.
254 (decode_options): Handle the new option.
255 (replace_members): If necessary, create a bfd to hold the libdeps
256 description.
257 * binemul.c (ar_emul_append_bfd): New function.
258 (ar_emul_replace_bfd): New function.
259 (ar_emul_default_append): Replace file_name and target arguments
260 with new_bfd argument.
261 (ar_emul_default_replace): Likewise.
262 * binemul.h: Update prototypes.
263 (struct bin_emulation_xfer_struct): Update fields.
264 * doc/binutils.texi: Document the new option.
265 * NEWS: Mention the new feature.
266 * emul_aix.c (ar_emul_aix_append): Update.
267 (ar_emul_aix_replace): Likewise.
268 * testsuite/binutils-all/ar.exp: Add test of new feature.
269
b0ab0693
L
2702020-10-30 H.J. Lu <hongjiu.lu@intel.com>
271
272 PR gas/26703
273 * readelf.c (decode_x86_isa): Handle
274 * GNU_PROPERTY_X86_ISA_1_BASELINE.
275 * testsuite/binutils-all/i386/empty.d: Updated.
276 * testsuite/binutils-all/i386/ibt.d: Likewise.
277 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
278 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
279 * testsuite/binutils-all/i386/shstk.d: Likewise.
280 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
281 * testsuite/binutils-all/x86-64/empty.d: Likewise.
282 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
283 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
284 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
285 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
286 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
287 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
288 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
289 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
290 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
291 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
292 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
293 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
294 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
295 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
296
76868f36
L
2972020-10-29 H.J. Lu <hongjiu.lu@intel.com>
298
299 PR binutils/26808
300 * dwarf.c (abbrev_list): Add abbrev_base.
301 (new_abbrev_list): Add an abbrev_base argument and record it.
302 (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
303 and match it.
304 (process_debug_info): Pass abbrev_base to new_abbrev_list and
305 find_abbrev_list_by_abbrev_offset.
306 (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
307 and find_abbrev_list_by_abbrev_offset.
308 * testsuite/binutils-all/x86-64/pr26808.dump: New file.
309 * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
310 * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
311 test.
312
00c19b8e
NC
3132020-10-29 Nick Clifton <nickc@redhat.com>
314
315 PR 26805
316 * objcopy.c (is_dwo_section): Check for missing or short section
317 names.
318
ce04ca31
AR
3192020-10-26 Andreas Rammhold <andreas@rammhold.de>
320
321 * README-how-to-make-a-release: Use sha256sum instead of md5sum.
322
ec3f28df
NC
3232020-10-28 Nick Clifton <nickc@redhat.com>
324
325 PR 26795
326 * elfedit.c (process_archive): Remove spurious call to free().
327
bcd213b2
NC
3282020-10-27 Nick Clifton <nickc@redhat.com>
329
330 * dwarf.c (struct abbrev_list): New structure. Used to collect
331 lists of abbreviation sets.
332 (struct abbrev_map): New structure. Used to map CU offsets to
333 abbreviation offsets.
334 (record_abbrev_list): New function. A new entry to an
335 abbreviation list.
336 (free_all_abbrevs): Update to free abbreviation lists.
337 (new_abbrev_list): New function. Start a new abbreviation
338 list.
339 (find_abbrev_list_by_abbrev_offset): New function.
340 (find_abbrev_map_by_offset): New function.
341 (add_abbrev): Add abbrev_list parameter.
342 (add_abbrev_attr): Likewise.
343 (process_abbrev_section): Rename to process_abbrev_set and add
344 list parameter.
345 (get_type_abbrev_from_form): New function. Attempts to decode the
346 forms used by DW_AT_type attributes.
347 (get_type_signedness): Display type names if operating in wide
348 mode. Use get_type_abbrev_from_form.
349 (read_and_display_attr_value): Use get_type_abbrev_from_form.
350 (process_debug_info): Pre-parse the CU headers to collate all the
351 abbrevs before starting the main scan.
352 (process_debug_abbrev): Do not free any loaded abbrevs.
353 (free_debug_memory): Free the abbrev maps.
354
64ec7c3f
L
3552020-10-22 H.J. Lu <hongjiu.lu@intel.com>
356
357 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
358 error message on error.
359
777cd7ab
DDAG
3602020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
361
362 * windmc.c (write_header_define): Fix printf format.
363 (write_header): Likewise.
364
59624513
NC
3652020-10-21 Nick Clifton <nickc@redhat.com>
366
367 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
368 when processing the DW_FORM_ref_addr form.
369 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
370 Handle DW_FORM_indirect.
371 (get_type_signedness): Allow a limited amount of recursion.
372 Do not attempt to decode types that use the DW_FORM_ref_addr form.
373 (read_and_display_attr_value): Do not attempt to decode types
374 that use the DW_FORM_ref_addr form.
375
b9e920ec
AM
3762020-10-20 Alan Modra <amodra@gmail.com>
377
378 * readelf.c: Delete whitespace at end of line throughout.
379 (SECTION_NAME, SECTION_NAME_VALID): New.
380 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
381 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
382 (process_section_headers, process_section_groups): Likewise.
383 (shdr_to_ctf_sect): Likewise.
384 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
385 (ia64_process_unwind, hppa_process_unwind): Likewise.
386 (display_debug_section, initialise_dumps_byname): Likewise.
387 (process_lto_symbol_tables): Likewise. Check trailing period of
388 lto symbol table names.
389 (display_lto_symtab): Use sizeof instead of strlen.
390
ce786647
NC
3912020-10-20 Nelson Chu <nelson.chu@sifive.com>
392
393 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
394
0f03783c
NC
3952020-10-19 Nick Clifton <nickc@redhat.com>
396
397 * readelf.c (do_lto_syms): New local.
398 (long_option_values): Add OPTION_LTO_SYMS.
399 (options): Add --lto-syms.
400 (usage): Mention the new option.
401 (parse_args): Parse the new option.
402 (get_lto_kind): New function.
403 (get_lto_visibility): New function.
404 (get_lto_sym_type): New function.
405 (display_lto_symtab): New function - displays the contents of an
406 LTo symbol table section.
407 (process_lto_symbol_tables): New functions. Calls
408 dipslay_lto_symtab on any LTO symbol table section.
409 (process_object_file): Call process_lto_symbol_tables.
410 * doc/binutils.texi: Document the new option.
411 * NEWS: Mention the new feature.
412
32930e4e
L
4132020-10-09 H.J. Lu <hongjiu.lu@intel.com>
414
415 PR gas/26703
416 * readelf.c (decode_x86_compat_2_isa): New function.
417 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
418 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
419 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
420 and X86_COMPAT_2_ISA_1_NEEDED.
421 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
422 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
423 values.
424 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
425 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
426 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
427 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
428 * testsuite/binutils-all/i386/empty.d: Updated.
429 * testsuite/binutils-all/i386/ibt.d: Likewise.
430 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
431 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
432 * testsuite/binutils-all/i386/shstk.d: Likewise.
433 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
434 * testsuite/binutils-all/x86-64/empty.d: Likewise.
435 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
436 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
437 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
438 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
439 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
440 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
441 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
442 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
443 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
444 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
445 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
446 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
447 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
448 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
449
0ec992e6
NC
4502020-10-06 Nick Clifton <nickc@redhat.com>
451
452 * objcopy.c (copy_object): Compare input and output sections by
453 pointer rather than name.
454
1f1845d4
NC
4552020-10-05 Nick Clifton <nickc@redhat.com>
456
457 PR 26698
458 * windmc.c (mc_unify_path): Fix typo checking character at end of
459 pathname.
460
0cc79db2
SN
4612020-10-05 Samanta Navarro <ferivoz@riseup.net>
462
463 * doc/binutils.texi: Fix spelling mistakes.
464
1c9f770d
MW
4652020-09-29 Mark Wielaard <mark@klomp.org>
466
467 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
468 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
469
5a805384
AM
4702020-09-25 Alan Modra <amodra@gmail.com>
471
472 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
473 more field sizes.
474 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
475 allowed reloc_size. Don't read_leb128 outside of section.
476
debd1a62
MW
4772020-09-23 Mark Wielaard <mark@klomp.org>
478
479 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
480 * testsuite/binutils-all/dw5.W: Adjust expected output.
481 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
482
ec47b32a
MW
4832020-09-23 Mark Wielaard <mark@klomp.org>
484
485 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
486 for dwarf_version 5 just as version 3 and 4 (only 2 is
487 different).
488 (process_debug_info): Allow DW_UT_partial.
489
a2ab5831
NC
4902020-09-24 Nick Clifton <nickc@redhat.com>
491
492 PR 26662
493 * doc/binutils.texi (nm): Document that 'c' is used for small
494 common symbols.
495
427234c7
LC
4962020-09-21 Ludovic Courtès <ludo@gnu.org>
497
498 * doc/binutils.texi (objcopy, strip): Say that
499 '--strip-unneeded' implies '--strip-debug'.
500
0690f591
AP
5012020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
502
503 * verilog.c (verilog_write_address): Properly handle 64-bit
504 addresses to avoid truncation of the high part.
505
c1229f84
AM
5062020-09-16 Alan Modra <amodra@gmail.com>
507
508 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
509 * objcopy.c (is_hidden_symbol): Likewise.
510
5b3eb5ed
NC
5112020-09-15 Nick Clifton <nickc@redhat.com>
512
513 * README-how-to-make-a-release (https): Add a reminder to create a
514 new Bugzilla tag for the point release, once it has been published.
515
8d58ed37
L
5162020-09-11 H.J. Lu <hongjiu.lu@intel.com>
517
518 * readelf.c (get_note_type): Support NT_X86_CET.
519
ce139cd5
NC
5202020-09-11 Nick Clifton <nickc@redhat.com>
521
522 PR 26595
523 * dwarf.c (load_separate_debug_info): Return NULL rather than
524 FALSE in error situations.
525 (load_separate_debug_file): Move code to load debug links to ...
526 (check_for_and_load_links): ... here. New function. Load
527 separate debug information pointed to by debuglink and
528 debugaltlink sections. Recursively scan newly loaded debug
529 information for more links and load them too.
530
dfbee680
AM
5312020-09-09 Alan Modra <amodra@gmail.com>
532
533 PR 26578
534 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
535 (load_separate_debug_files): Use a stack var for build_id_data.
536
790147a9
L
5372020-09-08 H.J. Lu <hongjiu.lu@intel.com>
538
539 PR ld/26587
540 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
541 to ld on PE targets for PR 25662 test.
542
7d81bc93
JL
5432020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
544 Kuan-Lin Chen <kuanlinchentw@gmail.com>
545
546 * readelf.c (target_specific_reloc_handling): Handle
547 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
548
839f41a3
AM
5492020-09-02 Alan Modra <amodra@gmail.com>
550
551 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
552
54b8331d
AM
5532020-08-30 Alan Modra <amodra@gmail.com>
554
555 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
556 long for "bytes".
557
08d7da7d
NC
5582020-08-28 Nick Clifton <nickc@redhat.com>
559
560 PR 26548
561 * dwarf.c (read_leb128): When checking for overflow of a signed
562 read, use a signed shift.
563
0861f561
CQ
5642020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
565
566 * readelf.c (get_csky_section_type_name): New.
567 (get_section_type_name): Add handler for CSKY.
568 (display_csky_attribute): New.
569 (process_arch_specific): Add handler for CSKY.
570 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
571 section.
572
b0191216
JL
5732020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
574
575 * readelf.c (get_msp430x_section_type_name): Rename to ...
576 (get_msp430_section_type_name): ... this.
577 (get_section_type_name): Use get_msp430_section_type_name.
578 (display_msp430x_attribute): Rename to ...
579 (display_msp430_attribute): ... this.
580 (process_arch_specific): Use display_msp430_attribute.
581
9e7ed8b0
JDA
5822020-08-27 John David Anglin <danglin@gcc.gnu.org>
583
584 PR 26356
585 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
586 "-j $PRIVATE$" to command on hppa*-*-hpux*.
587 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
588 dollar-sign quotes before quoting. Do this prior to generating log
589 output.
590
6b5473c9
RH
5912020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
592
593 PR 26088
594 * mclex.c (skip_until_eol): If eol was found, increment line
595 number.
596
5e9b84f7
NA
5972020-08-27 Nick Alcock <nick.alcock@oracle.com>
598
599 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
600 * readelf.c (dump_ctf_errs): Likewise.
601
926c9e76
NA
6022020-08-27 Nick Alcock <nick.alcock@oracle.com>
603
604 * objdump.c (dump_ctf_archive_member): Move error-
605 reporting...
606 (dump_ctf_errs): ... into this separate function.
607 (dump_ctf): Call it on open errors.
608 * readelf.c (dump_ctf_archive_member): Move error-
609 reporting...
610 (dump_ctf_errs): ... into this separate function. Support
611 calls with NULL fp. Adjust for new err parameter to
612 ctf_errwarning_next.
613 (dump_section_as_ctf): Call it on open errors.
614
987cf30a
NA
6152020-08-27 Nick Alcock <nick.alcock@oracle.com>
616
617 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
618 * Makefile.in: Regenerated.
619
3eba3ef3
NC
6202020-08-26 Nick Clifton <nickc@redhat.com>
621
622 PR 26405
623 * readelf.c (get_segment_type): Handle OpenBSD segment types.
624
a68aba2d
AM
6252020-08-26 Alan Modra <amodra@gmail.com>
626
627 PR 26412
628 * objcopy.c (copy_object): Don't fwrite NULL contents.
629
37f628c3
KH
6302020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
631
632 PR 26340
633 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
634
f3da8a96
AM
6352020-08-24 Alan Modra <amodra@gmail.com>
636
637 * readelf.c (dump_section_as_strings) Avoid false positive
638 "may be used uninitialised".
639
3f2e9699
L
6402020-08-22 H.J. Lu <hongjiu.lu@intel.com>
641
642 PR ld/26382
643 * nm.c (print_symname): Display only one '@' for undefined
644 versioned symbols.
645 * doc/binutils.texi: Update nm version information.
646
02391b8b
MW
6472020-08-21 Mark Wielaard <mark@klomp.org>
648
649 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
650 recognize DW_LANG_C11.
651
d1ce973e
AM
6522020-08-19 Alan Modra <amodra@gmail.com>
653
654 PR 26349
655 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
656 and info fields.
657 (dump_section_as_strings): Don't use %tx to display offset.
658
82fcdb39
AM
6592020-08-14 Alan Modra <amodra@gmail.com>
660
661 PR 26388
662 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
663 of debug_information. Correct test of max_loc_offsets and
664 max_range_lists.
665 * rddbg.c (read_debugging_info): Free dhandle on error.
666
fc0efc4b
AM
6672020-08-14 Alan Modra <amodra@gmail.com>
668
669 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
670
75e100a3
AM
6712020-08-13 Alan Modra <amodra@gmail.com>
672
673 PR 26348
674 * objcopy.c (copy_object): Report file name with endian error.
675 Error and return on abfd->read_only.
676
d3511b24
TT
6772020-08-12 Tom Tromey <tromey@adacore.com>
678
679 * dwarf-mode.el (Version): Now 1.6.
680 (dwarf-die-button-action): Tighten DIE reference regexp.
681 (dwarf-font-lock-keywords): Update name regexp.
682
79bc120c
NC
6832020-08-12 Nick Clifton <nickc@redhat.com>
684
685 PR binutils/26331
686 * readelf.c (do_demangle): New option flag.
687 (print_symbol): If do_demangle is enabled, demangle the symbol.
688 (enum long_option_values): New enum to hold long option values.
689 (options): Add demangle, no-demangle, recursion-limit and
690 no-recursion-limit options. Alpha sort the table.
691 (usage): Describe the new options.
692 (parse_args): Handle the new options.
693 * NEWS: Mention the new feature.
694 * doc/binutils.texi: Document the new feature.
695 * testsuite/binutils-all/readelf.exp: Test the new feature.
696 * testsuite/binutils-all/mangled.s: New file - assembler source.
697 * testsuite/binutils-all/readelf.demangled: New file - expected
698 output from readelf.
699
79ddc884
NC
7002020-08-12 Nick Clifton <nickc@redhat.com>
701
702 * po/sr.po: Updated Serbian translation.
703
9b0ac51b
L
7042020-08-10 H.J. Lu <hongjiu.lu@intel.com>
705
706 PR binutils/26302
707 * nm.c (with_symbol_versions): Removed.
708 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
709 (long_options): Update --with-symbol-versions entry.
710 (print_symbol): Remove the with_symbol_versions check.
711 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
712 compatibility.
713 * doc/binutils.texi: Remove --with-symbol-versions.
714
787bbc56
AM
7152020-08-05 Alan Modra <amodra@gmail.com>
716
717 PR 26337
718 * objdump.c (load_specific_debug_section): Revert last change.
719
0b97e818
AM
7202020-08-05 Alan Modra <amodra@gmail.com>
721
722 PR 26337
723 * objdump.c (load_specific_debug_section): Don't malloc space for
724 section contents, use bfd_malloc_and_get_section.
725
c8693053
RO
7262020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
727
728 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
729 * Makefile.in, doc/Makefile.in: Regenerate.
730 * configure: Regenerate.
731
ac2599c4
L
7322020-07-30 H.J. Lu <hongjiu.lu@intel.com>
733
734 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
735 to assembler.
736 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
737 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
738 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
739 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
740 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
741
c77cb2a0
MR
7422020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
743
744 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
745 New test.
746 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
747 New test.
748 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
749 New test.
750 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
751 New test.
752 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
753 New test.
754 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
755 New test.
756 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
757 New test.
758 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
759 New test.
760 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
761 New test.
762 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
763
3f1b17bb
MR
7642020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
765
766 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
767 test.
768 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
769 test.
770 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
771 test.
772 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
773 test.
774 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
775 test.
776 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
777
d70f978b
L
7782020-07-28 H.J. Lu <hongjiu.lu@intel.com>
779
780 PR binutils/26301
781 * configure: Regenerated.
782
377170fa
L
7832020-07-28 H.J. Lu <hongjiu.lu@intel.com>
784
785 PR binutils/26301
786 * configure: Regenerated.
787
8fab9282
AM
7882020-07-27 Alan Modra <amodra@gmail.com>
789
790 * objdump.c (dump_section): Don't return without calling
791 process_section_p.
792
608d61c2
L
7932020-07-27 H.J. Lu <hongjiu.lu@intel.com>
794
795 * doc/binutils.texi: Replace preceeded with preceded.
796
3abf9758
MR
7972020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
798
799 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
800 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
801 procedures.
802 (has_newabi): Remove variable.
803 (has_abi, abi_asflags, abi_ldflags): New associative array
804 variables.
805 (irixemul): New variable.
806 Replace `run_dump_test' calls where applicable throughout with
807 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
808 as appropriate. Use `noarch' for tests that require their own
809 architecture setting.
810 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
811 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
812 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
813 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
814 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
815 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
816 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
817 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
818 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
819 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
820 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
821 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
822 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
823 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
824 GAS flags.
825 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
826 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
827 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
828 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
829 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
830 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
831 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
832
f6720b1c
AM
8332020-07-24 Aaron Merey <amerey@redhat.com>
834
835 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
836 * Makefile.in: Rebuild.
837 * configure: Rebuild.
838 * doc/Makefile.in: Rebuild.
839
bf772a1e
NC
8402020-07-24 Nick Clifton <nickc@redhat.com>
841
842 * README-how-to-make-a-release: Various small updates whilst
843 creating the 2.35 release.
844
0b884151
NA
8452020-07-22 Nick Alcock <nick.alcock@oracle.com>
846
847 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
848 option.
849
3dd6b890
NA
8502020-07-22 Nick Alcock <nick.alcock@oracle.com>
851
852 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
853 (dump_ctf): Likewise.
854
8b37e7b6
NA
8552020-07-22 Nick Alcock <nick.alcock@oracle.com>
856
857 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
858 * readelf.c (dump_ctf_archive_member): Likewise.
859
df16e041
NC
8602020-07-22 Nick Clifton <nickc@redhat.com>
861
862 * readelf.c (parse_args): Silence potential warnings about a
863 memory resource leak when allocating space for ctf option values.
864 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
865 variable.
866
84dc5f0b
NC
8672020-07-21 Nick Clifton <nickc@redhat.com>
868
869 * po/sv.po: Updated Swedish translation.
870
570b0ed6
CZ
8712020-07-14 Claudiu Zissulescu <claziss@gmail.com>
872
873 * testsuite/binutils-all/arc/double_regs.s: New test.
874 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
875
0a5c31d1
NC
8762020-07-13 Nick Clifton <nickc@redhat.com>
877
878 * po/fr.po: Updated French translation.
879
7a34d0ea
AM
8802020-07-13 Alan Modra <amodra@gmail.com>
881
882 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
883 optional machine-os arg.
884
a308b89d
L
8852020-07-11 H.J. Lu <hongjiu.lu@intel.com>
886
887 * readelf.c (decode_x86_feature_2): Handle
888 GNU_PROPERTY_X86_FEATURE_2_TMM.
889
af2b3186
TV
8902020-07-10 Tom de Vries <tdevries@suse.de>
891
892 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
893 information in the end_sequence row.
894 * testsuite/binutils-all/dw5.W: Update.
895 * testsuite/binutils-all/objdump.WL: Update.
896
fe49679d
AM
8972020-07-09 Alan Modra <amodra@gmail.com>
898
899 * dlltool.c: Remove powerpc PE support and comments.
900 * configure.ac: Remove powerpc PE dlltool config.
901 * configure: Regenerate.
902
d90171de
NC
9032020-07-09 Nick Clifton <nickc@redhat.com>
904
905 * rclex.c: Add OWNERDRAW keyword.
906 * rcparse.y: Add OWNERDRAW token.
907 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
908 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
909 BITMAP flags.
910 * windres.c (extended_menuitems): Likewise.
911 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
912
e3fdc001
AM
9132020-07-09 Alan Modra <amodra@gmail.com>
914
915 * readelf (slurp_hppa_unwind_table): Set table_len before use
916 in relocation sanity checks.
917
5a2296ac
AM
9182020-07-07 Alan Modra <amodra@gmail.com>
919
920 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
921 * testsuite/binutils-all/nm.exp: Likewise.
922 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
923 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
924 * testsuite/binutils-all/set-section-alignment.d: Likewise.
925 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
926
efd0ed58
AM
9272020-07-07 Alan Modra <amodra@gmail.com>
928
929 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
930 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
931
17550be7
NC
9322020-07-06 Nick Clifton <nickc@redhat.com>
933
934 * po/bg.po: Updated Bulgarian translation.
935 * po/pt.po: Updated Portuguese translation.
936 * po/uk.po: Updated Ukranian translation.
937
ddb43bab
AM
9382020-07-06 Alan Modra <amodra@gmail.com>
939
940 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
941 find string length.
942
b19d852d
NC
9432020-07-04 Nick Clifton <nickc@redhat.com>
944
945 * configure: Regenerate.
946 * po/binutils.pot: Regenerate.
947
b115b9fd
NC
9482020-07-04 Nick Clifton <nickc@redhat.com>
949
950 Binutils 2.35 branch created.
951
0942c7ab
NC
9522020-07-02 Nick Clifton <nickc@redhat.com>
953
954 PR 26028
955 * readelf.c (print_symbol): Handle truncation of symbol names.
956 (options): Add -T/--silent-truncation option.
957 (parse_args): Handle the option.
958 (print_dynamic_symbol): Correct calculation of width available to
959 display symbol name.
960 * doc/binutils.texi: Document the -T option to readelf.
961 * NEWS: Mention the new feature.
962
bbd19b19
L
9632020-06-30 H.J. Lu <hongjiu.lu@intel.com>
964
965 * NEWS: Mention x86 NaCl target support removal.
966 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
967 x86 NaCl target support.
968 * testsuite/binutils-all/elfedit-1.d: Likewise.
969 * testsuite/binutils-all/i386/i386.exp: Likewise.
970 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
971 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
972 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
973 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
974 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
975 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
976 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
977 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
978 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
979 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
980 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
981 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
982
5568cc9e
NC
9832020-06-30 Nick Clifton <nickc@redhat.com>
984
985 * dwarf.c (read_and_display_attr_value): Support
986 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
987 DW_AT_comp_dir.
988
d74b88ed
AM
9892020-06-30 Alan Modra <amodra@gmail.com>
990
991 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
992 xfail for nds32.
993
9f27c364
HPN
9942020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
995
996 * dwarf.c (display_debug_str_offsets): Rename local variable
997 index to idx. Move to top of function.
998
279edac5
AM
9992020-06-29 Alan Modra <amodra@gmail.com>
1000
1001 * dwarf.c: Use C style comments.
1002 * resrc.c: Likewise.
1003
cfc16775
AM
10042020-06-27 Alan Modra <amodra@gmail.com>
1005
1006 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
1007 after freeing.
1008 (release_archive): Set fields of arch to NULL after freeing.
1009
2f6ecaed
NA
10102020-06-26 Nick Alcock <nick.alcock@oracle.com>
1011
1012 * readelf.c (dump_section_as_ctf): Support .ctf archives using
1013 ctf_arc_bufopen. Automatically load the .ctf member of such
1014 archives as the parent of all other members, unless specifically
1015 overridden via --ctf-parent. Split out dumping code into...
1016 (dump_ctf_archive_member): ... here, as in objdump, and call
1017 it once per archive member.
1018 (dump_ctf_indent_lines): Code style fix.
1019
094e34f2
NA
10202020-06-26 Nick Alcock <nick.alcock@oracle.com>
1021
1022 * configure.ac [--enable-libctf]: New, default yes.
1023 Set ENABLE_LIBCTF accordingly.
1024 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
1025 * configure: Regenerate.
1026 * config.in: Regenerate.
1027 * Makefile.in: Regenerate.
1028 * aclocal.m4: Regenerate.
1029 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
1030 (option_values): Likewise.
1031 (long_options): Likewise.
1032 (main): Likewise.
1033 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
1034 (make_ctfsect): Likewise.
1035 (dump_ctf_archive_member): Likewise.
1036 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
1037 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
1038 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
1039 (usage): Likewise.
1040 (process_section_contents): Likewise.
1041 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
1042 (dump_ctf_indent_lines): Likewise.
1043 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
1044
2a1bb84c
JB
10452020-06-26 Jan Beulich <jbeulich@suse.com>
1046
1047 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
1048 redundant text from x86 specific part of -M section.
1049
85f7484a
PB
10502020-06-26 Pat Bernardi <bernardi@adacore.com>
1051
1052 * readelf.c (display_m68k_gnu_attribute): New function.
1053 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
1054
d0dded5b
L
10552020-06-23 H.J. Lu <hongjiu.lu@intel.com>
1056
1057 PR binutils/26160
1058 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
1059 * testsuite/binutils-all/pr26160.r: Likewise.
1060 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
1061
39f381cb
NC
10622020-06-23 Nick Clifton <nickc@redhat.com>
1063
1064 PR 26160
1065 * dwarf.c (fetch_indexed_string): Detect and handle old style
1066 .debug_str_offset tables.
1067 (display_debug_str_offsets): Likewise. Also add support for
1068 .debug_str_offsets.dwo sections.
1069
80fda85c
L
10702020-06-23 H.J. Lu <hongjiu.lu@intel.com>
1071
1072 PR binutils/26112
1073 * testsuite/binutils-all/pr26112.o.bz2: New file.
1074 * testsuite/binutils-all/pr26112.r: Likewise.
1075 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
1076
d081ffff
AM
10772020-06-23 Alan Modra <amodra@gmail.com>
1078
1079 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
1080 remote_file delete command.
1081
e4b7104b
NC
10822020-06-22 Nick Clifton <nickc@redhat.com>
1083
1084 PR 26112
1085 * dwarf.c (display_debug_str_offsets): Add code to display the
1086 contents of the .debug_str_offsets section.
1087 (display_debug_macro): Add support for DW_MACRO_define_strx and
1088 DW_MACRO_undef_strx.
1089
d768f160
SJ
10902020-06-22 Saagar Jha <saagar@saagarjha.com>
1091
1092 * od-macho.c: Dump linkedit data for new load commands.
1093
5fd104ad
AM
10942020-06-19 Alan Modra <amodra@gmail.com>
1095
1096 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
1097 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
1098 (run_dump_test): Use check_relro_support to decide whether to pass
1099 extra ld option "-z norelro".
1100
fd17d1e6
AM
11012020-06-11 Alan Modra <amodra@gmail.com>
1102
1103 * readelf.c (process_mips_specific): Don't alloc memory for
1104 Elf_Internal_Options.
1105
d0c4e780
AM
11062020-06-11 Alan Modra <amodra@gmail.com>
1107
1108 * readelf.c (process_mips_specific): Assert size of internal
1109 types match size of external types, and simplify allocation of
1110 internal buffer. Catch possible integer overflow when sanity
1111 checking option size. Don't assume options are a regular array.
1112 Sanity check reginfo option against option size. Use PRI macros
1113 when printing.
1114
25065fcd
RH
11152020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
1116
1117 PR 26082
1118 * mclex.c (yylex): Reject lines that reach end-of-file without a
1119 terminating newline character.
1120
b37a7714
NC
11212020-06-08 Nick Clifton <nickc@redhat.com>
1122
1123 PR 26093
1124 * doc/binutils.texi (strings): Fix typo.
1125
c4b2f181
NC
11262020-06-08 Nick Clifton <nickc@redhat.com>
1127
1128 PR 26086
1129 * dwarf.c (process_debug_info): Check that there is space in the
1130 debug_information array before filling in an entry.
1131
1424c35d
AM
11322020-06-06 Alan Modra <amodra@gmail.com>
1133
1134 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
1135
8affa48a
JA
11362020-06-05 Joel Anderson <joelanderson333@gmail.com>
1137
1138 PR 26082
1139 * mclex.c (yylex): Add test for an empty input stream.
1140
8eca5c7d
SC
11412020-06-04 Stephen Casner <casner@acm.org>
1142
1143 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
1144 for test using section pseudo-ops compatible with pdp11.
1145 * testsuite/binutils-all/objcopy.exp: Select alternate source.
1146
b3db6d07
JM
11472020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1148
1149 * objdump.c (disassemble_data): Set disasm_info.endian_code to
1150 disasm_info.endian after the latter is initialized to the
1151 endianness reported by BFD.
1152
0a4f37af
AM
11532020-06-04 Alan Modra <amodra@gmail.com>
1154
1155 * testsuite/binutils-all/i386/i386.exp: Remove global directive
1156 outside proc body.
1157 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
1158 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
1159
913e0fd4
JA
11602020-06-03 Joel Anderson <joelanderson333@gmail.com>
1161
1162 * windmc.h (struct mc_node): Add id_typecast field.
1163 * mcparse.y (message): Initialise the id_typecast field.
1164 * windmc.c (write_dbg): Use the id_typecast field as a parameter
1165 when calling write_dbg_define.
1166 (write_header): Likewise.
1167
4a322448
AM
11682020-06-03 Alan Modra <amodra@gmail.com>
1169
1170 PR 26069
1171 * objcopy.c (copy_relocations_in_section): Free relpp on error.
1172 Don't accidentally free isection->orelocation.
1173
0bee4d1c
AM
11742020-06-02 Alan Modra <amodra@gmail.com>
1175
1176 * testsuite/binutils-all/ar.exp (obj): Set up object file name
1177 extension. Use throughout. Don't completely exclude non-ELF
1178 alpha targets. Run long_filenames test for tic30. Exclude thin
1179 archive tests for aix, ecoff and vms.
1180 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
1181 extension. Use throughout. Don't exclude non-ELF alpha targets
1182 from "bintest.a".
1183
ab7ad287
MF
11842020-05-28 Max Filippov <jcmvbkbc@gmail.com>
1185
1186 * MAINTAINERS (Xtensa): Add myself as maintainer.
1187
3f3c3608
AM
11882020-05-23 Alan Modra <amodra@gmail.com>
1189
1190 * testsuite/binutils-all/ar.exp (many_files): New test.
1191
9db70fc3
AM
11922020-05-21 Alan Modra <amodra@gmail.com>
1193
1194 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
1195 * dlltool.c: Likewise.
1196 * elfcomm.c: Likewise.
1197 * rddbg.c: Likewise.
1198 * readelf.c: Likewise.
1199 * stabs.c: Likewise.
1200 * windmc.c: Likewise.
1201 * windres.c: Likewise.
1202 * wrstabs.c: Likewise.
1203
c31ab5a0
AM
12042020-05-21 Alan Modra <amodra@gmail.com>
1205
1206 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
1207 access.
1208
8f595e9b
NC
12092020-05-20 Nelson Chu <nelson.chu@sifive.com>
1210
1211 * dwarf.c: Updated since DECLARE_CSR is changed.
1212
8ac10c5b
L
12132020-05-19 H.J. Lu <hjl.tools@gmail.com>
1214
1215 PR binutils/25809
1216 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
1217 segment doesn't match the .dynamic section and checks are
1218 enabled.
1219 (struct filedata): Add dynamic_symtab_section and
1220 dynamic_strtab_section fields.
1221 (process_section_headers): Set dynamic_symtab_section to the
1222 .dynsym section. Set dynamic_strtab_section to the .dynstr
1223 section.
1224 (process_dynamic_section): Warn if the .dynsym section doesn't
1225 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
1226 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
1227
c177f377
AM
12282020-05-19 Alan Modra <amodra@gmail.com>
1229
1230 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
1231 (replace_members): Use bfd_get_filename rather than accessing
1232 bfd->filename directly.
1233 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
1234 * binemul.c (do_ar_emul_append): Likewise.
1235 * coffgrok.c (coff_grok): Likewise.
1236
83d27139
SH
12372020-05-18 Stafford Horne <shorne@gmail.com>
1238
1239 * MAINTAINERS (OR1K): Add myself as maintainer.
1240
d11a9fab
AB
12412020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1242
1243 * doc/binutils.texi: Mention 'entry address' in the set-start and
1244 adjust-start options descriptions.
1245
546cb2d8
NC
12462020-05-05 Nick Clifton <nickc@redhat.com>
1247
1248 * dwarf.c (do_checks): New global variable.
1249 (display_formatted_table): Warn about an unexpected number of
1250 columns in the table, if checks are enabled. Do not complain
1251 about the lack of data following the number of entries in the
1252 table if the table is empty.
1253 (display_debug_lines_decoded): Only warn about an unexpected
1254 number of columns in a table if checks are enabled.
1255 * dwarf.h (do_checks): Add a prototype.
1256 * elfcomm.c (error): Remove weak attribute.
1257 (warn): Likewise.
1258 * readelf.c (do_checks): Delete.
1259 (warn): Delete.
1260 (process_section_headers): Only warn about empty sections if
1261 checks are enabled.
1262
e052e2ba
FS
12632020-05-04 Fangrui Song <maskray@google.com>
1264
1265 * objcopy.c (copy_object): Allow empty section.
1266 * testsuite/binutils-all/update-section.exp: Add test.
1267
070b775f
NC
12682020-05-04 Nick Clifton <nickc@redhat.com>
1269
1270 PR 25917
1271 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1272 supicious number of entries for DWARF-5 format directory and file
1273 name tables. Do not display file name table header if the table
1274 is empty. Do not allocate space for empty tables.
1275
9c7b8e9b
AM
12762020-05-04 Alan Modra <amodra@gmail.com>
1277
1278 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1279 section. Don't assume endian of host matches nds32 target. Free
1280 buffer.
1281
60832332
AM
12822020-05-01 Alan Modra <amodra@gmail.com>
1283 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
1284
1285 * objdump.c (disassemble_bytes): Don't scan for zeros when
1286 disassembling zeros. Translate "resuming at file offset" message.
1287 Formatting. Replace some signed variables with unsigned.
1288
09c1e68a
AC
12892020-04-30 Alex Coplan <alex.coplan@arm.com>
1290
1291 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1292 disassembly.
1293 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1294
8a8a1171
NC
12952020-04-30 Nick Clifton <nickc@redhat.com>
1296
1297 * testsuite/lib/binutils-common.exp (check_pie_support): New
1298 proc.
1299
cb4c35cf
AB
13002020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1301
1302 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1303 range_entries for the same offset.
1304
1b513401
NC
13052020-04-29 Nick Clifton <nickc@redhat.com>
1306
1307 * readelf.c (warn): New function - like elfcomm.c version but only
1308 produces output if warnings are enabled.
1309 (struct options): Add --lint and --enable-checks.
1310 (usage): Add entry for --lint.
1311 (parse_args): Handle -L. If checks are enabled but no dumps have
1312 been selected then enable all dumps.
1313 (process_section_headers): Replace long if-then-else sequence with
1314 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
1315 SHT_PROGBITS sections.
1316 (process_file): Do not complain if the file is an archive and lint
1317 mode has been enabled.
1318 * elfcomm.c (error): Make the function weak.
1319 (warn): Likewise.
1320 * NEWS: Mention the new feature.
1321 * doc/binutils.texi: Document the new feature.
1322 * dwarf.h (report_leb_status): Add file name and line number
1323 parameters. Include them in the diagnostic output.
1324 (READ_ULEB): Pass file and line number to report_leb_status.
1325 (READ_SLEB): Likewise.
1326 * dwarf.c (read_and_print_leb128): Pass file and line number to
1327 report_leb_status.
1328 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1329 * testsuite/binutils-all/zero-sec.s: New test source file.
1330 * testsuite/binutils-all/zero-sec.r: Expected output from new
1331 test.
1332
c2e71e57
NC
13332020-04-29 Nick Clifton <nickc@redhat.com>
1334
1335 * po/sr.po: Updated Serbian translation.
1336
90837ea7
AM
13372020-04-26 Alan Modra <amodra@gmail.com>
1338
1339 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1340 read before dereferencing, and gracefully return. Remove
1341 gnu_hash_error variable. Free gnu hash arrays if number of
1342 syms found is zero.
1343
2482f306
AM
13442020-04-24 Alan Modra <amodra@gmail.com>
1345
1346 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1347 non-zero.
1348 (process_dynamic_section): Call get_num_dynamic_syms once rather
1349 than in segment loop. Break out of segment loop on a successful
1350 load of dynamic symbols. Formatting.
1351 (process_object): Return error status from process_dynamic_section.
1352
27456742
AK
13532020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1354
1355 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1356 * elf.c (elfcore_grok_arc_v2): New function.
1357 (elfcore_grok_note): Call the new function to handle the corresponding
1358 note.
1359 (elfcore_write_arc_v2): New function.
1360 (elfcore_write_register_note): Call the new function to handle the
1361 corresponding pseudo-sections.
1362
30ce8e47
MF
13632020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1364
1365 PR ld/25861
1366 * readelf.c (is_none_reloc): Recognize
1367 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1368 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1369
33b5a830
NC
13702020-04-22 Nick Clifton <nickc@redhat.com>
1371
1372 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1373
978c4450
AM
13742020-04-22 Alan Modra <amodra@gmail.com>
1375
1376 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1377 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1378 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1379 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1380 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1381 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1382 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1383 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1384 (section_headers_groups): Move to struct filedata. Update use
1385 throughout file.
1386
6431e409
AM
13872020-04-22 Alan Modra <amodra@gmail.com>
1388
1389 * readelf.c (struct dump_data): New, used..
1390 (cmdline): ..here, and..
1391 (struct filedata): ..here. Adjust all uses.
1392 (request_dump_bynumber, request_dump, parse_args): Pass in a
1393 struct dump_data* rather than Filedata*. Adjust callers.
1394 (main): Don't set cmdline.file_name.
1395
a5e0be5c
AM
13962020-04-20 Alan Modra <amodra@gmail.com>
1397
1398 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1399 and nbuckets.
1400
8ff66993
AM
14012020-04-20 Alan Modra <amodra@gmail.com>
1402
1403 * readelf.c (process_section_headers): Free dynamic symbols etc.
1404 earlier.
1405
ceb9bf11
AM
14062020-04-20 Alan Modra <amodra@gmail.com>
1407
1408 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1409 on error without freeing.
1410 (process_dynamic_section): Don't recreate dynamic symbols from
1411 dynamic tag info when the dynamic symbols have already been
1412 read via section headers.
1413
e409955d
FS
14142020-04-17 Fredrik Strupe <fredrik@strupe.net>
1415
1416 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1417 conditional VDUP instructions are disassembled correctly.
1418 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1419 vdup-cond.d.
1420 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1421 that VDUP instructions (which are conditional in A32) can be
1422 disassembled in thumb mode.
1423 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1424 vdup-thumb.d.
1425
ca3f923f
AM
14262020-04-17 Alan Modra <amodra@gmail.com>
1427
1428 PR 25840
1429 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1430
937f6614
AM
14312020-04-16 Alan Modra <amodra@gmail.com>
1432
1433 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1434 --no-addresses description.
1435
b1bc1394
AM
14362020-04-15 Alan Modra <amodra@gmail.com>
1437
1438 * objdump.c (no_addresses): New static var.
1439 (usage): Print help for --no-addresses.
1440 (long_options): Add --no-addresses entry.
1441 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1442 (disassemble_bytes): Don't print current line address, or reloc
1443 address.
1444 * doc/binutils.texi: Document objdump --no-addresses.
1445
001890e1
AM
14462020-04-15 Alan Modra <amodra@gmail.com>
1447
1448 PR 25822
1449 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1450 reading buckets or chains fails.
1451
b71d4fa7
AM
14522020-04-15 Alan Modra <amodra@gmail.com>
1453
1454 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1455 etc. after freeing.
1456
89246a0e
AM
14572020-04-15 Alan Modra <amodra@gmail.com>
1458
1459 * readelf.c (get_group_flags): Translate text.
1460 (get_file_type, get_symbol_binding, get_symbol_type),
1461 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1462
c98a4545
AM
14632020-04-15 Alan Modra <amodra@gmail.com>
1464
1465 PR 25821
1466 * readelf.c (get_num_dynamic_syms): Typo fix.
1467
645f43a8
AM
14682020-04-14 Alan Modra <amodra@gmail.com>
1469
1470 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1471 possibility of overflow when checking number of conflicts.
1472
10ca4b04
L
14732020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1474
1475 PR binutils/25707
1476 * readelf.c (nbuckets): New.
1477 (nchains): Likewise.
1478 (buckets): Likewise.
1479 (chains): Likewise.
1480 (ngnubuckets): Likewise.
1481 (gnubuckets): Likewise.
1482 (gnuchains): Likewise.
1483 (mipsxlat): Likewise.
1484 (ngnuchains): Likewise.
1485 (gnusymidx): Likewise.
1486 (VALID_SYMBOL_NAME): Likewise.
1487 (VALID_DYNAMIC_NAME): Use it.
1488 (get_dynamic_data): Moved before process_dynamic_section.
1489 (get_num_dynamic_syms): New function.
1490 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1491 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1492 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1493 table.
1494 (get_symbol_index_type): Don't print "bad section index" when
1495 there is no section header.
1496 (print_dynamic_symbol): Rewrite.
1497 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1498 symbol table.
1499
bb897477
RO
15002020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1501
1502 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1503 enable on *-*-solaris*.
1504
00386881
NC
15052020-03-30 Nick Clifton <nickc@redhat.com>
1506
1507 PR binutils/25662
1508 * objcopy.c (copy_object): When copying PE format files set the
1509 timestamp field in the pe_data structure if the preserve_dates
1510 flag is set.
1511 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1512 --preserve-dates in place of the -p option, in order to make its
1513 effect more obvious.
1514
0a6a8b59
AM
15152020-03-28 Alan Modra <amodra@gmail.com>
1516
1517 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1518 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1519
6a81c59b
AM
15202020-03-28 Alan Modra <amodra@gmail.com>
1521
1522 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1523 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1524 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1525 test. Pass "-p" to objcopy for the executable test.
1526
1fafefd5
JL
15272020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1528
1529 PR binutils/25662
1530 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1531 specify whether an object file or executable should be built and tested.
1532 Change test names to report whether an object file or executable is
1533 being tested.
1534 * testsuite/binutils-all/pr25662.ld: New test.
1535 * testsuite/binutils-all/pr25662.s: New test.
1536
80e2a3b6
AM
15372020-03-27 Alan Modra <amodra@gmail.com>
1538
1539 * readelf.c (process_archive): Don't double free qualified_name.
1540 Don't break out of loop with "negative" archive_file_size, just
1541 set file offset to max.
1542
4c836627
AM
15432020-03-25 Alan Modra <amodra@gmail.com>
1544
1545 * readelf.c (process_archive): Prevent endless loop.
1546
1081065c
L
15472020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1548
1549 PR binutils/25708
1550 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1551 with bfd_get_symbol_version_string.
1552 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1553 * objdump.c (objdump_print_symname): Likewise.
1554
7e6e972f
L
15552020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1556
1557 PR binutils/25708
1558 * nm.c (SYM_NAME): Removed.
1559 (print_symname): Add a pointer to struct extended_symbol_info
1560 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1561 version.
1562 (print_symdef_entry): Pass NULL to print_symname.
1563 (print_symbol_info_bsd): Update call to print_symname.
1564 (print_symbol_info_sysv): Likewise.
1565 (print_symbol_info_posix): Likewise.
1566
5a814d6d
AM
15672020-03-24 Alan Modra <amodra@gmail.com>
1568
1569 * readelf.c (process_mips_specific): Free iconf on error path.
1570
0636b245
NC
15712020-03-23 Nick Clifton <nickc@redhat.com>
1572
1573 PR 25714
1574 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1575 * write_stabs_in_sections_debugging_info: Likewise.
1576 * stab_enum_type: Likewise.
1577 * stab_modify_type: Likewise.
1578 * stab_struct_field: Likewise.
1579 * stab_end_struct_type: Likewise.
1580 * stab_start_class_type: Likewise.
1581 * stab_class_static_member: Likewise.
1582 * stab_class_baseclass: Likewise.
1583 * stab_class_start_method: Likewise.
1584 * stab_class_method_var: Likewise.
1585 * stab_class_end_method: Likewise.
1586 * stab_end_class_type: Likewise.
1587 * stab_typedef_type: Likewise.
1588 * stab_start_function: Likewise.
1589 * stab_end_block: Likewise.
1590 * stab_lineno: Likewise.
1591
5844b465
NC
15922020-03-20 Nick Clifton <nickc@redhat.com>
1593
1594 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1595 (process_section_headers): Check the return value from
1596 get_compression_header.
1597 (dump_section_as_strings): Likewise.
1598 (dump_section_as_bytes): Likewise.
1599 (load_specific_debug_section): Likewise.
1600
3d98c460
L
16012020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1602
1603 * ar.c (main): Update bfd_plugin_set_program_name call.
1604 * nm.c (main): Likewise.
1605
f3a08f77
NC
16062020-03-19 Nick Clifton <nickc@redhat.com>
1607
1608 PR 25676
1609 * testsuite/binutils-all/dw4.s: New test source file.
1610 * testsuite/binutils-all/nm.exp: Run the new test.
1611
ef3df110
L
16122020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1613
1614 * readelf.c (process_symbol_table): Use unsigned long for si.
1615
81a65eb3
AM
16162020-03-19 Alan Modra <amodra@gmail.com>
1617
1618 * elfcomm.c: Don't include bfd.h or bucomm.h.
1619 (program_name): Declare.
1620 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1621 and substitute FALSE and TRUE.
1622 (setup_archive, setup_nested_archive): Likewise.
1623 * elfcomm.h: Likewise.
1624
1cb7d8b1
AM
16252020-03-19 Alan Modra <amodra@gmail.com>
1626
1627 * readelf.c (process_archive): Always return via path freeing
1628 memory. Formatting.
1629
b966f55f
AM
16302020-03-19 Alan Modra <amodra@gmail.com>
1631
1632 * readelf.c (process_netbsd_elf_note): Validate descsz before
1633 accessing descdata. Formatting.
1634
645ba681
AM
16352020-03-19 Alan Modra <amodra@gmail.com>
1636
1637 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1638 * elfcomm.h (setup_archive): Update prototype.
1639
28d13567
AM
16402020-03-16 Alan Modra <amodra@gmail.com>
1641
1642 * readelf.c (get_symbols): New function.
1643 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1644 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1645
60e63c3e
AM
16462020-03-16 Alan Modra <amodra@gmail.com>
1647
1648 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1649 Detect shift overflows and check that terminating byte is found.
1650 Print an error on a bad uleb128.
1651
1bd6175a
AM
16522020-03-14 Alan Modra <amodra@gmail.com>
1653
1654 * readelf.c (process_file): Clean ba_cache.
1655
780f96ae
AM
16562020-03-14 Alan Modra <amodra@gmail.com>
1657
1658 * elfcomm.h (setup_archive): Update prototype.
1659 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1660 check longnames_size.
1661 (setup_nested_archive): Get file size and pass to setup_archive.
1662 * elfedit.c (process_archive): Likewise.
1663 * readelf.c (process_archive): Pass filedata->file_size to
1664 setup_archive.
1665
f761cb13
AM
16662020-03-14 Alan Modra <amodra@gmail.com>
1667
1668 * readelf.c (dump_section_as_strings): Free memory on error exit.
1669 (dump_section_as_bytes, process_notes_at): Likewise.
1670 (get_build_id): Free enote.
1671
06d949ec
KR
16722020-03-13 Kamil Rytarowski <n54@gmx.com>
1673
1674 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1675 NT_NETBSDCORE_LWPSTATUS notes.
1676
fd486f32
AM
16772020-03-13 Alan Modra <amodra@gmail.com>
1678
1679 * elfcomm.c (get_archive_member_name): Always return malloc'd
1680 string or NULL.
1681 * elfedit.c (process_archive): Tidy memory on all return paths.
1682 * readelf.c (process_archive): Likewise.
1683 (process_symbol_table): Likewise.
1684 (ba_cache): New, replacing ..
1685 (get_symbol_for_build_attribute): ..static vars here. Free
1686 strtab and symtab before loading new ones. Reject symtab without
1687 valid strtab in loop, breaking out of loop on valid symtab.
1688 (process_file): Free ba_cache symtab and strtab here, resetting
1689 ba_cache.
1690
8fb879cd
AM
16912020-03-12 Alan Modra <amodra@gmail.com>
1692
1693 * readelf.c (process_section_headers): Don't just set
1694 filedata->section_headers NULL, free it first. Similarly for
1695 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1696 symtab_shndx_list. Zero associated counts too.
1697 (process_object): Free symtab_shndx_list.
1698 (process_file): Free various allocated filedata tables.
1699
5496f3c6
NC
17002020-03-11 Nick Clifton <nickc@redhat.com>
1701
1702 PR 25611
1703 PR 25614
1704 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1705 li_segment_size fields.
1706 * dwarf.c (read_debug_line_header): Record the address size and
1707 segment selector size values (if present) in the lineinfo
1708 structure.
1709 (display_formatted_table): Warn if the format count is empty but
1710 the table itself is not empty.
1711 Display the format count and entry count at the start of the table
1712 dump.
1713 (display_debug_lines_raw): Display the address size and segement
1714 selector size fields, if present.
1715 * testsuite/binutils-all/dw5.W: Update expected output.
1716
9cc89dc0
AM
17172020-03-11 Alan Modra <amodra@gmail.com>
1718
1719 PR 25651
1720 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1721 pad_to_set on second block of code dealing with padding.
1722 Replace "c" with "num_sec" and don't recalculate number of
1723 sections on second block. Size arrays using sizeof (element)
1724 rather than sizeof (element type).
1725
41da0822
AM
17262020-03-10 Alan Modra <amodra@gmail.com>
1727
1728 * objdump.c (disassemble_section): Don't call qsort unless
1729 sym count is at least two.
1730 (disassemble_data): Don't call memcpy with NULL src.
1731
95099889
AM
17322020-03-09 Alan Modra <amodra@gmail.com>
1733
1734 PR 25645
1735 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1736 to get_data rather than multiplying.
1737 (dump_ia64_vms_dynamic_relocs): Likewise.
1738 (process_version_sections): Correct order of size and nmemb args
1739 in get_data call.
1740 (process_mips_specific): Likewise.
1741
a15de1f5
L
17422020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1743
1744 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1745 "memory checkers" in comments.
1746
9979ab66
SM
17472020-03-06 Simon Marchi <simon.marchi@efficios.com>
1748
1749 PR 25491
1750 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1751 * doc/Makefile.in: Re-generate.
1752
a0dcf297
NC
17532020-03-06 Nick Clifton <nickc@redhat.com>
1754
1755 * objcopy.c (check_new_section_flags): New function. Reject the
1756 SEC_COFF_SHARED flag if the target is not a COFF binary.
1757 (copy_object): Call check_new_section_flags.
1758 (setup_section): Likewise.
1759 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1760 flag cannot be applied to ELF binaries.
1761
a9b90127
AM
17622020-03-06 Alan Modra <amodra@gmail.com>
1763
1764 PR 25637
1765 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1766
d1faf7ca
AM
17672020-03-05 Alan Modra <amodra@gmail.com>
1768
1769 PR 25629
1770 * objcopy.c (filter_symbols): Don't segfault on NULL
1771 prefix_symbols_string.
1772
eef64366
CE
17732020-03-04 Christian Eggers <ceggers@gmx.de>
1774
1775 * objcopy.c (copy_object): Convert from bytes to octets for
1776 --gap-fill and --pad-to.
1777
5be2b2f5
NC
17782020-03-03 Nick Clifton <nickc@redhat.com>
1779
1780 PR 25625
1781 * prdbg.c (pr_tag_type): Remove call to abort.
1782
b312fea1
AM
17832020-03-02 Aaron Merey <amerey@redhat.com>
1784
1785 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1786 selection.
1787
ba3265d0
NC
17882020-03-02 Nick Clifton <nickc@redhat.com>
1789
1790 PR 25543
1791 * readelf.c (dump_section_as_strings): Display new-line characters
1792 as \n and then insert a line break.
1793 * testsuite/binutils-all/pr25543.s: New test.
1794 * testsuite/binutils-all/pr25543.d: Test driver.
1795 * testsuite/binutils-all/readelf.exp: Run the new test.
1796
736990c4
NC
17972020-02-27 Nick Clifton <nickc@redhat.com>
1798
1799 PR 25526
1800 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1801 get_data is unable to load the string table.
1802
dc1e8a47
AM
18032020-02-26 Alan Modra <amodra@gmail.com>
1804
1805 * elfedit.c: Indent labels correctly.
1806 * readelf.c: Likewise.
1807 * resres.c: Likewise.
1808
ecda9016
L
18092020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1810
1811 PR binutils/25584
1812 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1813 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1814
83d4d556
NC
18152020-02-24 Nick Clifton <nickc@redhat.com>
1816
1817 PR 25499
1818 * doc/binutils.texi (objdump): Fix typo in description of
1819 objdump's -g option.
1820
bd0cf5a6
NC
18212020-02-20 Nelson Chu <nelson.chu@sifive.com>
1822
1823 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1824 is changed.
1825
741cb839
EC
18262020-02-19 Jordan Rupprecht <rupprecht@google.com>
1827
1828 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1829
9f1528a1
AB
18302020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * configure: Regenerate.
1833
3a5d12fb
FS
18342020-02-10 Fangrui Song <maskray@google.com>
1835
1836 * objcopy.c (parse_flags): Handle "exclude".
1837 * doc/binutils.texi: Document the support.
1838
678d457f
AM
18392020-02-10 Aaron Merey <amerey@redhat.com>
1840
1841 * binutils/testsuite/binutils-all/debuginfod.exp:
1842 Replace set ::env with setenv.
46471187
AM
1843 Start server before setting environment variable.
1844 Specify tmpdir as the location of the server's
1845 database.
1846 Check additional server metrics at start-up.
678d457f 1847
e8319fde
NC
18482020-02-07 Nick Clifton <nickc@redhat.com>
1849
1850 * README-how-to-make-a-release: Add note about updating the
1851 GAS/NEWS URL in the next release.
1852
9fc0b501
SB
18532020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1854
1855 PR 25469
1856 * readelf.c (get_machine_flags): Add support for Z80N machine
1857 number.
1858
e1104d08
NC
18592020-02-07 Nick Clifton <nickc@redhat.com>
1860
1861 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1862 of the truncated file name.
1863
c2e6f744 18642020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
1865
1866 * objdump.c (print_jump_visualisation): New function.
1867 (disassemble_bytes): Call new function.
1868
02e0be69
AM
18692020-02-06 Alan Modra <amodra@gmail.com>
1870
1871 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1872 TCL procedure.
1873 (supports_gnu_osabi): New procedure.
1874 (is_generic): New, from ld-lib.exp.
1875 (supports_gnu_unique): Use the above.
1876
e8b79122
AM
18772020-02-04 Alan Modra <amodra@gmail.com>
1878
1879 * Makefile.am (CFILES): Add od-elf32_avr.c.
1880 * Makefile.in: Regenerate.
1881 * po/POTFILES.in: Regenerate.
1882
27a45f42
AS
18832020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1884
1885 * readelf.c (dump_relocations, dump_relocations)
1886 (decode_arm_unwind_bytecode, process_dynamic_section)
1887 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1888 error message.
1889
0b398d69
ST
18902020-02-03 Sergei Trofimovich <siarheit@google.com>
1891
1892 * coffdump.c (program_name): Drop redundant definition.
1893 * srconv.c (program_name): Likewise
1894 * sysdump.c (program_name): Likewise
1895
a8c4d40b
L
18962020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1897
1898 PR gas/25380
1899 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1900 same file with different section pointers.
1901
cb6ad9bb
NC
19022020-02-01 Nick Clifton <nickc@redhat.com>
1903
1904 * README-how-to-make-a-release: Update with more details on the
1905 release making process.
1906
53943f32
NC
19072020-01-31 Nick Clifton <nickc@redhat.com>
1908
1909 * po/sv.po: Updated Swedish translation.
1910
55be8fd0
NC
19112020-01-28 Nick Clifton <nickc@redhat.com>
1912
1913 * readelf.c (get_build_id): Simplify warning message about corrupt
1914 notes encountered whilst scanning for the build-id.
1915
82ef9cad
RM
19162020-01-27 Roland McGrath <mcgrathr@google.com>
1917
1918 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1919 for overlapping ranges so that (A == B) == (B == A) holds.
1920
e3696f67
AM
19212020-01-27 Alan Modra <amodra@gmail.com>
1922
1923 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1924 case statement with switch statement.
1925
2f796de6
NC
19262020-01-24 Nick Clifton <nickc@redhat.com>
1927
1928 * readelf.c (get_build_id): Fix warning messages about corrupt
1929 notes.
1930
24e648d4
NC
19312020-01-23 Nick Clifton <nickc@redhat.com>
1932
1933 * po/fr.po: Updated French translation.
1934
c48acf6f
YC
19352020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1936
1937 PR 25417
1938 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1939
26916852
NC
19402020-01-20 Nick Clifton <nickc@redhat.com>
1941
1942 * po/pt.po: Updated Portuguese translation.
1943 * po/uk.po: Updated Ukranian translation.
1944
b248e9ce
NC
19452020-01-18 Nick Clifton <nickc@redhat.com>
1946
1947 * README-how-to-make-a-release: Update notes on how to cut a
1948 branch for a release.
1949
1b1bb2c6
NC
19502020-01-18 Nick Clifton <nickc@redhat.com>
1951
1952 * configure: Regenerate.
1953 * po/binutils.pot: Regenerate.
1954
ae774686
NC
19552020-01-18 Nick Clifton <nickc@redhat.com>
1956
1957 Binutils 2.34 branch created.
1958
82a9ed20
TT
19592020-01-17 Thomas Troeger <tstroege@gmx.de>
1960
1961 * objdump.c (jump_info_visualize_address): Discard jumps that are
1962 no longer needed.
1963 (disassemble_bytes): Only compute the maximum level if jumps were
1964 detected.
1965
6a1939f5
NC
19662020-01-13 Nick Clifton <nickc@redhat.com>
1967
c87c17c1 1968 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
1969 * testsuite/binutils-all/debuginfod.exp: New tests.
1970
1d67fe3b
TT
19712020-01-13 Thomas Troeger <tstroege@gmx.de>
1972
1973 * objdump.c (visualize_jumps, color_output, extended_color_output)
1974 (detected_jumps): New variables.
1975 (usage): Add the new jump visualization options.
1976 (option_values): Add new option value.
1977 (long_options): Add the new option.
1978 (jump_info_new, jump_info_free): New functions.
1979 (jump_info_min_address, jump_info_max_address): Likewise.
1980 (jump_info_end_address, jump_info_is_start_address): Likewise.
1981 (jump_info_is_end_address, jump_info_size): Likewise.
1982 (jump_info_unlink, jump_info_insert): Likewise.
1983 (jump_info_add_front, jump_info_move_linked): Likewise.
1984 (jump_info_intersect, jump_info_merge): Likewise.
1985 (jump_info_sort, jump_info_visualize_address): Likewise.
1986 (disassemble_jumps): New function - used to locate jumps.
1987 (disassemble_bytes): Add ascii art generation.
1988 (disassemble_section): Add scan to locate jumps.
1989 (main): Parse the new visualization option.
1990 * doc/binutils.texi: Document the new feature.
1991 * NEWS: Mention the new feature.
1992
a788aedd
AM
19932020-01-13 Alan Modra <amodra@gmail.com>
1994
a4f2b7c5
AM
1995 PR 25360
1996 PR 25361
a788aedd
AM
1997 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1998 fde_fc col_type and col_offset.
1999 * readelf.c (apply_relocations): Move symsec check earlier.
2000 (free_debug_section): Free reloc_info.
2001 (process_notes_at): Free pnotes on error path.
2002 (process_object): Free dump_sects here..
2003 (process_archive): ..not here.
2004
805f38bc
AM
20052020-01-13 Alan Modra <amodra@gmail.com>
2006
2007 PR 25362
2008 * nm.c (display_rel_file): Free dyn_syms.
2009
ffebb0bb
NC
20102020-01-09 Nick Clifton <nickc@redhat.com>
2011
2012 PR 25220
2013 * objcopy.c (empty_name): New variable.
2014 (need_sym_before): Prevent an attempt to free a static variable.
2015 (filter_symbols): Avoid strcmp test by checking for pointer
2016 equality.
2017
ade4fd9b
NC
20182020-01-09 Nick Clifton <nickc@redhat.com>
2019
2020 * po/zh_TW.po: Updated Traditional Chinese translation.
2021
20222020-01-09 Aaron Merey <amerey@redhat.com>
2023
2024 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
2025 * Makefile.in: Regenerate.
2026 * NEWS: Update.
2027 * config.in: Regenerate.
2028 * configure: Regenerate.
2029 * configure.ac: Call AC_DEBUGINFOD.
2030 * doc/Makefile.in: Regenerate.
2031 * doc/binutils.texi: Add section on using binutils
2032 with debuginfod.
2033 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
2034 Query debuginfod servers for the target debug file.
2035 (load_separate_debug_info): Call
2036 debuginfod_fetch_separate_debug_info if configured with
2037 debuginfod.
2038 (load_separate_debug_files): Add file argument to
2039 load_separate_debug_info calls.
2040 * dwarf.h (get_build_id): Add declaration.
2041 * objdump.c (get_build_id): New function. Get build-id of file.
2042 * readelf.c (get_build_id): Likewise.
2043 * testsuite/binutils-all/debuginfod.exp: New tests.
2044 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
2045 section.
2046
6655dba2
SB
20472020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
2048
2049 * readelf.c: Add support for new Z*) relocations and machine
2050 types.
2051
b14ce8bf
AM
20522020-01-01 Alan Modra <amodra@gmail.com>
2053
2054 Update year range in copyright notice of all files.
2055
0b114740 2056For older changes see ChangeLog-2019
3499769a 2057\f
0b114740 2058Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
2059
2060Copying and distribution of this file, with or without modification,
2061are permitted in any medium without royalty provided the copyright
2062notice and this notice are preserved.
2063
2064Local Variables:
2065mode: change-log
2066left-margin: 8
2067fill-column: 74
2068version-control: never
2069End: