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