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