]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
S390: Document guarded-storage register support
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
9f272209
AO
12017-09-22 Alexandre Oliva <aoliva@redhat.com>
2
3 * dwarf.h (debug_info): Add loc_views and num_loc_views.
4 * dwarf.c (vm1): New constant.
5 (print_dwarf_view): New function.
6 (read_and_display_attr_value): Support DW_AT_GNU_locviews.
7 (process_debug_info): Keep num_loc_offsets and num_loc_views
8 in sync.
9 (display_view_pair_list): New function.
10 (display_loc_list_dwo): Take vstart_ptr; update it. Dump
11 location view pairs before the range they apply to, when a
12 viewlist augments the loc list.
13 (display_loc_list): Likewise. Check view numbers in range
14 tests.
15 (display_loclists_list): Likewise. Handle view pair entries,
16 and warn on trailing ones.
17 (loc_views): New variable.
18 (loc_offsets_compar): Compare loc_views if loc_offsets are the
19 same.
20 (display_debug_loc): Check and sort loc_views too. Accept
21 loc_view as expected_start. Skip if lists and views are the
22 same. Dump locview list separately in order, and pass the
23 locview list base to each list dump function. Warn and skip
24 overlap and hole checking if we find loclists and locviews to
25 not be adjacent.
26 * testsuite/binutils-all/locview-1.s: New.
27 * testsuite/binutils-all/readelf.locview-1: New.
28 * testsuite/binutils-all/locview-2.s: New.
29 * testsuite/binutils-all/readelf.locview-2: New.
30 * testsuite/binutils-all/readelf.exp: Run new tests. Fix
31 option spelling in pr18374 fail message. XFAIL dw5 test on
32 nds32*-elf.
33
11bb0c7a
AM
342017-09-22 Alan Modra <amodra@gmail.com>
35
36 * testsuite/binutils-all/readelf.exp: Don't perror and exit on
37 bintest.s assembly failure. Report tests unresolved instead.
38 Likewise for version note test, pr18374, decompress, and dw5
39 tests.
40 (readelf_test): Set testname to include both option and binary
41 file name. Use for pass/fail.
42
ef272caa
MR
432017-09-21 Maciej W. Rozycki <macro@imgtec.com>
44
45 * readelf.c (get_machine_flags) <E_MIPS_MACH_5900>: New case.
46
f17e9d8a
NC
472017-09-05 Nick Clifton <nickc@redhat.com>
48
49 PR 21995
50 * readelf.c (process_mips_specific): Add checks for a NULL data
51 pointer.
52
83eef883
AFB
532017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com>
54 Edmar Wienskoski <edmar.wienskoski@nxp.com
55
56 * readelf.c (get_elf_section_flags): Add VLE.
57 (process_section_headers): Add VLE key to details.
58
1445030f
AM
592017-08-25 Alan Modra <amodra@gmail.com>
60
61 PR 21994
62 * readelf.c (process_version_sections <SHT_GNU_verdef>): Check
63 vd_aux and vda_next for sanity. Delete "end". Correct overflow
64 checks.
65 (process_version_sections <SHT_GNU_verneed>): Correct overflow
66 check. Don't report invalid vna_next on overflow. Do report
67 invalid vna_next on size less than aux info.
68
452bf675
AM
692017-08-23 Alan Modra <amodra@gmail.com>
70
71 PR 21990
72 * readelf.c (process_version_sections <SHT_GNU_verneed>): Check
73 for invalid vn_next field before adding to idx. Use unsigned
74 long for index vars. Move index checks.
75 <SHT_GNU_verdef>: Likewise for vd_next.
76
714da62f
NC
772017-08-17 Nick Clifton <nickc@redhat.com>
78
79 * testsuite/binutils-all/note-3-64.s: New test. Checks assembly
80 and decoding of version2 GNU build attribute notes.
81 * testsuite/binutils-all/note-3-32.s: New test. 32-bit version of
82 the above test.
83 * testsuite/binutils-all/note-3-64.d: New test driver.
84 * testsuite/binutils-all/note-3-32.d: New test driver.
85 * testsuite/binutils-all/objcopy.exp: Run the new test.
86 * readelf.c (is_64bit_abs_reloc): Add R_SPARC_64.
87
66c3b5f8
GR
882017-08-14 Gustavo Romero <gromero@linux.vnet.ibm.com>
89
90 * readelf.c (get_note_type): Handle PPC note types available
91 since Linux 4.8.
92
483767a3
AM
932017-08-12 Alan Modra <amodra@gmail.com>
94
95 * readelf.c (process_note): Qualify NT_GNU_BUILD_ATTRIBUTE notes
96 by name data.
97
cea7a285
NC
982017-08-08 Nick Clifton <nickc@redhat.com>
99
100 PR 21909
101 * prdbg.c (pr_int_type): Increase size of local string buffer.
102 (pr_float_type): Likewise.
103 (pr_bool_type): Likewise.
104
70b0cf90
NC
1052017-08-02 Nick Clifton <nickc@redhat.com>
106
107 PR 21702
108 * arsup.c (ar_addmod): Add plugin support for the MRI ADDMOD
109 command.
110
75800d2c
NC
1112017-08-02 Nick Clifton <nickc@redhat.com>
112
113 * testsuite/binutils-all/objdump.exp (cpus_expected): Add am33-2.
114
262cdac7
AM
1152017-08-02 Alan Modra <amodra@gmail.com>
116
117 * readelf.c (is_32bit_abs_reloc): Add R_IA64_SECREL32MSB and
118 R_IA64_DIR32MSB.
119 (is_64bit_abs_reloc): Add R_IA64_DIR64MSB.
120 (is_64bit_pcrel_reloc): Add R_IA64_PCREL64MSB.
121
60c4393c
NC
1222017-08-01 Nick Clifton <nickc@redhat.com>
123
124 * po/sv.po: Updated Swedish translation.
125
54387c7f
MP
1262017-07-31 Marty Plummer <ntzrmtthihu777@gmail.com>
127
128 PR 21861
129 * winduni.c (codepages): Use cp1252 for codepage 0.
130
ec064256
NC
1312017-07-25 Nick Clifton <nickc@redhat.com>
132
133 PR 21820
134 * readelf.c (dump_section_as_strings): Do not fail if the section
135 was empty.
136 (dump_section_as_bytes): Likewise.
137
ca4cf9b9
NC
1382017-07-24 Nick Clifton <nickc@redhat.com>
139
140 PR 21813
141 * rddbg.c (read_symbol_stabs_debugging_info): Check for an empty
142 string whilst concatenating symbol names.
143
82c78066
NC
1442017-07-21 Nick Clifton <nickc@redhat.com>
145
146 * po/fr.po: Updated French translation.
147
b57e815c
SM
1482017-07-21 Simon Marchi <simon.marchi@ericsson.com>
149
150 * dwarf.c (last_pointer_size, warned_about_missing_comp_units):
151 Remove.
152 (load_debug_info): Remove assignments to those two variables.
153
ba8826a8
AO
1542017-07-21 Alexandre Oliva <aoliva@redhat.com>
155
156 * dwarf.c (struct State_Machine_Registers): Add view field.
157 (reset_state_machine): Reset view.
158 (process_extended_line_op): Reset view when appropriate.
159 (display_debug_lines_raw): Increment or reset view when appropriate.
160 Print nonzero views. Support print view resets, disabled by default.
161 (display_debug_lines_decoded): Likewise. Disambiguate op_code tests,
162 enabling printing of end_sequence.
163 * testsuite/binutils-all/dw2-1.W: Add nonzero views.
164 * testsuite/binutils-all/dw2-3.W: Likewise.
165 * testsuite/binutils-all/dw2-3gabi.W: Likewise.
166 * testsuite/binutils-all/dw5.W: Add end sequence lines.
167 * testsuite/binutils-all/i386/compressed-1a.d: Add nonzero views.
168 * testsuite/binutils-all/libdw2-compressedgabi.out: Likewise.
169 * testsuite/binutils-all/objdump.W: Likewise.
170 * testsuite/binutils-all/objdump.WL: Add end sequence lines.
171 * testsuite/binutils-all/x86-64/compressed-1a.d: Add nonzero views.
172
e4943f2c
TG
1732017-07-19 Tristan Gingold <gingold@adacore.com>
174
175 * nm.c (show_stats): Remove variable.
176 (long_options): Remove --stats option.
177 (main): Remove handling of --stats.
178
de194d85
YC
1792017-07-18 Nick Clifton <nickc@redhat.com>
180
181 PR 21775
182 * coffgrok.c: Fix spelling typos.
183 * readelf.c: Likewise.
184 * stabs.c: Likewise.
185 * testsuite/binutils-all/objcopy.exp: Likewise.
186
b6a57713
NC
1872017-07-18 Nick Clifton <nickc@redhat.com>
188
189 * po/sv.po: Updated Swedish translation.
190
0a79bef4
HPN
1912017-07-18 Hans-Peter Nilsson <hp@bitrange.com>
192
193 * dwarf.c (display_debug_names): Initialize hash_prev.
194
2a925816
NC
1952017-07-17 Nick Clifton <nickc@redhat.com>
196
197 PR 21433
198 * ar.c (main): Skip check for no files on the command line when
199 running in MRI mode.
200
a502b0bb
L
2012017-07-13 H.J. Lu <hongjiu.lu@intel.com>
202
203 * testsuite/binutils-all/objdump.exp: Always delete $testarchive
204 first.
205
429d795d
AM
2062017-07-12 Alan Modra <amodra@gmail.com>
207
208 * po/bg.po: Update from translationproject.org/latest/binutils/.
209 * po/ca.po: Likewise.
210 * po/da.po: Likewise.
211 * po/es.po: Likewise.
212 * po/fi.po: Likewise.
213 * po/fr.po: Likewise.
214 * po/hr.po: Likewise.
215 * po/id.po: Likewise.
216 * po/it.po: Likewise.
217 * po/ja.po: Likewise.
218 * po/ro.po: Likewise.
219 * po/ru.po: Likewise.
220 * po/sk.po: Likewise.
221 * po/sr.po: Likewise.
222 * po/sv.po: Likewise.
223 * po/tr.po: Likewise.
224 * po/uk.po: Likewise.
225 * po/vi.po: Likewise.
226 * po/zh_CN.po: Likewise.
227 * po/zh_TW.po: Likewise.
228
0bae9e9e
NC
2292017-07-12 Nick Clifton <nickc@redhat.com>
230
231 Fix compile time warnings using gcc 7.1.1.
232 * dwarf.c (dwarf_vmatoa_1): Do not pass a NULL string pointer to
233 sprintf.
234 * srconv.c (walk_tree_type): Initialise the spare field of the
235 IT_dty structure.
236
04ac15ab
AS
2372017-07-11 Andreas Schwab <schwab@suse.de>
238
239 * readelf.c (process_note): Print newline after description data
240 in narrow mode.
241 (print_core_note): Print newline if nothing was printed in wide
242 mode.
243
14357de1
JK
2442017-07-09 Rafael Fontenelle <rafaelff@gnome.org>
245
246 * dwarf.c (display_formatted_table): Fix error message typo.
247
0b9305ed
JB
2482017-07-07 John Baldwin <jhb@FreeBSD.org>
249
250 * readelf.c (get_freebsd_elfcore_note_type): Handle
251 NT_FREEBSD_PTLWPINFO.
252
1d827a72
L
2532017-07-05 H.J. Lu <hongjiu.lu@intel.com>
254
255 * dwarf.c (display_debug_names): Replace index with xindex.
256
0d702cfe
TG
2572017-07-04 Tristan Gingold <gingold@adacore.com>
258
259 * configure: Regenerate.
260
55a09eb6
TG
2612017-07-04 Tristan Gingold <gingold@adacore.com>
262
263 * NEWS: Add marker for 2.29.
264
15e6ed8c
TG
2652017-07-03 Tristan Gingold <gingold@adacore.com>
266
267 * po/binutils.pot: Regenerate.
268
19871f45
AM
2692017-07-03 Alan Modra <amodra@gmail.com>
270
271 * strings.c (filename_and_size_t): Delete.
272 (strings_a_section): Don't check section size against file size.
273 Use bdf_malloc_and_get_section. Report an error on failures.
274 Replace arg param with filename and got_a_section param.
275 (got_a_section): Move to..
276 (strings_object_file): ..an auto var here. Iterate over sections
277 rather than calling bfd_map_over_sections. Adjust strings_a_section
278 call.
279
61364358
JK
2802017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
281
282 * dwarf.c: Include assert.h.
283 (MAX, MIN, get_IDX_name, display_debug_names): New.
284 (debug_displays): Add .debug_names.
285 * dwarf.h: (enum dwarf_section_display_enum): Add debug_names.
286 * readelf.c (process_section_headers): Add ".debug_names".
287
bae7501e
AM
2882017-07-01 Alan Modra <amodra@gmail.com>
289
290 PR binutils/21665
291 * objdump.c (strtab): Make var a bfd_byte*.
292 (disassemble_section): Don't limit malloc size. Instead, use
293 bfd_malloc_and_get_section.
294 (read_section_stabs): Use bfd_malloc_and_get_section. Return
295 bfd_byte*.
296 (find_stabs_section): Remove now unnecessary cast.
297 * objcopy.c (copy_object): Use bfd_malloc_and_get_section. Free
298 contents on error return.
299 * nlmconv.c (copy_sections): Use bfd_malloc_and_get_section.
300
60a02042
NC
3012017-06-30 Nick Clifton <nickc@redhat.com>
302
303 PR binutils/21665
304 * objdump.c (disassemble_section): Move check for an overlarge
305 section to just before the allocation of memory. Do not check
306 section size against file size, but instead use an arbitrary 2Gb
307 limit. Issue a warning message if the section is too big.
308
909b4e3d
MR
3092017-06-30 Maciej W. Rozycki <macro@imgtec.com>
310
311 * NEWS: Mention microMIPS XPA support.
312
f5b2fd52
MR
3132017-06-30 Maciej W. Rozycki <macro@imgtec.com>
314
315 * NEWS: Mention microMIPS Release 5 ISA support.
316
9785fc2a
MR
3172017-06-30 Maciej W. Rozycki <macro@imgtec.com>
318
319 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: New test.
320 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: New test.
321 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: New test.
322 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: New test.
323 * testsuite/binutils-all/mips/mips-xpa-virt.s: New test source.
324 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
325
e1e94c49
AK
3262017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com>
327
328 * testsuite/binutils-all/arc/double_store.s: New file.
329 * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler
330 options.
331 (do_objfile): New function.
332 (check_assembly): Likewise.
333
88ab90e8
AA
3342017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
335
336 * readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.
337
47fdcf63
L
3382017-06-28 H.J. Lu <hongjiu.lu@intel.com>
339
340 * objdump.c (dump_relocs_in_section): Cast to ufile_ptr when
341 comparing against bfd_get_file_size return.
342
88305e1b
NC
3432017-06-28 Nick Clifton <nickc@redhat.com>
344
345 * objcopy.c (merge_gnu_build_notes): Add support for version 2 notes.
346 * readelf.c (print_gnu_build_attribute_name): Likewise.
347
38bf472a
MR
3482017-06-28 Maciej W. Rozycki <macro@imgtec.com>
349 Matthew Fortune <matthew.fortune@imgtec.com>
350
351 * readelf.c (get_machine_flags) <E_MIPS_MACH_IAMR2>: New case.
352 (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
353 * NEWS: Mention Imagination interAptiv MR2 processor support.
354
cfd14a50
NC
3552017-06-26 Nick Clifton <nickc@redhat.com>
356
357 PR binutils/21665
358 * objdump.c (disassemble_section): Skip any section that is bigger
359 than the entire file.
360
0602cdad
NC
3612017-06-26 Nick Clifton <nickc@redhat.com>
362
363 PR binutils/21659
364 * bucomm.c (get_file_size): Explicitly warn if the file is a
365 directory.
366
ced40572
TP
3672017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
368
369 * readelf.c (arm_attr_tag_CPU_arch): Fill value for ARMv8-R.
370
0e158763
NC
3712017-06-23 Nick Clifton <nickc@redhat.com>
372
373 PR binutils/21659
374 * strings.c (strings_file): Warn about attempts to run strings on
375 a directory.
376
48580982
L
3772017-06-22 H.J. Lu <hongjiu.lu@intel.com>
378
379 * readelf.c (decode_x86_feature): Decode
380 GNU_PROPERTY_X86_FEATURE_1_SHSTK.
381 * testsuite/binutils-all/i386/shstk.d: New file.
382 * testsuite/binutils-all/i386/shstk.s: Likewise.
383 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
384 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
385 * testsuite/binutils-all/x86-64/shstk.s: Likewise.
386
ee2fdd6f
L
3872017-06-22 H.J. Lu <hongjiu.lu@intel.com>
388
389 * readelf.c (decode_x86_feature): New.
390 (print_gnu_property_note): Call decode_x86_feature on
391 GNU_PROPERTY_X86_FEATURE_1_AND.
392 * testsuite/binutils-all/i386/empty.d: New file.
393 * testsuite/binutils-all/i386/empty.s: Likewise.
394 * testsuite/binutils-all/i386/ibt.d: Likewise.
395 * testsuite/binutils-all/i386/ibt.s: Likewise.
396 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
397 * testsuite/binutils-all/x86-64/empty.d: Likewise.
398 * testsuite/binutils-all/x86-64/empty.s: Likewise.
399 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
400 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
401 * testsuite/binutils-all/x86-64/ibt.s: Likewise.
402
19474787
L
4032017-06-21 H.J. Lu <hongjiu.lu@intel.com>
404
405 * dwarf.c (READ_ULEB): Use DWARF_VMA_FMT to report error.
406 (READ_SLEB): Likewise.
407
7f2c8a1d
NC
4082017-06-21 Nick Clifton <nickc@redhat.com>
409
410 PR binutils/21648
411 * dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB. Add check for
412 reading a value that is too big for the containing variable.
413 (SLEB): Rename to SKIP_SLEB and READ_SLEB. Add similar check.
414 Replace uses of LEB and SLEB with appropriate new macro.
415 (display_debug_frames): Use an unsigned int for the 'reg'
416 variable. Use a signed long for the 'l' variable.
417
fd52715c
AK
4182017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
419
420 * readelf.c (get_s390_segment_type): Add support for the new
421 segment type PT_S390_PGSTE.
422 (get_segment_type): Call get_s390_segment_type.
423
d16fdddb
NC
4242017-06-19 Nick Clifton <nickc@redhat.com>
425
426 PR binutils/21619
427 * objdump.c (disassemble_bytes): Check that there is sufficient
428 data available before attempting to display it.
429
d24b7561
SM
4302017-06-06 Simon Marchi <simon.marchi@ericsson.com>
431
432 * sysinfo.y: Free memory allocated by token NAME.
433
10045478
AK
4342017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
435
436 * doc/binutils.texi: Document new cpu=... disassembler options for ARC.
437
8e2f54bc
L
4382017-05-30 H.J. Lu <hongjiu.lu@intel.com>
439
440 PR binutils/21519
441 * objdump.c (dump_relocs_in_section): Replace get_file_size
442 with bfd_get_file_size to get archive element size.
443 * testsuite/binutils-all/objdump.exp (test_objdump_f): New
444 proc.
445 (test_objdump_h): Likewise.
446 (test_objdump_t): Likewise.
447 (test_objdump_r): Likewise.
448 (test_objdump_s): Likewise.
449 Add objdump tests on archive.
450
003ca0fd
YQ
4512017-05-24 Yao Qi <yao.qi@linaro.org>
452
453 * objdump.c (disassemble_data): Caller update.
454
b4f5b984
JM
4552017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
456
457 * objcopy.c (merge_gnu_build_notes): Remove workaround that
458 prevented deleting relocations in duplicated notes in mips64 and
459 sparc.
460
e5713223
MR
4612017-05-19 Maciej W. Rozycki <macro@imgtec.com>
462
463 * testsuite/binutils-all/mips/mips-note-2.d: New test.
464 * testsuite/binutils-all/mips/mips-note-2r.d: New test.
465 * testsuite/binutils-all/mips/mips-note-2-n32.d: New test.
466 * testsuite/binutils-all/mips/mips-note-2-n64.d: New test.
467 * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test.
468 * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test.
469 * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'.
470 Run the new tests.
471
f0681695
MR
4722017-05-19 Maciej W. Rozycki <macro@imgtec.com>
473
474 * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump'
475 option.
476
64517994
JM
4772017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
478
479 * NEWS: Mention the SPARC M8 support.
480
dd47d677
MR
4812017-05-19 Maciej W. Rozycki <macro@imgtec.com>
482
483 * testsuite/binutils-all/mips/mips.exp: Bail out right away if
484 non-ELF.
485
535b785f
AM
4862017-05-18 Alan Modra <amodra@gmail.com>
487
488 * strings.c: Don't compare boolean values against TRUE or FALSE.
489
d8cbc93b
JL
4902017-05-15 Jeff Law <law@redhat.com>
491
492 * readelf.c (display_arc_attribute): Avoid implicit fallthru.
493
3f3467ff
MR
4942017-05-15 Maciej W. Rozycki <macro@imgtec.com>
495
496 * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
497 to `as' flags.
498 * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
499 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
500 * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
501 `.module mips3'.
502 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
503
25499ac7
MR
5042017-05-15 Maciej W. Rozycki <macro@imgtec.com>
505
506 * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
507 * NEWS: Mention MIPS16e2 ASE support.
508
a4f89915
MR
5092017-05-12 Maciej W. Rozycki <macro@imgtec.com>
510
511 * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
512 and SDBBP disassembly.
513
40e5240e
MR
5142017-05-10 Maciej W. Rozycki <macro@imgtec.com>
515
516 * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
517 `copyfile' variables.
518
53a346d8
CZ
5192017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
520
521 * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
522 (get_arc_section_type_name): New function.
523 (get_section_type_name): Use the above function.
524 (display_arc_attribute): New function.
525 (process_arc_specific): Likewise.
526 (process_arch_specific): Handle ARC specific information.
527
21d1fbee
KK
5282017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
529
530 * MAINTAINERS (SH): Remove myself as SH maintainer.
531
2ecf0cc3
L
5322017-05-02 H.J. Lu <hongjiu.lu@intel.com>
533
534 * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
535 long when comparing with sec->reloc_count.
536
1395c6ce
NC
5372017-05-02 Nick Clifton <nickc@redhat.com>
538
539 * objcopy.c (merge_gnu_build_notes): Disable merge if there are
540 more internal relocs than external relocs.
541
a4ddc54e
MR
5422017-05-02 Maciej W. Rozycki <macro@imgtec.com>
543
544 * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
545 disassembly of PC-relative LA and LW synthetic instructions.
546
39ff1b79
NC
5472017-05-02 Nick Clifton <nickc@redhat.com>
548
549 PR 21440
550 * objdump.c (dump_relocs_in_section): Check for an excessive
551 number of relocs before attempting to dump them.
552
ee7e95ef
AM
5532017-05-01 Alan Modra <amodra@gmail.com>
554
555 * objcopy.c (merge_gnu_build_notes): Correct code deleting
556 relocs.
557
b06b2c92
NC
5582017-04-28 Nick Clifton <nickc@redhat.com>
559
560 PR binutils/21439
561 * readelf.c (print_gnu_build_attribute_name): Allow for an empty
562 name field.
563
4e3afec2
NC
5642017-04-28 Nick Clifton <nickc@redhat.com>
565
566 PR binutils/21437
567 * readelf.c (process_version_sections): Check for underflow when
568 computing the start address of the auxillary version data.
569
d949ff56
NC
5702017-04-28 Nick Clifton <nickc@redhat.com>
571
572 PR binutils/21438
573 * dwarf.c (process_extended_line_op): Do not assume that the
574 string extracted from the section is NUL terminated.
575 (fetch_indirect_string): If the string retrieved from the section
576 is not NUL terminated, return an error message.
577 (fetch_indirect_line_string): Likewise.
578 (fetch_indexed_string): Likewise.
579
740a4630
NC
5802017-04-26 Nick Clifton <nickc@redhat.com>
581
d21f3ddb 582 PR binutils/21433
740a4630
NC
583 * bucomm.c (get_file_size): Return -1 if file_name is NULL.
584 * ar.c (main): Fail with usage() invocation if no file names are
585 provided.
586
3e6b6445
NC
5872017-04-26 Nick Clifton <nickc@redhat.com>
588
589 * readelf.c (process_section_headers): Warn about overlarge
590 sections.
591 (print_gnu_build_attribute_name): Print the number of unrecognised
592 note types. Fix formatting in the presence of errors.
593 (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
594 (testsuite/binutils-all/note-2-64.s): Likewise.
595
bbdd9a68
MR
5962017-04-26 Maciej W. Rozycki <macro@imgtec.com>
597
598 * readelf.c (process_mips_specific): Add static GOT support.
599
c4ab9505
MR
6002017-04-25 Maciej W. Rozycki <macro@imgtec.com>
601
602 * readelf.c (process_mips_specific): Remove error reporting from
603 GOT[1] processing.
604
919383ac
MR
6052017-04-25 Maciej W. Rozycki <macro@imgtec.com>
606
607 * readelf.c (process_mips_specific): Remove null GOT data check.
608
6e3d1f07
MR
6092017-04-25 Maciej W. Rozycki <macro@imgtec.com>
610
611 * testsuite/binutils-all/mips/mips16-alias.d: New test.
612 * testsuite/binutils-all/mips/mips16-noalias.d: New test.
613 * testsuite/binutils-all/mips/mips16-alias.s: New test source.
614 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
615
42354845
AM
6162017-04-23 Alan Modra <amodra@gmail.com>
617
618 PR 21418
619 * ar.c (main): Check -a, -b, -i and -N args are given.
620
7034215f
AM
6212017-04-23 Alan Modra <amodra@gmail.com>
622
623 PR 21417
624 * ar.c (main): Check that an archive file is given after options.
625
b02cd3e9
AM
6262017-04-23 Alan Modra <amodra@gmail.com>
627
628 PR 21415
629 * objdump.c (disassemble_section): Check bfd_get_section_contents
630 status.
631
f082820d
AM
6322017-04-23 Alan Modra <amodra@gmail.com>
633
634 PR 21408
635 * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
636 file_table.
637
ddef72cd
NC
6382017-04-21 Nick Clifton <nickc@redhat.com>
639
640 PR binutils/21378
641 * readelf.c (print_gnu_build_attribute_name): Check for an
642 overlarge name field.
643
7296a62a
NC
6442017-04-13 Nick Clifton <nickc@redhat.com>
645
646 PR binutils/21379
647 * readelf.c (process_dynamic_section): Detect over large section
648 offsets in the DT_SYMTAB entry.
649
6502017-04-13 Nick Clifton <nickc@redhat.com>
651
652 PR binutils/21345
653 * readelf.c (process_mips_specific): Catch an unfeasible memory
654 allocation before it happens and print a suitable error message.
655
1d15e434
NC
6562017-04-13 Nick Clifton <nickc@redhat.com>
657
658 * objcopy.c: Add --no-merge-notes option to disable note merging.
659 Add --[no-]merge-notes option to strip, and enable it by default.
660 (num_bytes): New function.
661 (merge_gnu_build_notes): Add code to merge stack size notes.
662 * binutils.texi: Update strip and objcopy documentation.
663 * readelf.c (print_gnu_build_attribute_name): Use defined
664 constants for note types.
665
28d909e5
JD
6662017-04-10 John Delsignor <john.delsignore@roguewave.com>
667
668 PR binutils/21319
669 * dwarf.c (display_gdb_index): Correct test for a corrupt address
670 table size.
671
0f65a5d8
JW
6722017-04-05 Jiong Wang <jiong.wang@arm.com>
673
674 * objcopy.c (struct redefine_node): Delete the field "next".
675 (redefine_sym_list): Deleted.
676 (redefine_specific_htab): New hash table.
677 (redefine_specific_reverse_htab): Likewise.
678 (eq_string_redefnode): New function.
679 (htab_hash_redefnode): Likewise.
680 (create_symbol2redef_htab): Likewise.
681 (add_specific_symbol_node): Likewise.
682 (create_symbol_htabs): Create redefine_specific_htab and
683 redefine_specific_reverse_htab.
684 (lookup_sym_redefinition): Use hash table instead of list.
685 (redefine_list_append): Likewise, and rename to add_redefine_and_check.
686 (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
687 Update comments.
688
a91e1603
L
6892017-04-04 H.J. Lu <hongjiu.lu@intel.com>
690
691 * NEWS: Mention support for ELF SHF_GNU_MBIND and
692 PT_GNU_MBIND_XXX.
693 * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
694 (get_elf_section_flags): Handle SHF_GNU_MBIND.
695 (process_section_headers): Likewise.
696 * testsuite/binutils-all/mbind1.s: New file.
697 * testsuite/binutils-all/objcopy.exp: Run readelf test on
698 mbind1.s.
699
82156ab7
NC
7002017-04-03 Nick Clifton <nickc@redhat.com>
701
702 PR binutils/21345
703 * readelf.c (get_program_headers): Check for there being too many
704 program headers before attempting to allocate space for them.
705
75ec1fdb
NC
7062017-04-03 Nick Clifton <nickc@redhat.com>
707
708 PR binutils/21344
709 * readelf.c (process_mips_specific): Check for an out of range GOT
710 entry before reading the module pointer.
711
f32ba729
NC
7122017-04-03 Nick Clifton <nickc@redhat.com>
713
714 PR binutils/21343
715 * readelf.c (get_unwind_section_word): Fix snafu checking for
716 invalid word offsets in ARM unwind information.
717
efdf7a02
PC
7182017-03-31 Pip Cet <pipcet@gmail.com>
719
720 * NEWS: Use "WebAssembly" consistently.
721 * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
722
f96bd6c2
PC
7232017-03-30 Pip Cet <pipcet@gmail.com>
724
725 * readelf.c: Add support for wasm32 ELF format WebAssembly files.
726 (guess_is_rela): Likewise.
727 (dump_relocations): Likewise.
728 (is_32bit_abs_reloc): Likewise.
729 (is_none_reloc_): Likewise.
730 * NEWS: Mention the new support.
731 * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
732 as ELF target.
733 (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
734 * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
735 * testsuite/binutils-all/wasm32: New directory.
736 * testsuite/binutils-all/wasm32/create-wasm.d: New file.
737 * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
738 * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
739 * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
740 * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
741 * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
742 * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
743 * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
744 * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
745 * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
746 * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
747 * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
748 * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
749 * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
750 * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
751
52be03fd
AM
7522017-03-29 Alan Modra <amodra@gmail.com>
753
754 * doc/binutils.texi (objdump): Document PowerPC -M options.
755
4a14e306
AK
7562017-03-21 Andi Kleen <ak@linux.intel.com>
757
758 * objdump.c (unwind_inlines): Add.
759 (option_values): Add OPTION_INLINES.
760 (show_line): Unwind inlines if requested.
761 (main): Parse OPTION_INLINES.
762 (usage): Document --inlines.
763 * doc/binutils.texi: Document --inlines.
764 * NEWS: Likewise.
765
75d7d298
NC
7662017-03-21 Nick Clifton <nickc@redhat.com>
767
768 * readelf.c (print_gnu_build_attribute_name): Allow stack
769 protection notes to contain numeric values. Use a colon rather
770 than a space to separate a string name from its values. Decode
771 the numeric value of a stack protection note.
772 * objcopy.c (merge_gnu_build_notes): Allow version notes to
773 contain extra text after the protocol version number.
774
39e224f6
MW
7752017-03-20 Mark Wielaard <mark@klomp.org>
776
777 * readelf.c (process_program_headers): Move dynamic_addr check
778 after .dynamic section cross check.
779
0dd6ae21
NC
7802017-03-17 Nick Clifton <nickc@redhat.com>
781
782 * readelf.c (print_gnu_build_attribute_name): Fix off by one error
783 printing the value for a build note with an ascii name.
784
a8be5506
NC
7852017-03-16 Nick Clifton <nickc@redhat.com>
786
787 * readelf.c (print_gnu_build_attribute_name): Add support for
788 GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
789
c799a79d
NC
7902017-03-14 Nick Clifton <nickc@redhat.com>
791
792 * readelf.c (print_gnu_build_attribute_description): Move symbol
793 printing code to...
794 (print_symbol_for_build_attribute): New function. ...here.
795 Add to find the best symbol to associate with an OPEN note.
796 Add code to cache the symbol table and string table, so that they
797 are not loaded every time a note is displayed.
798 * testsuite/binutils-all/note-2-32.s: Add a function symbol.
799 * testsuite/binutils-all/note-2-64.s: Likewise.
800 * testsuite/binutils-all/note-2-32.d: Update expected note output.
801 * testsuite/binutils-all/note-2-64.d: Likewise.
802
5ef2d51b
AM
8032017-03-13 Alan Modra <amodra@gmail.com>
804 Taeung Song <treeze.taeung@gmail.com>
805
806 * objdump.c (update_source_path): Add abfd param. Add struct
807 stat var. Pass to try_print_file_open. Warn if source is more
808 recent than object.
809 (try_print_file_open, slurp_file): Add struct stat param to
810 return fstat.
811 (show_line): Call update_source_path with bfd.
812
7b5d4822
CHL
8132017-03-10 Chia-Hao Lo <fcamel@gmail.com>
814
815 PR binutils/21235
816 * objdump.c (main): Set do_wide with --wide.
817
55e22ca8
NC
8182017-03-10 Nick Clifton <nickc@redhat.com>
819
820 * readelf.c (get_machine_name): Rearrange switch table in order of
821 increasing machine number. Add missing entries.
822
1fc87489
L
8232017-03-08 H.J. Lu <hongjiu.lu@intel.com>
824
825 PR binutils/21231
826 * readelf.c (decode_x86_isa): Change argument to unsigned int.
827 (print_gnu_property_note): Retrieve property type and datasz as
828 4-byte integer. Consolidate property datasz check. Check
829 GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
830 * testsuite/binutils-all/i386/pr21231a.d: New file.
831 * testsuite/binutils-all/i386/pr21231a.s: Likewise.
832 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
833 * testsuite/binutils-all/i386/pr21231b.s: Likewise.
834 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
835 * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
836 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
837 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
838
79a964dc
NC
8392017-03-06 Nick Clifton <nickc@redhat.com>
840
841 * readelf.c (print_gnu_build_attribute_name): Read byte values
842 from the name string as unsigned bytes.
843 (process_notes_at): Use memcpy to copy an unterminated name
844 string.
845
1f5345a6
ST
8462017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
847
848 * configure.ac (AC_CHECK_DECLS): Add asprintf.
849 * config.in: Regenerate.
850 * configure: Regenerate.
851
c871dade
NC
8522017-03-02 Nick Clifton <nickc@redhat.com>
853
854 * readelf.c (print_gnu_build_attribute_description): Use global
855 symbols for OPEN attributes if at all possible.
05ed4310
NC
856 * objcopy.c (is_merged_note_section): Support build note sections
857 without the SHF_GNU_BUILD_NOTE section flag set.
c871dade 858
b451e98a
JK
8592017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
860
861 * dwarf.c (debug_displays_assert): New static assertion.
862
d4620bee
JK
8632017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
864
865 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
866
9ef920e9
NC
8672017-03-01 Nick Clifton <nickc@redhat.com>
868
869 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
870 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
871 (decode_x86_isa): New function.
872 (print_gnu_property_note): New function.
873 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
874 (print_gnu_build_attribute_description): New function.
875 (print_gnu_build_attribute_name): New function.
876 (process_note): Add support for GNU_BUILD_NOTEs.
877 * objcopy.c (--merge-notes): New command line option.
878 (copy_options): Add merge-notes.
879 (copy_usage): Likewise.
880 (is_merge_note_section): New function.
881 (merge_gnu_build_notes): New function.
882 (copy_object): Merge note sections if asked to do so.
883 (skip_section): Add skip_copy parameter. Add support for skipping
884 merged note sections.
885 (copy_relocations_in_section): Update call to skip_section.
886 (copy_section): Likewise.
887 (copy_main): Add support for merge-notes option.
888 * doc/binutils.texi: Document the new option to objcopy.
889 * NEWS: Mention the new feature.
890 * testsuite/binutils-all/note-2-32.d: New test. Checks note
891 merging on 32-bit targets.
892 * testsuite/binutils-all/note-2-32.s: New test source file.
893 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
894 but for 64-bit targets.
895 * testsuite/binutils-all/note-2-64.s: New test source file.
896 * testsuite/binutils-all/objcopy.exp: Run the new test.
897
65b48a81
PB
8982017-02-28 Peter Bergner <bergner@vnet.ibm.com>
899
900 * objdump.c (main): Use remove_whitespace_and_extra_commas.
901
9dfd0db9
JK
9022017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
903
904 Fix compilation with GCC 4.4.7.
905 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
906 Initialize begin and end.
907
3b83ea38
AM
9082017-02-25 Alan Modra <amodra@gmail.com>
909
910 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
911 Support hpux .comm variant.
912 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
913 dw5 test for hppa64-hpux.
914
32ec8896
NC
9152017-02-24 Nick Clifton <nickc@redhat.com>
916
917 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
918 (do_reloc, do_sections, do_section_groups, do_section_details,
919 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
920 (do_version, do_histogram, do_debugging, do_arch, do_notes,
921 (do_archive_index, is_32bit_elf, decompress_dumps): Use
922 bfd_boolean type.
923 (parse_args): Treat the do_* variables as booleans.
924 (print_vma): Return an unsigned int.
925 (print_symbol): Change width parameter to signed int.
926 (is_ia64_vms): Change return type to bfd_boolean.
927 (guess_is_rela): Likewise.
928 (slurp_rela_relocs): Likewise.
929 (slurp_rel_relocs): Likewise.
930 (dump_relocations): Likewise.
931 (process_file_header): Likewise.
932 (get_program_headers): Likewise.
933 (process_program_headers): Likewise.
934 (process_section_headers): Likewise.
935 (process_section_groups): Likewise.
936 (dump_ia64_vms_dynamic_fixups): Likewise.
937 (dump_ia64_vms_dynamic_relocs): Likewise.
938 (process_ia64_vms_dynamic_relocs): Likewise.
939 (process_relocs): Likewise.
940 (dump_ia64_unwind): Likewise.
941 (ia64_process_unwind): Likewise.
942 (dump_hppa_unwind): Likewise.
943 (slurp_hppa_unwind_table): Likewise.
944 (hppa_process_unwind): Likewise.
945 (decode_arm_unwind_bytecode): Likewise.
946 (decode_tic6x_unwind_bytecode): Likewise.
947 (decode_arm_unwind): Likewise.
948 (dump_arm_unwind): Likewise.
949 (arm_process_unwind): Likewise.
950 (process_unwind): Likewise.
951 (get_32bit_dynamic_section): Likewise.
952 (get_64bit_dynamic_section): Likewise.
953 (process_dynamic_section): Likewise.
954 (process_version_sections): Likewise.
955 (process_symbol_table): Likewise.
956 (process_syminfo): Likewise.
957 (apply_relocations): Likewise.
958 (disassemble_section): Likewise.
959 (dump_section_as_strings): Likewise.
960 (dump_section_as_bytes): Likewise.
961 (load_specific_debug_section): Likewise.
962 (load_debug_section): Likewise.
963 (display_debug_section): Likewise.
964 (process_section_contents): Likewise.
965 (process_attributes): Likewise.
966 (process_nds32_specific): Likewise.
967 (process_gnu_liblist): Likewise.
968 (print_core_note): Likewise.
969 (print_gnu_note): Likewise.
970 (print_v850_note): Likewise.
971 (process_netbsd_elf_note): Likewise.
972 (print_stapsdt_note): Likewise.
973 (print_ia64_vms_note): Likewise.
974 (process_note): Likewise.
975 (process_notes_at): Likewise.
976 (process_corefile_note_segments): Likewise.
977 (process_v850_notes): Likewise.
978 (process_note_sections): Likewise.
979 (process_notes): Likewise.
980 (process_arch_specific): Likewise.
981 (get_file_header): Likewise.
982 (process_object): Likewise.
983 (process_archive): Likewise.
984 (process_file): Likewise.
985 (section_subset): Make static.
986 (get_mips_reg_size): Return a signed integer.
987 (process_object): Reverse the logic of the return value.
988 (process_archive): Likewise.
989 (process_file): Likewise.
6b4bf3bc
NC
990 (process_program_headers): Fix snafu - if the program headers are
991 not available then this is not a cause to fail.
992 (process_corefile_note_segments): Likewise.
32ec8896 993
7bb1ad17
MR
9942017-02-24 Maciej W. Rozycki <macro@imgtec.com>
995
996 * readelf.c (get_ver_flags): Tidy the formatting of the string
997 returned
998
5235cd68
MR
9992017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1000
1001 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
1002 `isum' unsigned.
1003 <SHT_GNU_verneed>: Likewise.
1004
c9f02c3e
MR
10052017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1006
1007 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
1008 the number of entries processed by the section size. Don't
1009 break out of the loop if `ent.vd_next' is 0.
1010
a567769b
JK
10112017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1012
1013 * testsuite/binutils-all/dw5.S: New file.
1014 * testsuite/binutils-all/dw5.W: New file.
1015 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
1016
2f6cd591
JK
10172017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1018
1019 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
1020
7a7e1061
JK
10212017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1022
1023 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
1024 DW_MACRO_GNU_*.
1025
bc0a77d2
JK
10262017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1027
1028 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
1029 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
1030 and DW_OP_reinterpret.
1031 (read_and_display_attr_value): Support DW_AT_call_value,
1032 DW_AT_call_data_value, DW_AT_call_target and
1033 DW_AT_call_target_clobbered.
1034
77145576
JK
10352017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1036
1037 * dwarf.c (fetch_indirect_line_string): New function.
1038 (abbrev_attr): New field implicit_const.
1039 (add_abbrev_attr): New parameter implicit_const.
1040 (process_abbrev_section): Support DW_FORM_implicit_const.
1041 (decode_location_expression): Support DW_OP_entry_value.
1042 (read_and_display_attr_value): Add parameter implicit_const. Support
1043 DW_FORM_line_strp and DW_FORM_implicit_const.
1044 (read_and_display_attr): Add parameter implicit_const.
1045 (process_debug_info): Support line_str and DWARF-5.
1046 (read_debug_line_header): Support DWARF-5.
1047 (display_formatted_table): New function.
1048 (display_debug_lines_raw): New parameter file. Support DWARF-5.
1049 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
1050 (display_debug_lines): Pass file parameter.
1051 (display_debug_macro): Update read_and_display_attr_value caller.
1052 (display_debug_abbrev): Support DW_FORM_implicit_const.
1053 (display_loclists_list): New function.
1054 (display_loc_list): Support .debug_loclists.
1055 (display_debug_ranges_list): New function from display_debug_ranges.
1056 (display_debug_rnglists_list): New function.
1057 (display_debug_ranges): Support .debug_rnglists.
1058 (debug_displays): Add .debug_line_str, .debug_loclists and
1059 .debug_rnglists.
1060 * dwarf.h: Include dwarf2.h
1061 (DWARF2_Internal_LineInfo): Add li_offset_size.
1062 (DWARF2_Internal_CompUnit): Add cu_unit_type.
1063 (enum dwarf_section_display_enum): Add line_str.
1064 * readelf.c (process_section_headers): Add rnglists and loclists.
1065
ef0b5f1c
JK
10662017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1067
1068 * dwarf.c (display_block): Add parameter delimiter.
1069 (decode_location_expression): Update display_block callers.
1070 (read_and_display_attr_value): Add parameter delimiter.
1071 (read_and_display_attr, display_debug_macro): Update
1072 read_and_display_attr_value caller.
1073
359ca075
JK
10742017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1075
1076 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
1077 and off.
1078 (display_loc_list_dwo): Use dwarf_vma for offset.
1079 (display_debug_loc): Use dwarf_vma for offset, base_address.
1080 (struct range_entry, range_entry_compar): Use dwarf_vma for
1081 ranges_offset.
1082 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
1083 base_address.
1084
60abdbed
NC
10852017-02-23 Nick Clifton <nickc@redhat.com>
1086
1087 * readelf.c (display_tag_value): Use an explicit signed type for
1088 the tag parameter.
1089 (display_gnu_attributes): Use an unsigned integer type for
1090 attribute tags.
1091 (display_power_gnu_attribute): Likewise.
1092 (display_s390_gnu_attribute): Likewise.
1093 (display_sparc_hwcaps): Likewise.
1094 (display_sparc_hwcaps2): Likewise.
1095 (display_sparc_gnu_attribute): Likewise.
1096 (display_mips_gnu_attribute): Likewise.
1097 (display_tic6x_attribute): Likewise.
1098 (display_raw_attribute): Likewise.
1099 (process_attributes): Likewise.
1100 (process_arm_specific): Delete redundant function.
1101 (process_power_specific): Likewise.
1102 (process_s390_specific): Likewise.
1103 (process_sparc_specific): Likewise.
1104 (process_tic6x_specific): Likewise.
1105 (process_msp430x_specific): Likewise.
1106 (display_public_gnu_attributes): New function. Displays known
1107 information about an unknown gnu attribute.
1108 (display_generic_attribute): New function. Calls
1109 display_tag_value for non-nul tags.
1110 (process_arch_specific): Call process_attributes even for
1111 architectures not known to specifically support gnu attributes.
1112
0502a2b4
JK
11132017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1114
1115 * dwarf.c (decode_location_expression): Display also OP.
1116
233f82cf
MR
11172017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1118
1119 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
1120 new line between the heading and the first version definition
1121 entry.
1122
43a444f9
NC
11232017-02-20 Nick Clifton <nickc@redhat.com>
1124
1125 PR binutils/21156
1126 * dwarf.c (cu_tu_indexes_read): Move into...
1127 (load_cu_tu_indexes): ... here. Change the variable into
1128 tri-state. Change the function into boolean, returning
1129 false if the indicies could not be loaded.
1130 (find_cu_tu_set): Return NULL if the indicies could not be
1131 loaded.
1132
b814a36d
NC
11332017-02-17 Nick Clifton <nickc@redhat.com>
1134
1135 PR binutils/21156
1136 * readelf.c (find_section_in_set): Test for invalid section
1137 indicies.
1138
1b4b80bf
NC
11392017-02-17 Nick Clifton <nickc@redhat.com>
1140
1141 * readelf.c (get_section_type_name): Add decoding of GNU section
1142 types.
1143
7c723eec
NC
11442017-02-15 Nick Clifton <nickc@redhat.com>
1145
1146 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
1147 Maintainers section.
1148
bc303e5d
NC
11492017-02-14 Nick Clifton <nickc@redhat.com>
1150
1151 PR binutils/21159
1152 * readelf.c (dump_section_as_strings): Reset the start address if
1153 no decompression is perfromed.
1154 (dump_section_as_bytes): Likewise.
1155
92134dc1
NC
11562017-02-14 Nick Clifton <nickc@redhat.com>
1157
1158 PR binutils/21158
1159 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
1160 empty symbol name.
1161
a2dea0b2
NC
11622017-02-14 Nick Clifton <nickc@redhat.com>
1163
1164 PR binutils/21157
1165 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
1166 pairs.
1167 (parse_number): Exit early if passed an empty string.
1168
b32e566b
NC
11692017-02-14 Nick Clifton <nickc@redhat.com>
1170
1171 PR binutils/21155
1172 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
1173 being within a given range.
1174 (target_specific_reloc_handling): Use macro to test for underflow
1175 as well as overflow of reloc offset.
1176
c1221402
NC
11772017-02-13 Nick Clifton <nickc@redhat.com>
1178
1179 PR binutils/21150
1180 * nm.c (file_symbol): Add test of string length before testing
1181 string characters.
1182
f055032e
NC
11832017-02-13 Nick Clifton <nickc@redhat.com>
1184
1185 PR binutils/21135
1186 * readelf.c (dump_section_as_bytes): Handle the case where
1187 uncompress_section_contents returns false.
1835f746 1188 (dump_section_as_bytes, load_specific_debug_section): Likewise.
f055032e 1189
ebdf1ebf
NC
11902017-02-13 Nick Clifton <nickc@redhat.com>
1191
1192 PR binutils/21149
1193 * readelf.c (get_compression_header): Add size parameter. Check
1194 size against sizeof compression header before attempting to
1195 extract the header.
1196 (process_section_headers): Pass size to get_compression_header.
1197 (dump_section_as_strings): Likewise.
1198 (dump_section_as_bytes): Likewise.
1199 (load_specific_debug_section): Likewise.
1200
4aeb00ad
NC
12012017-02-13 Nick Clifton <nickc@redhat.com>
1202
1203 PR binutils/21148
1204 * readelf.c (process_version_sections): Include size of auxillary
1205 version information when checking for buffer overflow.
1206
0ee3043f
NC
12072017-02-13 Nick Clifton <nickc@redhat.com>
1208
1209 PR binutils/21147
1210 * readelf.c (process_section_contents): Fix off by one error
1211 reporting un-dumped sections.
1212
f84ce13b
NC
12132017-02-13 Nick Clifton <nickc@redhat.com>
1214
1215 PR binutils/21139
1216 * readelf.c (target_specific_reloc_handling): Add num_syms
1217 parameter. Check for symbol table overflow before accessing
1218 symbol value. If reloc pointer is NULL, discard all saved state.
1219 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
1220 Call target_specific_reloc_handling with a NULL reloc pointer
1221 after processing all of the relocs.
1222
03f7786e
NC
12232017-02-13 Nick Clifton <nickc@redhat.com>
1224
1225 PR binutils/21137
1226 * readelf.c (target_specific_reloc_handling): Add end parameter.
1227 Check for buffer overflow before writing relocated values.
1228 (apply_relocations): Pass end to target_specific_reloc_handling.
1229
387dd777
DP
12302017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1231 Nick Clifton <nickc@redhat.com>
1232
1233 PR 20343
1234 * doc/binutils.texi (ar): Extend documentation of the --plugin
1235 option. Include a description of where the plugins should be
1236 located.
1237 (nm): Likewise.
1238
cf581a9b
NC
12392017-01-23 Nick Clifton <nickc@redhat.com>
1240
1241 * MAINTAINERS: Add Bernd to Past Maintainers section.
c49f9d0f 1242 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
71d01c69 1243 section.
cf581a9b 1244
715e99a4
BS
12452017-01-23 Bernd Schmidt <bschmidt@redhat.com>
1246
1247 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
1248
1737c640
AB
12492017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1250
1251 * objdump.c (dump_section_header): Extract max section name length
1252 from data parameter, use this when formatting output.
1253 (find_longest_section_name): New function.
1254 (dump_headers): Calculate longest section name when in wide mode,
1255 reformat to unify printing of header line.
1256
2cedb9eb
BR
12572017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
1258
1259 PR 21059
1260 * arlex.l: Support processing with flex 2.6.3.
1261 * deflex.l: Likewise.
1262
6bb21700
DT
12632017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
1264
1265 * resbin.c: Optional dialog control data immediately follows
1266 the control description without alignment.
1267 * testsuite/binutils-all/windres/controldata.rc: New test.
1268 source.
1269 * testsuite/binutils-all/windres/controldata.rsd: New test.
1270
2425a30e
NC
12712017-01-12 Nick Clifton <nickc@redhat.com>
1272
1273 PR binutils/20876
1274 * NEWS: Mention the new feature.
1275 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
1276 New proc to test the location of separate debug info files using
1277 the build-id method.
1278
b972a0d6
NC
12792017-01-10 Nick Clifton <nickc@redhat.com>
1280
1281 PR 21034
1282 * stabs.c (parse_stab_members): Fix thinko checking for g++
1283 version 1 stabs information.
1284
cd6581da
NC
12852017-01-09 Nick Clifton <nickc@redhat.com>
1286
1287 * objdump.c (display_file): Add new parameter 'last_file'. If
1288 last_file is true, do not call bfd_close at the end of the
1289 function.
1290 (main): Set the value of the last_file parameter when calling
1291 display_file.
1292
4d74727a
AM
12932017-01-09 Alan Modra <amodra@gmail.com>
1294
1295 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
1296 comment.
1297
fd13a84b
NC
12982017-01-06 Nick Clifton <nickc@redhat.com>
1299
1300 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
1301
b0556316
DP
13022017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
1303
1304 PR 20958
1305 * syslex.l (option): Add noyywrap
1306 (yywrap): Delete.
1307
2571583a
AM
13082017-01-02 Alan Modra <amodra@gmail.com>
1309
1310 Update year range in copyright notice of all files.
1311
5c1ad6b5 1312For older changes see ChangeLog-2016
3499769a 1313\f
5c1ad6b5 1314Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
1315
1316Copying and distribution of this file, with or without modification,
1317are permitted in any medium without royalty provided the copyright
1318notice and this notice are preserved.
1319
1320Local Variables:
1321mode: change-log
1322left-margin: 8
1323fill-column: 74
1324version-control: never
1325End: