]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
bfd_set_input_error
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
bfec0f11
AM
12017-10-01 Alan Modra <amodra@gmail.com>
2
3 PR 22232
4 PR 22230
5 * objdump.c (load_specific_debug_section): Introduce a temp to
6 stop bfd_get_full_section_contents NULLing out section->start.
7
4f1881b9
AM
82017-10-01 Alan Modra <amodra@gmail.com>
9
10 PR 22230
11 * objdump.c (load_specific_debug_section): Allocate an extra byte
12 for a terminating NUL.
13
8b5b2529
AM
142017-09-30 Alan Modra <amodra@gmail.com>
15
16 PR 21978
17 * objdump.c: Formatting.
18 (show_line): Reset prev_line when function name changes.
19
19485196
NC
202017-09-27 Nick Clifton <nickc@redhat.com>
21
22 PR 22219
23 * dwarf.c (process_debug_info): Add a check for a negative
24 cu_length field.
25
6bd6a03d
AM
262017-09-27 Alan Modra <amodra@gmail.com>
27
28 PR 22216
29 * readelf.c (process_symbol_table): Check that DT_HASH symbol
30 chains are only visited once, and report an error if not. Display
31 invalid symbol index if chain is out of range. Use the same logic
32 when calculating histograms rather than the PR 17531 fix. Delete
33 bogus check that chained index is less than number of buckets.
34
5c1c468d
NC
352017-09-26 Nick Clifton <nickc@redhat.com>
36
37 PR 22154
38 * dwarf.c (get_line_filename_and_dirname): Add extra checks for
39 buffer overruns.
40
78b2179a
NC
412017-09-26 Nick Clifton <nickc@redhat.com>
42
43 * README-how-to-make-a-release: New file.
44
66cfc0fd
AM
452017-09-26 Alan Modra <amodra@gmail.com>
46
47 PR 21732
48 * dwarf.c (READ_ULEB): Don't use DWARF_VMA_FMT in translated string.
49 (READ_SLEB): Likewise.
50 * readelf.c (bfd_vmatoa): New function.
51 (get_data, get_dynamic_data): Use it for printing error messages.
52
8dba52b6
L
532017-09-25 H.J. Lu <hongjiu.lu@intel.com>
54
55 PR binutils/22203
56 * nm.c (display_rel_file): Free memory returned from
57 bfd_get_synthetic_symtab.
58
9f272209
AO
592017-09-22 Alexandre Oliva <aoliva@redhat.com>
60
61 * dwarf.h (debug_info): Add loc_views and num_loc_views.
62 * dwarf.c (vm1): New constant.
63 (print_dwarf_view): New function.
64 (read_and_display_attr_value): Support DW_AT_GNU_locviews.
65 (process_debug_info): Keep num_loc_offsets and num_loc_views
66 in sync.
67 (display_view_pair_list): New function.
68 (display_loc_list_dwo): Take vstart_ptr; update it. Dump
69 location view pairs before the range they apply to, when a
70 viewlist augments the loc list.
71 (display_loc_list): Likewise. Check view numbers in range
72 tests.
73 (display_loclists_list): Likewise. Handle view pair entries,
74 and warn on trailing ones.
75 (loc_views): New variable.
76 (loc_offsets_compar): Compare loc_views if loc_offsets are the
77 same.
78 (display_debug_loc): Check and sort loc_views too. Accept
79 loc_view as expected_start. Skip if lists and views are the
80 same. Dump locview list separately in order, and pass the
81 locview list base to each list dump function. Warn and skip
82 overlap and hole checking if we find loclists and locviews to
83 not be adjacent.
84 * testsuite/binutils-all/locview-1.s: New.
85 * testsuite/binutils-all/readelf.locview-1: New.
86 * testsuite/binutils-all/locview-2.s: New.
87 * testsuite/binutils-all/readelf.locview-2: New.
88 * testsuite/binutils-all/readelf.exp: Run new tests. Fix
89 option spelling in pr18374 fail message. XFAIL dw5 test on
90 nds32*-elf.
91
11bb0c7a
AM
922017-09-22 Alan Modra <amodra@gmail.com>
93
94 * testsuite/binutils-all/readelf.exp: Don't perror and exit on
95 bintest.s assembly failure. Report tests unresolved instead.
96 Likewise for version note test, pr18374, decompress, and dw5
97 tests.
98 (readelf_test): Set testname to include both option and binary
99 file name. Use for pass/fail.
100
ef272caa
MR
1012017-09-21 Maciej W. Rozycki <macro@imgtec.com>
102
103 * readelf.c (get_machine_flags) <E_MIPS_MACH_5900>: New case.
104
f17e9d8a
NC
1052017-09-05 Nick Clifton <nickc@redhat.com>
106
107 PR 21995
108 * readelf.c (process_mips_specific): Add checks for a NULL data
109 pointer.
110
83eef883
AFB
1112017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com>
112 Edmar Wienskoski <edmar.wienskoski@nxp.com
113
114 * readelf.c (get_elf_section_flags): Add VLE.
115 (process_section_headers): Add VLE key to details.
116
1445030f
AM
1172017-08-25 Alan Modra <amodra@gmail.com>
118
119 PR 21994
120 * readelf.c (process_version_sections <SHT_GNU_verdef>): Check
121 vd_aux and vda_next for sanity. Delete "end". Correct overflow
122 checks.
123 (process_version_sections <SHT_GNU_verneed>): Correct overflow
124 check. Don't report invalid vna_next on overflow. Do report
125 invalid vna_next on size less than aux info.
126
452bf675
AM
1272017-08-23 Alan Modra <amodra@gmail.com>
128
129 PR 21990
130 * readelf.c (process_version_sections <SHT_GNU_verneed>): Check
131 for invalid vn_next field before adding to idx. Use unsigned
132 long for index vars. Move index checks.
133 <SHT_GNU_verdef>: Likewise for vd_next.
134
714da62f
NC
1352017-08-17 Nick Clifton <nickc@redhat.com>
136
137 * testsuite/binutils-all/note-3-64.s: New test. Checks assembly
138 and decoding of version2 GNU build attribute notes.
139 * testsuite/binutils-all/note-3-32.s: New test. 32-bit version of
140 the above test.
141 * testsuite/binutils-all/note-3-64.d: New test driver.
142 * testsuite/binutils-all/note-3-32.d: New test driver.
143 * testsuite/binutils-all/objcopy.exp: Run the new test.
144 * readelf.c (is_64bit_abs_reloc): Add R_SPARC_64.
145
66c3b5f8
GR
1462017-08-14 Gustavo Romero <gromero@linux.vnet.ibm.com>
147
148 * readelf.c (get_note_type): Handle PPC note types available
149 since Linux 4.8.
150
483767a3
AM
1512017-08-12 Alan Modra <amodra@gmail.com>
152
153 * readelf.c (process_note): Qualify NT_GNU_BUILD_ATTRIBUTE notes
154 by name data.
155
cea7a285
NC
1562017-08-08 Nick Clifton <nickc@redhat.com>
157
158 PR 21909
159 * prdbg.c (pr_int_type): Increase size of local string buffer.
160 (pr_float_type): Likewise.
161 (pr_bool_type): Likewise.
162
70b0cf90
NC
1632017-08-02 Nick Clifton <nickc@redhat.com>
164
165 PR 21702
166 * arsup.c (ar_addmod): Add plugin support for the MRI ADDMOD
167 command.
168
75800d2c
NC
1692017-08-02 Nick Clifton <nickc@redhat.com>
170
171 * testsuite/binutils-all/objdump.exp (cpus_expected): Add am33-2.
172
262cdac7
AM
1732017-08-02 Alan Modra <amodra@gmail.com>
174
175 * readelf.c (is_32bit_abs_reloc): Add R_IA64_SECREL32MSB and
176 R_IA64_DIR32MSB.
177 (is_64bit_abs_reloc): Add R_IA64_DIR64MSB.
178 (is_64bit_pcrel_reloc): Add R_IA64_PCREL64MSB.
179
60c4393c
NC
1802017-08-01 Nick Clifton <nickc@redhat.com>
181
182 * po/sv.po: Updated Swedish translation.
183
54387c7f
MP
1842017-07-31 Marty Plummer <ntzrmtthihu777@gmail.com>
185
186 PR 21861
187 * winduni.c (codepages): Use cp1252 for codepage 0.
188
ec064256
NC
1892017-07-25 Nick Clifton <nickc@redhat.com>
190
191 PR 21820
192 * readelf.c (dump_section_as_strings): Do not fail if the section
193 was empty.
194 (dump_section_as_bytes): Likewise.
195
ca4cf9b9
NC
1962017-07-24 Nick Clifton <nickc@redhat.com>
197
198 PR 21813
199 * rddbg.c (read_symbol_stabs_debugging_info): Check for an empty
200 string whilst concatenating symbol names.
201
82c78066
NC
2022017-07-21 Nick Clifton <nickc@redhat.com>
203
204 * po/fr.po: Updated French translation.
205
b57e815c
SM
2062017-07-21 Simon Marchi <simon.marchi@ericsson.com>
207
208 * dwarf.c (last_pointer_size, warned_about_missing_comp_units):
209 Remove.
210 (load_debug_info): Remove assignments to those two variables.
211
ba8826a8
AO
2122017-07-21 Alexandre Oliva <aoliva@redhat.com>
213
214 * dwarf.c (struct State_Machine_Registers): Add view field.
215 (reset_state_machine): Reset view.
216 (process_extended_line_op): Reset view when appropriate.
217 (display_debug_lines_raw): Increment or reset view when appropriate.
218 Print nonzero views. Support print view resets, disabled by default.
219 (display_debug_lines_decoded): Likewise. Disambiguate op_code tests,
220 enabling printing of end_sequence.
221 * testsuite/binutils-all/dw2-1.W: Add nonzero views.
222 * testsuite/binutils-all/dw2-3.W: Likewise.
223 * testsuite/binutils-all/dw2-3gabi.W: Likewise.
224 * testsuite/binutils-all/dw5.W: Add end sequence lines.
225 * testsuite/binutils-all/i386/compressed-1a.d: Add nonzero views.
226 * testsuite/binutils-all/libdw2-compressedgabi.out: Likewise.
227 * testsuite/binutils-all/objdump.W: Likewise.
228 * testsuite/binutils-all/objdump.WL: Add end sequence lines.
229 * testsuite/binutils-all/x86-64/compressed-1a.d: Add nonzero views.
230
e4943f2c
TG
2312017-07-19 Tristan Gingold <gingold@adacore.com>
232
233 * nm.c (show_stats): Remove variable.
234 (long_options): Remove --stats option.
235 (main): Remove handling of --stats.
236
de194d85
YC
2372017-07-18 Nick Clifton <nickc@redhat.com>
238
239 PR 21775
240 * coffgrok.c: Fix spelling typos.
241 * readelf.c: Likewise.
242 * stabs.c: Likewise.
243 * testsuite/binutils-all/objcopy.exp: Likewise.
244
b6a57713
NC
2452017-07-18 Nick Clifton <nickc@redhat.com>
246
247 * po/sv.po: Updated Swedish translation.
248
0a79bef4
HPN
2492017-07-18 Hans-Peter Nilsson <hp@bitrange.com>
250
251 * dwarf.c (display_debug_names): Initialize hash_prev.
252
2a925816
NC
2532017-07-17 Nick Clifton <nickc@redhat.com>
254
255 PR 21433
256 * ar.c (main): Skip check for no files on the command line when
257 running in MRI mode.
258
a502b0bb
L
2592017-07-13 H.J. Lu <hongjiu.lu@intel.com>
260
261 * testsuite/binutils-all/objdump.exp: Always delete $testarchive
262 first.
263
429d795d
AM
2642017-07-12 Alan Modra <amodra@gmail.com>
265
266 * po/bg.po: Update from translationproject.org/latest/binutils/.
267 * po/ca.po: Likewise.
268 * po/da.po: Likewise.
269 * po/es.po: Likewise.
270 * po/fi.po: Likewise.
271 * po/fr.po: Likewise.
272 * po/hr.po: Likewise.
273 * po/id.po: Likewise.
274 * po/it.po: Likewise.
275 * po/ja.po: Likewise.
276 * po/ro.po: Likewise.
277 * po/ru.po: Likewise.
278 * po/sk.po: Likewise.
279 * po/sr.po: Likewise.
280 * po/sv.po: Likewise.
281 * po/tr.po: Likewise.
282 * po/uk.po: Likewise.
283 * po/vi.po: Likewise.
284 * po/zh_CN.po: Likewise.
285 * po/zh_TW.po: Likewise.
286
0bae9e9e
NC
2872017-07-12 Nick Clifton <nickc@redhat.com>
288
289 Fix compile time warnings using gcc 7.1.1.
290 * dwarf.c (dwarf_vmatoa_1): Do not pass a NULL string pointer to
291 sprintf.
292 * srconv.c (walk_tree_type): Initialise the spare field of the
293 IT_dty structure.
294
04ac15ab
AS
2952017-07-11 Andreas Schwab <schwab@suse.de>
296
297 * readelf.c (process_note): Print newline after description data
298 in narrow mode.
299 (print_core_note): Print newline if nothing was printed in wide
300 mode.
301
14357de1
JK
3022017-07-09 Rafael Fontenelle <rafaelff@gnome.org>
303
304 * dwarf.c (display_formatted_table): Fix error message typo.
305
0b9305ed
JB
3062017-07-07 John Baldwin <jhb@FreeBSD.org>
307
308 * readelf.c (get_freebsd_elfcore_note_type): Handle
309 NT_FREEBSD_PTLWPINFO.
310
1d827a72
L
3112017-07-05 H.J. Lu <hongjiu.lu@intel.com>
312
313 * dwarf.c (display_debug_names): Replace index with xindex.
314
0d702cfe
TG
3152017-07-04 Tristan Gingold <gingold@adacore.com>
316
317 * configure: Regenerate.
318
55a09eb6
TG
3192017-07-04 Tristan Gingold <gingold@adacore.com>
320
321 * NEWS: Add marker for 2.29.
322
15e6ed8c
TG
3232017-07-03 Tristan Gingold <gingold@adacore.com>
324
325 * po/binutils.pot: Regenerate.
326
19871f45
AM
3272017-07-03 Alan Modra <amodra@gmail.com>
328
329 * strings.c (filename_and_size_t): Delete.
330 (strings_a_section): Don't check section size against file size.
331 Use bdf_malloc_and_get_section. Report an error on failures.
332 Replace arg param with filename and got_a_section param.
333 (got_a_section): Move to..
334 (strings_object_file): ..an auto var here. Iterate over sections
335 rather than calling bfd_map_over_sections. Adjust strings_a_section
336 call.
337
61364358
JK
3382017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
339
340 * dwarf.c: Include assert.h.
341 (MAX, MIN, get_IDX_name, display_debug_names): New.
342 (debug_displays): Add .debug_names.
343 * dwarf.h: (enum dwarf_section_display_enum): Add debug_names.
344 * readelf.c (process_section_headers): Add ".debug_names".
345
bae7501e
AM
3462017-07-01 Alan Modra <amodra@gmail.com>
347
348 PR binutils/21665
349 * objdump.c (strtab): Make var a bfd_byte*.
350 (disassemble_section): Don't limit malloc size. Instead, use
351 bfd_malloc_and_get_section.
352 (read_section_stabs): Use bfd_malloc_and_get_section. Return
353 bfd_byte*.
354 (find_stabs_section): Remove now unnecessary cast.
355 * objcopy.c (copy_object): Use bfd_malloc_and_get_section. Free
356 contents on error return.
357 * nlmconv.c (copy_sections): Use bfd_malloc_and_get_section.
358
60a02042
NC
3592017-06-30 Nick Clifton <nickc@redhat.com>
360
361 PR binutils/21665
362 * objdump.c (disassemble_section): Move check for an overlarge
363 section to just before the allocation of memory. Do not check
364 section size against file size, but instead use an arbitrary 2Gb
365 limit. Issue a warning message if the section is too big.
366
909b4e3d
MR
3672017-06-30 Maciej W. Rozycki <macro@imgtec.com>
368
369 * NEWS: Mention microMIPS XPA support.
370
f5b2fd52
MR
3712017-06-30 Maciej W. Rozycki <macro@imgtec.com>
372
373 * NEWS: Mention microMIPS Release 5 ISA support.
374
9785fc2a
MR
3752017-06-30 Maciej W. Rozycki <macro@imgtec.com>
376
377 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: New test.
378 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: New test.
379 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: New test.
380 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: New test.
381 * testsuite/binutils-all/mips/mips-xpa-virt.s: New test source.
382 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
383
e1e94c49
AK
3842017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com>
385
386 * testsuite/binutils-all/arc/double_store.s: New file.
387 * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler
388 options.
389 (do_objfile): New function.
390 (check_assembly): Likewise.
391
88ab90e8
AA
3922017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
393
394 * readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.
395
47fdcf63
L
3962017-06-28 H.J. Lu <hongjiu.lu@intel.com>
397
398 * objdump.c (dump_relocs_in_section): Cast to ufile_ptr when
399 comparing against bfd_get_file_size return.
400
88305e1b
NC
4012017-06-28 Nick Clifton <nickc@redhat.com>
402
403 * objcopy.c (merge_gnu_build_notes): Add support for version 2 notes.
404 * readelf.c (print_gnu_build_attribute_name): Likewise.
405
38bf472a
MR
4062017-06-28 Maciej W. Rozycki <macro@imgtec.com>
407 Matthew Fortune <matthew.fortune@imgtec.com>
408
409 * readelf.c (get_machine_flags) <E_MIPS_MACH_IAMR2>: New case.
410 (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
411 * NEWS: Mention Imagination interAptiv MR2 processor support.
412
cfd14a50
NC
4132017-06-26 Nick Clifton <nickc@redhat.com>
414
415 PR binutils/21665
416 * objdump.c (disassemble_section): Skip any section that is bigger
417 than the entire file.
418
0602cdad
NC
4192017-06-26 Nick Clifton <nickc@redhat.com>
420
421 PR binutils/21659
422 * bucomm.c (get_file_size): Explicitly warn if the file is a
423 directory.
424
ced40572
TP
4252017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
426
427 * readelf.c (arm_attr_tag_CPU_arch): Fill value for ARMv8-R.
428
0e158763
NC
4292017-06-23 Nick Clifton <nickc@redhat.com>
430
431 PR binutils/21659
432 * strings.c (strings_file): Warn about attempts to run strings on
433 a directory.
434
48580982
L
4352017-06-22 H.J. Lu <hongjiu.lu@intel.com>
436
437 * readelf.c (decode_x86_feature): Decode
438 GNU_PROPERTY_X86_FEATURE_1_SHSTK.
439 * testsuite/binutils-all/i386/shstk.d: New file.
440 * testsuite/binutils-all/i386/shstk.s: Likewise.
441 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
442 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
443 * testsuite/binutils-all/x86-64/shstk.s: Likewise.
444
ee2fdd6f
L
4452017-06-22 H.J. Lu <hongjiu.lu@intel.com>
446
447 * readelf.c (decode_x86_feature): New.
448 (print_gnu_property_note): Call decode_x86_feature on
449 GNU_PROPERTY_X86_FEATURE_1_AND.
450 * testsuite/binutils-all/i386/empty.d: New file.
451 * testsuite/binutils-all/i386/empty.s: Likewise.
452 * testsuite/binutils-all/i386/ibt.d: Likewise.
453 * testsuite/binutils-all/i386/ibt.s: Likewise.
454 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
455 * testsuite/binutils-all/x86-64/empty.d: Likewise.
456 * testsuite/binutils-all/x86-64/empty.s: Likewise.
457 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
458 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
459 * testsuite/binutils-all/x86-64/ibt.s: Likewise.
460
19474787
L
4612017-06-21 H.J. Lu <hongjiu.lu@intel.com>
462
463 * dwarf.c (READ_ULEB): Use DWARF_VMA_FMT to report error.
464 (READ_SLEB): Likewise.
465
7f2c8a1d
NC
4662017-06-21 Nick Clifton <nickc@redhat.com>
467
468 PR binutils/21648
469 * dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB. Add check for
470 reading a value that is too big for the containing variable.
471 (SLEB): Rename to SKIP_SLEB and READ_SLEB. Add similar check.
472 Replace uses of LEB and SLEB with appropriate new macro.
473 (display_debug_frames): Use an unsigned int for the 'reg'
474 variable. Use a signed long for the 'l' variable.
475
fd52715c
AK
4762017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
477
478 * readelf.c (get_s390_segment_type): Add support for the new
479 segment type PT_S390_PGSTE.
480 (get_segment_type): Call get_s390_segment_type.
481
d16fdddb
NC
4822017-06-19 Nick Clifton <nickc@redhat.com>
483
484 PR binutils/21619
485 * objdump.c (disassemble_bytes): Check that there is sufficient
486 data available before attempting to display it.
487
d24b7561
SM
4882017-06-06 Simon Marchi <simon.marchi@ericsson.com>
489
490 * sysinfo.y: Free memory allocated by token NAME.
491
10045478
AK
4922017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
493
494 * doc/binutils.texi: Document new cpu=... disassembler options for ARC.
495
8e2f54bc
L
4962017-05-30 H.J. Lu <hongjiu.lu@intel.com>
497
498 PR binutils/21519
499 * objdump.c (dump_relocs_in_section): Replace get_file_size
500 with bfd_get_file_size to get archive element size.
501 * testsuite/binutils-all/objdump.exp (test_objdump_f): New
502 proc.
503 (test_objdump_h): Likewise.
504 (test_objdump_t): Likewise.
505 (test_objdump_r): Likewise.
506 (test_objdump_s): Likewise.
507 Add objdump tests on archive.
508
003ca0fd
YQ
5092017-05-24 Yao Qi <yao.qi@linaro.org>
510
511 * objdump.c (disassemble_data): Caller update.
512
b4f5b984
JM
5132017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
514
515 * objcopy.c (merge_gnu_build_notes): Remove workaround that
516 prevented deleting relocations in duplicated notes in mips64 and
517 sparc.
518
e5713223
MR
5192017-05-19 Maciej W. Rozycki <macro@imgtec.com>
520
521 * testsuite/binutils-all/mips/mips-note-2.d: New test.
522 * testsuite/binutils-all/mips/mips-note-2r.d: New test.
523 * testsuite/binutils-all/mips/mips-note-2-n32.d: New test.
524 * testsuite/binutils-all/mips/mips-note-2-n64.d: New test.
525 * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test.
526 * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test.
527 * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'.
528 Run the new tests.
529
f0681695
MR
5302017-05-19 Maciej W. Rozycki <macro@imgtec.com>
531
532 * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump'
533 option.
534
64517994
JM
5352017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
536
537 * NEWS: Mention the SPARC M8 support.
538
dd47d677
MR
5392017-05-19 Maciej W. Rozycki <macro@imgtec.com>
540
541 * testsuite/binutils-all/mips/mips.exp: Bail out right away if
542 non-ELF.
543
535b785f
AM
5442017-05-18 Alan Modra <amodra@gmail.com>
545
546 * strings.c: Don't compare boolean values against TRUE or FALSE.
547
d8cbc93b
JL
5482017-05-15 Jeff Law <law@redhat.com>
549
550 * readelf.c (display_arc_attribute): Avoid implicit fallthru.
551
3f3467ff
MR
5522017-05-15 Maciej W. Rozycki <macro@imgtec.com>
553
554 * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
555 to `as' flags.
556 * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
557 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
558 * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
559 `.module mips3'.
560 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
561
25499ac7
MR
5622017-05-15 Maciej W. Rozycki <macro@imgtec.com>
563
564 * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
565 * NEWS: Mention MIPS16e2 ASE support.
566
a4f89915
MR
5672017-05-12 Maciej W. Rozycki <macro@imgtec.com>
568
569 * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
570 and SDBBP disassembly.
571
40e5240e
MR
5722017-05-10 Maciej W. Rozycki <macro@imgtec.com>
573
574 * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
575 `copyfile' variables.
576
53a346d8
CZ
5772017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
578
579 * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
580 (get_arc_section_type_name): New function.
581 (get_section_type_name): Use the above function.
582 (display_arc_attribute): New function.
583 (process_arc_specific): Likewise.
584 (process_arch_specific): Handle ARC specific information.
585
21d1fbee
KK
5862017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
587
588 * MAINTAINERS (SH): Remove myself as SH maintainer.
589
2ecf0cc3
L
5902017-05-02 H.J. Lu <hongjiu.lu@intel.com>
591
592 * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
593 long when comparing with sec->reloc_count.
594
1395c6ce
NC
5952017-05-02 Nick Clifton <nickc@redhat.com>
596
597 * objcopy.c (merge_gnu_build_notes): Disable merge if there are
598 more internal relocs than external relocs.
599
a4ddc54e
MR
6002017-05-02 Maciej W. Rozycki <macro@imgtec.com>
601
602 * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
603 disassembly of PC-relative LA and LW synthetic instructions.
604
39ff1b79
NC
6052017-05-02 Nick Clifton <nickc@redhat.com>
606
607 PR 21440
608 * objdump.c (dump_relocs_in_section): Check for an excessive
609 number of relocs before attempting to dump them.
610
ee7e95ef
AM
6112017-05-01 Alan Modra <amodra@gmail.com>
612
613 * objcopy.c (merge_gnu_build_notes): Correct code deleting
614 relocs.
615
b06b2c92
NC
6162017-04-28 Nick Clifton <nickc@redhat.com>
617
618 PR binutils/21439
619 * readelf.c (print_gnu_build_attribute_name): Allow for an empty
620 name field.
621
4e3afec2
NC
6222017-04-28 Nick Clifton <nickc@redhat.com>
623
624 PR binutils/21437
625 * readelf.c (process_version_sections): Check for underflow when
626 computing the start address of the auxillary version data.
627
d949ff56
NC
6282017-04-28 Nick Clifton <nickc@redhat.com>
629
630 PR binutils/21438
631 * dwarf.c (process_extended_line_op): Do not assume that the
632 string extracted from the section is NUL terminated.
633 (fetch_indirect_string): If the string retrieved from the section
634 is not NUL terminated, return an error message.
635 (fetch_indirect_line_string): Likewise.
636 (fetch_indexed_string): Likewise.
637
740a4630
NC
6382017-04-26 Nick Clifton <nickc@redhat.com>
639
d21f3ddb 640 PR binutils/21433
740a4630
NC
641 * bucomm.c (get_file_size): Return -1 if file_name is NULL.
642 * ar.c (main): Fail with usage() invocation if no file names are
643 provided.
644
3e6b6445
NC
6452017-04-26 Nick Clifton <nickc@redhat.com>
646
647 * readelf.c (process_section_headers): Warn about overlarge
648 sections.
649 (print_gnu_build_attribute_name): Print the number of unrecognised
650 note types. Fix formatting in the presence of errors.
651 (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
652 (testsuite/binutils-all/note-2-64.s): Likewise.
653
bbdd9a68
MR
6542017-04-26 Maciej W. Rozycki <macro@imgtec.com>
655
656 * readelf.c (process_mips_specific): Add static GOT support.
657
c4ab9505
MR
6582017-04-25 Maciej W. Rozycki <macro@imgtec.com>
659
660 * readelf.c (process_mips_specific): Remove error reporting from
661 GOT[1] processing.
662
919383ac
MR
6632017-04-25 Maciej W. Rozycki <macro@imgtec.com>
664
665 * readelf.c (process_mips_specific): Remove null GOT data check.
666
6e3d1f07
MR
6672017-04-25 Maciej W. Rozycki <macro@imgtec.com>
668
669 * testsuite/binutils-all/mips/mips16-alias.d: New test.
670 * testsuite/binutils-all/mips/mips16-noalias.d: New test.
671 * testsuite/binutils-all/mips/mips16-alias.s: New test source.
672 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
673
42354845
AM
6742017-04-23 Alan Modra <amodra@gmail.com>
675
676 PR 21418
677 * ar.c (main): Check -a, -b, -i and -N args are given.
678
7034215f
AM
6792017-04-23 Alan Modra <amodra@gmail.com>
680
681 PR 21417
682 * ar.c (main): Check that an archive file is given after options.
683
b02cd3e9
AM
6842017-04-23 Alan Modra <amodra@gmail.com>
685
686 PR 21415
687 * objdump.c (disassemble_section): Check bfd_get_section_contents
688 status.
689
f082820d
AM
6902017-04-23 Alan Modra <amodra@gmail.com>
691
692 PR 21408
693 * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
694 file_table.
695
ddef72cd
NC
6962017-04-21 Nick Clifton <nickc@redhat.com>
697
698 PR binutils/21378
699 * readelf.c (print_gnu_build_attribute_name): Check for an
700 overlarge name field.
701
7296a62a
NC
7022017-04-13 Nick Clifton <nickc@redhat.com>
703
704 PR binutils/21379
705 * readelf.c (process_dynamic_section): Detect over large section
706 offsets in the DT_SYMTAB entry.
707
7082017-04-13 Nick Clifton <nickc@redhat.com>
709
710 PR binutils/21345
711 * readelf.c (process_mips_specific): Catch an unfeasible memory
712 allocation before it happens and print a suitable error message.
713
1d15e434
NC
7142017-04-13 Nick Clifton <nickc@redhat.com>
715
716 * objcopy.c: Add --no-merge-notes option to disable note merging.
717 Add --[no-]merge-notes option to strip, and enable it by default.
718 (num_bytes): New function.
719 (merge_gnu_build_notes): Add code to merge stack size notes.
720 * binutils.texi: Update strip and objcopy documentation.
721 * readelf.c (print_gnu_build_attribute_name): Use defined
722 constants for note types.
723
28d909e5
JD
7242017-04-10 John Delsignor <john.delsignore@roguewave.com>
725
726 PR binutils/21319
727 * dwarf.c (display_gdb_index): Correct test for a corrupt address
728 table size.
729
0f65a5d8
JW
7302017-04-05 Jiong Wang <jiong.wang@arm.com>
731
732 * objcopy.c (struct redefine_node): Delete the field "next".
733 (redefine_sym_list): Deleted.
734 (redefine_specific_htab): New hash table.
735 (redefine_specific_reverse_htab): Likewise.
736 (eq_string_redefnode): New function.
737 (htab_hash_redefnode): Likewise.
738 (create_symbol2redef_htab): Likewise.
739 (add_specific_symbol_node): Likewise.
740 (create_symbol_htabs): Create redefine_specific_htab and
741 redefine_specific_reverse_htab.
742 (lookup_sym_redefinition): Use hash table instead of list.
743 (redefine_list_append): Likewise, and rename to add_redefine_and_check.
744 (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
745 Update comments.
746
a91e1603
L
7472017-04-04 H.J. Lu <hongjiu.lu@intel.com>
748
749 * NEWS: Mention support for ELF SHF_GNU_MBIND and
750 PT_GNU_MBIND_XXX.
751 * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
752 (get_elf_section_flags): Handle SHF_GNU_MBIND.
753 (process_section_headers): Likewise.
754 * testsuite/binutils-all/mbind1.s: New file.
755 * testsuite/binutils-all/objcopy.exp: Run readelf test on
756 mbind1.s.
757
82156ab7
NC
7582017-04-03 Nick Clifton <nickc@redhat.com>
759
760 PR binutils/21345
761 * readelf.c (get_program_headers): Check for there being too many
762 program headers before attempting to allocate space for them.
763
75ec1fdb
NC
7642017-04-03 Nick Clifton <nickc@redhat.com>
765
766 PR binutils/21344
767 * readelf.c (process_mips_specific): Check for an out of range GOT
768 entry before reading the module pointer.
769
f32ba729
NC
7702017-04-03 Nick Clifton <nickc@redhat.com>
771
772 PR binutils/21343
773 * readelf.c (get_unwind_section_word): Fix snafu checking for
774 invalid word offsets in ARM unwind information.
775
efdf7a02
PC
7762017-03-31 Pip Cet <pipcet@gmail.com>
777
778 * NEWS: Use "WebAssembly" consistently.
779 * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
780
f96bd6c2
PC
7812017-03-30 Pip Cet <pipcet@gmail.com>
782
783 * readelf.c: Add support for wasm32 ELF format WebAssembly files.
784 (guess_is_rela): Likewise.
785 (dump_relocations): Likewise.
786 (is_32bit_abs_reloc): Likewise.
787 (is_none_reloc_): Likewise.
788 * NEWS: Mention the new support.
789 * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
790 as ELF target.
791 (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
792 * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
793 * testsuite/binutils-all/wasm32: New directory.
794 * testsuite/binutils-all/wasm32/create-wasm.d: New file.
795 * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
796 * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
797 * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
798 * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
799 * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
800 * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
801 * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
802 * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
803 * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
804 * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
805 * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
806 * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
807 * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
808 * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
809
52be03fd
AM
8102017-03-29 Alan Modra <amodra@gmail.com>
811
812 * doc/binutils.texi (objdump): Document PowerPC -M options.
813
4a14e306
AK
8142017-03-21 Andi Kleen <ak@linux.intel.com>
815
816 * objdump.c (unwind_inlines): Add.
817 (option_values): Add OPTION_INLINES.
818 (show_line): Unwind inlines if requested.
819 (main): Parse OPTION_INLINES.
820 (usage): Document --inlines.
821 * doc/binutils.texi: Document --inlines.
822 * NEWS: Likewise.
823
75d7d298
NC
8242017-03-21 Nick Clifton <nickc@redhat.com>
825
826 * readelf.c (print_gnu_build_attribute_name): Allow stack
827 protection notes to contain numeric values. Use a colon rather
828 than a space to separate a string name from its values. Decode
829 the numeric value of a stack protection note.
830 * objcopy.c (merge_gnu_build_notes): Allow version notes to
831 contain extra text after the protocol version number.
832
39e224f6
MW
8332017-03-20 Mark Wielaard <mark@klomp.org>
834
835 * readelf.c (process_program_headers): Move dynamic_addr check
836 after .dynamic section cross check.
837
0dd6ae21
NC
8382017-03-17 Nick Clifton <nickc@redhat.com>
839
840 * readelf.c (print_gnu_build_attribute_name): Fix off by one error
841 printing the value for a build note with an ascii name.
842
a8be5506
NC
8432017-03-16 Nick Clifton <nickc@redhat.com>
844
845 * readelf.c (print_gnu_build_attribute_name): Add support for
846 GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
847
c799a79d
NC
8482017-03-14 Nick Clifton <nickc@redhat.com>
849
850 * readelf.c (print_gnu_build_attribute_description): Move symbol
851 printing code to...
852 (print_symbol_for_build_attribute): New function. ...here.
853 Add to find the best symbol to associate with an OPEN note.
854 Add code to cache the symbol table and string table, so that they
855 are not loaded every time a note is displayed.
856 * testsuite/binutils-all/note-2-32.s: Add a function symbol.
857 * testsuite/binutils-all/note-2-64.s: Likewise.
858 * testsuite/binutils-all/note-2-32.d: Update expected note output.
859 * testsuite/binutils-all/note-2-64.d: Likewise.
860
5ef2d51b
AM
8612017-03-13 Alan Modra <amodra@gmail.com>
862 Taeung Song <treeze.taeung@gmail.com>
863
864 * objdump.c (update_source_path): Add abfd param. Add struct
865 stat var. Pass to try_print_file_open. Warn if source is more
866 recent than object.
867 (try_print_file_open, slurp_file): Add struct stat param to
868 return fstat.
869 (show_line): Call update_source_path with bfd.
870
7b5d4822
CHL
8712017-03-10 Chia-Hao Lo <fcamel@gmail.com>
872
873 PR binutils/21235
874 * objdump.c (main): Set do_wide with --wide.
875
55e22ca8
NC
8762017-03-10 Nick Clifton <nickc@redhat.com>
877
878 * readelf.c (get_machine_name): Rearrange switch table in order of
879 increasing machine number. Add missing entries.
880
1fc87489
L
8812017-03-08 H.J. Lu <hongjiu.lu@intel.com>
882
883 PR binutils/21231
884 * readelf.c (decode_x86_isa): Change argument to unsigned int.
885 (print_gnu_property_note): Retrieve property type and datasz as
886 4-byte integer. Consolidate property datasz check. Check
887 GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
888 * testsuite/binutils-all/i386/pr21231a.d: New file.
889 * testsuite/binutils-all/i386/pr21231a.s: Likewise.
890 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
891 * testsuite/binutils-all/i386/pr21231b.s: Likewise.
892 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
893 * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
894 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
895 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
896
79a964dc
NC
8972017-03-06 Nick Clifton <nickc@redhat.com>
898
899 * readelf.c (print_gnu_build_attribute_name): Read byte values
900 from the name string as unsigned bytes.
901 (process_notes_at): Use memcpy to copy an unterminated name
902 string.
903
1f5345a6
ST
9042017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
905
906 * configure.ac (AC_CHECK_DECLS): Add asprintf.
907 * config.in: Regenerate.
908 * configure: Regenerate.
909
c871dade
NC
9102017-03-02 Nick Clifton <nickc@redhat.com>
911
912 * readelf.c (print_gnu_build_attribute_description): Use global
913 symbols for OPEN attributes if at all possible.
05ed4310
NC
914 * objcopy.c (is_merged_note_section): Support build note sections
915 without the SHF_GNU_BUILD_NOTE section flag set.
c871dade 916
b451e98a
JK
9172017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
918
919 * dwarf.c (debug_displays_assert): New static assertion.
920
d4620bee
JK
9212017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
922
923 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
924
9ef920e9
NC
9252017-03-01 Nick Clifton <nickc@redhat.com>
926
927 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
928 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
929 (decode_x86_isa): New function.
930 (print_gnu_property_note): New function.
931 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
932 (print_gnu_build_attribute_description): New function.
933 (print_gnu_build_attribute_name): New function.
934 (process_note): Add support for GNU_BUILD_NOTEs.
935 * objcopy.c (--merge-notes): New command line option.
936 (copy_options): Add merge-notes.
937 (copy_usage): Likewise.
938 (is_merge_note_section): New function.
939 (merge_gnu_build_notes): New function.
940 (copy_object): Merge note sections if asked to do so.
941 (skip_section): Add skip_copy parameter. Add support for skipping
942 merged note sections.
943 (copy_relocations_in_section): Update call to skip_section.
944 (copy_section): Likewise.
945 (copy_main): Add support for merge-notes option.
946 * doc/binutils.texi: Document the new option to objcopy.
947 * NEWS: Mention the new feature.
948 * testsuite/binutils-all/note-2-32.d: New test. Checks note
949 merging on 32-bit targets.
950 * testsuite/binutils-all/note-2-32.s: New test source file.
951 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
952 but for 64-bit targets.
953 * testsuite/binutils-all/note-2-64.s: New test source file.
954 * testsuite/binutils-all/objcopy.exp: Run the new test.
955
65b48a81
PB
9562017-02-28 Peter Bergner <bergner@vnet.ibm.com>
957
958 * objdump.c (main): Use remove_whitespace_and_extra_commas.
959
9dfd0db9
JK
9602017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
961
962 Fix compilation with GCC 4.4.7.
963 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
964 Initialize begin and end.
965
3b83ea38
AM
9662017-02-25 Alan Modra <amodra@gmail.com>
967
968 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
969 Support hpux .comm variant.
970 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
971 dw5 test for hppa64-hpux.
972
32ec8896
NC
9732017-02-24 Nick Clifton <nickc@redhat.com>
974
975 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
976 (do_reloc, do_sections, do_section_groups, do_section_details,
977 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
978 (do_version, do_histogram, do_debugging, do_arch, do_notes,
979 (do_archive_index, is_32bit_elf, decompress_dumps): Use
980 bfd_boolean type.
981 (parse_args): Treat the do_* variables as booleans.
982 (print_vma): Return an unsigned int.
983 (print_symbol): Change width parameter to signed int.
984 (is_ia64_vms): Change return type to bfd_boolean.
985 (guess_is_rela): Likewise.
986 (slurp_rela_relocs): Likewise.
987 (slurp_rel_relocs): Likewise.
988 (dump_relocations): Likewise.
989 (process_file_header): Likewise.
990 (get_program_headers): Likewise.
991 (process_program_headers): Likewise.
992 (process_section_headers): Likewise.
993 (process_section_groups): Likewise.
994 (dump_ia64_vms_dynamic_fixups): Likewise.
995 (dump_ia64_vms_dynamic_relocs): Likewise.
996 (process_ia64_vms_dynamic_relocs): Likewise.
997 (process_relocs): Likewise.
998 (dump_ia64_unwind): Likewise.
999 (ia64_process_unwind): Likewise.
1000 (dump_hppa_unwind): Likewise.
1001 (slurp_hppa_unwind_table): Likewise.
1002 (hppa_process_unwind): Likewise.
1003 (decode_arm_unwind_bytecode): Likewise.
1004 (decode_tic6x_unwind_bytecode): Likewise.
1005 (decode_arm_unwind): Likewise.
1006 (dump_arm_unwind): Likewise.
1007 (arm_process_unwind): Likewise.
1008 (process_unwind): Likewise.
1009 (get_32bit_dynamic_section): Likewise.
1010 (get_64bit_dynamic_section): Likewise.
1011 (process_dynamic_section): Likewise.
1012 (process_version_sections): Likewise.
1013 (process_symbol_table): Likewise.
1014 (process_syminfo): Likewise.
1015 (apply_relocations): Likewise.
1016 (disassemble_section): Likewise.
1017 (dump_section_as_strings): Likewise.
1018 (dump_section_as_bytes): Likewise.
1019 (load_specific_debug_section): Likewise.
1020 (load_debug_section): Likewise.
1021 (display_debug_section): Likewise.
1022 (process_section_contents): Likewise.
1023 (process_attributes): Likewise.
1024 (process_nds32_specific): Likewise.
1025 (process_gnu_liblist): Likewise.
1026 (print_core_note): Likewise.
1027 (print_gnu_note): Likewise.
1028 (print_v850_note): Likewise.
1029 (process_netbsd_elf_note): Likewise.
1030 (print_stapsdt_note): Likewise.
1031 (print_ia64_vms_note): Likewise.
1032 (process_note): Likewise.
1033 (process_notes_at): Likewise.
1034 (process_corefile_note_segments): Likewise.
1035 (process_v850_notes): Likewise.
1036 (process_note_sections): Likewise.
1037 (process_notes): Likewise.
1038 (process_arch_specific): Likewise.
1039 (get_file_header): Likewise.
1040 (process_object): Likewise.
1041 (process_archive): Likewise.
1042 (process_file): Likewise.
1043 (section_subset): Make static.
1044 (get_mips_reg_size): Return a signed integer.
1045 (process_object): Reverse the logic of the return value.
1046 (process_archive): Likewise.
1047 (process_file): Likewise.
6b4bf3bc
NC
1048 (process_program_headers): Fix snafu - if the program headers are
1049 not available then this is not a cause to fail.
1050 (process_corefile_note_segments): Likewise.
32ec8896 1051
7bb1ad17
MR
10522017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1053
1054 * readelf.c (get_ver_flags): Tidy the formatting of the string
1055 returned
1056
5235cd68
MR
10572017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1058
1059 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
1060 `isum' unsigned.
1061 <SHT_GNU_verneed>: Likewise.
1062
c9f02c3e
MR
10632017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1064
1065 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
1066 the number of entries processed by the section size. Don't
1067 break out of the loop if `ent.vd_next' is 0.
1068
a567769b
JK
10692017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1070
1071 * testsuite/binutils-all/dw5.S: New file.
1072 * testsuite/binutils-all/dw5.W: New file.
1073 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
1074
2f6cd591
JK
10752017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1076
1077 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
1078
7a7e1061
JK
10792017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1080
1081 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
1082 DW_MACRO_GNU_*.
1083
bc0a77d2
JK
10842017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1085
1086 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
1087 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
1088 and DW_OP_reinterpret.
1089 (read_and_display_attr_value): Support DW_AT_call_value,
1090 DW_AT_call_data_value, DW_AT_call_target and
1091 DW_AT_call_target_clobbered.
1092
77145576
JK
10932017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1094
1095 * dwarf.c (fetch_indirect_line_string): New function.
1096 (abbrev_attr): New field implicit_const.
1097 (add_abbrev_attr): New parameter implicit_const.
1098 (process_abbrev_section): Support DW_FORM_implicit_const.
1099 (decode_location_expression): Support DW_OP_entry_value.
1100 (read_and_display_attr_value): Add parameter implicit_const. Support
1101 DW_FORM_line_strp and DW_FORM_implicit_const.
1102 (read_and_display_attr): Add parameter implicit_const.
1103 (process_debug_info): Support line_str and DWARF-5.
1104 (read_debug_line_header): Support DWARF-5.
1105 (display_formatted_table): New function.
1106 (display_debug_lines_raw): New parameter file. Support DWARF-5.
1107 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
1108 (display_debug_lines): Pass file parameter.
1109 (display_debug_macro): Update read_and_display_attr_value caller.
1110 (display_debug_abbrev): Support DW_FORM_implicit_const.
1111 (display_loclists_list): New function.
1112 (display_loc_list): Support .debug_loclists.
1113 (display_debug_ranges_list): New function from display_debug_ranges.
1114 (display_debug_rnglists_list): New function.
1115 (display_debug_ranges): Support .debug_rnglists.
1116 (debug_displays): Add .debug_line_str, .debug_loclists and
1117 .debug_rnglists.
1118 * dwarf.h: Include dwarf2.h
1119 (DWARF2_Internal_LineInfo): Add li_offset_size.
1120 (DWARF2_Internal_CompUnit): Add cu_unit_type.
1121 (enum dwarf_section_display_enum): Add line_str.
1122 * readelf.c (process_section_headers): Add rnglists and loclists.
1123
ef0b5f1c
JK
11242017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1125
1126 * dwarf.c (display_block): Add parameter delimiter.
1127 (decode_location_expression): Update display_block callers.
1128 (read_and_display_attr_value): Add parameter delimiter.
1129 (read_and_display_attr, display_debug_macro): Update
1130 read_and_display_attr_value caller.
1131
359ca075
JK
11322017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1133
1134 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
1135 and off.
1136 (display_loc_list_dwo): Use dwarf_vma for offset.
1137 (display_debug_loc): Use dwarf_vma for offset, base_address.
1138 (struct range_entry, range_entry_compar): Use dwarf_vma for
1139 ranges_offset.
1140 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
1141 base_address.
1142
60abdbed
NC
11432017-02-23 Nick Clifton <nickc@redhat.com>
1144
1145 * readelf.c (display_tag_value): Use an explicit signed type for
1146 the tag parameter.
1147 (display_gnu_attributes): Use an unsigned integer type for
1148 attribute tags.
1149 (display_power_gnu_attribute): Likewise.
1150 (display_s390_gnu_attribute): Likewise.
1151 (display_sparc_hwcaps): Likewise.
1152 (display_sparc_hwcaps2): Likewise.
1153 (display_sparc_gnu_attribute): Likewise.
1154 (display_mips_gnu_attribute): Likewise.
1155 (display_tic6x_attribute): Likewise.
1156 (display_raw_attribute): Likewise.
1157 (process_attributes): Likewise.
1158 (process_arm_specific): Delete redundant function.
1159 (process_power_specific): Likewise.
1160 (process_s390_specific): Likewise.
1161 (process_sparc_specific): Likewise.
1162 (process_tic6x_specific): Likewise.
1163 (process_msp430x_specific): Likewise.
1164 (display_public_gnu_attributes): New function. Displays known
1165 information about an unknown gnu attribute.
1166 (display_generic_attribute): New function. Calls
1167 display_tag_value for non-nul tags.
1168 (process_arch_specific): Call process_attributes even for
1169 architectures not known to specifically support gnu attributes.
1170
0502a2b4
JK
11712017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1172
1173 * dwarf.c (decode_location_expression): Display also OP.
1174
233f82cf
MR
11752017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1176
1177 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
1178 new line between the heading and the first version definition
1179 entry.
1180
43a444f9
NC
11812017-02-20 Nick Clifton <nickc@redhat.com>
1182
1183 PR binutils/21156
1184 * dwarf.c (cu_tu_indexes_read): Move into...
1185 (load_cu_tu_indexes): ... here. Change the variable into
1186 tri-state. Change the function into boolean, returning
1187 false if the indicies could not be loaded.
1188 (find_cu_tu_set): Return NULL if the indicies could not be
1189 loaded.
1190
b814a36d
NC
11912017-02-17 Nick Clifton <nickc@redhat.com>
1192
1193 PR binutils/21156
1194 * readelf.c (find_section_in_set): Test for invalid section
1195 indicies.
1196
1b4b80bf
NC
11972017-02-17 Nick Clifton <nickc@redhat.com>
1198
1199 * readelf.c (get_section_type_name): Add decoding of GNU section
1200 types.
1201
7c723eec
NC
12022017-02-15 Nick Clifton <nickc@redhat.com>
1203
1204 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
1205 Maintainers section.
1206
bc303e5d
NC
12072017-02-14 Nick Clifton <nickc@redhat.com>
1208
1209 PR binutils/21159
1210 * readelf.c (dump_section_as_strings): Reset the start address if
1211 no decompression is perfromed.
1212 (dump_section_as_bytes): Likewise.
1213
92134dc1
NC
12142017-02-14 Nick Clifton <nickc@redhat.com>
1215
1216 PR binutils/21158
1217 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
1218 empty symbol name.
1219
a2dea0b2
NC
12202017-02-14 Nick Clifton <nickc@redhat.com>
1221
1222 PR binutils/21157
1223 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
1224 pairs.
1225 (parse_number): Exit early if passed an empty string.
1226
b32e566b
NC
12272017-02-14 Nick Clifton <nickc@redhat.com>
1228
1229 PR binutils/21155
1230 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
1231 being within a given range.
1232 (target_specific_reloc_handling): Use macro to test for underflow
1233 as well as overflow of reloc offset.
1234
c1221402
NC
12352017-02-13 Nick Clifton <nickc@redhat.com>
1236
1237 PR binutils/21150
1238 * nm.c (file_symbol): Add test of string length before testing
1239 string characters.
1240
f055032e
NC
12412017-02-13 Nick Clifton <nickc@redhat.com>
1242
1243 PR binutils/21135
1244 * readelf.c (dump_section_as_bytes): Handle the case where
1245 uncompress_section_contents returns false.
1835f746 1246 (dump_section_as_bytes, load_specific_debug_section): Likewise.
f055032e 1247
ebdf1ebf
NC
12482017-02-13 Nick Clifton <nickc@redhat.com>
1249
1250 PR binutils/21149
1251 * readelf.c (get_compression_header): Add size parameter. Check
1252 size against sizeof compression header before attempting to
1253 extract the header.
1254 (process_section_headers): Pass size to get_compression_header.
1255 (dump_section_as_strings): Likewise.
1256 (dump_section_as_bytes): Likewise.
1257 (load_specific_debug_section): Likewise.
1258
4aeb00ad
NC
12592017-02-13 Nick Clifton <nickc@redhat.com>
1260
1261 PR binutils/21148
1262 * readelf.c (process_version_sections): Include size of auxillary
1263 version information when checking for buffer overflow.
1264
0ee3043f
NC
12652017-02-13 Nick Clifton <nickc@redhat.com>
1266
1267 PR binutils/21147
1268 * readelf.c (process_section_contents): Fix off by one error
1269 reporting un-dumped sections.
1270
f84ce13b
NC
12712017-02-13 Nick Clifton <nickc@redhat.com>
1272
1273 PR binutils/21139
1274 * readelf.c (target_specific_reloc_handling): Add num_syms
1275 parameter. Check for symbol table overflow before accessing
1276 symbol value. If reloc pointer is NULL, discard all saved state.
1277 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
1278 Call target_specific_reloc_handling with a NULL reloc pointer
1279 after processing all of the relocs.
1280
03f7786e
NC
12812017-02-13 Nick Clifton <nickc@redhat.com>
1282
1283 PR binutils/21137
1284 * readelf.c (target_specific_reloc_handling): Add end parameter.
1285 Check for buffer overflow before writing relocated values.
1286 (apply_relocations): Pass end to target_specific_reloc_handling.
1287
387dd777
DP
12882017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1289 Nick Clifton <nickc@redhat.com>
1290
1291 PR 20343
1292 * doc/binutils.texi (ar): Extend documentation of the --plugin
1293 option. Include a description of where the plugins should be
1294 located.
1295 (nm): Likewise.
1296
cf581a9b
NC
12972017-01-23 Nick Clifton <nickc@redhat.com>
1298
1299 * MAINTAINERS: Add Bernd to Past Maintainers section.
c49f9d0f 1300 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
71d01c69 1301 section.
cf581a9b 1302
715e99a4
BS
13032017-01-23 Bernd Schmidt <bschmidt@redhat.com>
1304
1305 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
1306
1737c640
AB
13072017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1308
1309 * objdump.c (dump_section_header): Extract max section name length
1310 from data parameter, use this when formatting output.
1311 (find_longest_section_name): New function.
1312 (dump_headers): Calculate longest section name when in wide mode,
1313 reformat to unify printing of header line.
1314
2cedb9eb
BR
13152017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
1316
1317 PR 21059
1318 * arlex.l: Support processing with flex 2.6.3.
1319 * deflex.l: Likewise.
1320
6bb21700
DT
13212017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
1322
1323 * resbin.c: Optional dialog control data immediately follows
1324 the control description without alignment.
1325 * testsuite/binutils-all/windres/controldata.rc: New test.
1326 source.
1327 * testsuite/binutils-all/windres/controldata.rsd: New test.
1328
2425a30e
NC
13292017-01-12 Nick Clifton <nickc@redhat.com>
1330
1331 PR binutils/20876
1332 * NEWS: Mention the new feature.
1333 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
1334 New proc to test the location of separate debug info files using
1335 the build-id method.
1336
b972a0d6
NC
13372017-01-10 Nick Clifton <nickc@redhat.com>
1338
1339 PR 21034
1340 * stabs.c (parse_stab_members): Fix thinko checking for g++
1341 version 1 stabs information.
1342
cd6581da
NC
13432017-01-09 Nick Clifton <nickc@redhat.com>
1344
1345 * objdump.c (display_file): Add new parameter 'last_file'. If
1346 last_file is true, do not call bfd_close at the end of the
1347 function.
1348 (main): Set the value of the last_file parameter when calling
1349 display_file.
1350
4d74727a
AM
13512017-01-09 Alan Modra <amodra@gmail.com>
1352
1353 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
1354 comment.
1355
fd13a84b
NC
13562017-01-06 Nick Clifton <nickc@redhat.com>
1357
1358 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
1359
b0556316
DP
13602017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
1361
1362 PR 20958
1363 * syslex.l (option): Add noyywrap
1364 (yywrap): Delete.
1365
2571583a
AM
13662017-01-02 Alan Modra <amodra@gmail.com>
1367
1368 Update year range in copyright notice of all files.
1369
5c1ad6b5 1370For older changes see ChangeLog-2016
3499769a 1371\f
5c1ad6b5 1372Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
1373
1374Copying and distribution of this file, with or without modification,
1375are permitted in any medium without royalty provided the copyright
1376notice and this notice are preserved.
1377
1378Local Variables:
1379mode: change-log
1380left-margin: 8
1381fill-column: 74
1382version-control: never
1383End: