]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Use expression completer for "maint print type"
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
a315d390
NC
12020-12-07 Nick Clifton <nickc@redhat.com>
2
3 * README-how-to-make-a-release (point releases): Add a note to
4 update the milestone list on sourceware's bugzilla.
5
288f0ba2
AM
62020-12-04 Alan Modra <amodra@gmail.com>
7
8 * dwarf.c (frame_display_row): Do without static variable "sloc".
9 (cu_tu_indexes_read): Move to file scope.
10 (free_debug_memory): Reset it here, along with level_type_signed.
11 Free and clear a number of other static variables.
12 * readelf.c (arm_attr_public_tag <table>): Constify, updating..
13 (arm_attr_tag_*): ..all these uses.
14 (process_mips_specific): Free "rels" on error path.
15
21c33bcb
NC
162020-11-27 Nick Clifton <nickc@redhat.com>
17
18 PR 26865
19 * windres.c (main): If the preprocessor name includes spaces,
20 ensure that it is quoted.
21
2c6f3e56
JL
222020-11-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23
24 * testsuite/lib/binutils-common.exp (supports_noinit_section): New.
25 (supports_persistent_section): New.
26
96c61be5
NA
272020-11-23 Nick Alcock <nick.alcock@oracle.com>
28
29 * readelf.c (dump_section_as_ctf): Call ctf_arc_symsect_endianness.
30
6595cf3c
AM
312020-11-25 Alan Modra <amodra@gmail.com>
32
33 * testsuite/binutils-all/nm.exp (ifunc): xfail more targets.
34
3d16b64e
NA
352020-11-20 Nick Alcock <nick.alcock@oracle.com>
36
37 * readelf.c (dump_section_as_ctf): Use .dynsym and .dynstr, not
38 .symtab and .strtab.
39
83d59285
NA
402020-11-20 Nick Alcock <nick.alcock@oracle.com>
41
42 * objdump.c (dump_ctf): Report errors from ctf_archive_iter.
43 * readelf.c (dump_section_as_ctf): Likewise.
44
ae41200b
NA
452020-11-20 Nick Alcock <nick.alcock@oracle.com>
46
47 * objdump.c (dump_ctf): Use ctf_dict_open, not
48 ctf_arc_open_by_name.
49 * readelf.c (dump_section_as_ctf): Likewise.
50
139633c3
NA
512020-11-20 Nick Alcock <nick.alcock@oracle.com>
52
53 * objdump.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
54 (dump_ctf_archive_member): Likewise.
55 (dump_ctf): Likewise. Use ctf_dict_close, not ctf_file_close.
56 * readelf.c (dump_ctf_errs): Rename ctf_file_t to ctf_dict_t.
57 (dump_ctf_archive_member): Likewise.
58 (dump_section_as_ctf): Likewise. Use ctf_dict_close, not
59 ctf_file_close.
60
e6f6aa8d
NC
612020-11-20 Nick Clifton <nickc@redhat.com>
62
63 PR 22967
64 * nm.c (ifunc_type_chars): New variable.
65 (long_options): Add --ifunc-chars.
66 (print_symbol): Use ifunc_type_chars for ifunc symbols.
67 (main): Handle the new option.
68 * doc/binutils.texi: Document the new option.
69 * configure.ac: Add --enable-f-for-ifunc-symbols option which
70 changes the default symbol displayed by nm.
71 * NEWS: Mention the new feature.
72 * testsuite/binutils-all/nm.exp: Test the new feature.
73 * config.in: Regenerate.
74 * configure: Regenerate.
75
8881640c
LZ
762020-11-20 Linda Zhang <lindasc@qq.com>
77
78 PR 20979
79 * dllwrap.c (main): Deprecate and warn the use of dllwrap.
80
cc6fd584
JL
812020-11-20 Jozef Lawrynowicz <jozef.l@mittosystems.com>
82
83 * testsuite/binutils-all/readelf-maskos-1a.d: Fix test for unrecognized
84 bit set in SHF_MASKOS range.
85 * testsuite/binutils-all/readelf-maskos-1b.d: Likewise.
86 * testsuite/binutils-all/readelf-maskos-unknown.s: New test.
87
99fabbc9
JL
882020-11-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
89
90 * NEWS: Announce SHF_GNU_RETAIN support.
91 * readelf.c (get_elf_section_flags): Handle SHF_GNU_RETAIN.
92 Recognize SHF_GNU_RETAIN and SHF_GNU_MBIND only for supported OSABIs.
93 * testsuite/binutils-all/readelf.exp: Run new tests.
94 Don't run run_dump_test when there isn't an assembler available.
95 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Adjust
96 comment.
97 * testsuite/binutils-all/readelf-maskos-1a.d: New test.
98 * testsuite/binutils-all/readelf-maskos-1b.d: New test.
99 * testsuite/binutils-all/readelf-maskos.s: New test.
100 * testsuite/binutils-all/retain1.s: New test.
101 * testsuite/binutils-all/retain1a.d: New test.
102 * testsuite/binutils-all/retain1b.d: New test.
103
0833984d
HC
1042020-11-17 Howard Chu <hyc@symas.com>
105
106 * ar.c (main): Place the libdeps record in the second archive
107 slot.
108
50ea0877
NC
1092020-11-13 Nick Clifton <nickc@redhat.com>
110
111 PR 26829
112 * dwarf.c (struct dwo_info): Add cu_offset field.
113 (add_dwo_info): Add cu_offset parameter. Record in new dwo_info
114 struct.
115 (add_dwo_name): Add cu_offset field.
116 (add_dwo_dir): Add cu_offset field.
117 (add_dwo_id): Add cu_offset field.
118 (read_and_display_attr_value): Pass cu_offset to dwo recording
119 functions.
120 (load_separate_debug_files): Accumulate name, dir and id values
121 and display once for each CU.
122 * testsuite/binutils-all/dwo.sL Use a separate CU for the second
123 dwo link.
124 * testsuite/binutils-all/readelf.k2: Update expected output.
125
4d932715
BE
1262020-11-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
127
128 * dwarf.c (display_debug_rnglists_list): Only bias the
129 DW_RLS_offset_pair with the base address.
130
ed1afd86
NC
1312020-11-10 Nick Clifton <nickc@redhat.com>
132
133 * dwarf.c (skip_attr_bytes): Correctly handle DW_FORM_ref8.
134 (get_type_abbrev_from_form): Accept DW_FORM_ref8.
135
a76bf0e5
AS
1362020-11-09 Andreas Schwab <schwab@linux-m68k.org>
137
138 * Makefile.am (development.exp): Fix regexp.
139 * Makefile.in: Regenerate.
140
521d4b19
NC
1412020-11-09 Nick Clifton <nickc@redhat.com>
142
143 PR 26847
144 * dwarf.c (read_and_display_attr_value): In wide mode, display the
145 name of the form.
146
a4e91c46
AM
1472020-11-09 Alan Modra <amodra@gmail.com>
148
149 * elfedit (usage): Avoid false positive "may be used uninitialised".
150 Don't leak memory.
151
c9af3845
HC
1522020-11-09 Howard Chu <hyc@symas.com>
153
154 * ar.c (main): Use plugin_target rather than "target" when
155 resetting libdeps_bfd target.
156
9c905051
L
1572020-11-06 H.J. Lu <hongjiu.lu@intel.com>
158
159 * elfedit.c: Include "libiberty.h".
160 (usage): Update help message.
161
f3016d6c
HC
1622020-11-03 Howard Chu <hyc@symas.com>
163
164 * ar.c (long_options): Add --record-libdeps.
165 (usage): Mention the new option.
166 (decode_options): Handle the new option.
167 (replace_members): If necessary, create a bfd to hold the libdeps
168 description.
169 * binemul.c (ar_emul_append_bfd): New function.
170 (ar_emul_replace_bfd): New function.
171 (ar_emul_default_append): Replace file_name and target arguments
172 with new_bfd argument.
173 (ar_emul_default_replace): Likewise.
174 * binemul.h: Update prototypes.
175 (struct bin_emulation_xfer_struct): Update fields.
176 * doc/binutils.texi: Document the new option.
177 * NEWS: Mention the new feature.
178 * emul_aix.c (ar_emul_aix_append): Update.
179 (ar_emul_aix_replace): Likewise.
180 * testsuite/binutils-all/ar.exp: Add test of new feature.
181
b0ab0693
L
1822020-10-30 H.J. Lu <hongjiu.lu@intel.com>
183
184 PR gas/26703
185 * readelf.c (decode_x86_isa): Handle
186 * GNU_PROPERTY_X86_ISA_1_BASELINE.
187 * testsuite/binutils-all/i386/empty.d: Updated.
188 * testsuite/binutils-all/i386/ibt.d: Likewise.
189 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
190 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
191 * testsuite/binutils-all/i386/shstk.d: Likewise.
192 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
193 * testsuite/binutils-all/x86-64/empty.d: Likewise.
194 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
195 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
196 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
197 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
198 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
199 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
200 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
201 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
202 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
203 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
204 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
205 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
206 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
207 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
208
76868f36
L
2092020-10-29 H.J. Lu <hongjiu.lu@intel.com>
210
211 PR binutils/26808
212 * dwarf.c (abbrev_list): Add abbrev_base.
213 (new_abbrev_list): Add an abbrev_base argument and record it.
214 (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
215 and match it.
216 (process_debug_info): Pass abbrev_base to new_abbrev_list and
217 find_abbrev_list_by_abbrev_offset.
218 (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
219 and find_abbrev_list_by_abbrev_offset.
220 * testsuite/binutils-all/x86-64/pr26808.dump: New file.
221 * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
222 * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
223 test.
224
00c19b8e
NC
2252020-10-29 Nick Clifton <nickc@redhat.com>
226
227 PR 26805
228 * objcopy.c (is_dwo_section): Check for missing or short section
229 names.
230
ce04ca31
AR
2312020-10-26 Andreas Rammhold <andreas@rammhold.de>
232
233 * README-how-to-make-a-release: Use sha256sum instead of md5sum.
234
ec3f28df
NC
2352020-10-28 Nick Clifton <nickc@redhat.com>
236
237 PR 26795
238 * elfedit.c (process_archive): Remove spurious call to free().
239
bcd213b2
NC
2402020-10-27 Nick Clifton <nickc@redhat.com>
241
242 * dwarf.c (struct abbrev_list): New structure. Used to collect
243 lists of abbreviation sets.
244 (struct abbrev_map): New structure. Used to map CU offsets to
245 abbreviation offsets.
246 (record_abbrev_list): New function. A new entry to an
247 abbreviation list.
248 (free_all_abbrevs): Update to free abbreviation lists.
249 (new_abbrev_list): New function. Start a new abbreviation
250 list.
251 (find_abbrev_list_by_abbrev_offset): New function.
252 (find_abbrev_map_by_offset): New function.
253 (add_abbrev): Add abbrev_list parameter.
254 (add_abbrev_attr): Likewise.
255 (process_abbrev_section): Rename to process_abbrev_set and add
256 list parameter.
257 (get_type_abbrev_from_form): New function. Attempts to decode the
258 forms used by DW_AT_type attributes.
259 (get_type_signedness): Display type names if operating in wide
260 mode. Use get_type_abbrev_from_form.
261 (read_and_display_attr_value): Use get_type_abbrev_from_form.
262 (process_debug_info): Pre-parse the CU headers to collate all the
263 abbrevs before starting the main scan.
264 (process_debug_abbrev): Do not free any loaded abbrevs.
265 (free_debug_memory): Free the abbrev maps.
266
64ec7c3f
L
2672020-10-22 H.J. Lu <hongjiu.lu@intel.com>
268
269 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
270 error message on error.
271
777cd7ab
DDAG
2722020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
273
274 * windmc.c (write_header_define): Fix printf format.
275 (write_header): Likewise.
276
59624513
NC
2772020-10-21 Nick Clifton <nickc@redhat.com>
278
279 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
280 when processing the DW_FORM_ref_addr form.
281 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
282 Handle DW_FORM_indirect.
283 (get_type_signedness): Allow a limited amount of recursion.
284 Do not attempt to decode types that use the DW_FORM_ref_addr form.
285 (read_and_display_attr_value): Do not attempt to decode types
286 that use the DW_FORM_ref_addr form.
287
b9e920ec
AM
2882020-10-20 Alan Modra <amodra@gmail.com>
289
290 * readelf.c: Delete whitespace at end of line throughout.
291 (SECTION_NAME, SECTION_NAME_VALID): New.
292 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
293 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
294 (process_section_headers, process_section_groups): Likewise.
295 (shdr_to_ctf_sect): Likewise.
296 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
297 (ia64_process_unwind, hppa_process_unwind): Likewise.
298 (display_debug_section, initialise_dumps_byname): Likewise.
299 (process_lto_symbol_tables): Likewise. Check trailing period of
300 lto symbol table names.
301 (display_lto_symtab): Use sizeof instead of strlen.
302
ce786647
NC
3032020-10-20 Nelson Chu <nelson.chu@sifive.com>
304
305 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
306
0f03783c
NC
3072020-10-19 Nick Clifton <nickc@redhat.com>
308
309 * readelf.c (do_lto_syms): New local.
310 (long_option_values): Add OPTION_LTO_SYMS.
311 (options): Add --lto-syms.
312 (usage): Mention the new option.
313 (parse_args): Parse the new option.
314 (get_lto_kind): New function.
315 (get_lto_visibility): New function.
316 (get_lto_sym_type): New function.
317 (display_lto_symtab): New function - displays the contents of an
318 LTo symbol table section.
319 (process_lto_symbol_tables): New functions. Calls
320 dipslay_lto_symtab on any LTO symbol table section.
321 (process_object_file): Call process_lto_symbol_tables.
322 * doc/binutils.texi: Document the new option.
323 * NEWS: Mention the new feature.
324
32930e4e
L
3252020-10-09 H.J. Lu <hongjiu.lu@intel.com>
326
327 PR gas/26703
328 * readelf.c (decode_x86_compat_2_isa): New function.
329 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
330 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
331 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
332 and X86_COMPAT_2_ISA_1_NEEDED.
333 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
334 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
335 values.
336 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
337 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
338 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
339 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
340 * testsuite/binutils-all/i386/empty.d: Updated.
341 * testsuite/binutils-all/i386/ibt.d: Likewise.
342 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
343 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
344 * testsuite/binutils-all/i386/shstk.d: Likewise.
345 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
346 * testsuite/binutils-all/x86-64/empty.d: Likewise.
347 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
348 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
349 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
350 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
351 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
352 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
353 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
354 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
355 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
356 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
357 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
358 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
359 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
360 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
361
0ec992e6
NC
3622020-10-06 Nick Clifton <nickc@redhat.com>
363
364 * objcopy.c (copy_object): Compare input and output sections by
365 pointer rather than name.
366
1f1845d4
NC
3672020-10-05 Nick Clifton <nickc@redhat.com>
368
369 PR 26698
370 * windmc.c (mc_unify_path): Fix typo checking character at end of
371 pathname.
372
0cc79db2
SN
3732020-10-05 Samanta Navarro <ferivoz@riseup.net>
374
375 * doc/binutils.texi: Fix spelling mistakes.
376
1c9f770d
MW
3772020-09-29 Mark Wielaard <mark@klomp.org>
378
379 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
380 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
381
5a805384
AM
3822020-09-25 Alan Modra <amodra@gmail.com>
383
384 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
385 more field sizes.
386 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
387 allowed reloc_size. Don't read_leb128 outside of section.
388
debd1a62
MW
3892020-09-23 Mark Wielaard <mark@klomp.org>
390
391 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
392 * testsuite/binutils-all/dw5.W: Adjust expected output.
393 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
394
ec47b32a
MW
3952020-09-23 Mark Wielaard <mark@klomp.org>
396
397 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
398 for dwarf_version 5 just as version 3 and 4 (only 2 is
399 different).
400 (process_debug_info): Allow DW_UT_partial.
401
a2ab5831
NC
4022020-09-24 Nick Clifton <nickc@redhat.com>
403
404 PR 26662
405 * doc/binutils.texi (nm): Document that 'c' is used for small
406 common symbols.
407
427234c7
LC
4082020-09-21 Ludovic Courtès <ludo@gnu.org>
409
410 * doc/binutils.texi (objcopy, strip): Say that
411 '--strip-unneeded' implies '--strip-debug'.
412
0690f591
AP
4132020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
414
415 * verilog.c (verilog_write_address): Properly handle 64-bit
416 addresses to avoid truncation of the high part.
417
c1229f84
AM
4182020-09-16 Alan Modra <amodra@gmail.com>
419
420 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
421 * objcopy.c (is_hidden_symbol): Likewise.
422
5b3eb5ed
NC
4232020-09-15 Nick Clifton <nickc@redhat.com>
424
425 * README-how-to-make-a-release (https): Add a reminder to create a
426 new Bugzilla tag for the point release, once it has been published.
427
8d58ed37
L
4282020-09-11 H.J. Lu <hongjiu.lu@intel.com>
429
430 * readelf.c (get_note_type): Support NT_X86_CET.
431
ce139cd5
NC
4322020-09-11 Nick Clifton <nickc@redhat.com>
433
434 PR 26595
435 * dwarf.c (load_separate_debug_info): Return NULL rather than
436 FALSE in error situations.
437 (load_separate_debug_file): Move code to load debug links to ...
438 (check_for_and_load_links): ... here. New function. Load
439 separate debug information pointed to by debuglink and
440 debugaltlink sections. Recursively scan newly loaded debug
441 information for more links and load them too.
442
dfbee680
AM
4432020-09-09 Alan Modra <amodra@gmail.com>
444
445 PR 26578
446 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
447 (load_separate_debug_files): Use a stack var for build_id_data.
448
790147a9
L
4492020-09-08 H.J. Lu <hongjiu.lu@intel.com>
450
451 PR ld/26587
452 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
453 to ld on PE targets for PR 25662 test.
454
7d81bc93
JL
4552020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
456 Kuan-Lin Chen <kuanlinchentw@gmail.com>
457
458 * readelf.c (target_specific_reloc_handling): Handle
459 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
460
839f41a3
AM
4612020-09-02 Alan Modra <amodra@gmail.com>
462
463 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
464
54b8331d
AM
4652020-08-30 Alan Modra <amodra@gmail.com>
466
467 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
468 long for "bytes".
469
08d7da7d
NC
4702020-08-28 Nick Clifton <nickc@redhat.com>
471
472 PR 26548
473 * dwarf.c (read_leb128): When checking for overflow of a signed
474 read, use a signed shift.
475
0861f561
CQ
4762020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
477
478 * readelf.c (get_csky_section_type_name): New.
479 (get_section_type_name): Add handler for CSKY.
480 (display_csky_attribute): New.
481 (process_arch_specific): Add handler for CSKY.
482 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
483 section.
484
b0191216
JL
4852020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
486
487 * readelf.c (get_msp430x_section_type_name): Rename to ...
488 (get_msp430_section_type_name): ... this.
489 (get_section_type_name): Use get_msp430_section_type_name.
490 (display_msp430x_attribute): Rename to ...
491 (display_msp430_attribute): ... this.
492 (process_arch_specific): Use display_msp430_attribute.
493
9e7ed8b0
JDA
4942020-08-27 John David Anglin <danglin@gcc.gnu.org>
495
496 PR 26356
497 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
498 "-j $PRIVATE$" to command on hppa*-*-hpux*.
499 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
500 dollar-sign quotes before quoting. Do this prior to generating log
501 output.
502
6b5473c9
RH
5032020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
504
505 PR 26088
506 * mclex.c (skip_until_eol): If eol was found, increment line
507 number.
508
5e9b84f7
NA
5092020-08-27 Nick Alcock <nick.alcock@oracle.com>
510
511 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
512 * readelf.c (dump_ctf_errs): Likewise.
513
926c9e76
NA
5142020-08-27 Nick Alcock <nick.alcock@oracle.com>
515
516 * objdump.c (dump_ctf_archive_member): Move error-
517 reporting...
518 (dump_ctf_errs): ... into this separate function.
519 (dump_ctf): Call it on open errors.
520 * readelf.c (dump_ctf_archive_member): Move error-
521 reporting...
522 (dump_ctf_errs): ... into this separate function. Support
523 calls with NULL fp. Adjust for new err parameter to
524 ctf_errwarning_next.
525 (dump_section_as_ctf): Call it on open errors.
526
987cf30a
NA
5272020-08-27 Nick Alcock <nick.alcock@oracle.com>
528
529 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
530 * Makefile.in: Regenerated.
531
3eba3ef3
NC
5322020-08-26 Nick Clifton <nickc@redhat.com>
533
534 PR 26405
535 * readelf.c (get_segment_type): Handle OpenBSD segment types.
536
a68aba2d
AM
5372020-08-26 Alan Modra <amodra@gmail.com>
538
539 PR 26412
540 * objcopy.c (copy_object): Don't fwrite NULL contents.
541
37f628c3
KH
5422020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
543
544 PR 26340
545 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
546
f3da8a96
AM
5472020-08-24 Alan Modra <amodra@gmail.com>
548
549 * readelf.c (dump_section_as_strings) Avoid false positive
550 "may be used uninitialised".
551
3f2e9699
L
5522020-08-22 H.J. Lu <hongjiu.lu@intel.com>
553
554 PR ld/26382
555 * nm.c (print_symname): Display only one '@' for undefined
556 versioned symbols.
557 * doc/binutils.texi: Update nm version information.
558
02391b8b
MW
5592020-08-21 Mark Wielaard <mark@klomp.org>
560
561 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
562 recognize DW_LANG_C11.
563
d1ce973e
AM
5642020-08-19 Alan Modra <amodra@gmail.com>
565
566 PR 26349
567 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
568 and info fields.
569 (dump_section_as_strings): Don't use %tx to display offset.
570
82fcdb39
AM
5712020-08-14 Alan Modra <amodra@gmail.com>
572
573 PR 26388
574 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
575 of debug_information. Correct test of max_loc_offsets and
576 max_range_lists.
577 * rddbg.c (read_debugging_info): Free dhandle on error.
578
fc0efc4b
AM
5792020-08-14 Alan Modra <amodra@gmail.com>
580
581 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
582
75e100a3
AM
5832020-08-13 Alan Modra <amodra@gmail.com>
584
585 PR 26348
586 * objcopy.c (copy_object): Report file name with endian error.
587 Error and return on abfd->read_only.
588
d3511b24
TT
5892020-08-12 Tom Tromey <tromey@adacore.com>
590
591 * dwarf-mode.el (Version): Now 1.6.
592 (dwarf-die-button-action): Tighten DIE reference regexp.
593 (dwarf-font-lock-keywords): Update name regexp.
594
79bc120c
NC
5952020-08-12 Nick Clifton <nickc@redhat.com>
596
597 PR binutils/26331
598 * readelf.c (do_demangle): New option flag.
599 (print_symbol): If do_demangle is enabled, demangle the symbol.
600 (enum long_option_values): New enum to hold long option values.
601 (options): Add demangle, no-demangle, recursion-limit and
602 no-recursion-limit options. Alpha sort the table.
603 (usage): Describe the new options.
604 (parse_args): Handle the new options.
605 * NEWS: Mention the new feature.
606 * doc/binutils.texi: Document the new feature.
607 * testsuite/binutils-all/readelf.exp: Test the new feature.
608 * testsuite/binutils-all/mangled.s: New file - assembler source.
609 * testsuite/binutils-all/readelf.demangled: New file - expected
610 output from readelf.
611
79ddc884
NC
6122020-08-12 Nick Clifton <nickc@redhat.com>
613
614 * po/sr.po: Updated Serbian translation.
615
9b0ac51b
L
6162020-08-10 H.J. Lu <hongjiu.lu@intel.com>
617
618 PR binutils/26302
619 * nm.c (with_symbol_versions): Removed.
620 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
621 (long_options): Update --with-symbol-versions entry.
622 (print_symbol): Remove the with_symbol_versions check.
623 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
624 compatibility.
625 * doc/binutils.texi: Remove --with-symbol-versions.
626
787bbc56
AM
6272020-08-05 Alan Modra <amodra@gmail.com>
628
629 PR 26337
630 * objdump.c (load_specific_debug_section): Revert last change.
631
0b97e818
AM
6322020-08-05 Alan Modra <amodra@gmail.com>
633
634 PR 26337
635 * objdump.c (load_specific_debug_section): Don't malloc space for
636 section contents, use bfd_malloc_and_get_section.
637
c8693053
RO
6382020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
639
640 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
641 * Makefile.in, doc/Makefile.in: Regenerate.
642 * configure: Regenerate.
643
ac2599c4
L
6442020-07-30 H.J. Lu <hongjiu.lu@intel.com>
645
646 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
647 to assembler.
648 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
649 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
650 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
651 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
652 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
653
c77cb2a0
MR
6542020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
655
656 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
657 New test.
658 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
659 New test.
660 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
661 New test.
662 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
663 New test.
664 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
665 New test.
666 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
667 New test.
668 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
669 New test.
670 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
671 New test.
672 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
673 New test.
674 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
675
3f1b17bb
MR
6762020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
677
678 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
679 test.
680 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
681 test.
682 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
683 test.
684 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
685 test.
686 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
687 test.
688 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
689
d70f978b
L
6902020-07-28 H.J. Lu <hongjiu.lu@intel.com>
691
692 PR binutils/26301
693 * configure: Regenerated.
694
377170fa
L
6952020-07-28 H.J. Lu <hongjiu.lu@intel.com>
696
697 PR binutils/26301
698 * configure: Regenerated.
699
8fab9282
AM
7002020-07-27 Alan Modra <amodra@gmail.com>
701
702 * objdump.c (dump_section): Don't return without calling
703 process_section_p.
704
608d61c2
L
7052020-07-27 H.J. Lu <hongjiu.lu@intel.com>
706
707 * doc/binutils.texi: Replace preceeded with preceded.
708
3abf9758
MR
7092020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
710
711 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
712 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
713 procedures.
714 (has_newabi): Remove variable.
715 (has_abi, abi_asflags, abi_ldflags): New associative array
716 variables.
717 (irixemul): New variable.
718 Replace `run_dump_test' calls where applicable throughout with
719 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
720 as appropriate. Use `noarch' for tests that require their own
721 architecture setting.
722 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
723 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
724 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
725 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
726 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
727 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
728 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
729 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
730 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
731 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
732 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
733 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
734 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
735 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
736 GAS flags.
737 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
738 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
739 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
740 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
741 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
742 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
743 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
744
f6720b1c
AM
7452020-07-24 Aaron Merey <amerey@redhat.com>
746
747 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
748 * Makefile.in: Rebuild.
749 * configure: Rebuild.
750 * doc/Makefile.in: Rebuild.
751
bf772a1e
NC
7522020-07-24 Nick Clifton <nickc@redhat.com>
753
754 * README-how-to-make-a-release: Various small updates whilst
755 creating the 2.35 release.
756
0b884151
NA
7572020-07-22 Nick Alcock <nick.alcock@oracle.com>
758
759 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
760 option.
761
3dd6b890
NA
7622020-07-22 Nick Alcock <nick.alcock@oracle.com>
763
764 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
765 (dump_ctf): Likewise.
766
8b37e7b6
NA
7672020-07-22 Nick Alcock <nick.alcock@oracle.com>
768
769 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
770 * readelf.c (dump_ctf_archive_member): Likewise.
771
df16e041
NC
7722020-07-22 Nick Clifton <nickc@redhat.com>
773
774 * readelf.c (parse_args): Silence potential warnings about a
775 memory resource leak when allocating space for ctf option values.
776 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
777 variable.
778
84dc5f0b
NC
7792020-07-21 Nick Clifton <nickc@redhat.com>
780
781 * po/sv.po: Updated Swedish translation.
782
570b0ed6
CZ
7832020-07-14 Claudiu Zissulescu <claziss@gmail.com>
784
785 * testsuite/binutils-all/arc/double_regs.s: New test.
786 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
787
0a5c31d1
NC
7882020-07-13 Nick Clifton <nickc@redhat.com>
789
790 * po/fr.po: Updated French translation.
791
7a34d0ea
AM
7922020-07-13 Alan Modra <amodra@gmail.com>
793
794 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
795 optional machine-os arg.
796
a308b89d
L
7972020-07-11 H.J. Lu <hongjiu.lu@intel.com>
798
799 * readelf.c (decode_x86_feature_2): Handle
800 GNU_PROPERTY_X86_FEATURE_2_TMM.
801
af2b3186
TV
8022020-07-10 Tom de Vries <tdevries@suse.de>
803
804 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
805 information in the end_sequence row.
806 * testsuite/binutils-all/dw5.W: Update.
807 * testsuite/binutils-all/objdump.WL: Update.
808
fe49679d
AM
8092020-07-09 Alan Modra <amodra@gmail.com>
810
811 * dlltool.c: Remove powerpc PE support and comments.
812 * configure.ac: Remove powerpc PE dlltool config.
813 * configure: Regenerate.
814
d90171de
NC
8152020-07-09 Nick Clifton <nickc@redhat.com>
816
817 * rclex.c: Add OWNERDRAW keyword.
818 * rcparse.y: Add OWNERDRAW token.
819 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
820 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
821 BITMAP flags.
822 * windres.c (extended_menuitems): Likewise.
823 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
824
e3fdc001
AM
8252020-07-09 Alan Modra <amodra@gmail.com>
826
827 * readelf (slurp_hppa_unwind_table): Set table_len before use
828 in relocation sanity checks.
829
5a2296ac
AM
8302020-07-07 Alan Modra <amodra@gmail.com>
831
832 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
833 * testsuite/binutils-all/nm.exp: Likewise.
834 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
835 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
836 * testsuite/binutils-all/set-section-alignment.d: Likewise.
837 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
838
efd0ed58
AM
8392020-07-07 Alan Modra <amodra@gmail.com>
840
841 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
842 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
843
17550be7
NC
8442020-07-06 Nick Clifton <nickc@redhat.com>
845
846 * po/bg.po: Updated Bulgarian translation.
847 * po/pt.po: Updated Portuguese translation.
848 * po/uk.po: Updated Ukranian translation.
849
ddb43bab
AM
8502020-07-06 Alan Modra <amodra@gmail.com>
851
852 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
853 find string length.
854
b19d852d
NC
8552020-07-04 Nick Clifton <nickc@redhat.com>
856
857 * configure: Regenerate.
858 * po/binutils.pot: Regenerate.
859
b115b9fd
NC
8602020-07-04 Nick Clifton <nickc@redhat.com>
861
862 Binutils 2.35 branch created.
863
0942c7ab
NC
8642020-07-02 Nick Clifton <nickc@redhat.com>
865
866 PR 26028
867 * readelf.c (print_symbol): Handle truncation of symbol names.
868 (options): Add -T/--silent-truncation option.
869 (parse_args): Handle the option.
870 (print_dynamic_symbol): Correct calculation of width available to
871 display symbol name.
872 * doc/binutils.texi: Document the -T option to readelf.
873 * NEWS: Mention the new feature.
874
bbd19b19
L
8752020-06-30 H.J. Lu <hongjiu.lu@intel.com>
876
877 * NEWS: Mention x86 NaCl target support removal.
878 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
879 x86 NaCl target support.
880 * testsuite/binutils-all/elfedit-1.d: Likewise.
881 * testsuite/binutils-all/i386/i386.exp: Likewise.
882 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
883 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
884 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
885 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
886 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
887 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
888 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
889 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
890 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
891 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
892 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
893 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
894
5568cc9e
NC
8952020-06-30 Nick Clifton <nickc@redhat.com>
896
897 * dwarf.c (read_and_display_attr_value): Support
898 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
899 DW_AT_comp_dir.
900
d74b88ed
AM
9012020-06-30 Alan Modra <amodra@gmail.com>
902
903 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
904 xfail for nds32.
905
9f27c364
HPN
9062020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
907
908 * dwarf.c (display_debug_str_offsets): Rename local variable
909 index to idx. Move to top of function.
910
279edac5
AM
9112020-06-29 Alan Modra <amodra@gmail.com>
912
913 * dwarf.c: Use C style comments.
914 * resrc.c: Likewise.
915
cfc16775
AM
9162020-06-27 Alan Modra <amodra@gmail.com>
917
918 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
919 after freeing.
920 (release_archive): Set fields of arch to NULL after freeing.
921
2f6ecaed
NA
9222020-06-26 Nick Alcock <nick.alcock@oracle.com>
923
924 * readelf.c (dump_section_as_ctf): Support .ctf archives using
925 ctf_arc_bufopen. Automatically load the .ctf member of such
926 archives as the parent of all other members, unless specifically
927 overridden via --ctf-parent. Split out dumping code into...
928 (dump_ctf_archive_member): ... here, as in objdump, and call
929 it once per archive member.
930 (dump_ctf_indent_lines): Code style fix.
931
094e34f2
NA
9322020-06-26 Nick Alcock <nick.alcock@oracle.com>
933
934 * configure.ac [--enable-libctf]: New, default yes.
935 Set ENABLE_LIBCTF accordingly.
936 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
937 * configure: Regenerate.
938 * config.in: Regenerate.
939 * Makefile.in: Regenerate.
940 * aclocal.m4: Regenerate.
941 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
942 (option_values): Likewise.
943 (long_options): Likewise.
944 (main): Likewise.
945 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
946 (make_ctfsect): Likewise.
947 (dump_ctf_archive_member): Likewise.
948 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
949 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
950 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
951 (usage): Likewise.
952 (process_section_contents): Likewise.
953 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
954 (dump_ctf_indent_lines): Likewise.
955 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
956
2a1bb84c
JB
9572020-06-26 Jan Beulich <jbeulich@suse.com>
958
959 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
960 redundant text from x86 specific part of -M section.
961
85f7484a
PB
9622020-06-26 Pat Bernardi <bernardi@adacore.com>
963
964 * readelf.c (display_m68k_gnu_attribute): New function.
965 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
966
d0dded5b
L
9672020-06-23 H.J. Lu <hongjiu.lu@intel.com>
968
969 PR binutils/26160
970 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
971 * testsuite/binutils-all/pr26160.r: Likewise.
972 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
973
39f381cb
NC
9742020-06-23 Nick Clifton <nickc@redhat.com>
975
976 PR 26160
977 * dwarf.c (fetch_indexed_string): Detect and handle old style
978 .debug_str_offset tables.
979 (display_debug_str_offsets): Likewise. Also add support for
980 .debug_str_offsets.dwo sections.
981
80fda85c
L
9822020-06-23 H.J. Lu <hongjiu.lu@intel.com>
983
984 PR binutils/26112
985 * testsuite/binutils-all/pr26112.o.bz2: New file.
986 * testsuite/binutils-all/pr26112.r: Likewise.
987 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
988
d081ffff
AM
9892020-06-23 Alan Modra <amodra@gmail.com>
990
991 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
992 remote_file delete command.
993
e4b7104b
NC
9942020-06-22 Nick Clifton <nickc@redhat.com>
995
996 PR 26112
997 * dwarf.c (display_debug_str_offsets): Add code to display the
998 contents of the .debug_str_offsets section.
999 (display_debug_macro): Add support for DW_MACRO_define_strx and
1000 DW_MACRO_undef_strx.
1001
d768f160
SJ
10022020-06-22 Saagar Jha <saagar@saagarjha.com>
1003
1004 * od-macho.c: Dump linkedit data for new load commands.
1005
5fd104ad
AM
10062020-06-19 Alan Modra <amodra@gmail.com>
1007
1008 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
1009 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
1010 (run_dump_test): Use check_relro_support to decide whether to pass
1011 extra ld option "-z norelro".
1012
fd17d1e6
AM
10132020-06-11 Alan Modra <amodra@gmail.com>
1014
1015 * readelf.c (process_mips_specific): Don't alloc memory for
1016 Elf_Internal_Options.
1017
d0c4e780
AM
10182020-06-11 Alan Modra <amodra@gmail.com>
1019
1020 * readelf.c (process_mips_specific): Assert size of internal
1021 types match size of external types, and simplify allocation of
1022 internal buffer. Catch possible integer overflow when sanity
1023 checking option size. Don't assume options are a regular array.
1024 Sanity check reginfo option against option size. Use PRI macros
1025 when printing.
1026
25065fcd
RH
10272020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
1028
1029 PR 26082
1030 * mclex.c (yylex): Reject lines that reach end-of-file without a
1031 terminating newline character.
1032
b37a7714
NC
10332020-06-08 Nick Clifton <nickc@redhat.com>
1034
1035 PR 26093
1036 * doc/binutils.texi (strings): Fix typo.
1037
c4b2f181
NC
10382020-06-08 Nick Clifton <nickc@redhat.com>
1039
1040 PR 26086
1041 * dwarf.c (process_debug_info): Check that there is space in the
1042 debug_information array before filling in an entry.
1043
1424c35d
AM
10442020-06-06 Alan Modra <amodra@gmail.com>
1045
1046 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
1047
8affa48a
JA
10482020-06-05 Joel Anderson <joelanderson333@gmail.com>
1049
1050 PR 26082
1051 * mclex.c (yylex): Add test for an empty input stream.
1052
8eca5c7d
SC
10532020-06-04 Stephen Casner <casner@acm.org>
1054
1055 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
1056 for test using section pseudo-ops compatible with pdp11.
1057 * testsuite/binutils-all/objcopy.exp: Select alternate source.
1058
b3db6d07
JM
10592020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1060
1061 * objdump.c (disassemble_data): Set disasm_info.endian_code to
1062 disasm_info.endian after the latter is initialized to the
1063 endianness reported by BFD.
1064
0a4f37af
AM
10652020-06-04 Alan Modra <amodra@gmail.com>
1066
1067 * testsuite/binutils-all/i386/i386.exp: Remove global directive
1068 outside proc body.
1069 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
1070 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
1071
913e0fd4
JA
10722020-06-03 Joel Anderson <joelanderson333@gmail.com>
1073
1074 * windmc.h (struct mc_node): Add id_typecast field.
1075 * mcparse.y (message): Initialise the id_typecast field.
1076 * windmc.c (write_dbg): Use the id_typecast field as a parameter
1077 when calling write_dbg_define.
1078 (write_header): Likewise.
1079
4a322448
AM
10802020-06-03 Alan Modra <amodra@gmail.com>
1081
1082 PR 26069
1083 * objcopy.c (copy_relocations_in_section): Free relpp on error.
1084 Don't accidentally free isection->orelocation.
1085
0bee4d1c
AM
10862020-06-02 Alan Modra <amodra@gmail.com>
1087
1088 * testsuite/binutils-all/ar.exp (obj): Set up object file name
1089 extension. Use throughout. Don't completely exclude non-ELF
1090 alpha targets. Run long_filenames test for tic30. Exclude thin
1091 archive tests for aix, ecoff and vms.
1092 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
1093 extension. Use throughout. Don't exclude non-ELF alpha targets
1094 from "bintest.a".
1095
ab7ad287
MF
10962020-05-28 Max Filippov <jcmvbkbc@gmail.com>
1097
1098 * MAINTAINERS (Xtensa): Add myself as maintainer.
1099
3f3c3608
AM
11002020-05-23 Alan Modra <amodra@gmail.com>
1101
1102 * testsuite/binutils-all/ar.exp (many_files): New test.
1103
9db70fc3
AM
11042020-05-21 Alan Modra <amodra@gmail.com>
1105
1106 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
1107 * dlltool.c: Likewise.
1108 * elfcomm.c: Likewise.
1109 * rddbg.c: Likewise.
1110 * readelf.c: Likewise.
1111 * stabs.c: Likewise.
1112 * windmc.c: Likewise.
1113 * windres.c: Likewise.
1114 * wrstabs.c: Likewise.
1115
c31ab5a0
AM
11162020-05-21 Alan Modra <amodra@gmail.com>
1117
1118 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
1119 access.
1120
8f595e9b
NC
11212020-05-20 Nelson Chu <nelson.chu@sifive.com>
1122
1123 * dwarf.c: Updated since DECLARE_CSR is changed.
1124
8ac10c5b
L
11252020-05-19 H.J. Lu <hjl.tools@gmail.com>
1126
1127 PR binutils/25809
1128 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
1129 segment doesn't match the .dynamic section and checks are
1130 enabled.
1131 (struct filedata): Add dynamic_symtab_section and
1132 dynamic_strtab_section fields.
1133 (process_section_headers): Set dynamic_symtab_section to the
1134 .dynsym section. Set dynamic_strtab_section to the .dynstr
1135 section.
1136 (process_dynamic_section): Warn if the .dynsym section doesn't
1137 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
1138 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
1139
c177f377
AM
11402020-05-19 Alan Modra <amodra@gmail.com>
1141
1142 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
1143 (replace_members): Use bfd_get_filename rather than accessing
1144 bfd->filename directly.
1145 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
1146 * binemul.c (do_ar_emul_append): Likewise.
1147 * coffgrok.c (coff_grok): Likewise.
1148
83d27139
SH
11492020-05-18 Stafford Horne <shorne@gmail.com>
1150
1151 * MAINTAINERS (OR1K): Add myself as maintainer.
1152
d11a9fab
AB
11532020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1154
1155 * doc/binutils.texi: Mention 'entry address' in the set-start and
1156 adjust-start options descriptions.
1157
546cb2d8
NC
11582020-05-05 Nick Clifton <nickc@redhat.com>
1159
1160 * dwarf.c (do_checks): New global variable.
1161 (display_formatted_table): Warn about an unexpected number of
1162 columns in the table, if checks are enabled. Do not complain
1163 about the lack of data following the number of entries in the
1164 table if the table is empty.
1165 (display_debug_lines_decoded): Only warn about an unexpected
1166 number of columns in a table if checks are enabled.
1167 * dwarf.h (do_checks): Add a prototype.
1168 * elfcomm.c (error): Remove weak attribute.
1169 (warn): Likewise.
1170 * readelf.c (do_checks): Delete.
1171 (warn): Delete.
1172 (process_section_headers): Only warn about empty sections if
1173 checks are enabled.
1174
e052e2ba
FS
11752020-05-04 Fangrui Song <maskray@google.com>
1176
1177 * objcopy.c (copy_object): Allow empty section.
1178 * testsuite/binutils-all/update-section.exp: Add test.
1179
070b775f
NC
11802020-05-04 Nick Clifton <nickc@redhat.com>
1181
1182 PR 25917
1183 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1184 supicious number of entries for DWARF-5 format directory and file
1185 name tables. Do not display file name table header if the table
1186 is empty. Do not allocate space for empty tables.
1187
9c7b8e9b
AM
11882020-05-04 Alan Modra <amodra@gmail.com>
1189
1190 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1191 section. Don't assume endian of host matches nds32 target. Free
1192 buffer.
1193
60832332
AM
11942020-05-01 Alan Modra <amodra@gmail.com>
1195 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
1196
1197 * objdump.c (disassemble_bytes): Don't scan for zeros when
1198 disassembling zeros. Translate "resuming at file offset" message.
1199 Formatting. Replace some signed variables with unsigned.
1200
09c1e68a
AC
12012020-04-30 Alex Coplan <alex.coplan@arm.com>
1202
1203 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1204 disassembly.
1205 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1206
8a8a1171
NC
12072020-04-30 Nick Clifton <nickc@redhat.com>
1208
1209 * testsuite/lib/binutils-common.exp (check_pie_support): New
1210 proc.
1211
cb4c35cf
AB
12122020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1213
1214 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1215 range_entries for the same offset.
1216
1b513401
NC
12172020-04-29 Nick Clifton <nickc@redhat.com>
1218
1219 * readelf.c (warn): New function - like elfcomm.c version but only
1220 produces output if warnings are enabled.
1221 (struct options): Add --lint and --enable-checks.
1222 (usage): Add entry for --lint.
1223 (parse_args): Handle -L. If checks are enabled but no dumps have
1224 been selected then enable all dumps.
1225 (process_section_headers): Replace long if-then-else sequence with
1226 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
1227 SHT_PROGBITS sections.
1228 (process_file): Do not complain if the file is an archive and lint
1229 mode has been enabled.
1230 * elfcomm.c (error): Make the function weak.
1231 (warn): Likewise.
1232 * NEWS: Mention the new feature.
1233 * doc/binutils.texi: Document the new feature.
1234 * dwarf.h (report_leb_status): Add file name and line number
1235 parameters. Include them in the diagnostic output.
1236 (READ_ULEB): Pass file and line number to report_leb_status.
1237 (READ_SLEB): Likewise.
1238 * dwarf.c (read_and_print_leb128): Pass file and line number to
1239 report_leb_status.
1240 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1241 * testsuite/binutils-all/zero-sec.s: New test source file.
1242 * testsuite/binutils-all/zero-sec.r: Expected output from new
1243 test.
1244
c2e71e57
NC
12452020-04-29 Nick Clifton <nickc@redhat.com>
1246
1247 * po/sr.po: Updated Serbian translation.
1248
90837ea7
AM
12492020-04-26 Alan Modra <amodra@gmail.com>
1250
1251 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1252 read before dereferencing, and gracefully return. Remove
1253 gnu_hash_error variable. Free gnu hash arrays if number of
1254 syms found is zero.
1255
2482f306
AM
12562020-04-24 Alan Modra <amodra@gmail.com>
1257
1258 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1259 non-zero.
1260 (process_dynamic_section): Call get_num_dynamic_syms once rather
1261 than in segment loop. Break out of segment loop on a successful
1262 load of dynamic symbols. Formatting.
1263 (process_object): Return error status from process_dynamic_section.
1264
27456742
AK
12652020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1266
1267 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1268 * elf.c (elfcore_grok_arc_v2): New function.
1269 (elfcore_grok_note): Call the new function to handle the corresponding
1270 note.
1271 (elfcore_write_arc_v2): New function.
1272 (elfcore_write_register_note): Call the new function to handle the
1273 corresponding pseudo-sections.
1274
30ce8e47
MF
12752020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1276
1277 PR ld/25861
1278 * readelf.c (is_none_reloc): Recognize
1279 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1280 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1281
33b5a830
NC
12822020-04-22 Nick Clifton <nickc@redhat.com>
1283
1284 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1285
978c4450
AM
12862020-04-22 Alan Modra <amodra@gmail.com>
1287
1288 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1289 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1290 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1291 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1292 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1293 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1294 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1295 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1296 (section_headers_groups): Move to struct filedata. Update use
1297 throughout file.
1298
6431e409
AM
12992020-04-22 Alan Modra <amodra@gmail.com>
1300
1301 * readelf.c (struct dump_data): New, used..
1302 (cmdline): ..here, and..
1303 (struct filedata): ..here. Adjust all uses.
1304 (request_dump_bynumber, request_dump, parse_args): Pass in a
1305 struct dump_data* rather than Filedata*. Adjust callers.
1306 (main): Don't set cmdline.file_name.
1307
a5e0be5c
AM
13082020-04-20 Alan Modra <amodra@gmail.com>
1309
1310 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1311 and nbuckets.
1312
8ff66993
AM
13132020-04-20 Alan Modra <amodra@gmail.com>
1314
1315 * readelf.c (process_section_headers): Free dynamic symbols etc.
1316 earlier.
1317
ceb9bf11
AM
13182020-04-20 Alan Modra <amodra@gmail.com>
1319
1320 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1321 on error without freeing.
1322 (process_dynamic_section): Don't recreate dynamic symbols from
1323 dynamic tag info when the dynamic symbols have already been
1324 read via section headers.
1325
e409955d
FS
13262020-04-17 Fredrik Strupe <fredrik@strupe.net>
1327
1328 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1329 conditional VDUP instructions are disassembled correctly.
1330 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1331 vdup-cond.d.
1332 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1333 that VDUP instructions (which are conditional in A32) can be
1334 disassembled in thumb mode.
1335 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1336 vdup-thumb.d.
1337
ca3f923f
AM
13382020-04-17 Alan Modra <amodra@gmail.com>
1339
1340 PR 25840
1341 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1342
937f6614
AM
13432020-04-16 Alan Modra <amodra@gmail.com>
1344
1345 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1346 --no-addresses description.
1347
b1bc1394
AM
13482020-04-15 Alan Modra <amodra@gmail.com>
1349
1350 * objdump.c (no_addresses): New static var.
1351 (usage): Print help for --no-addresses.
1352 (long_options): Add --no-addresses entry.
1353 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1354 (disassemble_bytes): Don't print current line address, or reloc
1355 address.
1356 * doc/binutils.texi: Document objdump --no-addresses.
1357
001890e1
AM
13582020-04-15 Alan Modra <amodra@gmail.com>
1359
1360 PR 25822
1361 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1362 reading buckets or chains fails.
1363
b71d4fa7
AM
13642020-04-15 Alan Modra <amodra@gmail.com>
1365
1366 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1367 etc. after freeing.
1368
89246a0e
AM
13692020-04-15 Alan Modra <amodra@gmail.com>
1370
1371 * readelf.c (get_group_flags): Translate text.
1372 (get_file_type, get_symbol_binding, get_symbol_type),
1373 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1374
c98a4545
AM
13752020-04-15 Alan Modra <amodra@gmail.com>
1376
1377 PR 25821
1378 * readelf.c (get_num_dynamic_syms): Typo fix.
1379
645f43a8
AM
13802020-04-14 Alan Modra <amodra@gmail.com>
1381
1382 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1383 possibility of overflow when checking number of conflicts.
1384
10ca4b04
L
13852020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1386
1387 PR binutils/25707
1388 * readelf.c (nbuckets): New.
1389 (nchains): Likewise.
1390 (buckets): Likewise.
1391 (chains): Likewise.
1392 (ngnubuckets): Likewise.
1393 (gnubuckets): Likewise.
1394 (gnuchains): Likewise.
1395 (mipsxlat): Likewise.
1396 (ngnuchains): Likewise.
1397 (gnusymidx): Likewise.
1398 (VALID_SYMBOL_NAME): Likewise.
1399 (VALID_DYNAMIC_NAME): Use it.
1400 (get_dynamic_data): Moved before process_dynamic_section.
1401 (get_num_dynamic_syms): New function.
1402 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1403 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1404 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1405 table.
1406 (get_symbol_index_type): Don't print "bad section index" when
1407 there is no section header.
1408 (print_dynamic_symbol): Rewrite.
1409 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1410 symbol table.
1411
bb897477
RO
14122020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1413
1414 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1415 enable on *-*-solaris*.
1416
00386881
NC
14172020-03-30 Nick Clifton <nickc@redhat.com>
1418
1419 PR binutils/25662
1420 * objcopy.c (copy_object): When copying PE format files set the
1421 timestamp field in the pe_data structure if the preserve_dates
1422 flag is set.
1423 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1424 --preserve-dates in place of the -p option, in order to make its
1425 effect more obvious.
1426
0a6a8b59
AM
14272020-03-28 Alan Modra <amodra@gmail.com>
1428
1429 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1430 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1431
6a81c59b
AM
14322020-03-28 Alan Modra <amodra@gmail.com>
1433
1434 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1435 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1436 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1437 test. Pass "-p" to objcopy for the executable test.
1438
1fafefd5
JL
14392020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1440
1441 PR binutils/25662
1442 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1443 specify whether an object file or executable should be built and tested.
1444 Change test names to report whether an object file or executable is
1445 being tested.
1446 * testsuite/binutils-all/pr25662.ld: New test.
1447 * testsuite/binutils-all/pr25662.s: New test.
1448
80e2a3b6
AM
14492020-03-27 Alan Modra <amodra@gmail.com>
1450
1451 * readelf.c (process_archive): Don't double free qualified_name.
1452 Don't break out of loop with "negative" archive_file_size, just
1453 set file offset to max.
1454
4c836627
AM
14552020-03-25 Alan Modra <amodra@gmail.com>
1456
1457 * readelf.c (process_archive): Prevent endless loop.
1458
1081065c
L
14592020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1460
1461 PR binutils/25708
1462 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1463 with bfd_get_symbol_version_string.
1464 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1465 * objdump.c (objdump_print_symname): Likewise.
1466
7e6e972f
L
14672020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1468
1469 PR binutils/25708
1470 * nm.c (SYM_NAME): Removed.
1471 (print_symname): Add a pointer to struct extended_symbol_info
1472 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1473 version.
1474 (print_symdef_entry): Pass NULL to print_symname.
1475 (print_symbol_info_bsd): Update call to print_symname.
1476 (print_symbol_info_sysv): Likewise.
1477 (print_symbol_info_posix): Likewise.
1478
5a814d6d
AM
14792020-03-24 Alan Modra <amodra@gmail.com>
1480
1481 * readelf.c (process_mips_specific): Free iconf on error path.
1482
0636b245
NC
14832020-03-23 Nick Clifton <nickc@redhat.com>
1484
1485 PR 25714
1486 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1487 * write_stabs_in_sections_debugging_info: Likewise.
1488 * stab_enum_type: Likewise.
1489 * stab_modify_type: Likewise.
1490 * stab_struct_field: Likewise.
1491 * stab_end_struct_type: Likewise.
1492 * stab_start_class_type: Likewise.
1493 * stab_class_static_member: Likewise.
1494 * stab_class_baseclass: Likewise.
1495 * stab_class_start_method: Likewise.
1496 * stab_class_method_var: Likewise.
1497 * stab_class_end_method: Likewise.
1498 * stab_end_class_type: Likewise.
1499 * stab_typedef_type: Likewise.
1500 * stab_start_function: Likewise.
1501 * stab_end_block: Likewise.
1502 * stab_lineno: Likewise.
1503
5844b465
NC
15042020-03-20 Nick Clifton <nickc@redhat.com>
1505
1506 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1507 (process_section_headers): Check the return value from
1508 get_compression_header.
1509 (dump_section_as_strings): Likewise.
1510 (dump_section_as_bytes): Likewise.
1511 (load_specific_debug_section): Likewise.
1512
3d98c460
L
15132020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1514
1515 * ar.c (main): Update bfd_plugin_set_program_name call.
1516 * nm.c (main): Likewise.
1517
f3a08f77
NC
15182020-03-19 Nick Clifton <nickc@redhat.com>
1519
1520 PR 25676
1521 * testsuite/binutils-all/dw4.s: New test source file.
1522 * testsuite/binutils-all/nm.exp: Run the new test.
1523
ef3df110
L
15242020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1525
1526 * readelf.c (process_symbol_table): Use unsigned long for si.
1527
81a65eb3
AM
15282020-03-19 Alan Modra <amodra@gmail.com>
1529
1530 * elfcomm.c: Don't include bfd.h or bucomm.h.
1531 (program_name): Declare.
1532 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1533 and substitute FALSE and TRUE.
1534 (setup_archive, setup_nested_archive): Likewise.
1535 * elfcomm.h: Likewise.
1536
1cb7d8b1
AM
15372020-03-19 Alan Modra <amodra@gmail.com>
1538
1539 * readelf.c (process_archive): Always return via path freeing
1540 memory. Formatting.
1541
b966f55f
AM
15422020-03-19 Alan Modra <amodra@gmail.com>
1543
1544 * readelf.c (process_netbsd_elf_note): Validate descsz before
1545 accessing descdata. Formatting.
1546
645ba681
AM
15472020-03-19 Alan Modra <amodra@gmail.com>
1548
1549 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1550 * elfcomm.h (setup_archive): Update prototype.
1551
28d13567
AM
15522020-03-16 Alan Modra <amodra@gmail.com>
1553
1554 * readelf.c (get_symbols): New function.
1555 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1556 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1557
60e63c3e
AM
15582020-03-16 Alan Modra <amodra@gmail.com>
1559
1560 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1561 Detect shift overflows and check that terminating byte is found.
1562 Print an error on a bad uleb128.
1563
1bd6175a
AM
15642020-03-14 Alan Modra <amodra@gmail.com>
1565
1566 * readelf.c (process_file): Clean ba_cache.
1567
780f96ae
AM
15682020-03-14 Alan Modra <amodra@gmail.com>
1569
1570 * elfcomm.h (setup_archive): Update prototype.
1571 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1572 check longnames_size.
1573 (setup_nested_archive): Get file size and pass to setup_archive.
1574 * elfedit.c (process_archive): Likewise.
1575 * readelf.c (process_archive): Pass filedata->file_size to
1576 setup_archive.
1577
f761cb13
AM
15782020-03-14 Alan Modra <amodra@gmail.com>
1579
1580 * readelf.c (dump_section_as_strings): Free memory on error exit.
1581 (dump_section_as_bytes, process_notes_at): Likewise.
1582 (get_build_id): Free enote.
1583
06d949ec
KR
15842020-03-13 Kamil Rytarowski <n54@gmx.com>
1585
1586 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1587 NT_NETBSDCORE_LWPSTATUS notes.
1588
fd486f32
AM
15892020-03-13 Alan Modra <amodra@gmail.com>
1590
1591 * elfcomm.c (get_archive_member_name): Always return malloc'd
1592 string or NULL.
1593 * elfedit.c (process_archive): Tidy memory on all return paths.
1594 * readelf.c (process_archive): Likewise.
1595 (process_symbol_table): Likewise.
1596 (ba_cache): New, replacing ..
1597 (get_symbol_for_build_attribute): ..static vars here. Free
1598 strtab and symtab before loading new ones. Reject symtab without
1599 valid strtab in loop, breaking out of loop on valid symtab.
1600 (process_file): Free ba_cache symtab and strtab here, resetting
1601 ba_cache.
1602
8fb879cd
AM
16032020-03-12 Alan Modra <amodra@gmail.com>
1604
1605 * readelf.c (process_section_headers): Don't just set
1606 filedata->section_headers NULL, free it first. Similarly for
1607 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1608 symtab_shndx_list. Zero associated counts too.
1609 (process_object): Free symtab_shndx_list.
1610 (process_file): Free various allocated filedata tables.
1611
5496f3c6
NC
16122020-03-11 Nick Clifton <nickc@redhat.com>
1613
1614 PR 25611
1615 PR 25614
1616 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1617 li_segment_size fields.
1618 * dwarf.c (read_debug_line_header): Record the address size and
1619 segment selector size values (if present) in the lineinfo
1620 structure.
1621 (display_formatted_table): Warn if the format count is empty but
1622 the table itself is not empty.
1623 Display the format count and entry count at the start of the table
1624 dump.
1625 (display_debug_lines_raw): Display the address size and segement
1626 selector size fields, if present.
1627 * testsuite/binutils-all/dw5.W: Update expected output.
1628
9cc89dc0
AM
16292020-03-11 Alan Modra <amodra@gmail.com>
1630
1631 PR 25651
1632 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1633 pad_to_set on second block of code dealing with padding.
1634 Replace "c" with "num_sec" and don't recalculate number of
1635 sections on second block. Size arrays using sizeof (element)
1636 rather than sizeof (element type).
1637
41da0822
AM
16382020-03-10 Alan Modra <amodra@gmail.com>
1639
1640 * objdump.c (disassemble_section): Don't call qsort unless
1641 sym count is at least two.
1642 (disassemble_data): Don't call memcpy with NULL src.
1643
95099889
AM
16442020-03-09 Alan Modra <amodra@gmail.com>
1645
1646 PR 25645
1647 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1648 to get_data rather than multiplying.
1649 (dump_ia64_vms_dynamic_relocs): Likewise.
1650 (process_version_sections): Correct order of size and nmemb args
1651 in get_data call.
1652 (process_mips_specific): Likewise.
1653
a15de1f5
L
16542020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1655
1656 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1657 "memory checkers" in comments.
1658
9979ab66
SM
16592020-03-06 Simon Marchi <simon.marchi@efficios.com>
1660
1661 PR 25491
1662 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1663 * doc/Makefile.in: Re-generate.
1664
a0dcf297
NC
16652020-03-06 Nick Clifton <nickc@redhat.com>
1666
1667 * objcopy.c (check_new_section_flags): New function. Reject the
1668 SEC_COFF_SHARED flag if the target is not a COFF binary.
1669 (copy_object): Call check_new_section_flags.
1670 (setup_section): Likewise.
1671 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1672 flag cannot be applied to ELF binaries.
1673
a9b90127
AM
16742020-03-06 Alan Modra <amodra@gmail.com>
1675
1676 PR 25637
1677 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1678
d1faf7ca
AM
16792020-03-05 Alan Modra <amodra@gmail.com>
1680
1681 PR 25629
1682 * objcopy.c (filter_symbols): Don't segfault on NULL
1683 prefix_symbols_string.
1684
eef64366
CE
16852020-03-04 Christian Eggers <ceggers@gmx.de>
1686
1687 * objcopy.c (copy_object): Convert from bytes to octets for
1688 --gap-fill and --pad-to.
1689
5be2b2f5
NC
16902020-03-03 Nick Clifton <nickc@redhat.com>
1691
1692 PR 25625
1693 * prdbg.c (pr_tag_type): Remove call to abort.
1694
b312fea1
AM
16952020-03-02 Aaron Merey <amerey@redhat.com>
1696
1697 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1698 selection.
1699
ba3265d0
NC
17002020-03-02 Nick Clifton <nickc@redhat.com>
1701
1702 PR 25543
1703 * readelf.c (dump_section_as_strings): Display new-line characters
1704 as \n and then insert a line break.
1705 * testsuite/binutils-all/pr25543.s: New test.
1706 * testsuite/binutils-all/pr25543.d: Test driver.
1707 * testsuite/binutils-all/readelf.exp: Run the new test.
1708
736990c4
NC
17092020-02-27 Nick Clifton <nickc@redhat.com>
1710
1711 PR 25526
1712 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1713 get_data is unable to load the string table.
1714
dc1e8a47
AM
17152020-02-26 Alan Modra <amodra@gmail.com>
1716
1717 * elfedit.c: Indent labels correctly.
1718 * readelf.c: Likewise.
1719 * resres.c: Likewise.
1720
ecda9016
L
17212020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1722
1723 PR binutils/25584
1724 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1725 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1726
83d4d556
NC
17272020-02-24 Nick Clifton <nickc@redhat.com>
1728
1729 PR 25499
1730 * doc/binutils.texi (objdump): Fix typo in description of
1731 objdump's -g option.
1732
bd0cf5a6
NC
17332020-02-20 Nelson Chu <nelson.chu@sifive.com>
1734
1735 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1736 is changed.
1737
741cb839
EC
17382020-02-19 Jordan Rupprecht <rupprecht@google.com>
1739
1740 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1741
9f1528a1
AB
17422020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1743
1744 * configure: Regenerate.
1745
3a5d12fb
FS
17462020-02-10 Fangrui Song <maskray@google.com>
1747
1748 * objcopy.c (parse_flags): Handle "exclude".
1749 * doc/binutils.texi: Document the support.
1750
678d457f
AM
17512020-02-10 Aaron Merey <amerey@redhat.com>
1752
1753 * binutils/testsuite/binutils-all/debuginfod.exp:
1754 Replace set ::env with setenv.
46471187
AM
1755 Start server before setting environment variable.
1756 Specify tmpdir as the location of the server's
1757 database.
1758 Check additional server metrics at start-up.
678d457f 1759
e8319fde
NC
17602020-02-07 Nick Clifton <nickc@redhat.com>
1761
1762 * README-how-to-make-a-release: Add note about updating the
1763 GAS/NEWS URL in the next release.
1764
9fc0b501
SB
17652020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1766
1767 PR 25469
1768 * readelf.c (get_machine_flags): Add support for Z80N machine
1769 number.
1770
e1104d08
NC
17712020-02-07 Nick Clifton <nickc@redhat.com>
1772
1773 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1774 of the truncated file name.
1775
c2e6f744 17762020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
1777
1778 * objdump.c (print_jump_visualisation): New function.
1779 (disassemble_bytes): Call new function.
1780
02e0be69
AM
17812020-02-06 Alan Modra <amodra@gmail.com>
1782
1783 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1784 TCL procedure.
1785 (supports_gnu_osabi): New procedure.
1786 (is_generic): New, from ld-lib.exp.
1787 (supports_gnu_unique): Use the above.
1788
e8b79122
AM
17892020-02-04 Alan Modra <amodra@gmail.com>
1790
1791 * Makefile.am (CFILES): Add od-elf32_avr.c.
1792 * Makefile.in: Regenerate.
1793 * po/POTFILES.in: Regenerate.
1794
27a45f42
AS
17952020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1796
1797 * readelf.c (dump_relocations, dump_relocations)
1798 (decode_arm_unwind_bytecode, process_dynamic_section)
1799 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1800 error message.
1801
0b398d69
ST
18022020-02-03 Sergei Trofimovich <siarheit@google.com>
1803
1804 * coffdump.c (program_name): Drop redundant definition.
1805 * srconv.c (program_name): Likewise
1806 * sysdump.c (program_name): Likewise
1807
a8c4d40b
L
18082020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1809
1810 PR gas/25380
1811 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1812 same file with different section pointers.
1813
cb6ad9bb
NC
18142020-02-01 Nick Clifton <nickc@redhat.com>
1815
1816 * README-how-to-make-a-release: Update with more details on the
1817 release making process.
1818
53943f32
NC
18192020-01-31 Nick Clifton <nickc@redhat.com>
1820
1821 * po/sv.po: Updated Swedish translation.
1822
55be8fd0
NC
18232020-01-28 Nick Clifton <nickc@redhat.com>
1824
1825 * readelf.c (get_build_id): Simplify warning message about corrupt
1826 notes encountered whilst scanning for the build-id.
1827
82ef9cad
RM
18282020-01-27 Roland McGrath <mcgrathr@google.com>
1829
1830 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1831 for overlapping ranges so that (A == B) == (B == A) holds.
1832
e3696f67
AM
18332020-01-27 Alan Modra <amodra@gmail.com>
1834
1835 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1836 case statement with switch statement.
1837
2f796de6
NC
18382020-01-24 Nick Clifton <nickc@redhat.com>
1839
1840 * readelf.c (get_build_id): Fix warning messages about corrupt
1841 notes.
1842
24e648d4
NC
18432020-01-23 Nick Clifton <nickc@redhat.com>
1844
1845 * po/fr.po: Updated French translation.
1846
c48acf6f
YC
18472020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1848
1849 PR 25417
1850 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1851
26916852
NC
18522020-01-20 Nick Clifton <nickc@redhat.com>
1853
1854 * po/pt.po: Updated Portuguese translation.
1855 * po/uk.po: Updated Ukranian translation.
1856
b248e9ce
NC
18572020-01-18 Nick Clifton <nickc@redhat.com>
1858
1859 * README-how-to-make-a-release: Update notes on how to cut a
1860 branch for a release.
1861
1b1bb2c6
NC
18622020-01-18 Nick Clifton <nickc@redhat.com>
1863
1864 * configure: Regenerate.
1865 * po/binutils.pot: Regenerate.
1866
ae774686
NC
18672020-01-18 Nick Clifton <nickc@redhat.com>
1868
1869 Binutils 2.34 branch created.
1870
82a9ed20
TT
18712020-01-17 Thomas Troeger <tstroege@gmx.de>
1872
1873 * objdump.c (jump_info_visualize_address): Discard jumps that are
1874 no longer needed.
1875 (disassemble_bytes): Only compute the maximum level if jumps were
1876 detected.
1877
6a1939f5
NC
18782020-01-13 Nick Clifton <nickc@redhat.com>
1879
c87c17c1 1880 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
1881 * testsuite/binutils-all/debuginfod.exp: New tests.
1882
1d67fe3b
TT
18832020-01-13 Thomas Troeger <tstroege@gmx.de>
1884
1885 * objdump.c (visualize_jumps, color_output, extended_color_output)
1886 (detected_jumps): New variables.
1887 (usage): Add the new jump visualization options.
1888 (option_values): Add new option value.
1889 (long_options): Add the new option.
1890 (jump_info_new, jump_info_free): New functions.
1891 (jump_info_min_address, jump_info_max_address): Likewise.
1892 (jump_info_end_address, jump_info_is_start_address): Likewise.
1893 (jump_info_is_end_address, jump_info_size): Likewise.
1894 (jump_info_unlink, jump_info_insert): Likewise.
1895 (jump_info_add_front, jump_info_move_linked): Likewise.
1896 (jump_info_intersect, jump_info_merge): Likewise.
1897 (jump_info_sort, jump_info_visualize_address): Likewise.
1898 (disassemble_jumps): New function - used to locate jumps.
1899 (disassemble_bytes): Add ascii art generation.
1900 (disassemble_section): Add scan to locate jumps.
1901 (main): Parse the new visualization option.
1902 * doc/binutils.texi: Document the new feature.
1903 * NEWS: Mention the new feature.
1904
a788aedd
AM
19052020-01-13 Alan Modra <amodra@gmail.com>
1906
a4f2b7c5
AM
1907 PR 25360
1908 PR 25361
a788aedd
AM
1909 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1910 fde_fc col_type and col_offset.
1911 * readelf.c (apply_relocations): Move symsec check earlier.
1912 (free_debug_section): Free reloc_info.
1913 (process_notes_at): Free pnotes on error path.
1914 (process_object): Free dump_sects here..
1915 (process_archive): ..not here.
1916
805f38bc
AM
19172020-01-13 Alan Modra <amodra@gmail.com>
1918
1919 PR 25362
1920 * nm.c (display_rel_file): Free dyn_syms.
1921
ffebb0bb
NC
19222020-01-09 Nick Clifton <nickc@redhat.com>
1923
1924 PR 25220
1925 * objcopy.c (empty_name): New variable.
1926 (need_sym_before): Prevent an attempt to free a static variable.
1927 (filter_symbols): Avoid strcmp test by checking for pointer
1928 equality.
1929
ade4fd9b
NC
19302020-01-09 Nick Clifton <nickc@redhat.com>
1931
1932 * po/zh_TW.po: Updated Traditional Chinese translation.
1933
19342020-01-09 Aaron Merey <amerey@redhat.com>
1935
1936 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1937 * Makefile.in: Regenerate.
1938 * NEWS: Update.
1939 * config.in: Regenerate.
1940 * configure: Regenerate.
1941 * configure.ac: Call AC_DEBUGINFOD.
1942 * doc/Makefile.in: Regenerate.
1943 * doc/binutils.texi: Add section on using binutils
1944 with debuginfod.
1945 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1946 Query debuginfod servers for the target debug file.
1947 (load_separate_debug_info): Call
1948 debuginfod_fetch_separate_debug_info if configured with
1949 debuginfod.
1950 (load_separate_debug_files): Add file argument to
1951 load_separate_debug_info calls.
1952 * dwarf.h (get_build_id): Add declaration.
1953 * objdump.c (get_build_id): New function. Get build-id of file.
1954 * readelf.c (get_build_id): Likewise.
1955 * testsuite/binutils-all/debuginfod.exp: New tests.
1956 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1957 section.
1958
6655dba2
SB
19592020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1960
1961 * readelf.c: Add support for new Z*) relocations and machine
1962 types.
1963
b14ce8bf
AM
19642020-01-01 Alan Modra <amodra@gmail.com>
1965
1966 Update year range in copyright notice of all files.
1967
0b114740 1968For older changes see ChangeLog-2019
3499769a 1969\f
0b114740 1970Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
1971
1972Copying and distribution of this file, with or without modification,
1973are permitted in any medium without royalty provided the copyright
1974notice and this notice are preserved.
1975
1976Local Variables:
1977mode: change-log
1978left-margin: 8
1979fill-column: 74
1980version-control: never
1981End: