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