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