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