Automatic date update in version.in
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
b16c44de
AM
12019-09-06 Alan Modra <amodra@gmail.com>
2
3 * nm.c (print_object_filename_bsd, print_object_filename_sysv),
4 (print_object_filename_posix, print_archive_filename_bsd),
5 (print_archive_filename_sysv, print_archive_filename_posix),
6 (print_archive_member_bsd, print_archive_member_sysv),
7 (print_archive_member_posix): Constify parameter.
8 (struct output_fns <print_object_filename, print_archive_filename>),
9 (<print_archive_member>): Likewise.
10 * objcopy.c (copy_archive): Add cast for make_tempdir.
11
a85eba51
AM
122019-08-29 Alan Modra <amodra@gmail.com>
13
14 * dwarf.c (check_uvalue): Remove unnecessary pointer checks.
15
fa463e9f
N
162019-08-28 Niklas Gürtler <profclonk@gmail.com>
17
18 PR 24942
19 * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
20 (struct section_list): Add alignment field.
21 (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
22 (copy_options): Add --set-section-alignment.
23 (copy_usage): Describe --set-section-alignment.
24 (find_section_list): Initialise the alignment field.
25 (setup_section): Handle the alignment field.
26 (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
27 * doc/binutils.texi: Document the new feature.
28 * NEWS: Mention the new feature.
29
a1c110a3
NC
302019-08-28 Nick Clifton <nickc@redhat.com>
31
32 PR 24931
33 * objdump.c (source_comment): New static variable.
34 (option_values): Add OPTION_SOURCE_COMMENT.
35 (long_opions): Add --source-comment.
36 (print_line): If source comment is set, use it as a prefix to the
37 source code line.
38 (main): Handle OPTION_SOURCE_COMMENT.
39 * doc/binutils.texi: Document the new option.
40 * NEWS: Mention the new feature.
41 * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
42 of the -S and --source-comment options.
43
ec1b0fbb
NC
442019-08-27 Nick Clifton <nickc@redhat.com>
45
46 PR 24510
47 * dwarf.c (MAX_CU_NESTING): New constant.
48 (level_type_signed): New static array.
49 (skip_attr_bytes): New function.
50 (get_type_signedness): New function.
51 (read_and_print_leb128): New function.
52 (display_discr_list): New function.
53 (read_and_display_attr_value): Add start parameter.
54 Use new functions when handling DW_AT_type and DW_AT_discr_list.
55 (read_and_display_attr): Add start parameter. Pass to
56 read_and_display_attr_value.
57 (process_debug_info): Update call to read_and_display_attr.
58 (display_formatted_table): Likewise.
59 (display_debug_lines_decoded): Likewise. Also add start
60 parameter.
61 (display_debug_lines): Likewise.
62 * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
63 lists.
64 * testsuite/binutils-all/dwarf-attributes.W: Update expected
65 output.
66
37606e67
AM
672019-08-26 Alan Modra <amodra@gmail.com>
68
69 PR 24938
70 * debug.c (debug_write_type): Call empty_type for NULL type here..
71 (debug_write_type): ..rather than in just one case here.
72
afc72f15
NC
732019-08-23 Nick Clifton <nickc@redhat.com>
74
75 PR 24829
76 * dwarf.c (check_uvalue): New function. Ensures that a block's
77 size is valid.
78 (read_and_display_attr_value): Use check_value when processsing
79 DW_FORM_block<n> attributes.
80
93d6a337
NC
812019-08-22 Nick Clifton <nickc@redhat.com>
82
83 PR 24921
84 * dwarf.c (process_cu_tu_index): Handle the case where a table
85 does not have any columns.
86
d292364e
AM
872019-08-19 Alan Modra <amodra@gmail.com>
88
89 PR 24898
90 * dwarf.c (display_debug_frames): Use the read_cie check and error
91 for augmentation data length.
92
d367307b
AM
932019-08-17 Alan Modra <amodra@gmail.com>
94
95 PR 24911
96 * dwarf.c (comp_addr_base): Dereference args.
97
0b8b7609
AM
982019-08-16 Alan Modra <amodra@gmail.com>
99
100 PR 24909
101 PR 23499
102 * readelf.c (get_symbol_version_string): Set sym_info earlier.
103
6ae978f1
NC
1042019-08-15 Nick Clifton <nickc@redhat.com>
105
106 PR 24767
107 * doc/binutils.texi (nm): Document the 'n' symbol type.
108
9177214a
CV
1092019-08-15 Christophe Vidal <support@krizalys.com>
110
111 * docs/binutils.texi: Fixed notice message disassembler options
112 section of the man page.
113
f16a9783
MS
1142019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
115
116 * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
117 (get_mips_section_type_name): Return MI{S_XHASH name string.
118 (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
119 info.
120 (process_symbol_table): Initialize the .MIPS.xhash section
121 pointer. Adjust the readelf output to support the new section.
122 (process_object): Set the .MIPS.xhash dynamic info to zero.
123
2b2ed245
TC
1242019-08-09 Tamar Christina <tamar.christina@arm.com>
125
126 * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
127 * testsuite/binutils-all/arm/in-order.d: Likewise.
128 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
129 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
130
dbe15e4e
NC
1312019-08-08 Nick Clifton <nickc@redhat.com>
132
133 PR 24887
134 * readelf.c (process_notes_at): Left justify the "Data size"
135 column heading.
136 * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
137 * testsuite/binutils-all/i386/ibt.d: Likewise.
138 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
139 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
140 * testsuite/binutils-all/i386/shstk.d: Likewise.
141 * testsuite/binutils-all/note-2-32.d: Likewise.
142 * testsuite/binutils-all/note-2-64.d: Likewise.
143 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
144 * testsuite/binutils-all/x86-64/empty.d: Likewise.
145 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
146 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
147 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
148 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
149 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
150 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
151 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
152 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
153 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
154 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
155 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
156 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
157 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
158 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
159
7d55c1d6
NC
1602019-08-08 Nick Clifton <nickc@redhat.com>
161
162 * testsuite/gentestdlls.c (main): Move declaration of loop
163 variable outside of the for() statement.
164
178d8719
JR
1652019-08-08 Jordan Rupprecht <rupprecht@google.com>
166
167 * readelf.c (process_note): Mask unknown description data bytes.
168
7c1c1904
AM
1692019-08-08 Alan Modra <amodra@gmail.com>
170
171 * readelf.c (get_data): Improve overflow checks.
172
f927cc8f
NC
1732019-08-07 Nick Clifton <nickc@redhat.com>
174
175 PR 24777
176 * doc/binutils.texi: Ensure consistent formating of title strings
177 for man pages. Extend the title of the size man page to be more
178 informative.
179
7cd00957
OM
1802019-08-07 Omair Majid <omajid@redhat.com>
181
182 * testsuite/binutils-all/objdump.exp
183 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
184 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
185 introduced machine types.
186 * testsuite/gentestdlls.c (write_simple_dll): New function.
187 (main): Generate simple and Linux-specific variants of pei-i386
188 and pei-x86-64 files so both can be used by tests.
189
90679903
AM
1902019-08-07 Alan Modra <amodra@gmail.com>
191
192 PR 24876
193 * readelf.c (dump_ia64_unwind): Check that buffer is large
194 enough for "stamp" before reading.
195
276cbbdf
NC
1962019-08-05 Nick Clifton <nickc@redhat.com>
197
198 PR 24874
199 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
200 note being a version note.
201 Remove spurious debugging fprintf.
202
e17869db
NC
2032019-08-05 Nick Clifton <nickc@redhat.com>
204
205 PR 24829
206 * readelf.c (apply_relocations): Catch potential integer overflow
207 whilst checking reloc location against section size.
208
97c0a079
AM
2092019-08-02 Alan Modra <amodra@gmail.com>
210
211 PR 24871
212 * readelf.c (ABSADDR): Delete.
213 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
214
cc5277b1
ML
2152019-07-29 Martin Liska <mliska@suse.cz>
216
217 PR 24768
218 * nm.c (filter_symbols): Set report_plugin_err if
219 error is reported.
220 (display_rel_file): Report error for a missing LTO plugin.
221
8e2e3c6c
AM
2222019-07-26 Alan Modra <amodra@gmail.com>
223
224 PR 24798
225 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
226 systems by casting ncols and nslots expressions to size_t. Display
227 number of columns and slots before giving up due to buffer overflow.
228 Use %u to display unsigned ints. Perform more pointer wrap tests.
229
d079b9c0 2302019-07-25 Tom Tromey <tromey@adacore.com>
48467cb9
TV
231
232 PR 24809
233 * dwarf.c (display_debug_names): Display the contents of the
234 augmentation string, if it is printable.
235
2e6be59c
NC
2362019-07-25 Nick Clifton <nickc@redhat.com>
237
238 PR 24837
239 * readelf.c (process_mips_specific): Check for buffer overflow
240 before reading reginfo information.
241
2f86d559
NC
2422019-07-24 Nick Clifton <nickc@redhat.com>
243
244 PR 13256
245 * ar.c (decode_options): Restart option scanning if no operation
246 is detected and argument remain to be scanned.
247
2e8136f9
NC
2482019-07-23 Nick Clifton <nickc@redhat.com>
249
250 PR 24818
251 * objdump.c (is_relocateable): Delete.
252 (load_specific_debug_section): Test the abfd for relocations
253 directly, rather than relying upon is_relocateable.
254 (dump_dwarf): Delete initlialization of is_relocateable.
255
df3a023b
AM
2562019-07-23 Alan Modra <amodra@gmail.com>
257
258 * readelf.c (get_parisc_segment_type): Split off hpux entries..
259 (get_ia64_segment_type): ..and these..
260 (get_hpux_segment_type): ..to here.
261 (get_segment_type): Condition GNU_MBIND on osabi. Use
262 get_hpux_segment_type.
263 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
264 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
265
acea835f
AM
2662019-07-23 Alan Modra <amodra@gmail.com>
267
268 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
269 file used to set this variable.
270
1dd1bc4d
OM
2712019-07-23 Omar Majid <omajid@redhat.com>
272
273 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
274 (GENTESTDLLSPROG): Define.
275 (TEST_PROGS): Add GENTESTDLLSPROG.
276 * Makefile.in: Regenerate.
277 * testsuite/binutils-all/objdump.exp
278 (test_objdump_dotnet_assemblies): New proc.
279 Run the new proc.
280 * testsuite/gentestdlls.c: New source file.
281
781152ec
NC
2822019-06-28 Nick Clifton <nickc@redhat.com>
283
284 PR 24707
285 * objdump.c (slurp_symtab): Fail with a helpful error message if
7e56c51c
NC
286 the symbol table is too large. Skip this check for MMO format
287 files.
781152ec 288
a68aa5d3
NC
2892019-06-26 Nick Clifton <nickc@redhat.com>
290
291 PR 24703
292 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
293 indicate this in the output.
294 (bfd_nonfatal_message): Likewise.
295
3e50a591
JB
2962019-06-25 Jan Beulich <jbeulich@suse.com>
297
298 * readelf.c (dump_ctf_indent_lines): Rename local variable
299 "spaces" to "blanks".
300
63160fc9
JB
3012019-06-25 Jan Beulich <jbeulich@suse.com>
302
303 * objdump.c (dump_ctf_indent_lines): Rename local variable
304 "spaces" to "blanks".
305
3a3a077c
AM
3062019-06-14 Alan Modra <amodra@gmail.com>
307
308 * Makefile.in: Regenerate.
309 * aclocal.m4: Regenerate.
310 * doc/Makefile.in: Regenerate.
311
9abca702
CZ
3122019-06-12 Christos Zoulas <christos@zoulas.com>
313
314 PR 24663
315 * readelf.c (process_netbsd_elf_note): Add support for
316 NT_NETBSD_PAX.
317 (process_note): Add support for PaX notes.
318
c0d38b0e
CZ
3192019-06-12 Christos Zoulas <christos@zoulas.com>
320
321 PR 24665
322 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
323 core notes.
324
540e6170
CZ
3252019-06-12 Christos Zoulas <christos@zoulas.com>
326
327 PR 24664
328 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
329 auxv notes.
330
2057d69d
CZ
3312019-06-11 Christos Zoulas <christos@zoulas.com>
332
333 PR 24662
334 * readelf.c (get_alpha_symbol_other): New function.
335 (get_symbol_other): Use for Alpha symbols.
336 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
337
c93dbb25
CZ
3382019-06-11 Christos Zoulas <christos@zoulas.com>
339
340 PR 24661
341 * readelf.c (decode_arm_unwind): Ensure that the local variable
342 'addr' is always initialised.
343
c6a636ce
NC
3442019-06-10 Christos Zoulas <christos@zoulas.com>
345
346 PR 24651
347 * strings.c (print_strings): Use %u to print unsigned values in
348 decimal.
349
2e02f296
CZ
3502019-06-10 Christos Zoulas <christos@zoulas.com>
351
352 PR 24649
353 * arsup.c (ar_open): Use asprintf in place of xmalloc and
354 sprintf.
355
79b377b3
NC
3562019-06-03 Nick Clifton <nickc@redhat.com>
357
358 Revert:
359 2019-05-29 Nick Clifton <nickc@redhat.com>
360
361 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
362 targets.
363 (HAVE_LIBCTF): Define if libctf support is available.
364 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
365 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
366 defined.
367 * readelf.c: Likewise.
368 * configure: Regenerate.
369 * Makefile.in: Regenerate.
370 * config.in: Regenerate.
371
a0486bac
JM
3722019-05-30 Nick Alcock <nick.alcock@oracle.com>
373
374 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
375 cts_offset.
376 * readelf.c (shdr_to_ctf_sect): Likewise.
377
ae9ac79e
NC
3782019-05-30 Nick Clifton <nickc@redhat.com>
379
380 PR 24627
381 * readelf.c (process_version_sections): Add 0x prefix to address
382 display. Correct indentation.
383
6ff185b8
AM
3842019-05-30 Alan Modra <amodra@gmail.com>
385
386 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
387 s12z to targets not supporting this feature.
388
1336939d
AM
3892019-05-30 Alan Modra <amodra@gmail.com>
390
391 * testsuite/lib/binutils-common.exp (run_dump_test): Support
392 tcl procedures for xfail args.
393
e33f2313
NC
3942019-05-29 Nick Clifton <nickc@redhat.com>
395
396 * README-how-to-make-a-release: Add libctf to list of directories
397 that need updates in their ChangeLogs.
398
90bd5423
NC
3992019-05-29 Nick Clifton <nickc@redhat.com>
400
401 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
402 targets.
403 (HAVE_LIBCTF): Define if libctf support is available.
404 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
405 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
406 defined.
407 * readelf.c: Likewise.
408 * configure: Regenerate.
409 * Makefile.in: Regenerate.
410 * config.in: Regenerate.
411
88981b15
NA
4122019-05-28 Nick Alcock <nick.alcock@oracle.com>
413
414 * MAINTAINERS: Add myself as CTF maintainer.
415
7d9813f1
NA
4162019-05-28 Nick Alcock <nick.alcock@oracle.com>
417
418 * objdump.c (ctf-api.h): New include.
419 (dump_ctf_section_info): New variable.
420 (dump_ctf_section_name): Likewise.
421 (usage): Describe new options.
422 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
423 (main): Use them to add --ctf and --ctf-parent.
424 (read_section_stabs): Add new parameter, entsize_ptr.
425 (find_stabs_section): Adjust accordingly.
426 (make_ctfsect): New.
427 (dump_ctf_indent_lines): New.
428 (dump_ctf_archive_member): New.
429 (dump_ctf): New.
430 (dump_bfd): Call it. Free resources afterwards.
431 * readelf.c (ctf-api.h): New include.
432 (CTF_DUMP): New.
433 (static bfd_boolean do_ctf): Likewise.
434 (dump_ctf_parent_name): Likewise.
435 (dump_ctf_symtab_name): Likewise.
436 (dump_ctf_strtab_name): Likewise.
437 (OPTION_CTF_DUMP): Likewise.
438 (OPTION_CTF_PARENT): Likewise.
439 (OPTION_CTF_SYMBOLS): Likewise.
440 (OPTION_CTF_STRINGS): Likewise.
441 (options): Add them.
442 (usage): Likewise.
443 (parse_args): Handle the new options, requesting CTF_DUMP.
444 (process_section_contents): Handle CTF_DUMP.
445 (shdr_to_ctf_sect): New.
446 (dump_ctf_indent_lines): New.
447 (dump_section_as_ctf): New.
448 (main): Free resources.
449 * Makefile.am (LIBCTF): New variable.
450 (objdump_DEPENDENCIES): Use it.
451 (readelf_DEPENDENCIES): Likewise.
452 (objdump_LDADD): Likewise.
453 (readelf_LDADD): Likewise.
454 * aclocal.m4: Regenerated.
455 * Makefile.in: Likewise.
456
457 * doc/binutils.texi (objdump): Document the new options.
458 (readelf): Likewise.
459 * doc/ctf.options.texi: New.
460 * doc/Makefile.in: Regenerated.
461 * NEWS: Mention the new feature.
462
61dd8e19
AM
4632019-05-27 Alan Modra <amodra@gmail.com>
464
465 * readelf.c (process_section_groups): Continue processing groups
466 when sh_entsize exceeds group size.
467
2301ed1c
SN
4682019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
469
470 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
471 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
472 (get_symbol_other): Call get_aarch64_symbol_other.
473
dd7efa79
PB
4742019-05-24 Alan Modra <amodra@gmail.com>
475
476 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
477
27830e0d
JM
4782019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
479
480 * MAINTAINERS: Add myself as the maintainer for BPF.
481
aca4efc7
JM
4822019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
483
484 * readelf.c: Include elf/bpf.h.
485 (guess_is_rela): Hanle EM_BPF.
486 (dump_relocations): Likewise.
487 (is_32bit_abs_reloc): Likewise.
488 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
489 ELF targets.
490
fab7c86e
TC
4912019-05-21 Tamar Christina <tamar.christina@arm.com>
492
493 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
494 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
495 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
496
d8734380
FS
4972019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
498
499 PR 14798
500 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
501 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
502
999b073b
NC
5032019-05-20 Nick Clifton <nickc@redhat.com>
504
505 * po/ca.po: Updated Catalan translation.
506
514bbb0f
AV
5072019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
508
509 * NEWS: Mention Armv8.1-M Mainline and MVE.
510
a7ad558c
AV
5112019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
512
513 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
514 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
515
37d0d091
JH
5162019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
517
518 PR 19921
519 * objcopy.c: Add new option --verilog-data-width. Use it to set
520 the value of VerilogDataWidth.
521 * doc/binutils.texi: Document the new option.
522 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
523 * testsuite/binutils-all/verilog-1.hex: New file.
524 * testsuite/binutils-all/verilog-2.hex: New file.
525 * testsuite/binutils-all/verilog-4.hex: New file.
526 * testsuite/binutils-all/verilog-8.hex: New file.
527 * NEWS: Mention the new feature.
528
391bf891
AM
5292019-05-10 Alan Modra <amodra@gmail.com>
530
531 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
532 (test_objdump_content_limited): Add text arg, use in place of .text.
533 (bintest_signed.o): Call get_standard_section_names for name of
534 text section.
535
2379f9c4
FS
5362019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
537
538 * objdump.c (sign_extend_address): New function.
539 (dump_bfd): Sign-extend user-specified start/stop addresses
540 for targets that need it.
541 * testsuite/binutils-all/objdump.exp: Add tests for objdump
542 with start and stop addresses in higher address ranges.
543
2ecde2b6
MM
5442019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
545
546 * testsuite/binutils-all/objdump.exp: Correct executable
547 spelling.
548 * testsuite/binutils-all/compress.exp: Likewise.
549
25a02744
NC
5502019-05-01 Nick Clifton <nickc@redhat.com>
551
552 PR 24507
553 * nm.c: (print_format): New variable.
554 (value_format_32bit, value_format_64bit): Delete.
555 (set_print_radix): Remove code to alter value_format strings.
556 (set_output_format): Record chosen format in print_format.
557 (get_print_format): New function - constructs a printf formatting
558 string according to the requirements of size, radix, and output
559 format.
560 (print_value): Use get_print_format.
561 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
562 and "nm -t d".
563
8107ddce
AM
5642019-04-30 Alan Modra <amodra@gmail.com>
565
566 * wrstabs.c (stab_start_class_type): Add assert to work around
567 gcc9 warning. Tidy.
568
1b8dd643
NC
5692019-04-24 Nick Clifton <nickc@redhat.com>
570
571 * objcopy.c (strip_main): Do not enable note merging by default if
572 just stripping debug or dwo information.
573 * doc/binutils.texi (strip): Update documentation.
574
624a2451
NC
5752019-04-23 Nick Clifton <nickc@redhat.com>
576
577 * README-how-to-make-a-release: Add note to update the symbolic
578 link from "docs" to "docs-2.x" on the sourceware website.
579
a0fb9615
AM
5802019-04-16 Alan Modra <amodra@gmail.com>
581
582 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
583 * testsuite/binutils-all/copy-3.d: Likewise.
584
031254f2
AV
5852019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
586
587 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
588
462cac58
L
5892019-04-08 H.J. Lu <hongjiu.lu@intel.com>
590
591 * readelf.c (decode_x86_isa): Handle
592 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
593 * testsuite/binutils-all/i386/pr21231b.d: Updated.
594 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
595
82b53593
L
5962019-04-08 H.J. Lu <hongjiu.lu@intel.com>
597
598 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
599
05805feb
TC
6002019-03-26 Tamar Christina <tamar.christina@arm.com>
601
602 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
603 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
604 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
605 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
606 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
607 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
608 * testsuite/binutils-all/arm/in-order.d: Likewise.
609 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
610 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
611 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
612
5fb812fc
NC
6132019-03-26 Nick Clifton <nickc@redhat.com>
614
615 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
616 FRV and MEP.
617
e8fba7f6
AM
6182019-03-26 Alan Modra <amodra@gmail.com>
619
620 * objdump.c (dump_relocs_in_section): Warning fix.
621
796d6298
TC
6222019-03-25 Tamar Christina <tamar.christina@arm.com>
623
624 * testsuite/binutils-all/arm/in-order-all.d: New test.
625 * testsuite/binutils-all/arm/in-order.d: New test.
626 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
627 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
628 * testsuite/binutils-all/arm/out-of-order.T: New test.
629 * testsuite/binutils-all/arm/out-of-order.d: New test.
630 * testsuite/binutils-all/arm/out-of-order.s: New test.
631
632
60df3720
TC
6332019-03-25 Tamar Christina <tamar.christina@arm.com>
634
635 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
636 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
637 * testsuite/binutils-all/aarch64/out-of-order.d:
638
51457761
TC
6392019-03-25 Tamar Christina <tamar.christina@arm.com>
640
641 * testsuite/binutils-all/aarch64/in-order.d: New test.
642 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
643 well.
644
53b2f36b
TC
6452019-03-25 Tamar Christina <tamar.christina@arm.com>
646
647 * objdump.c (disassemble_bytes): Pass stop_offset.
648 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
649 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
650 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
651
63455780
NC
6522019-03-19 Nick Clifton <nickc@redhat.com>
653
654 PR 24360
655 * objdump.c (load_specific_debug_section): Check that the amount
656 of memory to be allocated matches the size of the section.
657
1dbade74
SD
6582019-03-13 Sudakshina Das <sudi.das@arm.com>
659
660 * readelf.c (get_aarch64_dynamic_type): Add case for
661 DT_AARCH64_PAC_PLT.
662 (dynamic_section_aarch64_val): Likewise.
663
37c18eed
SD
6642019-03-13 Sudakshina Das <sudi.das@arm.com>
665 Szabolcs Nagy <szabolcs.nagy@arm.com>
666
667 * readelf.c (get_aarch64_dynamic_type): New.
668 (get_dynamic_type): Use above for EM_AARCH64.
669 (dynamic_section_aarch64_val): New.
670 (process_dynamic_section): Use above for EM_AARCH64.
671
cd702818
SD
6722019-03-13 Sudakshina Das <sudi.das@arm.com>
673
674 * readelf.c (decode_aarch64_feature_1_and): New.
675 (print_gnu_property_note): Add case for AArch64 gnu notes.
676
7a6e0d89
AM
6772019-03-12 Alan Modra <amodra@gmail.com>
678
679 * objdump.c (load_specific_debug_section): Don't compare section
680 size against file size.
681 (dump_relocs_in_section): Don't compare reloc size against file size.
682 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
683
88c9190b
NC
6842019-03-05 Nick Clifton <nickc@redhat.com>
685
686 PR 24295
687 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
688
4933ff73
NC
6892019-03-05 Nick Clifton <nickc@redhat.com>
690
691 * po/sv.po: Updated Swedish translation.
692
093f70cc
MM
6932019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
694
695 PR 24287
696 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
697 of "lmap" with a "foreach" loop.
698
f5f20315
NC
6992019-03-04 Nick Clifton <nickc@redhat.com>
700
701 PR 24281
702 * objcopy.c (copy_archive): Do not copy thin archives.
703
52d6f3ee
MM
7042019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
705
706 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
707
39f0547e
NC
7082019-02-25 Nick Clifton <nickc@redhat.com>
709
710 * objdump.c (sym_ok): New function.
711 (find_symbol_for_address): Use new function.
712 (disassemble_section): Compare sections by name, not pointer.
713 (dump_dwarf): Move code to initialise byte_get pointer and iterate
714 over separate debug files from here to ...
715 (dump_bfd): ... here. Add parameter indicating that a separate
716 debug info file is being dumped. For main file, pull in the
717 symbol tables from all separate debug info files.
718 (display_object): Update call to dump_bfd.
719 * doc/binutils.texi: Document extened behaviour of the
720 --dwarf=follow-links option.
721 * NEWS: Mention this new feature.
722 * testsuite/binutils-all/objdump.WK2: Update expected output.
723 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
724 options and dump file parameters.
725 Add extra test.
726 * testsuite/binutils-all/objdump.WK3: New file.
727 * testsuite/binutils-all/readelf.exp: Change expected output for
728 readelf -wKis test.
729 * testsuite/binutils-all/readelf.wKis: New file.
730
24841daa
NC
7312019-02-22 Nick Clifton <nickc@redhat.com>
732
733 PR 23843
734 * dwarf.h (struct separate_info): New structure for containing
735 information on separate debug info files.
736 * dwarf.c (struct dwo_info): New structure for containing dwo
737 links.
738 (first_dwo_info): Chain of dwo_info structures.
739 (first_separate_file): Chain of separate_info structures.
740 (separate_debug_file, separate_debug_filename): Delete.
741 (fetch_alt_indirect_string): Scan all separate debug info files
742 for the requested string.
743 (add_dwo_info): New function.
744 (add_dwo_name): New function.
745 (add_dwo_dir): New function.
746 (add_dwo_id: New function.
747 (free_dwo_info): New function.
748 (read_and_display_attr_value): Store DWO data using the new
749 functions.
750 (load_debug_section_with_follow): If necessary, scan the list of
751 separate debug info files for the requested section.
752 (add_separate_debug_file): New function.
753 (load_separate_debug_info): Call add_separate_debug_file to store
754 the information on the newly loaded file.
755 (load_dwo_file): Likewise.
756 (load_separate_debif_file): Rename to load_separate_debug_files.
757 Change return type to boolean. If following links then attempt to
758 load all separate debug info files, not just the first one.
759 (free_debug_memory): Release memory in dwo_info and separate_info
760 chains.
761 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
762 * readelf.c (process_object): Likewise.
763 * doc/debug.options.texi: Update descriptions of links and
764 follow-links options.
765 * testsuite/binutils-all/objdump.WK2: Update expected output.
766 * testsuite/binutils-all/readelf.k2: Likewise.
767 * NEWS: Announce the new feature.
768
5cacf1c8
NC
7692019-02-21 Nick Clifton <nickc@redhat.com>
770
771 PR 24247
772 * unwind-ia64.c: Include sysdep.h.
773 (unw_decode_x1): Check current pointer against end pointer before
774 accessing memory.
775 (unw_decode_x2): Likewise.
776 (unw_decode_x3): Likewise.
777 (unw_decode_x4): Likewise.
778 (unw_decode_r2): Likewise.
779 (unw_decode_p2_p5): Likewise.
780 (unw_decode_p7_p10): Likewise.
781 (unw_decode): Likewise.
782
8d18bf79
NC
7832019-02-20 Nick Clifton <nickc@redhat.com>
784
3ca60c57
NC
785 PR 24246
786 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
787
171375c6
NC
788 PR 24244
789 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
790 prevent walking off the end of the buffer.
791 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
792 (unw_decode_x2): Likewise.
793 (unw_decode_x3): Likewise.
794 (unw_decode_x4): Likewise.
795 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
796 (unw_decode_r3): Likewise.
797 (unw_decode_p7_p10): Likewise.
798 (unw_decode_b2): Likewise.
799 (unw_decode_b3_x4): Likewise.
800
7fc0c668
NC
801 PR 24243
802 * readelf.c (process_mips_specific): Check for an options section
803 that is too small to even contain a single option.
8d18bf79 804
171375c6
NC
805 PR 24242
806 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
807
c22b42ce
AM
8082019-02-20 Alan Modra <amodra@gmail.com>
809
810 PR 24132
811 PR 24138
812 * readelf.c (get_data): Avoid possibility of overflow when
813 checking for a read that may extend past end of file.
814 (process_program_headers): Likewise.
815
7d272a55
AM
8162019-02-20 Alan Modra <amodra@gmail.com>
817
818 PR 24233
819 * objdump.c (dump_bfd_private_header): Print warning if
820 bfd_print_private_bfd_data returns false.
821
04d7fa21
NC
8222019-02-12 Nick Clifton <nickc@redhat.com>
823
824 PR 23440
825 * README-how-to-make-a-release: Use git clean to delete spurious
826 files from the local source repository.
827
46cbf38d
AB
8282019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
829
830 * size.c (berkeley_format): Delete.
831 (enum output_format): New enum.
832 (selected_output_format): New variable.
833 (usage): Update to mention GNU format.
834 (main): Update to extract options, and select format as needed.
835 Handle GNU format where needed.
836 (berkeley_sum): Renamed to...
837 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
838 (berkeley_format): Renamed to...
839 (berkeley_or_gnu_format): ...this, and updated to handle both
840 formats.
841 (print_sizes): Handle GNU format.
842 * doc/binutils.texi (size): Document new GNU format.
843 * testsuite/binutils-all/size.exp: Add test of extended
844 functionality.
845 * NEWS: Mention new functionality.
846
96fd92af
AB
8472019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * doc/binutils.texi (size): Update example output for Berkeley
850 format output.
851
2012bf01
NC
8522019-02-07 Nick Clifton <nickc@redhat.com>
853
854 * README-how-to-make-a-release: Add a note about updating the
855 obsolete targets in the bfd/config.bfd file.
856
082cbd3b
NC
8572019-02-04 Nick Clifton <nickc@redhat.com>
858
859 * README-how-to-make-a-release: Add more notes on making a release.
860
18344509
NC
8612019-01-25 Nick Clifton <nickc@redhat.com>
862
863 PR 24131
864 * readelf.c (process_notes_at): Prevent an illegal memory access
865 when the note's namesize is zero.
866 (decode_tic6x_unwind_bytecode): Add code to handle the case where
867 no registers are specified in a frame pop instruction.
868
9ed1348c
NC
8692019-01-25 Nick Clifton <nickc@redhat.com>
870
871 * po/bg.po: Updated Bulgarian translation.
872
d9938630
NC
8732019-01-23 Nick Clifton <nickc@redhat.com>
874
875 * po/fr.po: Updated French translation.
876 * po/pt.po: Updated Portuguese translation.
877
375cd423
NC
8782019-01-21 Nick Clifton <nickc@redhat.com>
879
880 * po/uk.po: Updated Ukranian translation.
881
f48dfe41
NC
8822019-01-19 Nick Clifton <nickc@redhat.com>
883
884 * configure: Regenerate.
885 * binutils/po/binutils.pot.
886
887 * README-how-to-make-a-release: Update description on how to make
888 a branch.
889
f974f26c
NC
8902018-06-24 Nick Clifton <nickc@redhat.com>
891
892 2.32 branch created.
893
baae986a
NC
8942019-01-17 Nick Clifton <nickc@redhat.com>
895
896 * objdump.c (disassemble_section): When disassembling from a
897 symbol only stop at the next symbol if the original symbol was not
898 a function symbol. Otherwise continue disassembling until a new
899 function is reached.
900 * testsuite/binutils-all/objdump.exp: Add tests of extended
901 functionality.
902 * testsuite/binutils-all/disasm.s: New test source file.
903
2dc8dd17
JW
9042019-01-16 Kito Cheng <kito@andestech.com>
905 Nelson Chu <nelson@andestech.com>
906
907 * readelf.c (get_riscv_section_type_name): New function.
908 (get_section_type_name): Add handler for RISC-V.
909 (riscv_attr_tag_t): Declare.
910 (riscv_attr_tag): New.
911 (display_riscv_attribute): New function.
912 (process_attributes): Add handler for RISC-V.
913 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
914 section.
915
12add40e
NC
9162019-01-10 Nick Clifton <nickc@redhat.com>
917
918 PR 23963
919 * objdump.c (sanitize_string): New function. Removes control
920 characters from symbol names.
921 (dump_section_header): Use new function.
922 (objdump_print_symname): Likewise.
923 (objdump_print_addr_with_sym): Likewise.
924 (show_line): Likewise.
925 (disassemble_bytes): Likewise.
926 (disassemble_section): Likewise.
927 (load_specific_debug_section): Likewise.
928 (read_section_stabs): Likewise.
929 (print_section_stabs): Likewise.
930 (dump_section): Likewise.
931 (dump_reloc_set): Likewise.
932 (dump_relocs_in_section): Likewise.
933 (dump_bfd): Likewise.
934 (display_any_bfd): Likewise.
935
28e817cc
NC
9362019-01-09 Nick Clifton <nickc@redhat.com>
937
c0b0b1c2 938 PR 24049
28e817cc
NC
939 * readelf.c (process_archive): Use arch.file_name in error
940 messages until the qualified name is available.
941
3107326d
AP
9422019-01-09 Andrew Paprocki <andrew@ishiboo.com>
943
944 * configure: Regenerate.
945
923c6a75
AM
9462019-01-09 Alan Modra <amodra@gmail.com>
947
948 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
949 unconditionally to tests needing the option rather than via a
950 list of targets.
951
236f4ebe
NC
9522019-01-08 Nick Clifton <nickc@redhat.com>
953
954 PR 24044
955 * cxxfilt.c (hp_symbol_characters): Delete.
956 (main): Remove depcreated demangling styles.
957 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
958 demangling opnames.
959 * testsuite/binutils-all/cxxfilt.exp: Use the
960 --no-strip-underscore option for targets that do prefix their
961 symbols with underscores.
923c6a75 962 Update tests to eliminate those that use gnu v2 encoding.
236f4ebe 963
e3ecd631
TC
9642019-01-08 Tamar Christina <tamar.christina@arm.com>
965
966 PR 24065
967 * testsuite/binutils-all/copy-6.d: New test.
968 * testsuite/binutils-all/objcopy.exp: Use it.
969
171b8e19
AM
9702019-01-08 Alan Modra <amodra@gmail.com>
971
972 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
973 $srcdir/$subdir to source file name if it starts with "./".
974
9752019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
976
f87673e0
YS
977 * readelf.c (get_machine_flags): Add RXv3 output.
978
11fa9f13
NC
9792019-01-04 Nick Clifton <nickc@redhat.com>
980
981 PR 24005
982 * objdump.c (load_specific_debug_section): Check for integer
983 overflow before attempting to allocate contents.
984
cf0ad5bb
NC
9852019-01-04 Nick Clifton <nickc@redhat.com>
986
987 PR 24001
988 * objcopy.c (copy_object): Free dhandle after writing out the
989 debug information.
990 * objdump.c (dump_bfd): Free dhandle after printing out the debug
991 information.
992
11fa9f13 993
82704155
AM
9942019-01-01 Alan Modra <amodra@gmail.com>
995
996 Update year range in copyright notice of all files.
997
d5c04e1b 998For older changes see ChangeLog-2018
3499769a 999\f
d5c04e1b 1000Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
1001
1002Copying and distribution of this file, with or without modification,
1003are permitted in any medium without royalty provided the copyright
1004notice and this notice are preserved.
1005
1006Local Variables:
1007mode: change-log
1008left-margin: 8
1009fill-column: 74
1010version-control: never
1011End:
This page took 0.300748 seconds and 4 git commands to generate.