Add space between program name and file for objcopy/strip/objdump messages
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2019-11-19 Alan Modra <amodra@gmail.com>
2
3 * bucomm.c (bfd_nonfatal_message): Add a space between program
4 name and file.
5
6 2019-11-18 Alan Modra <amodra@gmail.com>
7
8 PR 25198
9 * prdbg.c (tg_start_class_type): Correct scope of idbuf.
10
11 2019-11-08 Alan Modra <amodra@gmail.com>
12
13 PR 25172
14 * objdump.c (usage): Correct --stop-address description.
15
16 2019-11-07 Nick Clifton <nickc@redhat.com>
17
18 * ar.c (open_output_file): Check for filename validity before
19 prefixing with output directory.
20 Display the constructed output filename if in verbose mode.
21 (extract_file): Let open_output_file display the filename.
22
23 2019-11-07 Nick Clifton <nickc@redhat.com>
24
25 * objcopy.c (copy_object): Skip note sections that do not have
26 an output section. Always copy note sections, even if no
27 changes are made.
28
29 2019-11-06 Christian Eggers <ceggers@gmx.de>
30
31 * readelf.c (IN_RANGE): Rename parameter OFF to NELEM. Add
32 comment. Catch potential integer overflow and fix off by one
33 error whilst checking reloc location against section size.
34 (apply_relocations): Use IN_RANGE macro.
35
36 2019-11-04 Fangrui Song <maskray@google.com>
37
38 * objcopy.c (enum option_values): Add OPTION_KEEP_SECTION.
39 (SECTION_CONTEXT_KEEP): Define. Adjust other SECTION_CONTEXT macros.
40 (copy_usage): Describe --keep-section.
41 (strip_usage): Likewise.
42 (copy_main): Handle SECTION_CONTEXT_KEEP.
43 (strip_main): Likewise.
44 (is_strip_section_1): Likewise.
45 * testsuite/binutils-all/objcopy.exp: Add tests.
46 * testsuite/binutils-all/keep-section-1.d: New test driver file.
47 * testsuite/binutils-all/keep-section-2.d: Likewise.
48 * doc/binutils.texi: Document the new feature.
49 * NEWS: Mention the new feature.
50
51 2019-10-20 Palmer Dabbelt <palmer@sifive.com>
52
53 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
54
55 2019-10-30 Fangrui Song <i@maskray.me>
56 Nick Clifton <nickc@redhat.com>
57
58 * ar.c (emum long option numbers): Declare. Use to provide
59 numerical values for long options.
60 (long_options): Add --output option.
61 (usage): Mention the --output option.
62 (open_output_file): New function. Create a filepath for an output
63 file and open it.
64 (extract_file): Use open_output_file().
65 (open_output_file):
66 * testsuite/binutils-all/ar.exp: Add a test of the new feature.
67 * doc/binutils.texi: Document the new feature.
68 * NEWS: Mention the new feature.
69
70 2019-10-26 Alan Modra <amodra@gmail.com>
71
72 * objcopy.c (sort_gnu_build_notes): Correct sort of deleted
73 note2.
74
75 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
76
77 * elfedit.c (elf_x86_feature): Report unknown x86 feature.
78
79 2019-10-25 H.J. Lu <hongjiu.lu@intel.com>
80
81 * elfedit.c (update_gnu_property): Replace BYTE_PUT with byte_put.
82
83 2019-10-25 Nick Clifton <nickc@redhat.com>
84
85 * objcopy.c (struct merged_note_section): New structure. Used to
86 chain together details of mergeable note sections.
87 (is_merged_note_section): Rename to is_megreable_note_section and
88 return true for note sections that use GNU_BUILD_ATTRS_SECTION_NAME
89 as a prefix.
90 (num_bytes): Delete
91 (objcoopy_internal_note): Add padded_namesz field.
92 (DEBUG_MERGE): New macro. Set to non-zero to enable debugging of
93 the note merging code.
94 (gap_exists): Rename to overlaps_or_adjoins and return TRUE for
95 overlapping notes or adjoining notes.
96 (contained_by, is_deleted_note, is_version_note)
97 (compare_gnu_build_notes, sort_gnu_build_notes): New functions.
98 (merge_gnu_build_notes): Rework. Sort notes into a mergeable
99 order first. Merge them. Then sort them into an ascending
100 address order before writing them out.
101 (copy_object): Handle more than one mergeable note section.
102 * testsuite/binutils-all/note-2-32.d: Update for new merging
103 behaviour.
104 * testsuite/binutils-all/note-2-32.s: Likewise.
105 * testsuite/binutils-all/note-2-64.d: Likewise.
106 * testsuite/binutils-all/note-2-64.s: Likewise.
107 * testsuite/binutils-all/note-3-32.d: Likewise.
108 * testsuite/binutils-all/note-3-32.s: Likewise.
109 * testsuite/binutils-all/note-3-64.d: Likewise.
110 * testsuite/binutils-all/note-3-64.s: Likewise.
111 * testsuite/binutils-all/note-4-32.d: Likewise.
112 * testsuite/binutils-all/note-4-32.s: Likewise.
113 * testsuite/binutils-all/note-4-64.d: Likewise.
114 * testsuite/binutils-all/note-4-64.s: Likewise.
115 * testsuite/binutils-all/note-6-32.s: New test source file.
116 * testsuite/binutils-all/note-6-64.s: New test source file.
117 * testsuite/binutils-all/note-6-32.d: New test driver file.
118 * testsuite/binutils-all/note-6-64.d: New test driver file.
119 * testsuite/binutils-all/objcopy.exp: Run the new test.
120
121 2019-10-25 Alan Modra <amodra@gmail.com>
122
123 * readelf.c (process_program_headers): Check PT_PHDR p_offset
124 as well as p_vaddr. Use p_filesz, not p_memsz, in vaddr test.
125
126 2019-10-21 Alan Modra <amodra@gmail.com>
127
128 PR 452
129 PR 25104
130 * ar.c (write_archive): Set BFD_ARCHIVE_FULL_PATH.
131 * doc/binutils.texi (extract from archive): Mention
132 restrictions when extracting from archives with full paths.
133 (ar P): Update to current P support.
134 (ar -X32_64): Fix spelling.
135
136 2019-10-14 Alan Modra <amodra@gmail.com>
137
138 * objcopy.c (compare_section_lma): Correct comment. Dereference
139 section pointer earlier and lose unnecessary const. Style fixes.
140 Add final sort by id.
141
142 2019-10-13 Nick Clifton <nickc@redhat.com>
143
144 * README-how-to-make-a-release: Add a note to reset the
145 development flag back to true after making a point release.
146
147 2019-10-12 Nick Clifton <nickc@redhat.com>
148
149 * README-how-to-make-a-release: Tweak a few sections based on the
150 results of the 2.33.1 release.
151
152 2019-10-11 Nick Clifton <nickc@redhat.com>
153
154 * po/zh_TW.po: Updated Chinese (traditional) translation.
155
156 2019-10-09 Alan Modra <amodra@gmail.com>
157
158 PR 25079
159 * ar.c (decode_options): Don't try for command options if
160 write_armap or mri_mode is selected.
161
162 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
163
164 * readelf.c (display_msp430_gnu_attribute): New.
165 (process_arch_specific): Use msp430 specific handler for GNU
166 attributes.
167
168 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
169
170 * objdump.c (main): Fix tabdamage.
171 * readelf.c (CTF_DUMP): Likewise.
172 (options): Likewise.
173 (dump_section_as_ctf): Likewise.
174
175 2019-08-03 Nick Alcock <nick.alcock@oracle.com>
176
177 * objdump.c (dump_ctf): Use the default CTF archive member as the
178 parent even when no parent section is specified.
179 (dump_ctf_archive_member): Only import from the parent
180 if this is not the default ".ctf" member.
181
182 2019-09-23 Nick Alcock <nick.alcock@oracle.com>
183
184 * Makefile.am (LIBCTF): Mention the .la file.
185 (LIBCTF_NOBFD): New.
186 (readelf_DEPENDENCIES): Use it.
187 (readelf_LDADD): Likewise.
188 * Makefile.in: Regenerated.
189
190 2019-07-13 Nick Alcock <nick.alcock@oracle.com>
191
192 * readelf.c (dump_ctf_symtab_name): Give default value.
193 (dump_ctf_strtab_name): Likewise.
194 (dump_section_as_ctf): Allow for the null string.
195
196 2019-07-08 Nick Alcock <nick.alcock@oracle.com>
197
198 * objdump.c (dump_ctf_archive_member): Dump the CTF header.
199 * readelf.c (dump_section_as_ctf): Likewise.
200
201 2019-10-02 Niklas Gürtler <profclonk@gmail.com>
202
203 PR 24942
204 * objcopy.c (copy_usage): Update description of
205 --set-section-alignment.
206 (copy_main): Interpret numeric argument of --set-section-alignment
207 as a byte alignment, not a power of two alignment.
208 * doc/binutils.texi: Update description of
209 --set-section-alignment.
210 * testsuite/binutils-all/set-section-alignment.d: New test.
211 * testsuite/binutils-all/objcopy.exp: Run the new test.
212
213 2019-09-30 Alan Modra <amodra@gmail.com>
214
215 PR 25046
216 * readelf.c (process_program_headers): Clear dynamic_addr and
217 dynamic_size earlier.
218
219 2019-09-24 Alan Modra <amodra@gmail.com>
220
221 PR 25031
222 * nm.c (print_format_string): New.
223 (get_print_format): Delete saved_format. Move earlier.
224 (set_print_width): Call get_print_format.
225 (print_value): Use print_format_string.
226
227 2019-09-23 Alan Modra <amodra@gmail.com>
228
229 * dlltool.c: Include coff-bfd.h.
230
231 2019-09-23 Alan Modra <amodra@gmail.com>
232
233 PR 25018
234 * dwarf.c (get_type_signedness): Delete ineffective pointer
235 comparison check. Properly range check uvalue offset on
236 recursive call.
237 (read_and_display_attr_value): Range check uvalue offset before
238 calling get_type_signedness.
239
240 2019-09-20 Alan Modra <amodra@gmail.com>
241
242 * ar.c (write_archive): Use bfd_set_thin_archive.
243
244 2019-09-18 Tamar Christina <tamar.christina@arm.com>
245
246 * testsuite/binutils-all/objdump.exp (objump -S): Update testcases.
247
248 2019-09-18 Alan Modra <amodra@gmail.com>
249
250 * addr2line.c, * bucomm.c, * coffgrok.c, * dlltool.c, * nm.c,
251 * objcopy.c, * objdump.c, * od-elf32_avr.c, * od-macho.c,
252 * od-xcoff.c, * prdbg.c, * rdcoff.c, * rddbg.c, * rescoff.c,
253 * resres.c, * size.c, * srconv.c, * strings.c, * windmc.c: Update
254 throughout for bfd section macro and function changes.
255
256 2019-09-18 Alan Modra <amodra@gmail.com>
257
258 * nm.c: Update bfd_get_section to bfd_asymbol_section throughout.
259 * objcopy.c: Likewise.
260 * objdump.c: Likewise.
261 * rdcoff.c: Likewise.
262 * objcopy.c (create_new_symbol): Use bfd_set_asymbol_name.
263 (filter_symbols): Likewise.
264
265 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
266
267 * doc/Makefile.am (MOSTLYCLEANFILES): Clean all man pages,
268 cxxfilt.man and binutils.info.
269 (MAINTAINERCLEANFILES): Remove.
270 * doc/Makefile.in: Re-generate.
271
272 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
273
274 * doc/Makefile.am: Remove references to binutils_TEXINFOS.
275 * doc/Makefile.in: Re-generate.
276
277 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * doc/Makefile.am (install-data-loca): Remove target.
280 (DISTCLEANFILES): Remove variable.
281 * doc/Makefile.in: Re-generate.
282
283 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * Makefile.in: Re-generate.
286 * configure: Re-generate.
287 * doc/Makefile.in: Re-generate.
288
289 2019-09-16 Phil Blundell <pb@pbcl.net>
290
291 * Makefile.in, configure. doc/Makefile.in: Regenerated.
292
293 2019-09-11 Tom Tromey <tom@tromey.com>
294
295 * objcopy.c (copy_archive): Update.
296 * bucomm.h (make_tempname, make_tempdir): Make argument const.
297 * bucomm.c (make_tempname, make_tempdir): Make argument const.
298
299 2019-09-11 Alan Modra <amodra@gmail.com>
300
301 PR 24907
302 * objdump.c (disassemble_bytes): Adjust code to avoid overlong
303 lines. Correct max_reloc_offset_into_insn test.
304
305 2019-09-10 Nick Clifton <nickc@redhat.com>
306
307 PR 24907
308 * objdump.c (null_print): New function.
309 (disassemble_bytes): Delete previous_octets local and replace with
310 a test of the max_reloc_offset_into_insn field of the
311 bfd_arch_info structure. If a reloc is a potential match for the
312 next insn, then perform a dummy disassembly in order to calculate
313 its real length.
314
315 2019-09-09 Phil Blundell <pb@pbcl.net>
316
317 binutils 2.33 branch created.
318
319 2019-09-06 Alan Modra <amodra@gmail.com>
320
321 * nm.c (print_object_filename_bsd, print_object_filename_sysv),
322 (print_object_filename_posix, print_archive_filename_bsd),
323 (print_archive_filename_sysv, print_archive_filename_posix),
324 (print_archive_member_bsd, print_archive_member_sysv),
325 (print_archive_member_posix): Constify parameter.
326 (struct output_fns <print_object_filename, print_archive_filename>),
327 (<print_archive_member>): Likewise.
328 * objcopy.c (copy_archive): Add cast for make_tempdir.
329
330 2019-08-29 Alan Modra <amodra@gmail.com>
331
332 * dwarf.c (check_uvalue): Remove unnecessary pointer checks.
333
334 2019-08-28 Niklas Gürtler <profclonk@gmail.com>
335
336 PR 24942
337 * objcopy.c (SECTION_CONTEXT_SET_ALIGNMENT): New constant.
338 (struct section_list): Add alignment field.
339 (command_line_switch): Add OPTION_SET_SECTION_ALIGNMENT.
340 (copy_options): Add --set-section-alignment.
341 (copy_usage): Describe --set-section-alignment.
342 (find_section_list): Initialise the alignment field.
343 (setup_section): Handle the alignment field.
344 (copy_main): Handle OPTION_SET_SECTION_ALIGNMENT.
345 * doc/binutils.texi: Document the new feature.
346 * NEWS: Mention the new feature.
347
348 2019-08-28 Nick Clifton <nickc@redhat.com>
349
350 PR 24931
351 * objdump.c (source_comment): New static variable.
352 (option_values): Add OPTION_SOURCE_COMMENT.
353 (long_opions): Add --source-comment.
354 (print_line): If source comment is set, use it as a prefix to the
355 source code line.
356 (main): Handle OPTION_SOURCE_COMMENT.
357 * doc/binutils.texi: Document the new option.
358 * NEWS: Mention the new feature.
359 * testsuite/binutils-all/objdump.exp (test_objdump_S): Add tests
360 of the -S and --source-comment options.
361
362 2019-08-27 Nick Clifton <nickc@redhat.com>
363
364 PR 24510
365 * dwarf.c (MAX_CU_NESTING): New constant.
366 (level_type_signed): New static array.
367 (skip_attr_bytes): New function.
368 (get_type_signedness): New function.
369 (read_and_print_leb128): New function.
370 (display_discr_list): New function.
371 (read_and_display_attr_value): Add start parameter.
372 Use new functions when handling DW_AT_type and DW_AT_discr_list.
373 (read_and_display_attr): Add start parameter. Pass to
374 read_and_display_attr_value.
375 (process_debug_info): Update call to read_and_display_attr.
376 (display_formatted_table): Likewise.
377 (display_debug_lines_decoded): Likewise. Also add start
378 parameter.
379 (display_debug_lines): Likewise.
380 * testsuite/binutils-all/dwarf-attributes.S: Update discrimination
381 lists.
382 * testsuite/binutils-all/dwarf-attributes.W: Update expected
383 output.
384
385 2019-08-26 Alan Modra <amodra@gmail.com>
386
387 PR 24938
388 * debug.c (debug_write_type): Call empty_type for NULL type here..
389 (debug_write_type): ..rather than in just one case here.
390
391 2019-08-23 Nick Clifton <nickc@redhat.com>
392
393 PR 24829
394 * dwarf.c (check_uvalue): New function. Ensures that a block's
395 size is valid.
396 (read_and_display_attr_value): Use check_value when processsing
397 DW_FORM_block<n> attributes.
398
399 2019-08-22 Nick Clifton <nickc@redhat.com>
400
401 PR 24921
402 * dwarf.c (process_cu_tu_index): Handle the case where a table
403 does not have any columns.
404
405 2019-08-19 Alan Modra <amodra@gmail.com>
406
407 PR 24898
408 * dwarf.c (display_debug_frames): Use the read_cie check and error
409 for augmentation data length.
410
411 2019-08-17 Alan Modra <amodra@gmail.com>
412
413 PR 24911
414 * dwarf.c (comp_addr_base): Dereference args.
415
416 2019-08-16 Alan Modra <amodra@gmail.com>
417
418 PR 24909
419 PR 23499
420 * readelf.c (get_symbol_version_string): Set sym_info earlier.
421
422 2019-08-15 Nick Clifton <nickc@redhat.com>
423
424 PR 24767
425 * doc/binutils.texi (nm): Document the 'n' symbol type.
426
427 2019-08-15 Christophe Vidal <support@krizalys.com>
428
429 * docs/binutils.texi: Fixed notice message disassembler options
430 section of the man page.
431
432 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
433
434 * readelf.c (get_mips_dynamic_type): Return MIPS_XHASH dynamic type.
435 (get_mips_section_type_name): Return MI{S_XHASH name string.
436 (dynamic_section_mips_val): Initialize the .MIPS.xhash dynamic
437 info.
438 (process_symbol_table): Initialize the .MIPS.xhash section
439 pointer. Adjust the readelf output to support the new section.
440 (process_object): Set the .MIPS.xhash dynamic info to zero.
441
442 2019-08-09 Tamar Christina <tamar.christina@arm.com>
443
444 * testsuite/binutils-all/arm/in-order-all.d: Skip on pe, wince, coff.
445 * testsuite/binutils-all/arm/in-order.d: Likewise.
446 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
447 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
448
449 2019-08-08 Nick Clifton <nickc@redhat.com>
450
451 PR 24887
452 * readelf.c (process_notes_at): Left justify the "Data size"
453 column heading.
454 * testsuite/binutils-all/i386/empty.d: Adjust for new output format.
455 * testsuite/binutils-all/i386/ibt.d: Likewise.
456 * testsuite/binutils-all/i386/pr21231a.d: Likewise.
457 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
458 * testsuite/binutils-all/i386/shstk.d: Likewise.
459 * testsuite/binutils-all/note-2-32.d: Likewise.
460 * testsuite/binutils-all/note-2-64.d: Likewise.
461 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
462 * testsuite/binutils-all/x86-64/empty.d: Likewise.
463 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
464 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
465 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
466 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
467 * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
468 * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
469 * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
470 * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
471 * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
472 * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
473 * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
474 * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
475 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
476 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
477
478 2019-08-08 Nick Clifton <nickc@redhat.com>
479
480 * testsuite/gentestdlls.c (main): Move declaration of loop
481 variable outside of the for() statement.
482
483 2019-08-08 Jordan Rupprecht <rupprecht@google.com>
484
485 * readelf.c (process_note): Mask unknown description data bytes.
486
487 2019-08-08 Alan Modra <amodra@gmail.com>
488
489 * readelf.c (get_data): Improve overflow checks.
490
491 2019-08-07 Nick Clifton <nickc@redhat.com>
492
493 PR 24777
494 * doc/binutils.texi: Ensure consistent formating of title strings
495 for man pages. Extend the title of the size man page to be more
496 informative.
497
498 2019-08-07 Omair Majid <omajid@redhat.com>
499
500 * testsuite/binutils-all/objdump.exp
501 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
502 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
503 introduced machine types.
504 * testsuite/gentestdlls.c (write_simple_dll): New function.
505 (main): Generate simple and Linux-specific variants of pei-i386
506 and pei-x86-64 files so both can be used by tests.
507
508 2019-08-07 Alan Modra <amodra@gmail.com>
509
510 PR 24876
511 * readelf.c (dump_ia64_unwind): Check that buffer is large
512 enough for "stamp" before reading.
513
514 2019-08-05 Nick Clifton <nickc@redhat.com>
515
516 PR 24874
517 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
518 note being a version note.
519 Remove spurious debugging fprintf.
520
521 2019-08-05 Nick Clifton <nickc@redhat.com>
522
523 PR 24829
524 * readelf.c (apply_relocations): Catch potential integer overflow
525 whilst checking reloc location against section size.
526
527 2019-08-02 Alan Modra <amodra@gmail.com>
528
529 PR 24871
530 * readelf.c (ABSADDR): Delete.
531 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
532
533 2019-07-29 Martin Liska <mliska@suse.cz>
534
535 PR 24768
536 * nm.c (filter_symbols): Set report_plugin_err if
537 error is reported.
538 (display_rel_file): Report error for a missing LTO plugin.
539
540 2019-07-26 Alan Modra <amodra@gmail.com>
541
542 PR 24798
543 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
544 systems by casting ncols and nslots expressions to size_t. Display
545 number of columns and slots before giving up due to buffer overflow.
546 Use %u to display unsigned ints. Perform more pointer wrap tests.
547
548 2019-07-25 Tom Tromey <tromey@adacore.com>
549
550 PR 24809
551 * dwarf.c (display_debug_names): Display the contents of the
552 augmentation string, if it is printable.
553
554 2019-07-25 Nick Clifton <nickc@redhat.com>
555
556 PR 24837
557 * readelf.c (process_mips_specific): Check for buffer overflow
558 before reading reginfo information.
559
560 2019-07-24 Nick Clifton <nickc@redhat.com>
561
562 PR 13256
563 * ar.c (decode_options): Restart option scanning if no operation
564 is detected and argument remain to be scanned.
565
566 2019-07-23 Nick Clifton <nickc@redhat.com>
567
568 PR 24818
569 * objdump.c (is_relocateable): Delete.
570 (load_specific_debug_section): Test the abfd for relocations
571 directly, rather than relying upon is_relocateable.
572 (dump_dwarf): Delete initlialization of is_relocateable.
573
574 2019-07-23 Alan Modra <amodra@gmail.com>
575
576 * readelf.c (get_parisc_segment_type): Split off hpux entries..
577 (get_ia64_segment_type): ..and these..
578 (get_hpux_segment_type): ..to here.
579 (get_segment_type): Condition GNU_MBIND on osabi. Use
580 get_hpux_segment_type.
581 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
582 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
583
584 2019-07-23 Alan Modra <amodra@gmail.com>
585
586 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
587 file used to set this variable.
588
589 2019-07-23 Omar Majid <omajid@redhat.com>
590
591 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
592 (GENTESTDLLSPROG): Define.
593 (TEST_PROGS): Add GENTESTDLLSPROG.
594 * Makefile.in: Regenerate.
595 * testsuite/binutils-all/objdump.exp
596 (test_objdump_dotnet_assemblies): New proc.
597 Run the new proc.
598 * testsuite/gentestdlls.c: New source file.
599
600 2019-06-28 Nick Clifton <nickc@redhat.com>
601
602 PR 24707
603 * objdump.c (slurp_symtab): Fail with a helpful error message if
604 the symbol table is too large. Skip this check for MMO format
605 files.
606
607 2019-06-26 Nick Clifton <nickc@redhat.com>
608
609 PR 24703
610 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
611 indicate this in the output.
612 (bfd_nonfatal_message): Likewise.
613
614 2019-06-25 Jan Beulich <jbeulich@suse.com>
615
616 * readelf.c (dump_ctf_indent_lines): Rename local variable
617 "spaces" to "blanks".
618
619 2019-06-25 Jan Beulich <jbeulich@suse.com>
620
621 * objdump.c (dump_ctf_indent_lines): Rename local variable
622 "spaces" to "blanks".
623
624 2019-06-14 Alan Modra <amodra@gmail.com>
625
626 * Makefile.in: Regenerate.
627 * aclocal.m4: Regenerate.
628 * doc/Makefile.in: Regenerate.
629
630 2019-06-12 Christos Zoulas <christos@zoulas.com>
631
632 PR 24663
633 * readelf.c (process_netbsd_elf_note): Add support for
634 NT_NETBSD_PAX.
635 (process_note): Add support for PaX notes.
636
637 2019-06-12 Christos Zoulas <christos@zoulas.com>
638
639 PR 24665
640 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
641 core notes.
642
643 2019-06-12 Christos Zoulas <christos@zoulas.com>
644
645 PR 24664
646 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
647 auxv notes.
648
649 2019-06-11 Christos Zoulas <christos@zoulas.com>
650
651 PR 24662
652 * readelf.c (get_alpha_symbol_other): New function.
653 (get_symbol_other): Use for Alpha symbols.
654 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
655
656 2019-06-11 Christos Zoulas <christos@zoulas.com>
657
658 PR 24661
659 * readelf.c (decode_arm_unwind): Ensure that the local variable
660 'addr' is always initialised.
661
662 2019-06-10 Christos Zoulas <christos@zoulas.com>
663
664 PR 24651
665 * strings.c (print_strings): Use %u to print unsigned values in
666 decimal.
667
668 2019-06-10 Christos Zoulas <christos@zoulas.com>
669
670 PR 24649
671 * arsup.c (ar_open): Use asprintf in place of xmalloc and
672 sprintf.
673
674 2019-06-03 Nick Clifton <nickc@redhat.com>
675
676 Revert:
677 2019-05-29 Nick Clifton <nickc@redhat.com>
678
679 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
680 targets.
681 (HAVE_LIBCTF): Define if libctf support is available.
682 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
683 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
684 defined.
685 * readelf.c: Likewise.
686 * configure: Regenerate.
687 * Makefile.in: Regenerate.
688 * config.in: Regenerate.
689
690 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
691
692 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
693 cts_offset.
694 * readelf.c (shdr_to_ctf_sect): Likewise.
695
696 2019-05-30 Nick Clifton <nickc@redhat.com>
697
698 PR 24627
699 * readelf.c (process_version_sections): Add 0x prefix to address
700 display. Correct indentation.
701
702 2019-05-30 Alan Modra <amodra@gmail.com>
703
704 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
705 s12z to targets not supporting this feature.
706
707 2019-05-30 Alan Modra <amodra@gmail.com>
708
709 * testsuite/lib/binutils-common.exp (run_dump_test): Support
710 tcl procedures for xfail args.
711
712 2019-05-29 Nick Clifton <nickc@redhat.com>
713
714 * README-how-to-make-a-release: Add libctf to list of directories
715 that need updates in their ChangeLogs.
716
717 2019-05-29 Nick Clifton <nickc@redhat.com>
718
719 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
720 targets.
721 (HAVE_LIBCTF): Define if libctf support is available.
722 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
723 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
724 defined.
725 * readelf.c: Likewise.
726 * configure: Regenerate.
727 * Makefile.in: Regenerate.
728 * config.in: Regenerate.
729
730 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
731
732 * MAINTAINERS: Add myself as CTF maintainer.
733
734 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
735
736 * objdump.c (ctf-api.h): New include.
737 (dump_ctf_section_info): New variable.
738 (dump_ctf_section_name): Likewise.
739 (usage): Describe new options.
740 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
741 (main): Use them to add --ctf and --ctf-parent.
742 (read_section_stabs): Add new parameter, entsize_ptr.
743 (find_stabs_section): Adjust accordingly.
744 (make_ctfsect): New.
745 (dump_ctf_indent_lines): New.
746 (dump_ctf_archive_member): New.
747 (dump_ctf): New.
748 (dump_bfd): Call it. Free resources afterwards.
749 * readelf.c (ctf-api.h): New include.
750 (CTF_DUMP): New.
751 (static bfd_boolean do_ctf): Likewise.
752 (dump_ctf_parent_name): Likewise.
753 (dump_ctf_symtab_name): Likewise.
754 (dump_ctf_strtab_name): Likewise.
755 (OPTION_CTF_DUMP): Likewise.
756 (OPTION_CTF_PARENT): Likewise.
757 (OPTION_CTF_SYMBOLS): Likewise.
758 (OPTION_CTF_STRINGS): Likewise.
759 (options): Add them.
760 (usage): Likewise.
761 (parse_args): Handle the new options, requesting CTF_DUMP.
762 (process_section_contents): Handle CTF_DUMP.
763 (shdr_to_ctf_sect): New.
764 (dump_ctf_indent_lines): New.
765 (dump_section_as_ctf): New.
766 (main): Free resources.
767 * Makefile.am (LIBCTF): New variable.
768 (objdump_DEPENDENCIES): Use it.
769 (readelf_DEPENDENCIES): Likewise.
770 (objdump_LDADD): Likewise.
771 (readelf_LDADD): Likewise.
772 * aclocal.m4: Regenerated.
773 * Makefile.in: Likewise.
774
775 * doc/binutils.texi (objdump): Document the new options.
776 (readelf): Likewise.
777 * doc/ctf.options.texi: New.
778 * doc/Makefile.in: Regenerated.
779 * NEWS: Mention the new feature.
780
781 2019-05-27 Alan Modra <amodra@gmail.com>
782
783 * readelf.c (process_section_groups): Continue processing groups
784 when sh_entsize exceeds group size.
785
786 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
787
788 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
789 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
790 (get_symbol_other): Call get_aarch64_symbol_other.
791
792 2019-05-24 Alan Modra <amodra@gmail.com>
793
794 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
795
796 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
797
798 * MAINTAINERS: Add myself as the maintainer for BPF.
799
800 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
801
802 * readelf.c: Include elf/bpf.h.
803 (guess_is_rela): Hanle EM_BPF.
804 (dump_relocations): Likewise.
805 (is_32bit_abs_reloc): Likewise.
806 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
807 ELF targets.
808
809 2019-05-21 Tamar Christina <tamar.christina@arm.com>
810
811 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
812 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
813 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
814
815 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
816
817 PR 14798
818 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
819 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
820
821 2019-05-20 Nick Clifton <nickc@redhat.com>
822
823 * po/ca.po: Updated Catalan translation.
824
825 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
826
827 * NEWS: Mention Armv8.1-M Mainline and MVE.
828
829 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
830
831 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
832 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
833
834 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
835
836 PR 19921
837 * objcopy.c: Add new option --verilog-data-width. Use it to set
838 the value of VerilogDataWidth.
839 * doc/binutils.texi: Document the new option.
840 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
841 * testsuite/binutils-all/verilog-1.hex: New file.
842 * testsuite/binutils-all/verilog-2.hex: New file.
843 * testsuite/binutils-all/verilog-4.hex: New file.
844 * testsuite/binutils-all/verilog-8.hex: New file.
845 * NEWS: Mention the new feature.
846
847 2019-05-10 Alan Modra <amodra@gmail.com>
848
849 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
850 (test_objdump_content_limited): Add text arg, use in place of .text.
851 (bintest_signed.o): Call get_standard_section_names for name of
852 text section.
853
854 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
855
856 * objdump.c (sign_extend_address): New function.
857 (dump_bfd): Sign-extend user-specified start/stop addresses
858 for targets that need it.
859 * testsuite/binutils-all/objdump.exp: Add tests for objdump
860 with start and stop addresses in higher address ranges.
861
862 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
863
864 * testsuite/binutils-all/objdump.exp: Correct executable
865 spelling.
866 * testsuite/binutils-all/compress.exp: Likewise.
867
868 2019-05-01 Nick Clifton <nickc@redhat.com>
869
870 PR 24507
871 * nm.c: (print_format): New variable.
872 (value_format_32bit, value_format_64bit): Delete.
873 (set_print_radix): Remove code to alter value_format strings.
874 (set_output_format): Record chosen format in print_format.
875 (get_print_format): New function - constructs a printf formatting
876 string according to the requirements of size, radix, and output
877 format.
878 (print_value): Use get_print_format.
879 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
880 and "nm -t d".
881
882 2019-04-30 Alan Modra <amodra@gmail.com>
883
884 * wrstabs.c (stab_start_class_type): Add assert to work around
885 gcc9 warning. Tidy.
886
887 2019-04-24 Nick Clifton <nickc@redhat.com>
888
889 * objcopy.c (strip_main): Do not enable note merging by default if
890 just stripping debug or dwo information.
891 * doc/binutils.texi (strip): Update documentation.
892
893 2019-04-23 Nick Clifton <nickc@redhat.com>
894
895 * README-how-to-make-a-release: Add note to update the symbolic
896 link from "docs" to "docs-2.x" on the sourceware website.
897
898 2019-04-16 Alan Modra <amodra@gmail.com>
899
900 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
901 * testsuite/binutils-all/copy-3.d: Likewise.
902
903 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
904
905 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
906
907 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
908
909 * readelf.c (decode_x86_isa): Handle
910 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
911 * testsuite/binutils-all/i386/pr21231b.d: Updated.
912 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
913
914 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
915
916 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
917
918 2019-03-26 Tamar Christina <tamar.christina@arm.com>
919
920 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
921 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
922 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
923 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
924 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
925 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
926 * testsuite/binutils-all/arm/in-order.d: Likewise.
927 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
928 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
929 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
930
931 2019-03-26 Nick Clifton <nickc@redhat.com>
932
933 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
934 FRV and MEP.
935
936 2019-03-26 Alan Modra <amodra@gmail.com>
937
938 * objdump.c (dump_relocs_in_section): Warning fix.
939
940 2019-03-25 Tamar Christina <tamar.christina@arm.com>
941
942 * testsuite/binutils-all/arm/in-order-all.d: New test.
943 * testsuite/binutils-all/arm/in-order.d: New test.
944 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
945 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
946 * testsuite/binutils-all/arm/out-of-order.T: New test.
947 * testsuite/binutils-all/arm/out-of-order.d: New test.
948 * testsuite/binutils-all/arm/out-of-order.s: New test.
949
950
951 2019-03-25 Tamar Christina <tamar.christina@arm.com>
952
953 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
954 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
955 * testsuite/binutils-all/aarch64/out-of-order.d:
956
957 2019-03-25 Tamar Christina <tamar.christina@arm.com>
958
959 * testsuite/binutils-all/aarch64/in-order.d: New test.
960 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
961 well.
962
963 2019-03-25 Tamar Christina <tamar.christina@arm.com>
964
965 * objdump.c (disassemble_bytes): Pass stop_offset.
966 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
967 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
968 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
969
970 2019-03-19 Nick Clifton <nickc@redhat.com>
971
972 PR 24360
973 * objdump.c (load_specific_debug_section): Check that the amount
974 of memory to be allocated matches the size of the section.
975
976 2019-03-13 Sudakshina Das <sudi.das@arm.com>
977
978 * readelf.c (get_aarch64_dynamic_type): Add case for
979 DT_AARCH64_PAC_PLT.
980 (dynamic_section_aarch64_val): Likewise.
981
982 2019-03-13 Sudakshina Das <sudi.das@arm.com>
983 Szabolcs Nagy <szabolcs.nagy@arm.com>
984
985 * readelf.c (get_aarch64_dynamic_type): New.
986 (get_dynamic_type): Use above for EM_AARCH64.
987 (dynamic_section_aarch64_val): New.
988 (process_dynamic_section): Use above for EM_AARCH64.
989
990 2019-03-13 Sudakshina Das <sudi.das@arm.com>
991
992 * readelf.c (decode_aarch64_feature_1_and): New.
993 (print_gnu_property_note): Add case for AArch64 gnu notes.
994
995 2019-03-12 Alan Modra <amodra@gmail.com>
996
997 * objdump.c (load_specific_debug_section): Don't compare section
998 size against file size.
999 (dump_relocs_in_section): Don't compare reloc size against file size.
1000 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
1001
1002 2019-03-05 Nick Clifton <nickc@redhat.com>
1003
1004 PR 24295
1005 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
1006
1007 2019-03-05 Nick Clifton <nickc@redhat.com>
1008
1009 * po/sv.po: Updated Swedish translation.
1010
1011 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
1012
1013 PR 24287
1014 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
1015 of "lmap" with a "foreach" loop.
1016
1017 2019-03-04 Nick Clifton <nickc@redhat.com>
1018
1019 PR 24281
1020 * objcopy.c (copy_archive): Do not copy thin archives.
1021
1022 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
1023
1024 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
1025
1026 2019-02-25 Nick Clifton <nickc@redhat.com>
1027
1028 * objdump.c (sym_ok): New function.
1029 (find_symbol_for_address): Use new function.
1030 (disassemble_section): Compare sections by name, not pointer.
1031 (dump_dwarf): Move code to initialise byte_get pointer and iterate
1032 over separate debug files from here to ...
1033 (dump_bfd): ... here. Add parameter indicating that a separate
1034 debug info file is being dumped. For main file, pull in the
1035 symbol tables from all separate debug info files.
1036 (display_object): Update call to dump_bfd.
1037 * doc/binutils.texi: Document extened behaviour of the
1038 --dwarf=follow-links option.
1039 * NEWS: Mention this new feature.
1040 * testsuite/binutils-all/objdump.WK2: Update expected output.
1041 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
1042 options and dump file parameters.
1043 Add extra test.
1044 * testsuite/binutils-all/objdump.WK3: New file.
1045 * testsuite/binutils-all/readelf.exp: Change expected output for
1046 readelf -wKis test.
1047 * testsuite/binutils-all/readelf.wKis: New file.
1048
1049 2019-02-22 Nick Clifton <nickc@redhat.com>
1050
1051 PR 23843
1052 * dwarf.h (struct separate_info): New structure for containing
1053 information on separate debug info files.
1054 * dwarf.c (struct dwo_info): New structure for containing dwo
1055 links.
1056 (first_dwo_info): Chain of dwo_info structures.
1057 (first_separate_file): Chain of separate_info structures.
1058 (separate_debug_file, separate_debug_filename): Delete.
1059 (fetch_alt_indirect_string): Scan all separate debug info files
1060 for the requested string.
1061 (add_dwo_info): New function.
1062 (add_dwo_name): New function.
1063 (add_dwo_dir): New function.
1064 (add_dwo_id: New function.
1065 (free_dwo_info): New function.
1066 (read_and_display_attr_value): Store DWO data using the new
1067 functions.
1068 (load_debug_section_with_follow): If necessary, scan the list of
1069 separate debug info files for the requested section.
1070 (add_separate_debug_file): New function.
1071 (load_separate_debug_info): Call add_separate_debug_file to store
1072 the information on the newly loaded file.
1073 (load_dwo_file): Likewise.
1074 (load_separate_debif_file): Rename to load_separate_debug_files.
1075 Change return type to boolean. If following links then attempt to
1076 load all separate debug info files, not just the first one.
1077 (free_debug_memory): Release memory in dwo_info and separate_info
1078 chains.
1079 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
1080 * readelf.c (process_object): Likewise.
1081 * doc/debug.options.texi: Update descriptions of links and
1082 follow-links options.
1083 * testsuite/binutils-all/objdump.WK2: Update expected output.
1084 * testsuite/binutils-all/readelf.k2: Likewise.
1085 * NEWS: Announce the new feature.
1086
1087 2019-02-21 Nick Clifton <nickc@redhat.com>
1088
1089 PR 24247
1090 * unwind-ia64.c: Include sysdep.h.
1091 (unw_decode_x1): Check current pointer against end pointer before
1092 accessing memory.
1093 (unw_decode_x2): Likewise.
1094 (unw_decode_x3): Likewise.
1095 (unw_decode_x4): Likewise.
1096 (unw_decode_r2): Likewise.
1097 (unw_decode_p2_p5): Likewise.
1098 (unw_decode_p7_p10): Likewise.
1099 (unw_decode): Likewise.
1100
1101 2019-02-20 Nick Clifton <nickc@redhat.com>
1102
1103 PR 24246
1104 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
1105
1106 PR 24244
1107 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
1108 prevent walking off the end of the buffer.
1109 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
1110 (unw_decode_x2): Likewise.
1111 (unw_decode_x3): Likewise.
1112 (unw_decode_x4): Likewise.
1113 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
1114 (unw_decode_r3): Likewise.
1115 (unw_decode_p7_p10): Likewise.
1116 (unw_decode_b2): Likewise.
1117 (unw_decode_b3_x4): Likewise.
1118
1119 PR 24243
1120 * readelf.c (process_mips_specific): Check for an options section
1121 that is too small to even contain a single option.
1122
1123 PR 24242
1124 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
1125
1126 2019-02-20 Alan Modra <amodra@gmail.com>
1127
1128 PR 24132
1129 PR 24138
1130 * readelf.c (get_data): Avoid possibility of overflow when
1131 checking for a read that may extend past end of file.
1132 (process_program_headers): Likewise.
1133
1134 2019-02-20 Alan Modra <amodra@gmail.com>
1135
1136 PR 24233
1137 * objdump.c (dump_bfd_private_header): Print warning if
1138 bfd_print_private_bfd_data returns false.
1139
1140 2019-02-12 Nick Clifton <nickc@redhat.com>
1141
1142 PR 23440
1143 * README-how-to-make-a-release: Use git clean to delete spurious
1144 files from the local source repository.
1145
1146 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * size.c (berkeley_format): Delete.
1149 (enum output_format): New enum.
1150 (selected_output_format): New variable.
1151 (usage): Update to mention GNU format.
1152 (main): Update to extract options, and select format as needed.
1153 Handle GNU format where needed.
1154 (berkeley_sum): Renamed to...
1155 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
1156 (berkeley_format): Renamed to...
1157 (berkeley_or_gnu_format): ...this, and updated to handle both
1158 formats.
1159 (print_sizes): Handle GNU format.
1160 * doc/binutils.texi (size): Document new GNU format.
1161 * testsuite/binutils-all/size.exp: Add test of extended
1162 functionality.
1163 * NEWS: Mention new functionality.
1164
1165 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1166
1167 * doc/binutils.texi (size): Update example output for Berkeley
1168 format output.
1169
1170 2019-02-07 Nick Clifton <nickc@redhat.com>
1171
1172 * README-how-to-make-a-release: Add a note about updating the
1173 obsolete targets in the bfd/config.bfd file.
1174
1175 2019-02-04 Nick Clifton <nickc@redhat.com>
1176
1177 * README-how-to-make-a-release: Add more notes on making a release.
1178
1179 2019-01-25 Nick Clifton <nickc@redhat.com>
1180
1181 PR 24131
1182 * readelf.c (process_notes_at): Prevent an illegal memory access
1183 when the note's namesize is zero.
1184 (decode_tic6x_unwind_bytecode): Add code to handle the case where
1185 no registers are specified in a frame pop instruction.
1186
1187 2019-01-25 Nick Clifton <nickc@redhat.com>
1188
1189 * po/bg.po: Updated Bulgarian translation.
1190
1191 2019-01-23 Nick Clifton <nickc@redhat.com>
1192
1193 * po/fr.po: Updated French translation.
1194 * po/pt.po: Updated Portuguese translation.
1195
1196 2019-01-21 Nick Clifton <nickc@redhat.com>
1197
1198 * po/uk.po: Updated Ukranian translation.
1199
1200 2019-01-19 Nick Clifton <nickc@redhat.com>
1201
1202 * configure: Regenerate.
1203 * binutils/po/binutils.pot.
1204
1205 * README-how-to-make-a-release: Update description on how to make
1206 a branch.
1207
1208 2018-06-24 Nick Clifton <nickc@redhat.com>
1209
1210 2.32 branch created.
1211
1212 2019-01-17 Nick Clifton <nickc@redhat.com>
1213
1214 * objdump.c (disassemble_section): When disassembling from a
1215 symbol only stop at the next symbol if the original symbol was not
1216 a function symbol. Otherwise continue disassembling until a new
1217 function is reached.
1218 * testsuite/binutils-all/objdump.exp: Add tests of extended
1219 functionality.
1220 * testsuite/binutils-all/disasm.s: New test source file.
1221
1222 2019-01-16 Kito Cheng <kito@andestech.com>
1223 Nelson Chu <nelson@andestech.com>
1224
1225 * readelf.c (get_riscv_section_type_name): New function.
1226 (get_section_type_name): Add handler for RISC-V.
1227 (riscv_attr_tag_t): Declare.
1228 (riscv_attr_tag): New.
1229 (display_riscv_attribute): New function.
1230 (process_attributes): Add handler for RISC-V.
1231 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
1232 section.
1233
1234 2019-01-10 Nick Clifton <nickc@redhat.com>
1235
1236 PR 23963
1237 * objdump.c (sanitize_string): New function. Removes control
1238 characters from symbol names.
1239 (dump_section_header): Use new function.
1240 (objdump_print_symname): Likewise.
1241 (objdump_print_addr_with_sym): Likewise.
1242 (show_line): Likewise.
1243 (disassemble_bytes): Likewise.
1244 (disassemble_section): Likewise.
1245 (load_specific_debug_section): Likewise.
1246 (read_section_stabs): Likewise.
1247 (print_section_stabs): Likewise.
1248 (dump_section): Likewise.
1249 (dump_reloc_set): Likewise.
1250 (dump_relocs_in_section): Likewise.
1251 (dump_bfd): Likewise.
1252 (display_any_bfd): Likewise.
1253
1254 2019-01-09 Nick Clifton <nickc@redhat.com>
1255
1256 PR 24049
1257 * readelf.c (process_archive): Use arch.file_name in error
1258 messages until the qualified name is available.
1259
1260 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1261
1262 * configure: Regenerate.
1263
1264 2019-01-09 Alan Modra <amodra@gmail.com>
1265
1266 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
1267 unconditionally to tests needing the option rather than via a
1268 list of targets.
1269
1270 2019-01-08 Nick Clifton <nickc@redhat.com>
1271
1272 PR 24044
1273 * cxxfilt.c (hp_symbol_characters): Delete.
1274 (main): Remove depcreated demangling styles.
1275 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
1276 demangling opnames.
1277 * testsuite/binutils-all/cxxfilt.exp: Use the
1278 --no-strip-underscore option for targets that do prefix their
1279 symbols with underscores.
1280 Update tests to eliminate those that use gnu v2 encoding.
1281
1282 2019-01-08 Tamar Christina <tamar.christina@arm.com>
1283
1284 PR 24065
1285 * testsuite/binutils-all/copy-6.d: New test.
1286 * testsuite/binutils-all/objcopy.exp: Use it.
1287
1288 2019-01-08 Alan Modra <amodra@gmail.com>
1289
1290 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
1291 $srcdir/$subdir to source file name if it starts with "./".
1292
1293 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1294
1295 * readelf.c (get_machine_flags): Add RXv3 output.
1296
1297 2019-01-04 Nick Clifton <nickc@redhat.com>
1298
1299 PR 24005
1300 * objdump.c (load_specific_debug_section): Check for integer
1301 overflow before attempting to allocate contents.
1302
1303 2019-01-04 Nick Clifton <nickc@redhat.com>
1304
1305 PR 24001
1306 * objcopy.c (copy_object): Free dhandle after writing out the
1307 debug information.
1308 * objdump.c (dump_bfd): Free dhandle after printing out the debug
1309 information.
1310
1311
1312 2019-01-01 Alan Modra <amodra@gmail.com>
1313
1314 Update year range in copyright notice of all files.
1315
1316 For older changes see ChangeLog-2018
1317 \f
1318 Copyright (C) 2019 Free Software Foundation, Inc.
1319
1320 Copying and distribution of this file, with or without modification,
1321 are permitted in any medium without royalty provided the copyright
1322 notice and this notice are preserved.
1323
1324 Local Variables:
1325 mode: change-log
1326 left-margin: 8
1327 fill-column: 74
1328 version-control: never
1329 End:
This page took 0.057129 seconds and 4 git commands to generate.