Integer overflows in readelf get_data
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2019-08-08 Alan Modra <amodra@gmail.com>
2
3 * readelf.c (get_data): Improve overflow checks.
4
5 2019-08-07 Nick Clifton <nickc@redhat.com>
6
7 PR 24777
8 * doc/binutils.texi: Ensure consistent formating of title strings
9 for man pages. Extend the title of the size man page to be more
10 informative.
11
12 2019-08-07 Omair Majid <omajid@redhat.com>
13
14 * testsuite/binutils-all/objdump.exp
15 (test_objdump_dotnet_assemblies): Fix test to distinguish errors
16 in parsing simple pei-i386 and pei-x86-64 vs parsing the newly
17 introduced machine types.
18 * testsuite/gentestdlls.c (write_simple_dll): New function.
19 (main): Generate simple and Linux-specific variants of pei-i386
20 and pei-x86-64 files so both can be used by tests.
21
22 2019-08-07 Alan Modra <amodra@gmail.com>
23
24 PR 24876
25 * readelf.c (dump_ia64_unwind): Check that buffer is large
26 enough for "stamp" before reading.
27
28 2019-08-05 Nick Clifton <nickc@redhat.com>
29
30 PR 24874
31 * objcopy.c (merge_gnu_build_notes): Do not insist on the first
32 note being a version note.
33 Remove spurious debugging fprintf.
34
35 2019-08-05 Nick Clifton <nickc@redhat.com>
36
37 PR 24829
38 * readelf.c (apply_relocations): Catch potential integer overflow
39 whilst checking reloc location against section size.
40
41 2019-08-02 Alan Modra <amodra@gmail.com>
42
43 PR 24871
44 * readelf.c (ABSADDR): Delete.
45 (dump_ia64_unwind): Expand ABSADDR. Check validity of info.section.
46
47 2019-07-29 Martin Liska <mliska@suse.cz>
48
49 PR 24768
50 * nm.c (filter_symbols): Set report_plugin_err if
51 error is reported.
52 (display_rel_file): Report error for a missing LTO plugin.
53
54 2019-07-26 Alan Modra <amodra@gmail.com>
55
56 PR 24798
57 * dwarf.c (process_cu_tu_index): Avoid integer overflow on 64-bit
58 systems by casting ncols and nslots expressions to size_t. Display
59 number of columns and slots before giving up due to buffer overflow.
60 Use %u to display unsigned ints. Perform more pointer wrap tests.
61
62 2019-07-25 Tom Tromey <tromey@adacore.com>
63
64 PR 24809
65 * dwarf.c (display_debug_names): Display the contents of the
66 augmentation string, if it is printable.
67
68 2019-07-25 Nick Clifton <nickc@redhat.com>
69
70 PR 24837
71 * readelf.c (process_mips_specific): Check for buffer overflow
72 before reading reginfo information.
73
74 2019-07-24 Nick Clifton <nickc@redhat.com>
75
76 PR 13256
77 * ar.c (decode_options): Restart option scanning if no operation
78 is detected and argument remain to be scanned.
79
80 2019-07-23 Nick Clifton <nickc@redhat.com>
81
82 PR 24818
83 * objdump.c (is_relocateable): Delete.
84 (load_specific_debug_section): Test the abfd for relocations
85 directly, rather than relying upon is_relocateable.
86 (dump_dwarf): Delete initlialization of is_relocateable.
87
88 2019-07-23 Alan Modra <amodra@gmail.com>
89
90 * readelf.c (get_parisc_segment_type): Split off hpux entries..
91 (get_ia64_segment_type): ..and these..
92 (get_hpux_segment_type): ..to here.
93 (get_segment_type): Condition GNU_MBIND on osabi. Use
94 get_hpux_segment_type.
95 (get_symbol_binding): Do not print UNIQUE for ELFOSABI_NONE.
96 (get_symbol_type): Do not print IFUNC for ELFOSABI_NONE.
97
98 2019-07-23 Alan Modra <amodra@gmail.com>
99
100 * testsuite/binutils-all/objcopy.exp (elf64): Correct object
101 file used to set this variable.
102
103 2019-07-23 Omar Majid <omajid@redhat.com>
104
105 * Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects
106 (GENTESTDLLSPROG): Define.
107 (TEST_PROGS): Add GENTESTDLLSPROG.
108 * Makefile.in: Regenerate.
109 * testsuite/binutils-all/objdump.exp
110 (test_objdump_dotnet_assemblies): New proc.
111 Run the new proc.
112 * testsuite/gentestdlls.c: New source file.
113
114 2019-06-28 Nick Clifton <nickc@redhat.com>
115
116 PR 24707
117 * objdump.c (slurp_symtab): Fail with a helpful error message if
118 the symbol table is too large. Skip this check for MMO format
119 files.
120
121 2019-06-26 Nick Clifton <nickc@redhat.com>
122
123 PR 24703
124 * bucomm.c (bfd_nonfatal): If no bfd error code has been set then
125 indicate this in the output.
126 (bfd_nonfatal_message): Likewise.
127
128 2019-06-25 Jan Beulich <jbeulich@suse.com>
129
130 * readelf.c (dump_ctf_indent_lines): Rename local variable
131 "spaces" to "blanks".
132
133 2019-06-25 Jan Beulich <jbeulich@suse.com>
134
135 * objdump.c (dump_ctf_indent_lines): Rename local variable
136 "spaces" to "blanks".
137
138 2019-06-14 Alan Modra <amodra@gmail.com>
139
140 * Makefile.in: Regenerate.
141 * aclocal.m4: Regenerate.
142 * doc/Makefile.in: Regenerate.
143
144 2019-06-12 Christos Zoulas <christos@zoulas.com>
145
146 PR 24663
147 * readelf.c (process_netbsd_elf_note): Add support for
148 NT_NETBSD_PAX.
149 (process_note): Add support for PaX notes.
150
151 2019-06-12 Christos Zoulas <christos@zoulas.com>
152
153 PR 24665
154 * readelf.c (get_netbsd_elfcore_note_type): Add support for SH
155 core notes.
156
157 2019-06-12 Christos Zoulas <christos@zoulas.com>
158
159 PR 24664
160 * readelf.c (get_netbsd_elfcore_note_type): Add support for NetBSD
161 auxv notes.
162
163 2019-06-11 Christos Zoulas <christos@zoulas.com>
164
165 PR 24662
166 * readelf.c (get_alpha_symbol_other): New function.
167 (get_symbol_other): Use for Alpha symbols.
168 (is_32bit_pcrel_reloc): Add R_VAX_PCREL32.
169
170 2019-06-11 Christos Zoulas <christos@zoulas.com>
171
172 PR 24661
173 * readelf.c (decode_arm_unwind): Ensure that the local variable
174 'addr' is always initialised.
175
176 2019-06-10 Christos Zoulas <christos@zoulas.com>
177
178 PR 24651
179 * strings.c (print_strings): Use %u to print unsigned values in
180 decimal.
181
182 2019-06-10 Christos Zoulas <christos@zoulas.com>
183
184 PR 24649
185 * arsup.c (ar_open): Use asprintf in place of xmalloc and
186 sprintf.
187
188 2019-06-03 Nick Clifton <nickc@redhat.com>
189
190 Revert:
191 2019-05-29 Nick Clifton <nickc@redhat.com>
192
193 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
194 targets.
195 (HAVE_LIBCTF): Define if libctf support is available.
196 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
197 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
198 defined.
199 * readelf.c: Likewise.
200 * configure: Regenerate.
201 * Makefile.in: Regenerate.
202 * config.in: Regenerate.
203
204 2019-05-30 Nick Alcock <nick.alcock@oracle.com>
205
206 * objdump.c (make_ctfsect): Drop cts_type, cts_flags, and
207 cts_offset.
208 * readelf.c (shdr_to_ctf_sect): Likewise.
209
210 2019-05-30 Nick Clifton <nickc@redhat.com>
211
212 PR 24627
213 * readelf.c (process_version_sections): Add 0x prefix to address
214 display. Correct indentation.
215
216 2019-05-30 Alan Modra <amodra@gmail.com>
217
218 * testsuite/lib/binutils-common.exp (supports_gnu_unique): Add
219 s12z to targets not supporting this feature.
220
221 2019-05-30 Alan Modra <amodra@gmail.com>
222
223 * testsuite/lib/binutils-common.exp (run_dump_test): Support
224 tcl procedures for xfail args.
225
226 2019-05-29 Nick Clifton <nickc@redhat.com>
227
228 * README-how-to-make-a-release: Add libctf to list of directories
229 that need updates in their ChangeLogs.
230
231 2019-05-29 Nick Clifton <nickc@redhat.com>
232
233 * configure.ac (LIBCTF): Export. Set to empty for non-ELF based
234 targets.
235 (HAVE_LIBCTF): Define if libctf support is available.
236 * Makefile.am (LIBCTF): Set value to @LIBCTF@.
237 * objdump.c: Make CTF code conditional upon HAVE_LIBCTF being
238 defined.
239 * readelf.c: Likewise.
240 * configure: Regenerate.
241 * Makefile.in: Regenerate.
242 * config.in: Regenerate.
243
244 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
245
246 * MAINTAINERS: Add myself as CTF maintainer.
247
248 2019-05-28 Nick Alcock <nick.alcock@oracle.com>
249
250 * objdump.c (ctf-api.h): New include.
251 (dump_ctf_section_info): New variable.
252 (dump_ctf_section_name): Likewise.
253 (usage): Describe new options.
254 (enum option_values): Add OPTION_CTF and OPTION_CTF_PARENT.
255 (main): Use them to add --ctf and --ctf-parent.
256 (read_section_stabs): Add new parameter, entsize_ptr.
257 (find_stabs_section): Adjust accordingly.
258 (make_ctfsect): New.
259 (dump_ctf_indent_lines): New.
260 (dump_ctf_archive_member): New.
261 (dump_ctf): New.
262 (dump_bfd): Call it. Free resources afterwards.
263 * readelf.c (ctf-api.h): New include.
264 (CTF_DUMP): New.
265 (static bfd_boolean do_ctf): Likewise.
266 (dump_ctf_parent_name): Likewise.
267 (dump_ctf_symtab_name): Likewise.
268 (dump_ctf_strtab_name): Likewise.
269 (OPTION_CTF_DUMP): Likewise.
270 (OPTION_CTF_PARENT): Likewise.
271 (OPTION_CTF_SYMBOLS): Likewise.
272 (OPTION_CTF_STRINGS): Likewise.
273 (options): Add them.
274 (usage): Likewise.
275 (parse_args): Handle the new options, requesting CTF_DUMP.
276 (process_section_contents): Handle CTF_DUMP.
277 (shdr_to_ctf_sect): New.
278 (dump_ctf_indent_lines): New.
279 (dump_section_as_ctf): New.
280 (main): Free resources.
281 * Makefile.am (LIBCTF): New variable.
282 (objdump_DEPENDENCIES): Use it.
283 (readelf_DEPENDENCIES): Likewise.
284 (objdump_LDADD): Likewise.
285 (readelf_LDADD): Likewise.
286 * aclocal.m4: Regenerated.
287 * Makefile.in: Likewise.
288
289 * doc/binutils.texi (objdump): Document the new options.
290 (readelf): Likewise.
291 * doc/ctf.options.texi: New.
292 * doc/Makefile.in: Regenerated.
293 * NEWS: Mention the new feature.
294
295 2019-05-27 Alan Modra <amodra@gmail.com>
296
297 * readelf.c (process_section_groups): Continue processing groups
298 when sh_entsize exceeds group size.
299
300 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
301
302 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
303 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
304 (get_symbol_other): Call get_aarch64_symbol_other.
305
306 2019-05-24 Alan Modra <amodra@gmail.com>
307
308 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
309
310 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
311
312 * MAINTAINERS: Add myself as the maintainer for BPF.
313
314 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
315
316 * readelf.c: Include elf/bpf.h.
317 (guess_is_rela): Hanle EM_BPF.
318 (dump_relocations): Likewise.
319 (is_32bit_abs_reloc): Likewise.
320 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
321 ELF targets.
322
323 2019-05-21 Tamar Christina <tamar.christina@arm.com>
324
325 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
326 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
327 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
328
329 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
330
331 PR 14798
332 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
333 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
334
335 2019-05-20 Nick Clifton <nickc@redhat.com>
336
337 * po/ca.po: Updated Catalan translation.
338
339 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
340
341 * NEWS: Mention Armv8.1-M Mainline and MVE.
342
343 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
344
345 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
346 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
347
348 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
349
350 PR 19921
351 * objcopy.c: Add new option --verilog-data-width. Use it to set
352 the value of VerilogDataWidth.
353 * doc/binutils.texi: Document the new option.
354 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
355 * testsuite/binutils-all/verilog-1.hex: New file.
356 * testsuite/binutils-all/verilog-2.hex: New file.
357 * testsuite/binutils-all/verilog-4.hex: New file.
358 * testsuite/binutils-all/verilog-8.hex: New file.
359 * NEWS: Mention the new feature.
360
361 2019-05-10 Alan Modra <amodra@gmail.com>
362
363 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
364 (test_objdump_content_limited): Add text arg, use in place of .text.
365 (bintest_signed.o): Call get_standard_section_names for name of
366 text section.
367
368 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
369
370 * objdump.c (sign_extend_address): New function.
371 (dump_bfd): Sign-extend user-specified start/stop addresses
372 for targets that need it.
373 * testsuite/binutils-all/objdump.exp: Add tests for objdump
374 with start and stop addresses in higher address ranges.
375
376 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
377
378 * testsuite/binutils-all/objdump.exp: Correct executable
379 spelling.
380 * testsuite/binutils-all/compress.exp: Likewise.
381
382 2019-05-01 Nick Clifton <nickc@redhat.com>
383
384 PR 24507
385 * nm.c: (print_format): New variable.
386 (value_format_32bit, value_format_64bit): Delete.
387 (set_print_radix): Remove code to alter value_format strings.
388 (set_output_format): Record chosen format in print_format.
389 (get_print_format): New function - constructs a printf formatting
390 string according to the requirements of size, radix, and output
391 format.
392 (print_value): Use get_print_format.
393 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
394 and "nm -t d".
395
396 2019-04-30 Alan Modra <amodra@gmail.com>
397
398 * wrstabs.c (stab_start_class_type): Add assert to work around
399 gcc9 warning. Tidy.
400
401 2019-04-24 Nick Clifton <nickc@redhat.com>
402
403 * objcopy.c (strip_main): Do not enable note merging by default if
404 just stripping debug or dwo information.
405 * doc/binutils.texi (strip): Update documentation.
406
407 2019-04-23 Nick Clifton <nickc@redhat.com>
408
409 * README-how-to-make-a-release: Add note to update the symbolic
410 link from "docs" to "docs-2.x" on the sourceware website.
411
412 2019-04-16 Alan Modra <amodra@gmail.com>
413
414 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
415 * testsuite/binutils-all/copy-3.d: Likewise.
416
417 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
418
419 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
420
421 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
422
423 * readelf.c (decode_x86_isa): Handle
424 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
425 * testsuite/binutils-all/i386/pr21231b.d: Updated.
426 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
427
428 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
429
430 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
431
432 2019-03-26 Tamar Christina <tamar.christina@arm.com>
433
434 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
435 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
436 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
437 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
438 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
439 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
440 * testsuite/binutils-all/arm/in-order.d: Likewise.
441 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
442 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
443 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
444
445 2019-03-26 Nick Clifton <nickc@redhat.com>
446
447 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
448 FRV and MEP.
449
450 2019-03-26 Alan Modra <amodra@gmail.com>
451
452 * objdump.c (dump_relocs_in_section): Warning fix.
453
454 2019-03-25 Tamar Christina <tamar.christina@arm.com>
455
456 * testsuite/binutils-all/arm/in-order-all.d: New test.
457 * testsuite/binutils-all/arm/in-order.d: New test.
458 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
459 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
460 * testsuite/binutils-all/arm/out-of-order.T: New test.
461 * testsuite/binutils-all/arm/out-of-order.d: New test.
462 * testsuite/binutils-all/arm/out-of-order.s: New test.
463
464
465 2019-03-25 Tamar Christina <tamar.christina@arm.com>
466
467 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
468 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
469 * testsuite/binutils-all/aarch64/out-of-order.d:
470
471 2019-03-25 Tamar Christina <tamar.christina@arm.com>
472
473 * testsuite/binutils-all/aarch64/in-order.d: New test.
474 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
475 well.
476
477 2019-03-25 Tamar Christina <tamar.christina@arm.com>
478
479 * objdump.c (disassemble_bytes): Pass stop_offset.
480 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
481 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
482 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
483
484 2019-03-19 Nick Clifton <nickc@redhat.com>
485
486 PR 24360
487 * objdump.c (load_specific_debug_section): Check that the amount
488 of memory to be allocated matches the size of the section.
489
490 2019-03-13 Sudakshina Das <sudi.das@arm.com>
491
492 * readelf.c (get_aarch64_dynamic_type): Add case for
493 DT_AARCH64_PAC_PLT.
494 (dynamic_section_aarch64_val): Likewise.
495
496 2019-03-13 Sudakshina Das <sudi.das@arm.com>
497 Szabolcs Nagy <szabolcs.nagy@arm.com>
498
499 * readelf.c (get_aarch64_dynamic_type): New.
500 (get_dynamic_type): Use above for EM_AARCH64.
501 (dynamic_section_aarch64_val): New.
502 (process_dynamic_section): Use above for EM_AARCH64.
503
504 2019-03-13 Sudakshina Das <sudi.das@arm.com>
505
506 * readelf.c (decode_aarch64_feature_1_and): New.
507 (print_gnu_property_note): Add case for AArch64 gnu notes.
508
509 2019-03-12 Alan Modra <amodra@gmail.com>
510
511 * objdump.c (load_specific_debug_section): Don't compare section
512 size against file size.
513 (dump_relocs_in_section): Don't compare reloc size against file size.
514 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
515
516 2019-03-05 Nick Clifton <nickc@redhat.com>
517
518 PR 24295
519 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
520
521 2019-03-05 Nick Clifton <nickc@redhat.com>
522
523 * po/sv.po: Updated Swedish translation.
524
525 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
526
527 PR 24287
528 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
529 of "lmap" with a "foreach" loop.
530
531 2019-03-04 Nick Clifton <nickc@redhat.com>
532
533 PR 24281
534 * objcopy.c (copy_archive): Do not copy thin archives.
535
536 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
537
538 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
539
540 2019-02-25 Nick Clifton <nickc@redhat.com>
541
542 * objdump.c (sym_ok): New function.
543 (find_symbol_for_address): Use new function.
544 (disassemble_section): Compare sections by name, not pointer.
545 (dump_dwarf): Move code to initialise byte_get pointer and iterate
546 over separate debug files from here to ...
547 (dump_bfd): ... here. Add parameter indicating that a separate
548 debug info file is being dumped. For main file, pull in the
549 symbol tables from all separate debug info files.
550 (display_object): Update call to dump_bfd.
551 * doc/binutils.texi: Document extened behaviour of the
552 --dwarf=follow-links option.
553 * NEWS: Mention this new feature.
554 * testsuite/binutils-all/objdump.WK2: Update expected output.
555 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
556 options and dump file parameters.
557 Add extra test.
558 * testsuite/binutils-all/objdump.WK3: New file.
559 * testsuite/binutils-all/readelf.exp: Change expected output for
560 readelf -wKis test.
561 * testsuite/binutils-all/readelf.wKis: New file.
562
563 2019-02-22 Nick Clifton <nickc@redhat.com>
564
565 PR 23843
566 * dwarf.h (struct separate_info): New structure for containing
567 information on separate debug info files.
568 * dwarf.c (struct dwo_info): New structure for containing dwo
569 links.
570 (first_dwo_info): Chain of dwo_info structures.
571 (first_separate_file): Chain of separate_info structures.
572 (separate_debug_file, separate_debug_filename): Delete.
573 (fetch_alt_indirect_string): Scan all separate debug info files
574 for the requested string.
575 (add_dwo_info): New function.
576 (add_dwo_name): New function.
577 (add_dwo_dir): New function.
578 (add_dwo_id: New function.
579 (free_dwo_info): New function.
580 (read_and_display_attr_value): Store DWO data using the new
581 functions.
582 (load_debug_section_with_follow): If necessary, scan the list of
583 separate debug info files for the requested section.
584 (add_separate_debug_file): New function.
585 (load_separate_debug_info): Call add_separate_debug_file to store
586 the information on the newly loaded file.
587 (load_dwo_file): Likewise.
588 (load_separate_debif_file): Rename to load_separate_debug_files.
589 Change return type to boolean. If following links then attempt to
590 load all separate debug info files, not just the first one.
591 (free_debug_memory): Release memory in dwo_info and separate_info
592 chains.
593 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
594 * readelf.c (process_object): Likewise.
595 * doc/debug.options.texi: Update descriptions of links and
596 follow-links options.
597 * testsuite/binutils-all/objdump.WK2: Update expected output.
598 * testsuite/binutils-all/readelf.k2: Likewise.
599 * NEWS: Announce the new feature.
600
601 2019-02-21 Nick Clifton <nickc@redhat.com>
602
603 PR 24247
604 * unwind-ia64.c: Include sysdep.h.
605 (unw_decode_x1): Check current pointer against end pointer before
606 accessing memory.
607 (unw_decode_x2): Likewise.
608 (unw_decode_x3): Likewise.
609 (unw_decode_x4): Likewise.
610 (unw_decode_r2): Likewise.
611 (unw_decode_p2_p5): Likewise.
612 (unw_decode_p7_p10): Likewise.
613 (unw_decode): Likewise.
614
615 2019-02-20 Nick Clifton <nickc@redhat.com>
616
617 PR 24246
618 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
619
620 PR 24244
621 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
622 prevent walking off the end of the buffer.
623 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
624 (unw_decode_x2): Likewise.
625 (unw_decode_x3): Likewise.
626 (unw_decode_x4): Likewise.
627 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
628 (unw_decode_r3): Likewise.
629 (unw_decode_p7_p10): Likewise.
630 (unw_decode_b2): Likewise.
631 (unw_decode_b3_x4): Likewise.
632
633 PR 24243
634 * readelf.c (process_mips_specific): Check for an options section
635 that is too small to even contain a single option.
636
637 PR 24242
638 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
639
640 2019-02-20 Alan Modra <amodra@gmail.com>
641
642 PR 24132
643 PR 24138
644 * readelf.c (get_data): Avoid possibility of overflow when
645 checking for a read that may extend past end of file.
646 (process_program_headers): Likewise.
647
648 2019-02-20 Alan Modra <amodra@gmail.com>
649
650 PR 24233
651 * objdump.c (dump_bfd_private_header): Print warning if
652 bfd_print_private_bfd_data returns false.
653
654 2019-02-12 Nick Clifton <nickc@redhat.com>
655
656 PR 23440
657 * README-how-to-make-a-release: Use git clean to delete spurious
658 files from the local source repository.
659
660 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
661
662 * size.c (berkeley_format): Delete.
663 (enum output_format): New enum.
664 (selected_output_format): New variable.
665 (usage): Update to mention GNU format.
666 (main): Update to extract options, and select format as needed.
667 Handle GNU format where needed.
668 (berkeley_sum): Renamed to...
669 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
670 (berkeley_format): Renamed to...
671 (berkeley_or_gnu_format): ...this, and updated to handle both
672 formats.
673 (print_sizes): Handle GNU format.
674 * doc/binutils.texi (size): Document new GNU format.
675 * testsuite/binutils-all/size.exp: Add test of extended
676 functionality.
677 * NEWS: Mention new functionality.
678
679 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 * doc/binutils.texi (size): Update example output for Berkeley
682 format output.
683
684 2019-02-07 Nick Clifton <nickc@redhat.com>
685
686 * README-how-to-make-a-release: Add a note about updating the
687 obsolete targets in the bfd/config.bfd file.
688
689 2019-02-04 Nick Clifton <nickc@redhat.com>
690
691 * README-how-to-make-a-release: Add more notes on making a release.
692
693 2019-01-25 Nick Clifton <nickc@redhat.com>
694
695 PR 24131
696 * readelf.c (process_notes_at): Prevent an illegal memory access
697 when the note's namesize is zero.
698 (decode_tic6x_unwind_bytecode): Add code to handle the case where
699 no registers are specified in a frame pop instruction.
700
701 2019-01-25 Nick Clifton <nickc@redhat.com>
702
703 * po/bg.po: Updated Bulgarian translation.
704
705 2019-01-23 Nick Clifton <nickc@redhat.com>
706
707 * po/fr.po: Updated French translation.
708 * po/pt.po: Updated Portuguese translation.
709
710 2019-01-21 Nick Clifton <nickc@redhat.com>
711
712 * po/uk.po: Updated Ukranian translation.
713
714 2019-01-19 Nick Clifton <nickc@redhat.com>
715
716 * configure: Regenerate.
717 * binutils/po/binutils.pot.
718
719 * README-how-to-make-a-release: Update description on how to make
720 a branch.
721
722 2018-06-24 Nick Clifton <nickc@redhat.com>
723
724 2.32 branch created.
725
726 2019-01-17 Nick Clifton <nickc@redhat.com>
727
728 * objdump.c (disassemble_section): When disassembling from a
729 symbol only stop at the next symbol if the original symbol was not
730 a function symbol. Otherwise continue disassembling until a new
731 function is reached.
732 * testsuite/binutils-all/objdump.exp: Add tests of extended
733 functionality.
734 * testsuite/binutils-all/disasm.s: New test source file.
735
736 2019-01-16 Kito Cheng <kito@andestech.com>
737 Nelson Chu <nelson@andestech.com>
738
739 * readelf.c (get_riscv_section_type_name): New function.
740 (get_section_type_name): Add handler for RISC-V.
741 (riscv_attr_tag_t): Declare.
742 (riscv_attr_tag): New.
743 (display_riscv_attribute): New function.
744 (process_attributes): Add handler for RISC-V.
745 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
746 section.
747
748 2019-01-10 Nick Clifton <nickc@redhat.com>
749
750 PR 23963
751 * objdump.c (sanitize_string): New function. Removes control
752 characters from symbol names.
753 (dump_section_header): Use new function.
754 (objdump_print_symname): Likewise.
755 (objdump_print_addr_with_sym): Likewise.
756 (show_line): Likewise.
757 (disassemble_bytes): Likewise.
758 (disassemble_section): Likewise.
759 (load_specific_debug_section): Likewise.
760 (read_section_stabs): Likewise.
761 (print_section_stabs): Likewise.
762 (dump_section): Likewise.
763 (dump_reloc_set): Likewise.
764 (dump_relocs_in_section): Likewise.
765 (dump_bfd): Likewise.
766 (display_any_bfd): Likewise.
767
768 2019-01-09 Nick Clifton <nickc@redhat.com>
769
770 PR 24049
771 * readelf.c (process_archive): Use arch.file_name in error
772 messages until the qualified name is available.
773
774 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
775
776 * configure: Regenerate.
777
778 2019-01-09 Alan Modra <amodra@gmail.com>
779
780 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
781 unconditionally to tests needing the option rather than via a
782 list of targets.
783
784 2019-01-08 Nick Clifton <nickc@redhat.com>
785
786 PR 24044
787 * cxxfilt.c (hp_symbol_characters): Delete.
788 (main): Remove depcreated demangling styles.
789 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
790 demangling opnames.
791 * testsuite/binutils-all/cxxfilt.exp: Use the
792 --no-strip-underscore option for targets that do prefix their
793 symbols with underscores.
794 Update tests to eliminate those that use gnu v2 encoding.
795
796 2019-01-08 Tamar Christina <tamar.christina@arm.com>
797
798 PR 24065
799 * testsuite/binutils-all/copy-6.d: New test.
800 * testsuite/binutils-all/objcopy.exp: Use it.
801
802 2019-01-08 Alan Modra <amodra@gmail.com>
803
804 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
805 $srcdir/$subdir to source file name if it starts with "./".
806
807 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
808
809 * readelf.c (get_machine_flags): Add RXv3 output.
810
811 2019-01-04 Nick Clifton <nickc@redhat.com>
812
813 PR 24005
814 * objdump.c (load_specific_debug_section): Check for integer
815 overflow before attempting to allocate contents.
816
817 2019-01-04 Nick Clifton <nickc@redhat.com>
818
819 PR 24001
820 * objcopy.c (copy_object): Free dhandle after writing out the
821 debug information.
822 * objdump.c (dump_bfd): Free dhandle after printing out the debug
823 information.
824
825
826 2019-01-01 Alan Modra <amodra@gmail.com>
827
828 Update year range in copyright notice of all files.
829
830 For older changes see ChangeLog-2018
831 \f
832 Copyright (C) 2019 Free Software Foundation, Inc.
833
834 Copying and distribution of this file, with or without modification,
835 are permitted in any medium without royalty provided the copyright
836 notice and this notice are preserved.
837
838 Local Variables:
839 mode: change-log
840 left-margin: 8
841 fill-column: 74
842 version-control: never
843 End:
This page took 0.046979 seconds and 5 git commands to generate.