readelf group errors/warnings
[deliverable/binutils-gdb.git] / binutils / ChangeLog
1 2019-05-27 Alan Modra <amodra@gmail.com>
2
3 * readelf.c (process_section_groups): Continue processing groups
4 when sh_entsize exceeds group size.
5
6 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
7
8 * readelf.c (get_aarch64_dynamic_type): Handle DT_AARCH64_VARIANT_PCS.
9 (get_aarch64_symbol_other): New, handles STO_AARCH64_VARIANT_PCS.
10 (get_symbol_other): Call get_aarch64_symbol_other.
11
12 2019-05-24 Alan Modra <amodra@gmail.com>
13
14 * objdump.c (disassemble_bytes): Set WIDE_OUTPUT in flags.
15
16 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
17
18 * MAINTAINERS: Add myself as the maintainer for BPF.
19
20 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
21
22 * readelf.c: Include elf/bpf.h.
23 (guess_is_rela): Hanle EM_BPF.
24 (dump_relocations): Likewise.
25 (is_32bit_abs_reloc): Likewise.
26 * testsuite/binutils-all/nm.exp: Add bpf-*-* to the list of
27 ELF targets.
28
29 2019-05-21 Tamar Christina <tamar.christina@arm.com>
30
31 * dwarf.c (dwarf_regnames_aarch64): Add SVE registers.
32 * testsuite/binutils-all/aarch64/sve-dwarf-registers.d: New test.
33 * testsuite/binutils-all/aarch64/sve-dwarf-registers.s: New test.
34
35 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
36
37 PR 14798
38 * testsuite/binutils-all/readelf.ss-mips: Update reference output.
39 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
40
41 2019-05-20 Nick Clifton <nickc@redhat.com>
42
43 * po/ca.po: Updated Catalan translation.
44
45 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
46
47 * NEWS: Mention Armv8.1-M Mainline and MVE.
48
49 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
50
51 * readelf.c (arm_attr_tag_MVE_arch): New array for Tag_MVE_arch values.
52 (arm_attr_public_tag arm_attr_public_tags): Add case for Tag_MVE_arch.
53
54 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
55
56 PR 19921
57 * objcopy.c: Add new option --verilog-data-width. Use it to set
58 the value of VerilogDataWidth.
59 * doc/binutils.texi: Document the new option.
60 * testsuite/binutils-all/objcopy.exp: Run tests of new option.
61 * testsuite/binutils-all/verilog-1.hex: New file.
62 * testsuite/binutils-all/verilog-2.hex: New file.
63 * testsuite/binutils-all/verilog-4.hex: New file.
64 * testsuite/binutils-all/verilog-8.hex: New file.
65 * NEWS: Mention the new feature.
66
67 2019-05-10 Alan Modra <amodra@gmail.com>
68
69 * testsuite/binutils-all/objdump.exp (test_objdump_disas_limited),
70 (test_objdump_content_limited): Add text arg, use in place of .text.
71 (bintest_signed.o): Call get_standard_section_names for name of
72 text section.
73
74 2019-05-08 Faraz Shahbazker <fshahbazker@wavecomp.com>
75
76 * objdump.c (sign_extend_address): New function.
77 (dump_bfd): Sign-extend user-specified start/stop addresses
78 for targets that need it.
79 * testsuite/binutils-all/objdump.exp: Add tests for objdump
80 with start and stop addresses in higher address ranges.
81
82 2019-05-01 Matthew Malcomson <matthew.malcomson@arm.com>
83
84 * testsuite/binutils-all/objdump.exp: Correct executable
85 spelling.
86 * testsuite/binutils-all/compress.exp: Likewise.
87
88 2019-05-01 Nick Clifton <nickc@redhat.com>
89
90 PR 24507
91 * nm.c: (print_format): New variable.
92 (value_format_32bit, value_format_64bit): Delete.
93 (set_print_radix): Remove code to alter value_format strings.
94 (set_output_format): Record chosen format in print_format.
95 (get_print_format): New function - constructs a printf formatting
96 string according to the requirements of size, radix, and output
97 format.
98 (print_value): Use get_print_format.
99 * testsuite/binutils-all/nm.exp: Add tests of "nm --format=posix"
100 and "nm -t d".
101
102 2019-04-30 Alan Modra <amodra@gmail.com>
103
104 * wrstabs.c (stab_start_class_type): Add assert to work around
105 gcc9 warning. Tidy.
106
107 2019-04-24 Nick Clifton <nickc@redhat.com>
108
109 * objcopy.c (strip_main): Do not enable note merging by default if
110 just stripping debug or dwo information.
111 * doc/binutils.texi (strip): Update documentation.
112
113 2019-04-23 Nick Clifton <nickc@redhat.com>
114
115 * README-how-to-make-a-release: Add note to update the symbolic
116 link from "docs" to "docs-2.x" on the sourceware website.
117
118 2019-04-16 Alan Modra <amodra@gmail.com>
119
120 * testsuite/binutils-all/copy-2.d: Don't run for ns32k-*-*.
121 * testsuite/binutils-all/copy-3.d: Likewise.
122
123 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
124
125 * readelf.c (arm_attr_tag_CPU_arch): Add entry for Armv8.1-M Mainline.
126
127 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
128
129 * readelf.c (decode_x86_isa): Handle
130 GNU_PROPERTY_X86_ISA_1_AVX512_BF16.
131 * testsuite/binutils-all/i386/pr21231b.d: Updated.
132 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
133
134 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
135
136 * testsuite/binutils-all/nm.exp: Count i386-moss as ELF.
137
138 2019-03-26 Tamar Christina <tamar.christina@arm.com>
139
140 * testsuite/binutils-all/aarch64/in-order-all.d: Update.
141 * testsuite/binutils-all/aarch64/in-order.d: Likewise.
142 * testsuite/binutils-all/aarch64/out-of-order-all.d: Likewise.
143 * testsuite/binutils-all/aarch64/out-of-order.d: Likewise.
144 * testsuite/binutils-all/aarch64/out-of-order.s: Likewise.
145 * testsuite/binutils-all/arm/in-order-all.d: Likewise.
146 * testsuite/binutils-all/arm/in-order.d: Likewise.
147 * testsuite/binutils-all/arm/out-of-order-all.d: Likewise.
148 * testsuite/binutils-all/arm/out-of-order.d: Likewise.
149 * testsuite/binutils-all/arm/out-of-order.s: Likewise.
150
151 2019-03-26 Nick Clifton <nickc@redhat.com>
152
153 * MAINTAINERS: Take over Dave Brolley's maintainerships for FR30,
154 FRV and MEP.
155
156 2019-03-26 Alan Modra <amodra@gmail.com>
157
158 * objdump.c (dump_relocs_in_section): Warning fix.
159
160 2019-03-25 Tamar Christina <tamar.christina@arm.com>
161
162 * testsuite/binutils-all/arm/in-order-all.d: New test.
163 * testsuite/binutils-all/arm/in-order.d: New test.
164 * testsuite/binutils-all/arm/objdump.exp: Support .d tests.
165 * testsuite/binutils-all/arm/out-of-order-all.d: New test.
166 * testsuite/binutils-all/arm/out-of-order.T: New test.
167 * testsuite/binutils-all/arm/out-of-order.d: New test.
168 * testsuite/binutils-all/arm/out-of-order.s: New test.
169
170
171 2019-03-25 Tamar Christina <tamar.christina@arm.com>
172
173 * testsuite/binutils-all/aarch64/in-order-all.d: New test.
174 * testsuite/binutils-all/aarch64/out-of-order-all.d: New test.
175 * testsuite/binutils-all/aarch64/out-of-order.d:
176
177 2019-03-25 Tamar Christina <tamar.christina@arm.com>
178
179 * testsuite/binutils-all/aarch64/in-order.d: New test.
180 * testsuite/binutils-all/aarch64/out-of-order.d: Disassemble data as
181 well.
182
183 2019-03-25 Tamar Christina <tamar.christina@arm.com>
184
185 * objdump.c (disassemble_bytes): Pass stop_offset.
186 * testsuite/binutils-all/aarch64/out-of-order.T: New test.
187 * testsuite/binutils-all/aarch64/out-of-order.d: New test.
188 * testsuite/binutils-all/aarch64/out-of-order.s: New test.
189
190 2019-03-19 Nick Clifton <nickc@redhat.com>
191
192 PR 24360
193 * objdump.c (load_specific_debug_section): Check that the amount
194 of memory to be allocated matches the size of the section.
195
196 2019-03-13 Sudakshina Das <sudi.das@arm.com>
197
198 * readelf.c (get_aarch64_dynamic_type): Add case for
199 DT_AARCH64_PAC_PLT.
200 (dynamic_section_aarch64_val): Likewise.
201
202 2019-03-13 Sudakshina Das <sudi.das@arm.com>
203 Szabolcs Nagy <szabolcs.nagy@arm.com>
204
205 * readelf.c (get_aarch64_dynamic_type): New.
206 (get_dynamic_type): Use above for EM_AARCH64.
207 (dynamic_section_aarch64_val): New.
208 (process_dynamic_section): Use above for EM_AARCH64.
209
210 2019-03-13 Sudakshina Das <sudi.das@arm.com>
211
212 * readelf.c (decode_aarch64_feature_1_and): New.
213 (print_gnu_property_note): Add case for AArch64 gnu notes.
214
215 2019-03-12 Alan Modra <amodra@gmail.com>
216
217 * objdump.c (load_specific_debug_section): Don't compare section
218 size against file size.
219 (dump_relocs_in_section): Don't compare reloc size against file size.
220 Print "failed to read relocs" on bfd_get_reloc_upper_bound error.
221
222 2019-03-05 Nick Clifton <nickc@redhat.com>
223
224 PR 24295
225 * doc/binutils.texi (ar cmdline): Fix spelling mistake.
226
227 2019-03-05 Nick Clifton <nickc@redhat.com>
228
229 * po/sv.po: Updated Swedish translation.
230
231 2019-03-05 Matthew Malcomson <matthew.malcomson@arm.com>
232
233 PR 24287
234 * testsuite/lib/binutils-common.exp (run_dump_test): Replace a use
235 of "lmap" with a "foreach" loop.
236
237 2019-03-04 Nick Clifton <nickc@redhat.com>
238
239 PR 24281
240 * objcopy.c (copy_archive): Do not copy thin archives.
241
242 2019-02-27 Matthew Malcomson <matthew.malcomson@arm.com>
243
244 * testsuite/lib/binutils-common.exp: Allow multiple "as" lines.
245
246 2019-02-25 Nick Clifton <nickc@redhat.com>
247
248 * objdump.c (sym_ok): New function.
249 (find_symbol_for_address): Use new function.
250 (disassemble_section): Compare sections by name, not pointer.
251 (dump_dwarf): Move code to initialise byte_get pointer and iterate
252 over separate debug files from here to ...
253 (dump_bfd): ... here. Add parameter indicating that a separate
254 debug info file is being dumped. For main file, pull in the
255 symbol tables from all separate debug info files.
256 (display_object): Update call to dump_bfd.
257 * doc/binutils.texi: Document extened behaviour of the
258 --dwarf=follow-links option.
259 * NEWS: Mention this new feature.
260 * testsuite/binutils-all/objdump.WK2: Update expected output.
261 * testsuite/binutils-all/objdump.exp (test_follow_debuglink): Add
262 options and dump file parameters.
263 Add extra test.
264 * testsuite/binutils-all/objdump.WK3: New file.
265 * testsuite/binutils-all/readelf.exp: Change expected output for
266 readelf -wKis test.
267 * testsuite/binutils-all/readelf.wKis: New file.
268
269 2019-02-22 Nick Clifton <nickc@redhat.com>
270
271 PR 23843
272 * dwarf.h (struct separate_info): New structure for containing
273 information on separate debug info files.
274 * dwarf.c (struct dwo_info): New structure for containing dwo
275 links.
276 (first_dwo_info): Chain of dwo_info structures.
277 (first_separate_file): Chain of separate_info structures.
278 (separate_debug_file, separate_debug_filename): Delete.
279 (fetch_alt_indirect_string): Scan all separate debug info files
280 for the requested string.
281 (add_dwo_info): New function.
282 (add_dwo_name): New function.
283 (add_dwo_dir): New function.
284 (add_dwo_id: New function.
285 (free_dwo_info): New function.
286 (read_and_display_attr_value): Store DWO data using the new
287 functions.
288 (load_debug_section_with_follow): If necessary, scan the list of
289 separate debug info files for the requested section.
290 (add_separate_debug_file): New function.
291 (load_separate_debug_info): Call add_separate_debug_file to store
292 the information on the newly loaded file.
293 (load_dwo_file): Likewise.
294 (load_separate_debif_file): Rename to load_separate_debug_files.
295 Change return type to boolean. If following links then attempt to
296 load all separate debug info files, not just the first one.
297 (free_debug_memory): Release memory in dwo_info and separate_info
298 chains.
299 * objdump.c (dump_dwarf): Iterate over all loaded debg info files.
300 * readelf.c (process_object): Likewise.
301 * doc/debug.options.texi: Update descriptions of links and
302 follow-links options.
303 * testsuite/binutils-all/objdump.WK2: Update expected output.
304 * testsuite/binutils-all/readelf.k2: Likewise.
305 * NEWS: Announce the new feature.
306
307 2019-02-21 Nick Clifton <nickc@redhat.com>
308
309 PR 24247
310 * unwind-ia64.c: Include sysdep.h.
311 (unw_decode_x1): Check current pointer against end pointer before
312 accessing memory.
313 (unw_decode_x2): Likewise.
314 (unw_decode_x3): Likewise.
315 (unw_decode_x4): Likewise.
316 (unw_decode_r2): Likewise.
317 (unw_decode_p2_p5): Likewise.
318 (unw_decode_p7_p10): Likewise.
319 (unw_decode): Likewise.
320
321 2019-02-20 Nick Clifton <nickc@redhat.com>
322
323 PR 24246
324 * readelf.c (print_stapsdt_note): Harden against corrupt notes.
325
326 PR 24244
327 * unwind-ia64.c (unw_decode_uleb128): Add end parameter, use it to
328 prevent walking off the end of the buffer.
329 (unw_decode_x1): Add end paramter, pass it to unw_decode_uleb128.
330 (unw_decode_x2): Likewise.
331 (unw_decode_x3): Likewise.
332 (unw_decode_x4): Likewise.
333 (unw_decode_r2): Pass the end parameter to unw_decode_uleb128.
334 (unw_decode_r3): Likewise.
335 (unw_decode_p7_p10): Likewise.
336 (unw_decode_b2): Likewise.
337 (unw_decode_b3_x4): Likewise.
338
339 PR 24243
340 * readelf.c (process_mips_specific): Check for an options section
341 that is too small to even contain a single option.
342
343 PR 24242
344 * readelf.c (print_ia64_vms_note): Harden against corrupt notes.
345
346 2019-02-20 Alan Modra <amodra@gmail.com>
347
348 PR 24132
349 PR 24138
350 * readelf.c (get_data): Avoid possibility of overflow when
351 checking for a read that may extend past end of file.
352 (process_program_headers): Likewise.
353
354 2019-02-20 Alan Modra <amodra@gmail.com>
355
356 PR 24233
357 * objdump.c (dump_bfd_private_header): Print warning if
358 bfd_print_private_bfd_data returns false.
359
360 2019-02-12 Nick Clifton <nickc@redhat.com>
361
362 PR 23440
363 * README-how-to-make-a-release: Use git clean to delete spurious
364 files from the local source repository.
365
366 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
367
368 * size.c (berkeley_format): Delete.
369 (enum output_format): New enum.
370 (selected_output_format): New variable.
371 (usage): Update to mention GNU format.
372 (main): Update to extract options, and select format as needed.
373 Handle GNU format where needed.
374 (berkeley_sum): Renamed to...
375 (berkeley_or_gnu_sum): ...this, and updated to handle both formats.
376 (berkeley_format): Renamed to...
377 (berkeley_or_gnu_format): ...this, and updated to handle both
378 formats.
379 (print_sizes): Handle GNU format.
380 * doc/binutils.texi (size): Document new GNU format.
381 * testsuite/binutils-all/size.exp: Add test of extended
382 functionality.
383 * NEWS: Mention new functionality.
384
385 2019-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * doc/binutils.texi (size): Update example output for Berkeley
388 format output.
389
390 2019-02-07 Nick Clifton <nickc@redhat.com>
391
392 * README-how-to-make-a-release: Add a note about updating the
393 obsolete targets in the bfd/config.bfd file.
394
395 2019-02-04 Nick Clifton <nickc@redhat.com>
396
397 * README-how-to-make-a-release: Add more notes on making a release.
398
399 2019-01-25 Nick Clifton <nickc@redhat.com>
400
401 PR 24131
402 * readelf.c (process_notes_at): Prevent an illegal memory access
403 when the note's namesize is zero.
404 (decode_tic6x_unwind_bytecode): Add code to handle the case where
405 no registers are specified in a frame pop instruction.
406
407 2019-01-25 Nick Clifton <nickc@redhat.com>
408
409 * po/bg.po: Updated Bulgarian translation.
410
411 2019-01-23 Nick Clifton <nickc@redhat.com>
412
413 * po/fr.po: Updated French translation.
414 * po/pt.po: Updated Portuguese translation.
415
416 2019-01-21 Nick Clifton <nickc@redhat.com>
417
418 * po/uk.po: Updated Ukranian translation.
419
420 2019-01-19 Nick Clifton <nickc@redhat.com>
421
422 * configure: Regenerate.
423 * binutils/po/binutils.pot.
424
425 * README-how-to-make-a-release: Update description on how to make
426 a branch.
427
428 2018-06-24 Nick Clifton <nickc@redhat.com>
429
430 2.32 branch created.
431
432 2019-01-17 Nick Clifton <nickc@redhat.com>
433
434 * objdump.c (disassemble_section): When disassembling from a
435 symbol only stop at the next symbol if the original symbol was not
436 a function symbol. Otherwise continue disassembling until a new
437 function is reached.
438 * testsuite/binutils-all/objdump.exp: Add tests of extended
439 functionality.
440 * testsuite/binutils-all/disasm.s: New test source file.
441
442 2019-01-16 Kito Cheng <kito@andestech.com>
443 Nelson Chu <nelson@andestech.com>
444
445 * readelf.c (get_riscv_section_type_name): New function.
446 (get_section_type_name): Add handler for RISC-V.
447 (riscv_attr_tag_t): Declare.
448 (riscv_attr_tag): New.
449 (display_riscv_attribute): New function.
450 (process_attributes): Add handler for RISC-V.
451 * testsuite/binutils-all/strip-3.d: Remove .riscv.attribute
452 section.
453
454 2019-01-10 Nick Clifton <nickc@redhat.com>
455
456 PR 23963
457 * objdump.c (sanitize_string): New function. Removes control
458 characters from symbol names.
459 (dump_section_header): Use new function.
460 (objdump_print_symname): Likewise.
461 (objdump_print_addr_with_sym): Likewise.
462 (show_line): Likewise.
463 (disassemble_bytes): Likewise.
464 (disassemble_section): Likewise.
465 (load_specific_debug_section): Likewise.
466 (read_section_stabs): Likewise.
467 (print_section_stabs): Likewise.
468 (dump_section): Likewise.
469 (dump_reloc_set): Likewise.
470 (dump_relocs_in_section): Likewise.
471 (dump_bfd): Likewise.
472 (display_any_bfd): Likewise.
473
474 2019-01-09 Nick Clifton <nickc@redhat.com>
475
476 PR 24049
477 * readelf.c (process_archive): Use arch.file_name in error
478 messages until the qualified name is available.
479
480 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
481
482 * configure: Regenerate.
483
484 2019-01-09 Alan Modra <amodra@gmail.com>
485
486 * testsuite/binutils-all/cxxfilt.exp: Pass --no-strip-underscores
487 unconditionally to tests needing the option rather than via a
488 list of targets.
489
490 2019-01-08 Nick Clifton <nickc@redhat.com>
491
492 PR 24044
493 * cxxfilt.c (hp_symbol_characters): Delete.
494 (main): Remove depcreated demangling styles.
495 * stabs.c (parse_stab_argtypes): Remove support for old gnu v2
496 demangling opnames.
497 * testsuite/binutils-all/cxxfilt.exp: Use the
498 --no-strip-underscore option for targets that do prefix their
499 symbols with underscores.
500 Update tests to eliminate those that use gnu v2 encoding.
501
502 2019-01-08 Tamar Christina <tamar.christina@arm.com>
503
504 PR 24065
505 * testsuite/binutils-all/copy-6.d: New test.
506 * testsuite/binutils-all/objcopy.exp: Use it.
507
508 2019-01-08 Alan Modra <amodra@gmail.com>
509
510 * testsuite/lib/binutils-common.exp (run_dump_test): Don't prepend
511 $srcdir/$subdir to source file name if it starts with "./".
512
513 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
514
515 * readelf.c (get_machine_flags): Add RXv3 output.
516
517 2019-01-04 Nick Clifton <nickc@redhat.com>
518
519 PR 24005
520 * objdump.c (load_specific_debug_section): Check for integer
521 overflow before attempting to allocate contents.
522
523 2019-01-04 Nick Clifton <nickc@redhat.com>
524
525 PR 24001
526 * objcopy.c (copy_object): Free dhandle after writing out the
527 debug information.
528 * objdump.c (dump_bfd): Free dhandle after printing out the debug
529 information.
530
531
532 2019-01-01 Alan Modra <amodra@gmail.com>
533
534 Update year range in copyright notice of all files.
535
536 For older changes see ChangeLog-2018
537 \f
538 Copyright (C) 2019 Free Software Foundation, Inc.
539
540 Copying and distribution of this file, with or without modification,
541 are permitted in any medium without royalty provided the copyright
542 notice and this notice are preserved.
543
544 Local Variables:
545 mode: change-log
546 left-margin: 8
547 fill-column: 74
548 version-control: never
549 End:
This page took 0.049199 seconds and 4 git commands to generate.