]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Fix readelf's and objdump's dislplay of DWO links when multiple links are present.
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
50ea0877
NC
12020-11-13 Nick Clifton <nickc@redhat.com>
2
3 PR 26829
4 * dwarf.c (struct dwo_info): Add cu_offset field.
5 (add_dwo_info): Add cu_offset parameter. Record in new dwo_info
6 struct.
7 (add_dwo_name): Add cu_offset field.
8 (add_dwo_dir): Add cu_offset field.
9 (add_dwo_id): Add cu_offset field.
10 (read_and_display_attr_value): Pass cu_offset to dwo recording
11 functions.
12 (load_separate_debug_files): Accumulate name, dir and id values
13 and display once for each CU.
14 * testsuite/binutils-all/dwo.sL Use a separate CU for the second
15 dwo link.
16 * testsuite/binutils-all/readelf.k2: Update expected output.
17
4d932715
BE
182020-11-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
19
20 * dwarf.c (display_debug_rnglists_list): Only bias the
21 DW_RLS_offset_pair with the base address.
22
ed1afd86
NC
232020-11-10 Nick Clifton <nickc@redhat.com>
24
25 * dwarf.c (skip_attr_bytes): Correctly handle DW_FORM_ref8.
26 (get_type_abbrev_from_form): Accept DW_FORM_ref8.
27
a76bf0e5
AS
282020-11-09 Andreas Schwab <schwab@linux-m68k.org>
29
30 * Makefile.am (development.exp): Fix regexp.
31 * Makefile.in: Regenerate.
32
521d4b19
NC
332020-11-09 Nick Clifton <nickc@redhat.com>
34
35 PR 26847
36 * dwarf.c (read_and_display_attr_value): In wide mode, display the
37 name of the form.
38
a4e91c46
AM
392020-11-09 Alan Modra <amodra@gmail.com>
40
41 * elfedit (usage): Avoid false positive "may be used uninitialised".
42 Don't leak memory.
43
c9af3845
HC
442020-11-09 Howard Chu <hyc@symas.com>
45
46 * ar.c (main): Use plugin_target rather than "target" when
47 resetting libdeps_bfd target.
48
9c905051
L
492020-11-06 H.J. Lu <hongjiu.lu@intel.com>
50
51 * elfedit.c: Include "libiberty.h".
52 (usage): Update help message.
53
f3016d6c
HC
542020-11-03 Howard Chu <hyc@symas.com>
55
56 * ar.c (long_options): Add --record-libdeps.
57 (usage): Mention the new option.
58 (decode_options): Handle the new option.
59 (replace_members): If necessary, create a bfd to hold the libdeps
60 description.
61 * binemul.c (ar_emul_append_bfd): New function.
62 (ar_emul_replace_bfd): New function.
63 (ar_emul_default_append): Replace file_name and target arguments
64 with new_bfd argument.
65 (ar_emul_default_replace): Likewise.
66 * binemul.h: Update prototypes.
67 (struct bin_emulation_xfer_struct): Update fields.
68 * doc/binutils.texi: Document the new option.
69 * NEWS: Mention the new feature.
70 * emul_aix.c (ar_emul_aix_append): Update.
71 (ar_emul_aix_replace): Likewise.
72 * testsuite/binutils-all/ar.exp: Add test of new feature.
73
b0ab0693
L
742020-10-30 H.J. Lu <hongjiu.lu@intel.com>
75
76 PR gas/26703
77 * readelf.c (decode_x86_isa): Handle
78 * GNU_PROPERTY_X86_ISA_1_BASELINE.
79 * testsuite/binutils-all/i386/empty.d: Updated.
80 * testsuite/binutils-all/i386/ibt.d: Likewise.
81 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
82 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
83 * testsuite/binutils-all/i386/shstk.d: Likewise.
84 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
85 * testsuite/binutils-all/x86-64/empty.d: Likewise.
86 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
87 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
88 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
89 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
90 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
91 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
92 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
93 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
94 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
95 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
96 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
97 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
98 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
99 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
100
76868f36
L
1012020-10-29 H.J. Lu <hongjiu.lu@intel.com>
102
103 PR binutils/26808
104 * dwarf.c (abbrev_list): Add abbrev_base.
105 (new_abbrev_list): Add an abbrev_base argument and record it.
106 (find_abbrev_list_by_abbrev_offset): Add an abbrev_base argument
107 and match it.
108 (process_debug_info): Pass abbrev_base to new_abbrev_list and
109 find_abbrev_list_by_abbrev_offset.
110 (display_debug_abbrev): Pass 0 abbrev_base to new_abbrev_list
111 and find_abbrev_list_by_abbrev_offset.
112 * testsuite/binutils-all/x86-64/pr26808.dump: New file.
113 * testsuite/binutils-all/x86-64/pr26808.dwp.bz2: Likewise.
114 * testsuite/binutils-all/x86-64/x86-64.exp: Run PR binutils/26808
115 test.
116
00c19b8e
NC
1172020-10-29 Nick Clifton <nickc@redhat.com>
118
119 PR 26805
120 * objcopy.c (is_dwo_section): Check for missing or short section
121 names.
122
ce04ca31
AR
1232020-10-26 Andreas Rammhold <andreas@rammhold.de>
124
125 * README-how-to-make-a-release: Use sha256sum instead of md5sum.
126
ec3f28df
NC
1272020-10-28 Nick Clifton <nickc@redhat.com>
128
129 PR 26795
130 * elfedit.c (process_archive): Remove spurious call to free().
131
bcd213b2
NC
1322020-10-27 Nick Clifton <nickc@redhat.com>
133
134 * dwarf.c (struct abbrev_list): New structure. Used to collect
135 lists of abbreviation sets.
136 (struct abbrev_map): New structure. Used to map CU offsets to
137 abbreviation offsets.
138 (record_abbrev_list): New function. A new entry to an
139 abbreviation list.
140 (free_all_abbrevs): Update to free abbreviation lists.
141 (new_abbrev_list): New function. Start a new abbreviation
142 list.
143 (find_abbrev_list_by_abbrev_offset): New function.
144 (find_abbrev_map_by_offset): New function.
145 (add_abbrev): Add abbrev_list parameter.
146 (add_abbrev_attr): Likewise.
147 (process_abbrev_section): Rename to process_abbrev_set and add
148 list parameter.
149 (get_type_abbrev_from_form): New function. Attempts to decode the
150 forms used by DW_AT_type attributes.
151 (get_type_signedness): Display type names if operating in wide
152 mode. Use get_type_abbrev_from_form.
153 (read_and_display_attr_value): Use get_type_abbrev_from_form.
154 (process_debug_info): Pre-parse the CU headers to collate all the
155 abbrevs before starting the main scan.
156 (process_debug_abbrev): Do not free any loaded abbrevs.
157 (free_debug_memory): Free the abbrev maps.
158
64ec7c3f
L
1592020-10-22 H.J. Lu <hongjiu.lu@intel.com>
160
161 * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
162 error message on error.
163
777cd7ab
DDAG
1642020-10-22 Dr. David Alan Gilbert <dgilbert@redhat.com>
165
166 * windmc.c (write_header_define): Fix printf format.
167 (write_header): Likewise.
168
59624513
NC
1692020-10-21 Nick Clifton <nickc@redhat.com>
170
171 * dwarf.c (skip_attr_bytes): Accept DWARF versions higher than 4
172 when processing the DW_FORM_ref_addr form.
173 Skip bytes in DW_FORM_block and DW_FORM_exprloc forms.
174 Handle DW_FORM_indirect.
175 (get_type_signedness): Allow a limited amount of recursion.
176 Do not attempt to decode types that use the DW_FORM_ref_addr form.
177 (read_and_display_attr_value): Do not attempt to decode types
178 that use the DW_FORM_ref_addr form.
179
b9e920ec
AM
1802020-10-20 Alan Modra <amodra@gmail.com>
181
182 * readelf.c: Delete whitespace at end of line throughout.
183 (SECTION_NAME, SECTION_NAME_VALID): New.
184 (SECTION_NAME_PRINT): Rename from SECTION_NAME. Formatting.
185 (printable_section_name, dump_relocations): Use SECTION_NAME_PRINT.
186 (process_section_headers, process_section_groups): Likewise.
187 (shdr_to_ctf_sect): Likewise.
188 (find_section, find_section_in_set): Use SECTION_NAME_VALID.
189 (ia64_process_unwind, hppa_process_unwind): Likewise.
190 (display_debug_section, initialise_dumps_byname): Likewise.
191 (process_lto_symbol_tables): Likewise. Check trailing period of
192 lto symbol table names.
193 (display_lto_symtab): Use sizeof instead of strlen.
194
ce786647
NC
1952020-10-20 Nelson Chu <nelson.chu@sifive.com>
196
197 * MAINTAINERS (RISC-V): Add myself as RISC-V co-maintainer.
198
0f03783c
NC
1992020-10-19 Nick Clifton <nickc@redhat.com>
200
201 * readelf.c (do_lto_syms): New local.
202 (long_option_values): Add OPTION_LTO_SYMS.
203 (options): Add --lto-syms.
204 (usage): Mention the new option.
205 (parse_args): Parse the new option.
206 (get_lto_kind): New function.
207 (get_lto_visibility): New function.
208 (get_lto_sym_type): New function.
209 (display_lto_symtab): New function - displays the contents of an
210 LTo symbol table section.
211 (process_lto_symbol_tables): New functions. Calls
212 dipslay_lto_symtab on any LTO symbol table section.
213 (process_object_file): Call process_lto_symbol_tables.
214 * doc/binutils.texi: Document the new option.
215 * NEWS: Mention the new feature.
216
32930e4e
L
2172020-10-09 H.J. Lu <hongjiu.lu@intel.com>
218
219 PR gas/26703
220 * readelf.c (decode_x86_compat_2_isa): New function.
221 (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
222 (decode_x86_feature_1): Handle GNU_PROPERTY_X86_FEATURE_2_MASK.
223 (print_gnu_property_note): Handle X86_COMPAT_2_ISA_1_USED,
224 and X86_COMPAT_2_ISA_1_NEEDED.
225 * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
226 GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
227 values.
228 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
229 * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
230 * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
231 * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
232 * testsuite/binutils-all/i386/empty.d: Updated.
233 * testsuite/binutils-all/i386/ibt.d: Likewise.
234 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
235 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
236 * testsuite/binutils-all/i386/shstk.d: Likewise.
237 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
238 * testsuite/binutils-all/x86-64/empty.d: Likewise.
239 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
240 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
241 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
242 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
243 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
244 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
245 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
246 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
247 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
248 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
249 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
250 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
251 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
252 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
253
0ec992e6
NC
2542020-10-06 Nick Clifton <nickc@redhat.com>
255
256 * objcopy.c (copy_object): Compare input and output sections by
257 pointer rather than name.
258
1f1845d4
NC
2592020-10-05 Nick Clifton <nickc@redhat.com>
260
261 PR 26698
262 * windmc.c (mc_unify_path): Fix typo checking character at end of
263 pathname.
264
0cc79db2
SN
2652020-10-05 Samanta Navarro <ferivoz@riseup.net>
266
267 * doc/binutils.texi: Fix spelling mistakes.
268
1c9f770d
MW
2692020-09-29 Mark Wielaard <mark@klomp.org>
270
271 * dwarf.c (display_loclists_list): Handle DW_LLE_start_end and
272 DW_LLE_start_length. Only add base_address for DW_LLE_offset_pair.
273
5a805384
AM
2742020-09-25 Alan Modra <amodra@gmail.com>
275
276 * elfcomm.c (byte_put_little_endian, byte_put_big_endian): Support
277 more field sizes.
278 * readelf.c (target_specific_reloc_handling <MSP430>): Limit
279 allowed reloc_size. Don't read_leb128 outside of section.
280
debd1a62
MW
2812020-09-23 Mark Wielaard <mark@klomp.org>
282
283 * dwarf.c (process_debug_info): Print Unit Type for DWARF5.
284 * testsuite/binutils-all/dw5.W: Adjust expected output.
285 * testsuite/binutils-all/dwarf-attributes.W: Likewise.
286
ec47b32a
MW
2872020-09-23 Mark Wielaard <mark@klomp.org>
288
289 * dwarf.c (read_and_display_attr_value): Handle DW_FORM_ref_addr
290 for dwarf_version 5 just as version 3 and 4 (only 2 is
291 different).
292 (process_debug_info): Allow DW_UT_partial.
293
a2ab5831
NC
2942020-09-24 Nick Clifton <nickc@redhat.com>
295
296 PR 26662
297 * doc/binutils.texi (nm): Document that 'c' is used for small
298 common symbols.
299
427234c7
LC
3002020-09-21 Ludovic Courtès <ludo@gnu.org>
301
302 * doc/binutils.texi (objcopy, strip): Say that
303 '--strip-unneeded' implies '--strip-debug'.
304
0690f591
AP
3052020-09-16 Anatoly Parshintsev <kupokupokupopo@gmail.com>
306
307 * verilog.c (verilog_write_address): Properly handle 64-bit
308 addresses to avoid truncation of the high part.
309
c1229f84
AM
3102020-09-16 Alan Modra <amodra@gmail.com>
311
312 * nm.c (print_symbol): Adjust elf_symbol_from invocation.
313 * objcopy.c (is_hidden_symbol): Likewise.
314
5b3eb5ed
NC
3152020-09-15 Nick Clifton <nickc@redhat.com>
316
317 * README-how-to-make-a-release (https): Add a reminder to create a
318 new Bugzilla tag for the point release, once it has been published.
319
8d58ed37
L
3202020-09-11 H.J. Lu <hongjiu.lu@intel.com>
321
322 * readelf.c (get_note_type): Support NT_X86_CET.
323
ce139cd5
NC
3242020-09-11 Nick Clifton <nickc@redhat.com>
325
326 PR 26595
327 * dwarf.c (load_separate_debug_info): Return NULL rather than
328 FALSE in error situations.
329 (load_separate_debug_file): Move code to load debug links to ...
330 (check_for_and_load_links): ... here. New function. Load
331 separate debug information pointed to by debuglink and
332 debugaltlink sections. Recursively scan newly loaded debug
333 information for more links and load them too.
334
dfbee680
AM
3352020-09-09 Alan Modra <amodra@gmail.com>
336
337 PR 26578
338 * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
339 (load_separate_debug_files): Use a stack var for build_id_data.
340
790147a9
L
3412020-09-08 H.J. Lu <hongjiu.lu@intel.com>
342
343 PR ld/26587
344 * testsuite/binutils-all/objcopy.exp: Pass --disable-reloc-section
345 to ld on PE targets for PR 25662 test.
346
7d81bc93
JL
3472020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
348 Kuan-Lin Chen <kuanlinchentw@gmail.com>
349
350 * readelf.c (target_specific_reloc_handling): Handle
351 R_MSP430{,X}_GNU_{SET,SUB}_ULEB128.
352
839f41a3
AM
3532020-09-02 Alan Modra <amodra@gmail.com>
354
355 * objdump.c (disassemble_bytes): Use an unsigned type for "addend".
356
54b8331d
AM
3572020-08-30 Alan Modra <amodra@gmail.com>
358
359 * readelf.c (print_gnu_build_attribute_name): Use unsigned long
360 long for "bytes".
361
08d7da7d
NC
3622020-08-28 Nick Clifton <nickc@redhat.com>
363
364 PR 26548
365 * dwarf.c (read_leb128): When checking for overflow of a signed
366 read, use a signed shift.
367
0861f561
CQ
3682020-08-28 Cooper Qu <cooper.qu@linux.alibaba.com>
369
370 * readelf.c (get_csky_section_type_name): New.
371 (get_section_type_name): Add handler for CSKY.
372 (display_csky_attribute): New.
373 (process_arch_specific): Add handler for CSKY.
374 * testsuite/binutils-all/strip-3.d: Remove .csky.attributes
375 section.
376
b0191216
JL
3772020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
378
379 * readelf.c (get_msp430x_section_type_name): Rename to ...
380 (get_msp430_section_type_name): ... this.
381 (get_section_type_name): Use get_msp430_section_type_name.
382 (display_msp430x_attribute): Rename to ...
383 (display_msp430_attribute): ... this.
384 (process_arch_specific): Use display_msp430_attribute.
385
9e7ed8b0
JDA
3862020-08-27 John David Anglin <danglin@gcc.gnu.org>
387
388 PR 26356
389 * testsuite/binutils-all/objcopy.exp (objcopy --reverse-bytes): Add
390 "-j $PRIVATE$" to command on hppa*-*-hpux*.
391 * testsuite/lib/utils-lib.exp (default_binutils_run): Remove existing
392 dollar-sign quotes before quoting. Do this prior to generating log
393 output.
394
6b5473c9
RH
3952020-08-27 Ralf Habacker <ralf.habacker@freenet.de>
396
397 PR 26088
398 * mclex.c (skip_until_eol): If eol was found, increment line
399 number.
400
5e9b84f7
NA
4012020-08-27 Nick Alcock <nick.alcock@oracle.com>
402
403 * objdump.c (dump_ctf_errs): Unquote CTF error messages.
404 * readelf.c (dump_ctf_errs): Likewise.
405
926c9e76
NA
4062020-08-27 Nick Alcock <nick.alcock@oracle.com>
407
408 * objdump.c (dump_ctf_archive_member): Move error-
409 reporting...
410 (dump_ctf_errs): ... into this separate function.
411 (dump_ctf): Call it on open errors.
412 * readelf.c (dump_ctf_archive_member): Move error-
413 reporting...
414 (dump_ctf_errs): ... into this separate function. Support
415 calls with NULL fp. Adjust for new err parameter to
416 ctf_errwarning_next.
417 (dump_section_as_ctf): Call it on open errors.
418
987cf30a
NA
4192020-08-27 Nick Alcock <nick.alcock@oracle.com>
420
421 * Makefile.am (readelf_LDADD): Move $(LIBINTL) after $(LIBCTF_NOBFD).
422 * Makefile.in: Regenerated.
423
3eba3ef3
NC
4242020-08-26 Nick Clifton <nickc@redhat.com>
425
426 PR 26405
427 * readelf.c (get_segment_type): Handle OpenBSD segment types.
428
a68aba2d
AM
4292020-08-26 Alan Modra <amodra@gmail.com>
430
431 PR 26412
432 * objcopy.c (copy_object): Don't fwrite NULL contents.
433
37f628c3
KH
4342020-08-26 Katayama Hirofumi <katayama.hirofumi.mz@gmail.com>
435
436 PR 26340
437 * rcparse.y (AUTOCHECKBOX): Add WS_TABSTOP to the base style.
438
f3da8a96
AM
4392020-08-24 Alan Modra <amodra@gmail.com>
440
441 * readelf.c (dump_section_as_strings) Avoid false positive
442 "may be used uninitialised".
443
3f2e9699
L
4442020-08-22 H.J. Lu <hongjiu.lu@intel.com>
445
446 PR ld/26382
447 * nm.c (print_symname): Display only one '@' for undefined
448 versioned symbols.
449 * doc/binutils.texi: Update nm version information.
450
02391b8b
MW
4512020-08-21 Mark Wielaard <mark@klomp.org>
452
453 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Also
454 recognize DW_LANG_C11.
455
d1ce973e
AM
4562020-08-19 Alan Modra <amodra@gmail.com>
457
458 PR 26349
459 * readelf.c (dump_relocations): Use BFD_VMA_FMT to print offset
460 and info fields.
461 (dump_section_as_strings): Don't use %tx to display offset.
462
82fcdb39
AM
4632020-08-14 Alan Modra <amodra@gmail.com>
464
465 PR 26388
466 * dwarf.c (free_debug_memory): Free alloc_num_debug_info_entries
467 of debug_information. Correct test of max_loc_offsets and
468 max_range_lists.
469 * rddbg.c (read_debugging_info): Free dhandle on error.
470
fc0efc4b
AM
4712020-08-14 Alan Modra <amodra@gmail.com>
472
473 * testsuite/binutils-all/mangled.s: Use dc.a rather than dc.d.
474
75e100a3
AM
4752020-08-13 Alan Modra <amodra@gmail.com>
476
477 PR 26348
478 * objcopy.c (copy_object): Report file name with endian error.
479 Error and return on abfd->read_only.
480
d3511b24
TT
4812020-08-12 Tom Tromey <tromey@adacore.com>
482
483 * dwarf-mode.el (Version): Now 1.6.
484 (dwarf-die-button-action): Tighten DIE reference regexp.
485 (dwarf-font-lock-keywords): Update name regexp.
486
79bc120c
NC
4872020-08-12 Nick Clifton <nickc@redhat.com>
488
489 PR binutils/26331
490 * readelf.c (do_demangle): New option flag.
491 (print_symbol): If do_demangle is enabled, demangle the symbol.
492 (enum long_option_values): New enum to hold long option values.
493 (options): Add demangle, no-demangle, recursion-limit and
494 no-recursion-limit options. Alpha sort the table.
495 (usage): Describe the new options.
496 (parse_args): Handle the new options.
497 * NEWS: Mention the new feature.
498 * doc/binutils.texi: Document the new feature.
499 * testsuite/binutils-all/readelf.exp: Test the new feature.
500 * testsuite/binutils-all/mangled.s: New file - assembler source.
501 * testsuite/binutils-all/readelf.demangled: New file - expected
502 output from readelf.
503
79ddc884
NC
5042020-08-12 Nick Clifton <nickc@redhat.com>
505
506 * po/sr.po: Updated Serbian translation.
507
9b0ac51b
L
5082020-08-10 H.J. Lu <hongjiu.lu@intel.com>
509
510 PR binutils/26302
511 * nm.c (with_symbol_versions): Removed.
512 (long_option_values): Add OPTION_WITH_SYMBOL_VERSIONS.
513 (long_options): Update --with-symbol-versions entry.
514 (print_symbol): Remove the with_symbol_versions check.
515 (main): Add OPTION_WITH_SYMBOL_VERSIONS for backward
516 compatibility.
517 * doc/binutils.texi: Remove --with-symbol-versions.
518
787bbc56
AM
5192020-08-05 Alan Modra <amodra@gmail.com>
520
521 PR 26337
522 * objdump.c (load_specific_debug_section): Revert last change.
523
0b97e818
AM
5242020-08-05 Alan Modra <amodra@gmail.com>
525
526 PR 26337
527 * objdump.c (load_specific_debug_section): Don't malloc space for
528 section contents, use bfd_malloc_and_get_section.
529
c8693053
RO
5302020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
531
532 * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
533 * Makefile.in, doc/Makefile.in: Regenerate.
534 * configure: Regenerate.
535
ac2599c4
L
5362020-07-30 H.J. Lu <hongjiu.lu@intel.com>
537
538 * testsuite/binutils-all/i386/compressed-1a.d: Pass --gdwarf-3
539 to assembler.
540 * testsuite/binutils-all/i386/compressed-1b.d: Likewise.
541 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
542 * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
543 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
544 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
545
c77cb2a0
MR
5462020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
547
548 * testsuite/binutils-all/mips/global-local-symtab-sort-o32.d:
549 New test.
550 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
551 New test.
552 * testsuite/binutils-all/mips/global-local-symtab-sort-n32.d:
553 New test.
554 * testsuite/binutils-all/mips/global-local-symtab-sort-n32t.d:
555 New test.
556 * testsuite/binutils-all/mips/global-local-symtab-sort-n64.d:
557 New test.
558 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
559 New test.
560 * testsuite/binutils-all/mips/global-local-symtab-final-o32.d:
561 New test.
562 * testsuite/binutils-all/mips/global-local-symtab-final-n32.d:
563 New test.
564 * testsuite/binutils-all/mips/global-local-symtab-final-n64.d:
565 New test.
566 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
567
3f1b17bb
MR
5682020-07-29 Maciej W. Rozycki <macro@linux-mips.org>
569
570 * testsuite/binutils-all/mips/global-local-symtab-o32.d: New
571 test.
572 * testsuite/binutils-all/mips/global-local-symtab-o32t.d: New
573 test.
574 * testsuite/binutils-all/mips/global-local-symtab-n32.d: New
575 test.
576 * testsuite/binutils-all/mips/global-local-symtab-n32t.d: New
577 test.
578 * testsuite/binutils-all/mips/global-local-symtab-n64.d: New
579 test.
580 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
581
d70f978b
L
5822020-07-28 H.J. Lu <hongjiu.lu@intel.com>
583
584 PR binutils/26301
585 * configure: Regenerated.
586
377170fa
L
5872020-07-28 H.J. Lu <hongjiu.lu@intel.com>
588
589 PR binutils/26301
590 * configure: Regenerated.
591
8fab9282
AM
5922020-07-27 Alan Modra <amodra@gmail.com>
593
594 * objdump.c (dump_section): Don't return without calling
595 process_section_p.
596
608d61c2
L
5972020-07-27 H.J. Lu <hongjiu.lu@intel.com>
598
599 * doc/binutils.texi: Replace preceeded with preceded.
600
3abf9758
MR
6012020-07-26 Maciej W. Rozycki <macro@linux-mips.org>
602
603 * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
604 (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
605 procedures.
606 (has_newabi): Remove variable.
607 (has_abi, abi_asflags, abi_ldflags): New associative array
608 variables.
609 (irixemul): New variable.
610 Replace `run_dump_test' calls where applicable throughout with
611 `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
612 as appropriate. Use `noarch' for tests that require their own
613 architecture setting.
614 * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
615 * testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
616 * testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
617 * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
618 * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
619 * testsuite/binutils-all/mips/mips-note-2.d: Likewise.
620 * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
621 * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
622 * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
623 * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
624 * testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
625 * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
626 * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
627 * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
628 GAS flags.
629 * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
630 * testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
631 * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
632 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
633 * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
634 * testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
635 * testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
636
f6720b1c
AM
6372020-07-24 Aaron Merey <amerey@redhat.com>
638
639 * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
640 * Makefile.in: Rebuild.
641 * configure: Rebuild.
642 * doc/Makefile.in: Rebuild.
643
bf772a1e
NC
6442020-07-24 Nick Clifton <nickc@redhat.com>
645
646 * README-how-to-make-a-release: Various small updates whilst
647 creating the 2.35 release.
648
0b884151
NA
6492020-07-22 Nick Alcock <nick.alcock@oracle.com>
650
651 * testsuite/lib/binutils-common.exp (run_dump_test): Add 'cc'
652 option.
653
3dd6b890
NA
6542020-07-22 Nick Alcock <nick.alcock@oracle.com>
655
656 * objdump.c (dump_ctf_archive_member): Remove linefeeds.
657 (dump_ctf): Likewise.
658
8b37e7b6
NA
6592020-07-22 Nick Alcock <nick.alcock@oracle.com>
660
661 * objdump.c (ctf_archive_member): Print CTF errors and warnings.
662 * readelf.c (dump_ctf_archive_member): Likewise.
663
df16e041
NC
6642020-07-22 Nick Clifton <nickc@redhat.com>
665
666 * readelf.c (parse_args): Silence potential warnings about a
667 memory resource leak when allocating space for ctf option values.
668 (dump_section_as_ctf): Fix typo checking dump_ctf_strtab_name
669 variable.
670
84dc5f0b
NC
6712020-07-21 Nick Clifton <nickc@redhat.com>
672
673 * po/sv.po: Updated Swedish translation.
674
570b0ed6
CZ
6752020-07-14 Claudiu Zissulescu <claziss@gmail.com>
676
677 * testsuite/binutils-all/arc/double_regs.s: New test.
678 * testsuite/binutils-all/arc/objdump.exp: Add the above test.
679
0a5c31d1
NC
6802020-07-13 Nick Clifton <nickc@redhat.com>
681
682 * po/fr.po: Updated French translation.
683
7a34d0ea
AM
6842020-07-13 Alan Modra <amodra@gmail.com>
685
686 * testsuite/lib/binutils-common.exp (is_pecoff_format): Accept
687 optional machine-os arg.
688
a308b89d
L
6892020-07-11 H.J. Lu <hongjiu.lu@intel.com>
690
691 * readelf.c (decode_x86_feature_2): Handle
692 GNU_PROPERTY_X86_FEATURE_2_TMM.
693
af2b3186
TV
6942020-07-10 Tom de Vries <tdevries@suse.de>
695
696 * dwarf.c (display_debug_lines_decoded): Don't emit meaningless
697 information in the end_sequence row.
698 * testsuite/binutils-all/dw5.W: Update.
699 * testsuite/binutils-all/objdump.WL: Update.
700
fe49679d
AM
7012020-07-09 Alan Modra <amodra@gmail.com>
702
703 * dlltool.c: Remove powerpc PE support and comments.
704 * configure.ac: Remove powerpc PE dlltool config.
705 * configure: Regenerate.
706
d90171de
NC
7072020-07-09 Nick Clifton <nickc@redhat.com>
708
709 * rclex.c: Add OWNERDRAW keyword.
710 * rcparse.y: Add OWNERDRAW token.
711 (menuitem_flag) Add BITMAP and OWNERDRAW entries.
712 * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and
713 BITMAP flags.
714 * windres.c (extended_menuitems): Likewise.
715 * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
716
e3fdc001
AM
7172020-07-09 Alan Modra <amodra@gmail.com>
718
719 * readelf (slurp_hppa_unwind_table): Set table_len before use
720 in relocation sanity checks.
721
5a2296ac
AM
7222020-07-07 Alan Modra <amodra@gmail.com>
723
724 * testsuite/binutils-all/ar.exp: Use is_xcoff_format.
725 * testsuite/binutils-all/nm.exp: Likewise.
726 * testsuite/binutils-all/copy-2.d: Run only for elf and pe targets.
727 * testsuite/binutils-all/copy-3.d: Run only for elf targets.
728 * testsuite/binutils-all/set-section-alignment.d: Likewise.
729 * testsuite/binutils-all/copy-4.d: Don't run for xcoff.
730
efd0ed58
AM
7312020-07-07 Alan Modra <amodra@gmail.com>
732
733 * testsuite/lib/binutils-common.exp (is_xcoff_format): New.
734 * testsuite/binutils-all/objcopy.exp (pr25662): Exclude xcoff.
735
17550be7
NC
7362020-07-06 Nick Clifton <nickc@redhat.com>
737
738 * po/bg.po: Updated Bulgarian translation.
739 * po/pt.po: Updated Portuguese translation.
740 * po/uk.po: Updated Ukranian translation.
741
ddb43bab
AM
7422020-07-06 Alan Modra <amodra@gmail.com>
743
744 * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
745 find string length.
746
b19d852d
NC
7472020-07-04 Nick Clifton <nickc@redhat.com>
748
749 * configure: Regenerate.
750 * po/binutils.pot: Regenerate.
751
b115b9fd
NC
7522020-07-04 Nick Clifton <nickc@redhat.com>
753
754 Binutils 2.35 branch created.
755
0942c7ab
NC
7562020-07-02 Nick Clifton <nickc@redhat.com>
757
758 PR 26028
759 * readelf.c (print_symbol): Handle truncation of symbol names.
760 (options): Add -T/--silent-truncation option.
761 (parse_args): Handle the option.
762 (print_dynamic_symbol): Correct calculation of width available to
763 display symbol name.
764 * doc/binutils.texi: Document the -T option to readelf.
765 * NEWS: Mention the new feature.
766
bbd19b19
L
7672020-06-30 H.J. Lu <hongjiu.lu@intel.com>
768
769 * NEWS: Mention x86 NaCl target support removal.
770 * dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
771 x86 NaCl target support.
772 * testsuite/binutils-all/elfedit-1.d: Likewise.
773 * testsuite/binutils-all/i386/i386.exp: Likewise.
774 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
775 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
776 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
777 * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
778 * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
779 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
780 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
781 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
782 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
783 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
784 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
785 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
786
5568cc9e
NC
7872020-06-30 Nick Clifton <nickc@redhat.com>
788
789 * dwarf.c (read_and_display_attr_value): Support
790 DW_FORM_GNU_strp_alt when used with DW_AT_dwo_name and
791 DW_AT_comp_dir.
792
d74b88ed
AM
7932020-06-30 Alan Modra <amodra@gmail.com>
794
795 * testsuite/binutils-all/readelf.exp (readelf_dump_test): Remove
796 xfail for nds32.
797
9f27c364
HPN
7982020-06-29 Hans-Peter Nilsson <hp@bitrange.com>
799
800 * dwarf.c (display_debug_str_offsets): Rename local variable
801 index to idx. Move to top of function.
802
279edac5
AM
8032020-06-29 Alan Modra <amodra@gmail.com>
804
805 * dwarf.c: Use C style comments.
806 * resrc.c: Likewise.
807
cfc16775
AM
8082020-06-27 Alan Modra <amodra@gmail.com>
809
810 * elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
811 after freeing.
812 (release_archive): Set fields of arch to NULL after freeing.
813
2f6ecaed
NA
8142020-06-26 Nick Alcock <nick.alcock@oracle.com>
815
816 * readelf.c (dump_section_as_ctf): Support .ctf archives using
817 ctf_arc_bufopen. Automatically load the .ctf member of such
818 archives as the parent of all other members, unless specifically
819 overridden via --ctf-parent. Split out dumping code into...
820 (dump_ctf_archive_member): ... here, as in objdump, and call
821 it once per archive member.
822 (dump_ctf_indent_lines): Code style fix.
823
094e34f2
NA
8242020-06-26 Nick Alcock <nick.alcock@oracle.com>
825
826 * configure.ac [--enable-libctf]: New, default yes.
827 Set ENABLE_LIBCTF accordingly.
828 * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF and LIBCTF_NOBFD.
829 * configure: Regenerate.
830 * config.in: Regenerate.
831 * Makefile.in: Regenerate.
832 * aclocal.m4: Regenerate.
833 * objdump.c (usage): Conditionalize portions on ENABLE_LIBCTF.
834 (option_values): Likewise.
835 (long_options): Likewise.
836 (main): Likewise.
837 (dump_ctf_indent_lines): Conditionalize out when !ENABLE_LIBCTF.
838 (make_ctfsect): Likewise.
839 (dump_ctf_archive_member): Likewise.
840 (dump_ctf) [ENABLE_LIBCTF]: Likewise.
841 (dump_ctf) [!ENABLE_LIBCTF]: New empty stub.
842 * readelf.c (options): Conditionalize portions on ENABLE_LIBCTF.
843 (usage): Likewise.
844 (process_section_contents): Likewise.
845 (shdr_to_ctf_sect): Conditionalize out when !ENABLE_LIBCTF.
846 (dump_ctf_indent_lines): Likewise.
847 (dump_section_as_ctf) [ENABLE_LIBCTF]: Likewise.
848
2a1bb84c
JB
8492020-06-26 Jan Beulich <jbeulich@suse.com>
850
851 * doc/binutils.texi: Adjust description of x86's -Msuffix. Drop
852 redundant text from x86 specific part of -M section.
853
85f7484a
PB
8542020-06-26 Pat Bernardi <bernardi@adacore.com>
855
856 * readelf.c (display_m68k_gnu_attribute): New function.
857 (process_arch_specific): Call display_m68k_gnu_attribute for EM_68K.
858
d0dded5b
L
8592020-06-23 H.J. Lu <hongjiu.lu@intel.com>
860
861 PR binutils/26160
862 * testsuite/binutils-all/pr26160.dwp.bz2: New file.
863 * testsuite/binutils-all/pr26160.r: Likewise.
864 * testsuite/binutils-all/readelf.exp: Run PR binutils/26160 test.
865
39f381cb
NC
8662020-06-23 Nick Clifton <nickc@redhat.com>
867
868 PR 26160
869 * dwarf.c (fetch_indexed_string): Detect and handle old style
870 .debug_str_offset tables.
871 (display_debug_str_offsets): Likewise. Also add support for
872 .debug_str_offsets.dwo sections.
873
80fda85c
L
8742020-06-23 H.J. Lu <hongjiu.lu@intel.com>
875
876 PR binutils/26112
877 * testsuite/binutils-all/pr26112.o.bz2: New file.
878 * testsuite/binutils-all/pr26112.r: Likewise.
879 * testsuite/binutils-all/readelf.exp: Run PR binutils/26112 test.
880
d081ffff
AM
8812020-06-23 Alan Modra <amodra@gmail.com>
882
883 * testsuite/binutils-all/objdump.exp (bintest.a): Correct
884 remote_file delete command.
885
e4b7104b
NC
8862020-06-22 Nick Clifton <nickc@redhat.com>
887
888 PR 26112
889 * dwarf.c (display_debug_str_offsets): Add code to display the
890 contents of the .debug_str_offsets section.
891 (display_debug_macro): Add support for DW_MACRO_define_strx and
892 DW_MACRO_undef_strx.
893
d768f160
SJ
8942020-06-22 Saagar Jha <saagar@saagarjha.com>
895
896 * od-macho.c: Dump linkedit data for new load commands.
897
5fd104ad
AM
8982020-06-19 Alan Modra <amodra@gmail.com>
899
900 * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
901 * testsuite/lib/binutils-common.exp (check_relro_support): New proc.
902 (run_dump_test): Use check_relro_support to decide whether to pass
903 extra ld option "-z norelro".
904
fd17d1e6
AM
9052020-06-11 Alan Modra <amodra@gmail.com>
906
907 * readelf.c (process_mips_specific): Don't alloc memory for
908 Elf_Internal_Options.
909
d0c4e780
AM
9102020-06-11 Alan Modra <amodra@gmail.com>
911
912 * readelf.c (process_mips_specific): Assert size of internal
913 types match size of external types, and simplify allocation of
914 internal buffer. Catch possible integer overflow when sanity
915 checking option size. Don't assume options are a regular array.
916 Sanity check reginfo option against option size. Use PRI macros
917 when printing.
918
25065fcd
RH
9192020-06-10 Ralf Habacker <ralf.habacker@freenet.de>
920
921 PR 26082
922 * mclex.c (yylex): Reject lines that reach end-of-file without a
923 terminating newline character.
924
b37a7714
NC
9252020-06-08 Nick Clifton <nickc@redhat.com>
926
927 PR 26093
928 * doc/binutils.texi (strings): Fix typo.
929
c4b2f181
NC
9302020-06-08 Nick Clifton <nickc@redhat.com>
931
932 PR 26086
933 * dwarf.c (process_debug_info): Check that there is space in the
934 debug_information array before filling in an entry.
935
1424c35d
AM
9362020-06-06 Alan Modra <amodra@gmail.com>
937
938 * doc/binutils.texi (PowerPC -M option): Mention power10 and pwr10.
939
8affa48a
JA
9402020-06-05 Joel Anderson <joelanderson333@gmail.com>
941
942 PR 26082
943 * mclex.c (yylex): Add test for an empty input stream.
944
8eca5c7d
SC
9452020-06-04 Stephen Casner <casner@acm.org>
946
947 * testsuite/binutils-all/pr25662-pdp11.s: Alternate source file
948 for test using section pseudo-ops compatible with pdp11.
949 * testsuite/binutils-all/objcopy.exp: Select alternate source.
950
b3db6d07
JM
9512020-06-04 Jose E. Marchesi <jose.marchesi@oracle.com>
952
953 * objdump.c (disassemble_data): Set disasm_info.endian_code to
954 disasm_info.endian after the latter is initialized to the
955 endianness reported by BFD.
956
0a4f37af
AM
9572020-06-04 Alan Modra <amodra@gmail.com>
958
959 * testsuite/binutils-all/i386/i386.exp: Remove global directive
960 outside proc body.
961 * testsuite/binutils-all/x86-64/objects.exp: Likewise.
962 * testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
963
913e0fd4
JA
9642020-06-03 Joel Anderson <joelanderson333@gmail.com>
965
966 * windmc.h (struct mc_node): Add id_typecast field.
967 * mcparse.y (message): Initialise the id_typecast field.
968 * windmc.c (write_dbg): Use the id_typecast field as a parameter
969 when calling write_dbg_define.
970 (write_header): Likewise.
971
4a322448
AM
9722020-06-03 Alan Modra <amodra@gmail.com>
973
974 PR 26069
975 * objcopy.c (copy_relocations_in_section): Free relpp on error.
976 Don't accidentally free isection->orelocation.
977
0bee4d1c
AM
9782020-06-02 Alan Modra <amodra@gmail.com>
979
980 * testsuite/binutils-all/ar.exp (obj): Set up object file name
981 extension. Use throughout. Don't completely exclude non-ELF
982 alpha targets. Run long_filenames test for tic30. Exclude thin
983 archive tests for aix, ecoff and vms.
984 * estsuite/binutils-all/objdump.exp (obj): Set up object file name
985 extension. Use throughout. Don't exclude non-ELF alpha targets
986 from "bintest.a".
987
ab7ad287
MF
9882020-05-28 Max Filippov <jcmvbkbc@gmail.com>
989
990 * MAINTAINERS (Xtensa): Add myself as maintainer.
991
3f3c3608
AM
9922020-05-23 Alan Modra <amodra@gmail.com>
993
994 * testsuite/binutils-all/ar.exp (many_files): New test.
995
9db70fc3
AM
9962020-05-21 Alan Modra <amodra@gmail.com>
997
998 * addr2line.c: Replace "if (x) free (x)" with "free (x)" throughout.
999 * dlltool.c: Likewise.
1000 * elfcomm.c: Likewise.
1001 * rddbg.c: Likewise.
1002 * readelf.c: Likewise.
1003 * stabs.c: Likewise.
1004 * windmc.c: Likewise.
1005 * windres.c: Likewise.
1006 * wrstabs.c: Likewise.
1007
c31ab5a0
AM
10082020-05-21 Alan Modra <amodra@gmail.com>
1009
1010 * readelf.c (get_num_dynamic_syms): Bounds check mipsxlat array
1011 access.
1012
8f595e9b
NC
10132020-05-20 Nelson Chu <nelson.chu@sifive.com>
1014
1015 * dwarf.c: Updated since DECLARE_CSR is changed.
1016
8ac10c5b
L
10172020-05-19 H.J. Lu <hjl.tools@gmail.com>
1018
1019 PR binutils/25809
1020 * readelf.c (process_program_headers): Warn if the PT_DYNAMIC
1021 segment doesn't match the .dynamic section and checks are
1022 enabled.
1023 (struct filedata): Add dynamic_symtab_section and
1024 dynamic_strtab_section fields.
1025 (process_section_headers): Set dynamic_symtab_section to the
1026 .dynsym section. Set dynamic_strtab_section to the .dynstr
1027 section.
1028 (process_dynamic_section): Warn if the .dynsym section doesn't
1029 match DT_SYMTAB and DT_SYMENT or the .dynstr section doesn't
1030 DT_STRTAB and DT_STRSZ. But only if checks are enabled.
1031
c177f377
AM
10322020-05-19 Alan Modra <amodra@gmail.com>
1033
1034 * ar.c (map_over_members, get_pos_bfd, delete_members, move_members),
1035 (replace_members): Use bfd_get_filename rather than accessing
1036 bfd->filename directly.
1037 * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise.
1038 * binemul.c (do_ar_emul_append): Likewise.
1039 * coffgrok.c (coff_grok): Likewise.
1040
83d27139
SH
10412020-05-18 Stafford Horne <shorne@gmail.com>
1042
1043 * MAINTAINERS (OR1K): Add myself as maintainer.
1044
d11a9fab
AB
10452020-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1046
1047 * doc/binutils.texi: Mention 'entry address' in the set-start and
1048 adjust-start options descriptions.
1049
546cb2d8
NC
10502020-05-05 Nick Clifton <nickc@redhat.com>
1051
1052 * dwarf.c (do_checks): New global variable.
1053 (display_formatted_table): Warn about an unexpected number of
1054 columns in the table, if checks are enabled. Do not complain
1055 about the lack of data following the number of entries in the
1056 table if the table is empty.
1057 (display_debug_lines_decoded): Only warn about an unexpected
1058 number of columns in a table if checks are enabled.
1059 * dwarf.h (do_checks): Add a prototype.
1060 * elfcomm.c (error): Remove weak attribute.
1061 (warn): Likewise.
1062 * readelf.c (do_checks): Delete.
1063 (warn): Delete.
1064 (process_section_headers): Only warn about empty sections if
1065 checks are enabled.
1066
e052e2ba
FS
10672020-05-04 Fangrui Song <maskray@google.com>
1068
1069 * objcopy.c (copy_object): Allow empty section.
1070 * testsuite/binutils-all/update-section.exp: Add test.
1071
070b775f
NC
10722020-05-04 Nick Clifton <nickc@redhat.com>
1073
1074 PR 25917
1075 * dwarf.c (display_debug_lines_decoded): Warn if encountering a
1076 supicious number of entries for DWARF-5 format directory and file
1077 name tables. Do not display file name table header if the table
1078 is empty. Do not allocate space for empty tables.
1079
9c7b8e9b
AM
10802020-05-04 Alan Modra <amodra@gmail.com>
1081
1082 * readelf.c (process_nds32_specific): Check size of .nds32_e_flags
1083 section. Don't assume endian of host matches nds32 target. Free
1084 buffer.
1085
60832332
AM
10862020-05-01 Alan Modra <amodra@gmail.com>
1087 Haim Shimonovich <Haim.Shimonovich@ceva-dsp.com>
1088
1089 * objdump.c (disassemble_bytes): Don't scan for zeros when
1090 disassembling zeros. Translate "resuming at file offset" message.
1091 Formatting. Replace some signed variables with unsigned.
1092
09c1e68a
AC
10932020-04-30 Alex Coplan <alex.coplan@arm.com>
1094
1095 * testsuite/binutils-all/aarch64/in-order-all.d: Update to use new
1096 disassembly.
1097 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
1098
8a8a1171
NC
10992020-04-30 Nick Clifton <nickc@redhat.com>
1100
1101 * testsuite/lib/binutils-common.exp (check_pie_support): New
1102 proc.
1103
cb4c35cf
AB
11042020-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * dwarf.c (display_debug_ranges): Ignore duplicate entries in
1107 range_entries for the same offset.
1108
1b513401
NC
11092020-04-29 Nick Clifton <nickc@redhat.com>
1110
1111 * readelf.c (warn): New function - like elfcomm.c version but only
1112 produces output if warnings are enabled.
1113 (struct options): Add --lint and --enable-checks.
1114 (usage): Add entry for --lint.
1115 (parse_args): Handle -L. If checks are enabled but no dumps have
1116 been selected then enable all dumps.
1117 (process_section_headers): Replace long if-then-else sequence with
1118 a switch. Add warning messages for empty SHT_REL, SHT_RELA and
1119 SHT_PROGBITS sections.
1120 (process_file): Do not complain if the file is an archive and lint
1121 mode has been enabled.
1122 * elfcomm.c (error): Make the function weak.
1123 (warn): Likewise.
1124 * NEWS: Mention the new feature.
1125 * doc/binutils.texi: Document the new feature.
1126 * dwarf.h (report_leb_status): Add file name and line number
1127 parameters. Include them in the diagnostic output.
1128 (READ_ULEB): Pass file and line number to report_leb_status.
1129 (READ_SLEB): Likewise.
1130 * dwarf.c (read_and_print_leb128): Pass file and line number to
1131 report_leb_status.
1132 * testsuite/binutils-all/readelf.exp: Add test of new feature.
1133 * testsuite/binutils-all/zero-sec.s: New test source file.
1134 * testsuite/binutils-all/zero-sec.r: Expected output from new
1135 test.
1136
c2e71e57
NC
11372020-04-29 Nick Clifton <nickc@redhat.com>
1138
1139 * po/sr.po: Updated Serbian translation.
1140
90837ea7
AM
11412020-04-26 Alan Modra <amodra@gmail.com>
1142
1143 * readelf.c (get_num_dynamic_syms): Check DT_MIPS_XHASH was
1144 read before dereferencing, and gracefully return. Remove
1145 gnu_hash_error variable. Free gnu hash arrays if number of
1146 syms found is zero.
1147
2482f306
AM
11482020-04-24 Alan Modra <amodra@gmail.com>
1149
1150 * readelf.c (get_num_dynamic_syms): Check for nbuckets and nchains
1151 non-zero.
1152 (process_dynamic_section): Call get_num_dynamic_syms once rather
1153 than in segment loop. Break out of segment loop on a successful
1154 load of dynamic symbols. Formatting.
1155 (process_object): Return error status from process_dynamic_section.
1156
27456742
AK
11572020-04-23 Anton Kolesov <anton.kolesov@synopsys.com>
1158
1159 * elf-bfd.h (elfcore_write_arc_v2): Add prototype.
1160 * elf.c (elfcore_grok_arc_v2): New function.
1161 (elfcore_grok_note): Call the new function to handle the corresponding
1162 note.
1163 (elfcore_write_arc_v2): New function.
1164 (elfcore_write_register_note): Call the new function to handle the
1165 corresponding pseudo-sections.
1166
30ce8e47
MF
11672020-04-22 Max Filippov <jcmvbkbc@gmail.com>
1168
1169 PR ld/25861
1170 * readelf.c (is_none_reloc): Recognize
1171 BFD_RELOC_XTENSA_PDIFF{8,16,32} and
1172 BFD_RELOC_XTENSA_NDIFF{8,16,32}.
1173
33b5a830
NC
11742020-04-22 Nick Clifton <nickc@redhat.com>
1175
1176 * MAINTAINERS: Remove Chris Faylor as the ix86 PE maintainer.
1177
978c4450
AM
11782020-04-22 Alan Modra <amodra@gmail.com>
1179
1180 * readelf.c (archive_file_offset, archive_file_size, dynamic_addr),
1181 (dynamic_size, dynamic_nent, dynamic_strings, dynamic_strings_length),
1182 (num_dynamic_syms, nbuckets, nchains, buckets, chains),
1183 (ngnubuckets, gnubuckets, gnuchains, mipsxlat, ngnuchains),
1184 (gnusymidx, dynamic_symbols, dynamic_syminfo, dynamic_syminfo_offset),
1185 (dynamic_syminfo_nent, program_interpreter, dynamic_info),
1186 (dynamic_info_DT_GNU_HASH, dynamic_info_DT_MIPS_XHASH, version_info),
1187 (dynamic_section, symtab_shndx_list, group_count, section_groups),
1188 (section_headers_groups): Move to struct filedata. Update use
1189 throughout file.
1190
6431e409
AM
11912020-04-22 Alan Modra <amodra@gmail.com>
1192
1193 * readelf.c (struct dump_data): New, used..
1194 (cmdline): ..here, and..
1195 (struct filedata): ..here. Adjust all uses.
1196 (request_dump_bynumber, request_dump, parse_args): Pass in a
1197 struct dump_data* rather than Filedata*. Adjust callers.
1198 (main): Don't set cmdline.file_name.
1199
a5e0be5c
AM
12002020-04-20 Alan Modra <amodra@gmail.com>
1201
1202 * readelf.c (process_symbol_table): Clear ngnuchains, ngnubuckets
1203 and nbuckets.
1204
8ff66993
AM
12052020-04-20 Alan Modra <amodra@gmail.com>
1206
1207 * readelf.c (process_section_headers): Free dynamic symbols etc.
1208 earlier.
1209
ceb9bf11
AM
12102020-04-20 Alan Modra <amodra@gmail.com>
1211
1212 * readelf.c (get_num_dynamic_syms): Formatting. Don't return
1213 on error without freeing.
1214 (process_dynamic_section): Don't recreate dynamic symbols from
1215 dynamic tag info when the dynamic symbols have already been
1216 read via section headers.
1217
e409955d
FS
12182020-04-17 Fredrik Strupe <fredrik@strupe.net>
1219
1220 * testsuite/binutils-all/arm/vdup-cond.d: New test for testing that
1221 conditional VDUP instructions are disassembled correctly.
1222 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1223 vdup-cond.d.
1224 * testsuite/binutils-all/arm/vdup-thumb.d: New test for testing
1225 that VDUP instructions (which are conditional in A32) can be
1226 disassembled in thumb mode.
1227 * testsuite/binutils-all/arm/vdup-cond.s: New file used by
1228 vdup-thumb.d.
1229
ca3f923f
AM
12302020-04-17 Alan Modra <amodra@gmail.com>
1231
1232 PR 25840
1233 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
1234
937f6614
AM
12352020-04-16 Alan Modra <amodra@gmail.com>
1236
1237 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
1238 --no-addresses description.
1239
b1bc1394
AM
12402020-04-15 Alan Modra <amodra@gmail.com>
1241
1242 * objdump.c (no_addresses): New static var.
1243 (usage): Print help for --no-addresses.
1244 (long_options): Add --no-addresses entry.
1245 (objdump_print_addr_with_sym, objdump_print_addr): Omit symbol address.
1246 (disassemble_bytes): Don't print current line address, or reloc
1247 address.
1248 * doc/binutils.texi: Document objdump --no-addresses.
1249
001890e1
AM
12502020-04-15 Alan Modra <amodra@gmail.com>
1251
1252 PR 25822
1253 * readelf.c (get_num_dynamic_syms): Don't set num_of_syms when
1254 reading buckets or chains fails.
1255
b71d4fa7
AM
12562020-04-15 Alan Modra <amodra@gmail.com>
1257
1258 * readelf.c (process_symbol_table): Zero gnubuckets, gnuchains
1259 etc. after freeing.
1260
89246a0e
AM
12612020-04-15 Alan Modra <amodra@gmail.com>
1262
1263 * readelf.c (get_group_flags): Translate text.
1264 (get_file_type, get_symbol_binding, get_symbol_type),
1265 (get_ppc64_symbol_other, get_symbol_other): Increase size of buffer.
1266
c98a4545
AM
12672020-04-15 Alan Modra <amodra@gmail.com>
1268
1269 PR 25821
1270 * readelf.c (get_num_dynamic_syms): Typo fix.
1271
645f43a8
AM
12722020-04-14 Alan Modra <amodra@gmail.com>
1273
1274 * readelf.c (process_mips_specific): Free eopt and iopt. Avoid
1275 possibility of overflow when checking number of conflicts.
1276
10ca4b04
L
12772020-04-14 H.J. Lu <hongjiu.lu@intel.com>
1278
1279 PR binutils/25707
1280 * readelf.c (nbuckets): New.
1281 (nchains): Likewise.
1282 (buckets): Likewise.
1283 (chains): Likewise.
1284 (ngnubuckets): Likewise.
1285 (gnubuckets): Likewise.
1286 (gnuchains): Likewise.
1287 (mipsxlat): Likewise.
1288 (ngnuchains): Likewise.
1289 (gnusymidx): Likewise.
1290 (VALID_SYMBOL_NAME): Likewise.
1291 (VALID_DYNAMIC_NAME): Use it.
1292 (get_dynamic_data): Moved before process_dynamic_section.
1293 (get_num_dynamic_syms): New function.
1294 (process_dynamic_section): Use DT_SYMTAB, DT_SYMENT, DT_HASH,
1295 DT_GNU_HASH and DT_MIPS_XHASH to reconstruct dynamic symbol
1296 table. Use DT_STRTAB and DT_STRSZ to reconstruct dynamic string
1297 table.
1298 (get_symbol_index_type): Don't print "bad section index" when
1299 there is no section header.
1300 (print_dynamic_symbol): Rewrite.
1301 (process_symbol_table): Call print_dynamic_symbol to dump dynamic
1302 symbol table.
1303
bb897477
RO
13042020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1305
1306 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Don't
1307 enable on *-*-solaris*.
1308
00386881
NC
13092020-03-30 Nick Clifton <nickc@redhat.com>
1310
1311 PR binutils/25662
1312 * objcopy.c (copy_object): When copying PE format files set the
1313 timestamp field in the pe_data structure if the preserve_dates
1314 flag is set.
1315 * testsuite/binutils-all/objcopy.exp (objcopy_test) Use
1316 --preserve-dates in place of the -p option, in order to make its
1317 effect more obvious.
1318
0a6a8b59
AM
13192020-03-28 Alan Modra <amodra@gmail.com>
1320
1321 * testsuite/binutils-all/objcopy.exp (objcopy_test): Only
1322 clear_xfail hppa*-*-*elf*. Revert mips xfails.
1323
6a81c59b
AM
13242020-03-28 Alan Modra <amodra@gmail.com>
1325
1326 * testsuite/binutils-all/objcopy.exp (objcopy_test): Move xfails
1327 from here to calls. Remove "m8*-*-*" entry. Don't xfail tic54x
1328 but do xfail spu, mipstx39 and mips-sgi-irix for the executable
1329 test. Pass "-p" to objcopy for the executable test.
1330
1fafefd5
JL
13312020-03-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1332
1333 PR binutils/25662
1334 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add argument to
1335 specify whether an object file or executable should be built and tested.
1336 Change test names to report whether an object file or executable is
1337 being tested.
1338 * testsuite/binutils-all/pr25662.ld: New test.
1339 * testsuite/binutils-all/pr25662.s: New test.
1340
80e2a3b6
AM
13412020-03-27 Alan Modra <amodra@gmail.com>
1342
1343 * readelf.c (process_archive): Don't double free qualified_name.
1344 Don't break out of loop with "negative" archive_file_size, just
1345 set file offset to max.
1346
4c836627
AM
13472020-03-25 Alan Modra <amodra@gmail.com>
1348
1349 * readelf.c (process_archive): Prevent endless loop.
1350
1081065c
L
13512020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1352
1353 PR binutils/25708
1354 * nm.c (print_symname): Replace _bfd_elf_get_symbol_version_name
1355 with bfd_get_symbol_version_string.
1356 (print_symbo): Pass TRUE to bfd_get_symbol_version_string.
1357 * objdump.c (objdump_print_symname): Likewise.
1358
7e6e972f
L
13592020-03-24 H.J. Lu <hongjiu.lu@intel.com>
1360
1361 PR binutils/25708
1362 * nm.c (SYM_NAME): Removed.
1363 (print_symname): Add a pointer to struct extended_symbol_info
1364 argument. Call _bfd_elf_get_symbol_version_name to get symbol
1365 version.
1366 (print_symdef_entry): Pass NULL to print_symname.
1367 (print_symbol_info_bsd): Update call to print_symname.
1368 (print_symbol_info_sysv): Likewise.
1369 (print_symbol_info_posix): Likewise.
1370
5a814d6d
AM
13712020-03-24 Alan Modra <amodra@gmail.com>
1372
1373 * readelf.c (process_mips_specific): Free iconf on error path.
1374
0636b245
NC
13752020-03-23 Nick Clifton <nickc@redhat.com>
1376
1377 PR 25714
1378 * wrstabs.c (stab_pop_type): Replace assertion with error return.
1379 * write_stabs_in_sections_debugging_info: Likewise.
1380 * stab_enum_type: Likewise.
1381 * stab_modify_type: Likewise.
1382 * stab_struct_field: Likewise.
1383 * stab_end_struct_type: Likewise.
1384 * stab_start_class_type: Likewise.
1385 * stab_class_static_member: Likewise.
1386 * stab_class_baseclass: Likewise.
1387 * stab_class_start_method: Likewise.
1388 * stab_class_method_var: Likewise.
1389 * stab_class_end_method: Likewise.
1390 * stab_end_class_type: Likewise.
1391 * stab_typedef_type: Likewise.
1392 * stab_start_function: Likewise.
1393 * stab_end_block: Likewise.
1394 * stab_lineno: Likewise.
1395
5844b465
NC
13962020-03-20 Nick Clifton <nickc@redhat.com>
1397
1398 * readelf.c (get_compression_header): Add ATTRIBUTE_WARN_UNUSED_RESULT.
1399 (process_section_headers): Check the return value from
1400 get_compression_header.
1401 (dump_section_as_strings): Likewise.
1402 (dump_section_as_bytes): Likewise.
1403 (load_specific_debug_section): Likewise.
1404
3d98c460
L
14052020-03-20 H.J. Lu <hongjiu.lu@intel.com>
1406
1407 * ar.c (main): Update bfd_plugin_set_program_name call.
1408 * nm.c (main): Likewise.
1409
f3a08f77
NC
14102020-03-19 Nick Clifton <nickc@redhat.com>
1411
1412 PR 25676
1413 * testsuite/binutils-all/dw4.s: New test source file.
1414 * testsuite/binutils-all/nm.exp: Run the new test.
1415
ef3df110
L
14162020-03-19 H.J. Lu <hongjiu.lu@intel.com>
1417
1418 * readelf.c (process_symbol_table): Use unsigned long for si.
1419
81a65eb3
AM
14202020-03-19 Alan Modra <amodra@gmail.com>
1421
1422 * elfcomm.c: Don't include bfd.h or bucomm.h.
1423 (program_name): Declare.
1424 (process_archive_index_and_symbols): Replace bfd_boolean with int,
1425 and substitute FALSE and TRUE.
1426 (setup_archive, setup_nested_archive): Likewise.
1427 * elfcomm.h: Likewise.
1428
1cb7d8b1
AM
14292020-03-19 Alan Modra <amodra@gmail.com>
1430
1431 * readelf.c (process_archive): Always return via path freeing
1432 memory. Formatting.
1433
b966f55f
AM
14342020-03-19 Alan Modra <amodra@gmail.com>
1435
1436 * readelf.c (process_netbsd_elf_note): Validate descsz before
1437 accessing descdata. Formatting.
1438
645ba681
AM
14392020-03-19 Alan Modra <amodra@gmail.com>
1440
1441 * elfcomm.c (setup_archive): Make file_size an off_t. Comment.
1442 * elfcomm.h (setup_archive): Update prototype.
1443
28d13567
AM
14442020-03-16 Alan Modra <amodra@gmail.com>
1445
1446 * readelf.c (get_symbols): New function.
1447 (process_relocs, ia64_process_unwind, hppa_process_unwind),
1448 (arm_process_unwind, get_symbol_for_build_attribute): Use it.
1449
60e63c3e
AM
14502020-03-16 Alan Modra <amodra@gmail.com>
1451
1452 * unwind-ia64.c (unw_decode_uleb128): Prevent overlarge shifts.
1453 Detect shift overflows and check that terminating byte is found.
1454 Print an error on a bad uleb128.
1455
1bd6175a
AM
14562020-03-14 Alan Modra <amodra@gmail.com>
1457
1458 * readelf.c (process_file): Clean ba_cache.
1459
780f96ae
AM
14602020-03-14 Alan Modra <amodra@gmail.com>
1461
1462 * elfcomm.h (setup_archive): Update prototype.
1463 * elfcomm.c (setup_archive): Add file_size parameter and sanity
1464 check longnames_size.
1465 (setup_nested_archive): Get file size and pass to setup_archive.
1466 * elfedit.c (process_archive): Likewise.
1467 * readelf.c (process_archive): Pass filedata->file_size to
1468 setup_archive.
1469
f761cb13
AM
14702020-03-14 Alan Modra <amodra@gmail.com>
1471
1472 * readelf.c (dump_section_as_strings): Free memory on error exit.
1473 (dump_section_as_bytes, process_notes_at): Likewise.
1474 (get_build_id): Free enote.
1475
06d949ec
KR
14762020-03-13 Kamil Rytarowski <n54@gmx.com>
1477
1478 * readelf.c (get_netbsd_elfcore_note_type): Add support for
1479 NT_NETBSDCORE_LWPSTATUS notes.
1480
fd486f32
AM
14812020-03-13 Alan Modra <amodra@gmail.com>
1482
1483 * elfcomm.c (get_archive_member_name): Always return malloc'd
1484 string or NULL.
1485 * elfedit.c (process_archive): Tidy memory on all return paths.
1486 * readelf.c (process_archive): Likewise.
1487 (process_symbol_table): Likewise.
1488 (ba_cache): New, replacing ..
1489 (get_symbol_for_build_attribute): ..static vars here. Free
1490 strtab and symtab before loading new ones. Reject symtab without
1491 valid strtab in loop, breaking out of loop on valid symtab.
1492 (process_file): Free ba_cache symtab and strtab here, resetting
1493 ba_cache.
1494
8fb879cd
AM
14952020-03-12 Alan Modra <amodra@gmail.com>
1496
1497 * readelf.c (process_section_headers): Don't just set
1498 filedata->section_headers NULL, free it first. Similarly for
1499 dynamic_symbols, dynamic_strings, dynamic_syminfo and
1500 symtab_shndx_list. Zero associated counts too.
1501 (process_object): Free symtab_shndx_list.
1502 (process_file): Free various allocated filedata tables.
1503
5496f3c6
NC
15042020-03-11 Nick Clifton <nickc@redhat.com>
1505
1506 PR 25611
1507 PR 25614
1508 * dwarf.h (DWARF2_Internal_LineInfo): Add li_address_size and
1509 li_segment_size fields.
1510 * dwarf.c (read_debug_line_header): Record the address size and
1511 segment selector size values (if present) in the lineinfo
1512 structure.
1513 (display_formatted_table): Warn if the format count is empty but
1514 the table itself is not empty.
1515 Display the format count and entry count at the start of the table
1516 dump.
1517 (display_debug_lines_raw): Display the address size and segement
1518 selector size fields, if present.
1519 * testsuite/binutils-all/dw5.W: Update expected output.
1520
9cc89dc0
AM
15212020-03-11 Alan Modra <amodra@gmail.com>
1522
1523 PR 25651
1524 * objcopy.c (copy_object): Test "gaps" not gap_fill_set or
1525 pad_to_set on second block of code dealing with padding.
1526 Replace "c" with "num_sec" and don't recalculate number of
1527 sections on second block. Size arrays using sizeof (element)
1528 rather than sizeof (element type).
1529
41da0822
AM
15302020-03-10 Alan Modra <amodra@gmail.com>
1531
1532 * objdump.c (disassemble_section): Don't call qsort unless
1533 sym count is at least two.
1534 (disassemble_data): Don't call memcpy with NULL src.
1535
95099889
AM
15362020-03-09 Alan Modra <amodra@gmail.com>
1537
1538 PR 25645
1539 * readelf.c (dump_ia64_vms_dynamic_fixups): Pass size and nmemb
1540 to get_data rather than multiplying.
1541 (dump_ia64_vms_dynamic_relocs): Likewise.
1542 (process_version_sections): Correct order of size and nmemb args
1543 in get_data call.
1544 (process_mips_specific): Likewise.
1545
a15de1f5
L
15462020-03-08 H.J. Lu <hongjiu.lu@intel.com>
1547
1548 * readelf.c (get_dynamic_data): Replace "memory chekers" with
1549 "memory checkers" in comments.
1550
9979ab66
SM
15512020-03-06 Simon Marchi <simon.marchi@efficios.com>
1552
1553 PR 25491
1554 * doc/Makefile.am: Rename MOSTLYCLEANFILES to MAINTAINERCLEANFILES.
1555 * doc/Makefile.in: Re-generate.
1556
a0dcf297
NC
15572020-03-06 Nick Clifton <nickc@redhat.com>
1558
1559 * objcopy.c (check_new_section_flags): New function. Reject the
1560 SEC_COFF_SHARED flag if the target is not a COFF binary.
1561 (copy_object): Call check_new_section_flags.
1562 (setup_section): Likewise.
1563 * doc/binutils.texi (objcopy): Add a note that the 'share' section
1564 flag cannot be applied to ELF binaries.
1565
a9b90127
AM
15662020-03-06 Alan Modra <amodra@gmail.com>
1567
1568 PR 25637
1569 * objcopy.c (filter_symbols): Correct rem_leading_char logic.
1570
d1faf7ca
AM
15712020-03-05 Alan Modra <amodra@gmail.com>
1572
1573 PR 25629
1574 * objcopy.c (filter_symbols): Don't segfault on NULL
1575 prefix_symbols_string.
1576
eef64366
CE
15772020-03-04 Christian Eggers <ceggers@gmx.de>
1578
1579 * objcopy.c (copy_object): Convert from bytes to octets for
1580 --gap-fill and --pad-to.
1581
5be2b2f5
NC
15822020-03-03 Nick Clifton <nickc@redhat.com>
1583
1584 PR 25625
1585 * prdbg.c (pr_tag_type): Remove call to abort.
1586
b312fea1
AM
15872020-03-02 Aaron Merey <amerey@redhat.com>
1588
1589 * binutils/testsuite/binutils-all/debuginfod.exp: Improve port
1590 selection.
1591
ba3265d0
NC
15922020-03-02 Nick Clifton <nickc@redhat.com>
1593
1594 PR 25543
1595 * readelf.c (dump_section_as_strings): Display new-line characters
1596 as \n and then insert a line break.
1597 * testsuite/binutils-all/pr25543.s: New test.
1598 * testsuite/binutils-all/pr25543.d: Test driver.
1599 * testsuite/binutils-all/readelf.exp: Run the new test.
1600
736990c4
NC
16012020-02-27 Nick Clifton <nickc@redhat.com>
1602
1603 PR 25526
1604 * readelf.c (process_ia64_vms_dynamic_relocs): Check to see if
1605 get_data is unable to load the string table.
1606
dc1e8a47
AM
16072020-02-26 Alan Modra <amodra@gmail.com>
1608
1609 * elfedit.c: Indent labels correctly.
1610 * readelf.c: Likewise.
1611 * resres.c: Likewise.
1612
ecda9016
L
16132020-02-25 H.J. Lu <hongjiu.lu@intel.com>
1614
1615 PR binutils/25584
1616 * ar.c (main): Pass 0 to bfd_plugin_set_program_name.
1617 * nm.c (main): Pass 1 to bfd_plugin_set_program_name.
1618
83d4d556
NC
16192020-02-24 Nick Clifton <nickc@redhat.com>
1620
1621 PR 25499
1622 * doc/binutils.texi (objdump): Fix typo in description of
1623 objdump's -g option.
1624
bd0cf5a6
NC
16252020-02-20 Nelson Chu <nelson.chu@sifive.com>
1626
1627 * dwarf.c (regname_internal_riscv): Updated since the DECLARE_CSR
1628 is changed.
1629
741cb839
EC
16302020-02-19 Jordan Rupprecht <rupprecht@google.com>
1631
1632 * objdump.c (show_line): call bfd_demangle when using do_demangle.
1633
9f1528a1
AB
16342020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1635
1636 * configure: Regenerate.
1637
3a5d12fb
FS
16382020-02-10 Fangrui Song <maskray@google.com>
1639
1640 * objcopy.c (parse_flags): Handle "exclude".
1641 * doc/binutils.texi: Document the support.
1642
678d457f
AM
16432020-02-10 Aaron Merey <amerey@redhat.com>
1644
1645 * binutils/testsuite/binutils-all/debuginfod.exp:
1646 Replace set ::env with setenv.
46471187
AM
1647 Start server before setting environment variable.
1648 Specify tmpdir as the location of the server's
1649 database.
1650 Check additional server metrics at start-up.
678d457f 1651
e8319fde
NC
16522020-02-07 Nick Clifton <nickc@redhat.com>
1653
1654 * README-how-to-make-a-release: Add note about updating the
1655 GAS/NEWS URL in the next release.
1656
9fc0b501
SB
16572020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
1658
1659 PR 25469
1660 * readelf.c (get_machine_flags): Add support for Z80N machine
1661 number.
1662
e1104d08
NC
16632020-02-07 Nick Clifton <nickc@redhat.com>
1664
1665 * dwarf.c (display_debug_lines_decoded): Force a NUL termination
1666 of the truncated file name.
1667
c2e6f744 16682020-02-06 Andrew Burgess <andrew.burgess@embecosm.com>
ece12829
TT
1669
1670 * objdump.c (print_jump_visualisation): New function.
1671 (disassemble_bytes): Call new function.
1672
02e0be69
AM
16732020-02-06 Alan Modra <amodra@gmail.com>
1674
1675 * testsuite/lib/binutils-common.exp (match_target): Accept '!' before
1676 TCL procedure.
1677 (supports_gnu_osabi): New procedure.
1678 (is_generic): New, from ld-lib.exp.
1679 (supports_gnu_unique): Use the above.
1680
e8b79122
AM
16812020-02-04 Alan Modra <amodra@gmail.com>
1682
1683 * Makefile.am (CFILES): Add od-elf32_avr.c.
1684 * Makefile.in: Regenerate.
1685 * po/POTFILES.in: Regenerate.
1686
27a45f42
AS
16872020-02-03 Andreas Schwab <schwab@linux-m68k.org>
1688
1689 * readelf.c (dump_relocations, dump_relocations)
1690 (decode_arm_unwind_bytecode, process_dynamic_section)
1691 (get_symbol_visibility, get_alpha_symbol_other): Add newline to
1692 error message.
1693
0b398d69
ST
16942020-02-03 Sergei Trofimovich <siarheit@google.com>
1695
1696 * coffdump.c (program_name): Drop redundant definition.
1697 * srconv.c (program_name): Likewise
1698 * sysdump.c (program_name): Likewise
1699
a8c4d40b
L
17002020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1701
1702 PR gas/25380
1703 * objdump.c (sym_ok): Return FALSE if 2 sections are in the
1704 same file with different section pointers.
1705
cb6ad9bb
NC
17062020-02-01 Nick Clifton <nickc@redhat.com>
1707
1708 * README-how-to-make-a-release: Update with more details on the
1709 release making process.
1710
53943f32
NC
17112020-01-31 Nick Clifton <nickc@redhat.com>
1712
1713 * po/sv.po: Updated Swedish translation.
1714
55be8fd0
NC
17152020-01-28 Nick Clifton <nickc@redhat.com>
1716
1717 * readelf.c (get_build_id): Simplify warning message about corrupt
1718 notes encountered whilst scanning for the build-id.
1719
82ef9cad
RM
17202020-01-27 Roland McGrath <mcgrathr@google.com>
1721
1722 * objcopy.c (compare_gnu_build_notes): Fix comparison results
1723 for overlapping ranges so that (A == B) == (B == A) holds.
1724
e3696f67
AM
17252020-01-27 Alan Modra <amodra@gmail.com>
1726
1727 * testsuite/lib/binutils-common.exp (big_or_little_endian): Replace
1728 case statement with switch statement.
1729
2f796de6
NC
17302020-01-24 Nick Clifton <nickc@redhat.com>
1731
1732 * readelf.c (get_build_id): Fix warning messages about corrupt
1733 notes.
1734
24e648d4
NC
17352020-01-23 Nick Clifton <nickc@redhat.com>
1736
1737 * po/fr.po: Updated French translation.
1738
c48acf6f
YC
17392020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1740
1741 PR 25417
1742 * readelf.c (get_alpha_symbol_other): Fix error message typo.
1743
26916852
NC
17442020-01-20 Nick Clifton <nickc@redhat.com>
1745
1746 * po/pt.po: Updated Portuguese translation.
1747 * po/uk.po: Updated Ukranian translation.
1748
b248e9ce
NC
17492020-01-18 Nick Clifton <nickc@redhat.com>
1750
1751 * README-how-to-make-a-release: Update notes on how to cut a
1752 branch for a release.
1753
1b1bb2c6
NC
17542020-01-18 Nick Clifton <nickc@redhat.com>
1755
1756 * configure: Regenerate.
1757 * po/binutils.pot: Regenerate.
1758
ae774686
NC
17592020-01-18 Nick Clifton <nickc@redhat.com>
1760
1761 Binutils 2.34 branch created.
1762
82a9ed20
TT
17632020-01-17 Thomas Troeger <tstroege@gmx.de>
1764
1765 * objdump.c (jump_info_visualize_address): Discard jumps that are
1766 no longer needed.
1767 (disassemble_bytes): Only compute the maximum level if jumps were
1768 detected.
1769
6a1939f5
NC
17702020-01-13 Nick Clifton <nickc@redhat.com>
1771
c87c17c1 1772 * objdump.c (disassemble_bytes): Remove C99-ism.
6a1939f5
NC
1773 * testsuite/binutils-all/debuginfod.exp: New tests.
1774
1d67fe3b
TT
17752020-01-13 Thomas Troeger <tstroege@gmx.de>
1776
1777 * objdump.c (visualize_jumps, color_output, extended_color_output)
1778 (detected_jumps): New variables.
1779 (usage): Add the new jump visualization options.
1780 (option_values): Add new option value.
1781 (long_options): Add the new option.
1782 (jump_info_new, jump_info_free): New functions.
1783 (jump_info_min_address, jump_info_max_address): Likewise.
1784 (jump_info_end_address, jump_info_is_start_address): Likewise.
1785 (jump_info_is_end_address, jump_info_size): Likewise.
1786 (jump_info_unlink, jump_info_insert): Likewise.
1787 (jump_info_add_front, jump_info_move_linked): Likewise.
1788 (jump_info_intersect, jump_info_merge): Likewise.
1789 (jump_info_sort, jump_info_visualize_address): Likewise.
1790 (disassemble_jumps): New function - used to locate jumps.
1791 (disassemble_bytes): Add ascii art generation.
1792 (disassemble_section): Add scan to locate jumps.
1793 (main): Parse the new visualization option.
1794 * doc/binutils.texi: Document the new feature.
1795 * NEWS: Mention the new feature.
1796
a788aedd
AM
17972020-01-13 Alan Modra <amodra@gmail.com>
1798
a4f2b7c5
AM
1799 PR 25360
1800 PR 25361
a788aedd
AM
1801 * dwarf.c (display_debug_frames): Move fde_fc earlier. Free
1802 fde_fc col_type and col_offset.
1803 * readelf.c (apply_relocations): Move symsec check earlier.
1804 (free_debug_section): Free reloc_info.
1805 (process_notes_at): Free pnotes on error path.
1806 (process_object): Free dump_sects here..
1807 (process_archive): ..not here.
1808
805f38bc
AM
18092020-01-13 Alan Modra <amodra@gmail.com>
1810
1811 PR 25362
1812 * nm.c (display_rel_file): Free dyn_syms.
1813
ffebb0bb
NC
18142020-01-09 Nick Clifton <nickc@redhat.com>
1815
1816 PR 25220
1817 * objcopy.c (empty_name): New variable.
1818 (need_sym_before): Prevent an attempt to free a static variable.
1819 (filter_symbols): Avoid strcmp test by checking for pointer
1820 equality.
1821
ade4fd9b
NC
18222020-01-09 Nick Clifton <nickc@redhat.com>
1823
1824 * po/zh_TW.po: Updated Traditional Chinese translation.
1825
18262020-01-09 Aaron Merey <amerey@redhat.com>
1827
1828 * Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
1829 * Makefile.in: Regenerate.
1830 * NEWS: Update.
1831 * config.in: Regenerate.
1832 * configure: Regenerate.
1833 * configure.ac: Call AC_DEBUGINFOD.
1834 * doc/Makefile.in: Regenerate.
1835 * doc/binutils.texi: Add section on using binutils
1836 with debuginfod.
1837 * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
1838 Query debuginfod servers for the target debug file.
1839 (load_separate_debug_info): Call
1840 debuginfod_fetch_separate_debug_info if configured with
1841 debuginfod.
1842 (load_separate_debug_files): Add file argument to
1843 load_separate_debug_info calls.
1844 * dwarf.h (get_build_id): Add declaration.
1845 * objdump.c (get_build_id): New function. Get build-id of file.
1846 * readelf.c (get_build_id): Likewise.
1847 * testsuite/binutils-all/debuginfod.exp: New tests.
1848 * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
1849 section.
1850
6655dba2
SB
18512020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1852
1853 * readelf.c: Add support for new Z*) relocations and machine
1854 types.
1855
b14ce8bf
AM
18562020-01-01 Alan Modra <amodra@gmail.com>
1857
1858 Update year range in copyright notice of all files.
1859
0b114740 1860For older changes see ChangeLog-2019
3499769a 1861\f
0b114740 1862Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
1863
1864Copying and distribution of this file, with or without modification,
1865are permitted in any medium without royalty provided the copyright
1866notice and this notice are preserved.
1867
1868Local Variables:
1869mode: change-log
1870left-margin: 8
1871fill-column: 74
1872version-control: never
1873End: