]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
PR gas/21762: MIPS: Fix .stabs directive marking labels as MIPS16
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
f17e9d8a
NC
12017-09-05 Nick Clifton <nickc@redhat.com>
2
3 PR 21995
4 * readelf.c (process_mips_specific): Add checks for a NULL data
5 pointer.
6
83eef883
AFB
72017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com>
8 Edmar Wienskoski <edmar.wienskoski@nxp.com
9
10 * readelf.c (get_elf_section_flags): Add VLE.
11 (process_section_headers): Add VLE key to details.
12
1445030f
AM
132017-08-25 Alan Modra <amodra@gmail.com>
14
15 PR 21994
16 * readelf.c (process_version_sections <SHT_GNU_verdef>): Check
17 vd_aux and vda_next for sanity. Delete "end". Correct overflow
18 checks.
19 (process_version_sections <SHT_GNU_verneed>): Correct overflow
20 check. Don't report invalid vna_next on overflow. Do report
21 invalid vna_next on size less than aux info.
22
452bf675
AM
232017-08-23 Alan Modra <amodra@gmail.com>
24
25 PR 21990
26 * readelf.c (process_version_sections <SHT_GNU_verneed>): Check
27 for invalid vn_next field before adding to idx. Use unsigned
28 long for index vars. Move index checks.
29 <SHT_GNU_verdef>: Likewise for vd_next.
30
714da62f
NC
312017-08-17 Nick Clifton <nickc@redhat.com>
32
33 * testsuite/binutils-all/note-3-64.s: New test. Checks assembly
34 and decoding of version2 GNU build attribute notes.
35 * testsuite/binutils-all/note-3-32.s: New test. 32-bit version of
36 the above test.
37 * testsuite/binutils-all/note-3-64.d: New test driver.
38 * testsuite/binutils-all/note-3-32.d: New test driver.
39 * testsuite/binutils-all/objcopy.exp: Run the new test.
40 * readelf.c (is_64bit_abs_reloc): Add R_SPARC_64.
41
66c3b5f8
GR
422017-08-14 Gustavo Romero <gromero@linux.vnet.ibm.com>
43
44 * readelf.c (get_note_type): Handle PPC note types available
45 since Linux 4.8.
46
483767a3
AM
472017-08-12 Alan Modra <amodra@gmail.com>
48
49 * readelf.c (process_note): Qualify NT_GNU_BUILD_ATTRIBUTE notes
50 by name data.
51
cea7a285
NC
522017-08-08 Nick Clifton <nickc@redhat.com>
53
54 PR 21909
55 * prdbg.c (pr_int_type): Increase size of local string buffer.
56 (pr_float_type): Likewise.
57 (pr_bool_type): Likewise.
58
70b0cf90
NC
592017-08-02 Nick Clifton <nickc@redhat.com>
60
61 PR 21702
62 * arsup.c (ar_addmod): Add plugin support for the MRI ADDMOD
63 command.
64
75800d2c
NC
652017-08-02 Nick Clifton <nickc@redhat.com>
66
67 * testsuite/binutils-all/objdump.exp (cpus_expected): Add am33-2.
68
262cdac7
AM
692017-08-02 Alan Modra <amodra@gmail.com>
70
71 * readelf.c (is_32bit_abs_reloc): Add R_IA64_SECREL32MSB and
72 R_IA64_DIR32MSB.
73 (is_64bit_abs_reloc): Add R_IA64_DIR64MSB.
74 (is_64bit_pcrel_reloc): Add R_IA64_PCREL64MSB.
75
60c4393c
NC
762017-08-01 Nick Clifton <nickc@redhat.com>
77
78 * po/sv.po: Updated Swedish translation.
79
54387c7f
MP
802017-07-31 Marty Plummer <ntzrmtthihu777@gmail.com>
81
82 PR 21861
83 * winduni.c (codepages): Use cp1252 for codepage 0.
84
ec064256
NC
852017-07-25 Nick Clifton <nickc@redhat.com>
86
87 PR 21820
88 * readelf.c (dump_section_as_strings): Do not fail if the section
89 was empty.
90 (dump_section_as_bytes): Likewise.
91
ca4cf9b9
NC
922017-07-24 Nick Clifton <nickc@redhat.com>
93
94 PR 21813
95 * rddbg.c (read_symbol_stabs_debugging_info): Check for an empty
96 string whilst concatenating symbol names.
97
82c78066
NC
982017-07-21 Nick Clifton <nickc@redhat.com>
99
100 * po/fr.po: Updated French translation.
101
b57e815c
SM
1022017-07-21 Simon Marchi <simon.marchi@ericsson.com>
103
104 * dwarf.c (last_pointer_size, warned_about_missing_comp_units):
105 Remove.
106 (load_debug_info): Remove assignments to those two variables.
107
ba8826a8
AO
1082017-07-21 Alexandre Oliva <aoliva@redhat.com>
109
110 * dwarf.c (struct State_Machine_Registers): Add view field.
111 (reset_state_machine): Reset view.
112 (process_extended_line_op): Reset view when appropriate.
113 (display_debug_lines_raw): Increment or reset view when appropriate.
114 Print nonzero views. Support print view resets, disabled by default.
115 (display_debug_lines_decoded): Likewise. Disambiguate op_code tests,
116 enabling printing of end_sequence.
117 * testsuite/binutils-all/dw2-1.W: Add nonzero views.
118 * testsuite/binutils-all/dw2-3.W: Likewise.
119 * testsuite/binutils-all/dw2-3gabi.W: Likewise.
120 * testsuite/binutils-all/dw5.W: Add end sequence lines.
121 * testsuite/binutils-all/i386/compressed-1a.d: Add nonzero views.
122 * testsuite/binutils-all/libdw2-compressedgabi.out: Likewise.
123 * testsuite/binutils-all/objdump.W: Likewise.
124 * testsuite/binutils-all/objdump.WL: Add end sequence lines.
125 * testsuite/binutils-all/x86-64/compressed-1a.d: Add nonzero views.
126
e4943f2c
TG
1272017-07-19 Tristan Gingold <gingold@adacore.com>
128
129 * nm.c (show_stats): Remove variable.
130 (long_options): Remove --stats option.
131 (main): Remove handling of --stats.
132
de194d85
YC
1332017-07-18 Nick Clifton <nickc@redhat.com>
134
135 PR 21775
136 * coffgrok.c: Fix spelling typos.
137 * readelf.c: Likewise.
138 * stabs.c: Likewise.
139 * testsuite/binutils-all/objcopy.exp: Likewise.
140
b6a57713
NC
1412017-07-18 Nick Clifton <nickc@redhat.com>
142
143 * po/sv.po: Updated Swedish translation.
144
0a79bef4
HPN
1452017-07-18 Hans-Peter Nilsson <hp@bitrange.com>
146
147 * dwarf.c (display_debug_names): Initialize hash_prev.
148
2a925816
NC
1492017-07-17 Nick Clifton <nickc@redhat.com>
150
151 PR 21433
152 * ar.c (main): Skip check for no files on the command line when
153 running in MRI mode.
154
a502b0bb
L
1552017-07-13 H.J. Lu <hongjiu.lu@intel.com>
156
157 * testsuite/binutils-all/objdump.exp: Always delete $testarchive
158 first.
159
429d795d
AM
1602017-07-12 Alan Modra <amodra@gmail.com>
161
162 * po/bg.po: Update from translationproject.org/latest/binutils/.
163 * po/ca.po: Likewise.
164 * po/da.po: Likewise.
165 * po/es.po: Likewise.
166 * po/fi.po: Likewise.
167 * po/fr.po: Likewise.
168 * po/hr.po: Likewise.
169 * po/id.po: Likewise.
170 * po/it.po: Likewise.
171 * po/ja.po: Likewise.
172 * po/ro.po: Likewise.
173 * po/ru.po: Likewise.
174 * po/sk.po: Likewise.
175 * po/sr.po: Likewise.
176 * po/sv.po: Likewise.
177 * po/tr.po: Likewise.
178 * po/uk.po: Likewise.
179 * po/vi.po: Likewise.
180 * po/zh_CN.po: Likewise.
181 * po/zh_TW.po: Likewise.
182
0bae9e9e
NC
1832017-07-12 Nick Clifton <nickc@redhat.com>
184
185 Fix compile time warnings using gcc 7.1.1.
186 * dwarf.c (dwarf_vmatoa_1): Do not pass a NULL string pointer to
187 sprintf.
188 * srconv.c (walk_tree_type): Initialise the spare field of the
189 IT_dty structure.
190
04ac15ab
AS
1912017-07-11 Andreas Schwab <schwab@suse.de>
192
193 * readelf.c (process_note): Print newline after description data
194 in narrow mode.
195 (print_core_note): Print newline if nothing was printed in wide
196 mode.
197
14357de1
JK
1982017-07-09 Rafael Fontenelle <rafaelff@gnome.org>
199
200 * dwarf.c (display_formatted_table): Fix error message typo.
201
0b9305ed
JB
2022017-07-07 John Baldwin <jhb@FreeBSD.org>
203
204 * readelf.c (get_freebsd_elfcore_note_type): Handle
205 NT_FREEBSD_PTLWPINFO.
206
1d827a72
L
2072017-07-05 H.J. Lu <hongjiu.lu@intel.com>
208
209 * dwarf.c (display_debug_names): Replace index with xindex.
210
0d702cfe
TG
2112017-07-04 Tristan Gingold <gingold@adacore.com>
212
213 * configure: Regenerate.
214
55a09eb6
TG
2152017-07-04 Tristan Gingold <gingold@adacore.com>
216
217 * NEWS: Add marker for 2.29.
218
15e6ed8c
TG
2192017-07-03 Tristan Gingold <gingold@adacore.com>
220
221 * po/binutils.pot: Regenerate.
222
19871f45
AM
2232017-07-03 Alan Modra <amodra@gmail.com>
224
225 * strings.c (filename_and_size_t): Delete.
226 (strings_a_section): Don't check section size against file size.
227 Use bdf_malloc_and_get_section. Report an error on failures.
228 Replace arg param with filename and got_a_section param.
229 (got_a_section): Move to..
230 (strings_object_file): ..an auto var here. Iterate over sections
231 rather than calling bfd_map_over_sections. Adjust strings_a_section
232 call.
233
61364358
JK
2342017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
235
236 * dwarf.c: Include assert.h.
237 (MAX, MIN, get_IDX_name, display_debug_names): New.
238 (debug_displays): Add .debug_names.
239 * dwarf.h: (enum dwarf_section_display_enum): Add debug_names.
240 * readelf.c (process_section_headers): Add ".debug_names".
241
bae7501e
AM
2422017-07-01 Alan Modra <amodra@gmail.com>
243
244 PR binutils/21665
245 * objdump.c (strtab): Make var a bfd_byte*.
246 (disassemble_section): Don't limit malloc size. Instead, use
247 bfd_malloc_and_get_section.
248 (read_section_stabs): Use bfd_malloc_and_get_section. Return
249 bfd_byte*.
250 (find_stabs_section): Remove now unnecessary cast.
251 * objcopy.c (copy_object): Use bfd_malloc_and_get_section. Free
252 contents on error return.
253 * nlmconv.c (copy_sections): Use bfd_malloc_and_get_section.
254
60a02042
NC
2552017-06-30 Nick Clifton <nickc@redhat.com>
256
257 PR binutils/21665
258 * objdump.c (disassemble_section): Move check for an overlarge
259 section to just before the allocation of memory. Do not check
260 section size against file size, but instead use an arbitrary 2Gb
261 limit. Issue a warning message if the section is too big.
262
909b4e3d
MR
2632017-06-30 Maciej W. Rozycki <macro@imgtec.com>
264
265 * NEWS: Mention microMIPS XPA support.
266
f5b2fd52
MR
2672017-06-30 Maciej W. Rozycki <macro@imgtec.com>
268
269 * NEWS: Mention microMIPS Release 5 ISA support.
270
9785fc2a
MR
2712017-06-30 Maciej W. Rozycki <macro@imgtec.com>
272
273 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: New test.
274 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: New test.
275 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: New test.
276 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: New test.
277 * testsuite/binutils-all/mips/mips-xpa-virt.s: New test source.
278 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
279
e1e94c49
AK
2802017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com>
281
282 * testsuite/binutils-all/arc/double_store.s: New file.
283 * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler
284 options.
285 (do_objfile): New function.
286 (check_assembly): Likewise.
287
88ab90e8
AA
2882017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
289
290 * readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.
291
47fdcf63
L
2922017-06-28 H.J. Lu <hongjiu.lu@intel.com>
293
294 * objdump.c (dump_relocs_in_section): Cast to ufile_ptr when
295 comparing against bfd_get_file_size return.
296
88305e1b
NC
2972017-06-28 Nick Clifton <nickc@redhat.com>
298
299 * objcopy.c (merge_gnu_build_notes): Add support for version 2 notes.
300 * readelf.c (print_gnu_build_attribute_name): Likewise.
301
38bf472a
MR
3022017-06-28 Maciej W. Rozycki <macro@imgtec.com>
303 Matthew Fortune <matthew.fortune@imgtec.com>
304
305 * readelf.c (get_machine_flags) <E_MIPS_MACH_IAMR2>: New case.
306 (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
307 * NEWS: Mention Imagination interAptiv MR2 processor support.
308
cfd14a50
NC
3092017-06-26 Nick Clifton <nickc@redhat.com>
310
311 PR binutils/21665
312 * objdump.c (disassemble_section): Skip any section that is bigger
313 than the entire file.
314
0602cdad
NC
3152017-06-26 Nick Clifton <nickc@redhat.com>
316
317 PR binutils/21659
318 * bucomm.c (get_file_size): Explicitly warn if the file is a
319 directory.
320
ced40572
TP
3212017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
322
323 * readelf.c (arm_attr_tag_CPU_arch): Fill value for ARMv8-R.
324
0e158763
NC
3252017-06-23 Nick Clifton <nickc@redhat.com>
326
327 PR binutils/21659
328 * strings.c (strings_file): Warn about attempts to run strings on
329 a directory.
330
48580982
L
3312017-06-22 H.J. Lu <hongjiu.lu@intel.com>
332
333 * readelf.c (decode_x86_feature): Decode
334 GNU_PROPERTY_X86_FEATURE_1_SHSTK.
335 * testsuite/binutils-all/i386/shstk.d: New file.
336 * testsuite/binutils-all/i386/shstk.s: Likewise.
337 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
338 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
339 * testsuite/binutils-all/x86-64/shstk.s: Likewise.
340
ee2fdd6f
L
3412017-06-22 H.J. Lu <hongjiu.lu@intel.com>
342
343 * readelf.c (decode_x86_feature): New.
344 (print_gnu_property_note): Call decode_x86_feature on
345 GNU_PROPERTY_X86_FEATURE_1_AND.
346 * testsuite/binutils-all/i386/empty.d: New file.
347 * testsuite/binutils-all/i386/empty.s: Likewise.
348 * testsuite/binutils-all/i386/ibt.d: Likewise.
349 * testsuite/binutils-all/i386/ibt.s: Likewise.
350 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
351 * testsuite/binutils-all/x86-64/empty.d: Likewise.
352 * testsuite/binutils-all/x86-64/empty.s: Likewise.
353 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
354 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
355 * testsuite/binutils-all/x86-64/ibt.s: Likewise.
356
19474787
L
3572017-06-21 H.J. Lu <hongjiu.lu@intel.com>
358
359 * dwarf.c (READ_ULEB): Use DWARF_VMA_FMT to report error.
360 (READ_SLEB): Likewise.
361
7f2c8a1d
NC
3622017-06-21 Nick Clifton <nickc@redhat.com>
363
364 PR binutils/21648
365 * dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB. Add check for
366 reading a value that is too big for the containing variable.
367 (SLEB): Rename to SKIP_SLEB and READ_SLEB. Add similar check.
368 Replace uses of LEB and SLEB with appropriate new macro.
369 (display_debug_frames): Use an unsigned int for the 'reg'
370 variable. Use a signed long for the 'l' variable.
371
fd52715c
AK
3722017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
373
374 * readelf.c (get_s390_segment_type): Add support for the new
375 segment type PT_S390_PGSTE.
376 (get_segment_type): Call get_s390_segment_type.
377
d16fdddb
NC
3782017-06-19 Nick Clifton <nickc@redhat.com>
379
380 PR binutils/21619
381 * objdump.c (disassemble_bytes): Check that there is sufficient
382 data available before attempting to display it.
383
d24b7561
SM
3842017-06-06 Simon Marchi <simon.marchi@ericsson.com>
385
386 * sysinfo.y: Free memory allocated by token NAME.
387
10045478
AK
3882017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
389
390 * doc/binutils.texi: Document new cpu=... disassembler options for ARC.
391
8e2f54bc
L
3922017-05-30 H.J. Lu <hongjiu.lu@intel.com>
393
394 PR binutils/21519
395 * objdump.c (dump_relocs_in_section): Replace get_file_size
396 with bfd_get_file_size to get archive element size.
397 * testsuite/binutils-all/objdump.exp (test_objdump_f): New
398 proc.
399 (test_objdump_h): Likewise.
400 (test_objdump_t): Likewise.
401 (test_objdump_r): Likewise.
402 (test_objdump_s): Likewise.
403 Add objdump tests on archive.
404
003ca0fd
YQ
4052017-05-24 Yao Qi <yao.qi@linaro.org>
406
407 * objdump.c (disassemble_data): Caller update.
408
b4f5b984
JM
4092017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
410
411 * objcopy.c (merge_gnu_build_notes): Remove workaround that
412 prevented deleting relocations in duplicated notes in mips64 and
413 sparc.
414
e5713223
MR
4152017-05-19 Maciej W. Rozycki <macro@imgtec.com>
416
417 * testsuite/binutils-all/mips/mips-note-2.d: New test.
418 * testsuite/binutils-all/mips/mips-note-2r.d: New test.
419 * testsuite/binutils-all/mips/mips-note-2-n32.d: New test.
420 * testsuite/binutils-all/mips/mips-note-2-n64.d: New test.
421 * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test.
422 * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test.
423 * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'.
424 Run the new tests.
425
f0681695
MR
4262017-05-19 Maciej W. Rozycki <macro@imgtec.com>
427
428 * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump'
429 option.
430
64517994
JM
4312017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
432
433 * NEWS: Mention the SPARC M8 support.
434
dd47d677
MR
4352017-05-19 Maciej W. Rozycki <macro@imgtec.com>
436
437 * testsuite/binutils-all/mips/mips.exp: Bail out right away if
438 non-ELF.
439
535b785f
AM
4402017-05-18 Alan Modra <amodra@gmail.com>
441
442 * strings.c: Don't compare boolean values against TRUE or FALSE.
443
d8cbc93b
JL
4442017-05-15 Jeff Law <law@redhat.com>
445
446 * readelf.c (display_arc_attribute): Avoid implicit fallthru.
447
3f3467ff
MR
4482017-05-15 Maciej W. Rozycki <macro@imgtec.com>
449
450 * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
451 to `as' flags.
452 * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
453 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
454 * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
455 `.module mips3'.
456 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
457
25499ac7
MR
4582017-05-15 Maciej W. Rozycki <macro@imgtec.com>
459
460 * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
461 * NEWS: Mention MIPS16e2 ASE support.
462
a4f89915
MR
4632017-05-12 Maciej W. Rozycki <macro@imgtec.com>
464
465 * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
466 and SDBBP disassembly.
467
40e5240e
MR
4682017-05-10 Maciej W. Rozycki <macro@imgtec.com>
469
470 * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
471 `copyfile' variables.
472
53a346d8
CZ
4732017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
474
475 * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
476 (get_arc_section_type_name): New function.
477 (get_section_type_name): Use the above function.
478 (display_arc_attribute): New function.
479 (process_arc_specific): Likewise.
480 (process_arch_specific): Handle ARC specific information.
481
21d1fbee
KK
4822017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
483
484 * MAINTAINERS (SH): Remove myself as SH maintainer.
485
2ecf0cc3
L
4862017-05-02 H.J. Lu <hongjiu.lu@intel.com>
487
488 * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
489 long when comparing with sec->reloc_count.
490
1395c6ce
NC
4912017-05-02 Nick Clifton <nickc@redhat.com>
492
493 * objcopy.c (merge_gnu_build_notes): Disable merge if there are
494 more internal relocs than external relocs.
495
a4ddc54e
MR
4962017-05-02 Maciej W. Rozycki <macro@imgtec.com>
497
498 * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
499 disassembly of PC-relative LA and LW synthetic instructions.
500
39ff1b79
NC
5012017-05-02 Nick Clifton <nickc@redhat.com>
502
503 PR 21440
504 * objdump.c (dump_relocs_in_section): Check for an excessive
505 number of relocs before attempting to dump them.
506
ee7e95ef
AM
5072017-05-01 Alan Modra <amodra@gmail.com>
508
509 * objcopy.c (merge_gnu_build_notes): Correct code deleting
510 relocs.
511
b06b2c92
NC
5122017-04-28 Nick Clifton <nickc@redhat.com>
513
514 PR binutils/21439
515 * readelf.c (print_gnu_build_attribute_name): Allow for an empty
516 name field.
517
4e3afec2
NC
5182017-04-28 Nick Clifton <nickc@redhat.com>
519
520 PR binutils/21437
521 * readelf.c (process_version_sections): Check for underflow when
522 computing the start address of the auxillary version data.
523
d949ff56
NC
5242017-04-28 Nick Clifton <nickc@redhat.com>
525
526 PR binutils/21438
527 * dwarf.c (process_extended_line_op): Do not assume that the
528 string extracted from the section is NUL terminated.
529 (fetch_indirect_string): If the string retrieved from the section
530 is not NUL terminated, return an error message.
531 (fetch_indirect_line_string): Likewise.
532 (fetch_indexed_string): Likewise.
533
740a4630
NC
5342017-04-26 Nick Clifton <nickc@redhat.com>
535
d21f3ddb 536 PR binutils/21433
740a4630
NC
537 * bucomm.c (get_file_size): Return -1 if file_name is NULL.
538 * ar.c (main): Fail with usage() invocation if no file names are
539 provided.
540
3e6b6445
NC
5412017-04-26 Nick Clifton <nickc@redhat.com>
542
543 * readelf.c (process_section_headers): Warn about overlarge
544 sections.
545 (print_gnu_build_attribute_name): Print the number of unrecognised
546 note types. Fix formatting in the presence of errors.
547 (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
548 (testsuite/binutils-all/note-2-64.s): Likewise.
549
bbdd9a68
MR
5502017-04-26 Maciej W. Rozycki <macro@imgtec.com>
551
552 * readelf.c (process_mips_specific): Add static GOT support.
553
c4ab9505
MR
5542017-04-25 Maciej W. Rozycki <macro@imgtec.com>
555
556 * readelf.c (process_mips_specific): Remove error reporting from
557 GOT[1] processing.
558
919383ac
MR
5592017-04-25 Maciej W. Rozycki <macro@imgtec.com>
560
561 * readelf.c (process_mips_specific): Remove null GOT data check.
562
6e3d1f07
MR
5632017-04-25 Maciej W. Rozycki <macro@imgtec.com>
564
565 * testsuite/binutils-all/mips/mips16-alias.d: New test.
566 * testsuite/binutils-all/mips/mips16-noalias.d: New test.
567 * testsuite/binutils-all/mips/mips16-alias.s: New test source.
568 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
569
42354845
AM
5702017-04-23 Alan Modra <amodra@gmail.com>
571
572 PR 21418
573 * ar.c (main): Check -a, -b, -i and -N args are given.
574
7034215f
AM
5752017-04-23 Alan Modra <amodra@gmail.com>
576
577 PR 21417
578 * ar.c (main): Check that an archive file is given after options.
579
b02cd3e9
AM
5802017-04-23 Alan Modra <amodra@gmail.com>
581
582 PR 21415
583 * objdump.c (disassemble_section): Check bfd_get_section_contents
584 status.
585
f082820d
AM
5862017-04-23 Alan Modra <amodra@gmail.com>
587
588 PR 21408
589 * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
590 file_table.
591
ddef72cd
NC
5922017-04-21 Nick Clifton <nickc@redhat.com>
593
594 PR binutils/21378
595 * readelf.c (print_gnu_build_attribute_name): Check for an
596 overlarge name field.
597
7296a62a
NC
5982017-04-13 Nick Clifton <nickc@redhat.com>
599
600 PR binutils/21379
601 * readelf.c (process_dynamic_section): Detect over large section
602 offsets in the DT_SYMTAB entry.
603
6042017-04-13 Nick Clifton <nickc@redhat.com>
605
606 PR binutils/21345
607 * readelf.c (process_mips_specific): Catch an unfeasible memory
608 allocation before it happens and print a suitable error message.
609
1d15e434
NC
6102017-04-13 Nick Clifton <nickc@redhat.com>
611
612 * objcopy.c: Add --no-merge-notes option to disable note merging.
613 Add --[no-]merge-notes option to strip, and enable it by default.
614 (num_bytes): New function.
615 (merge_gnu_build_notes): Add code to merge stack size notes.
616 * binutils.texi: Update strip and objcopy documentation.
617 * readelf.c (print_gnu_build_attribute_name): Use defined
618 constants for note types.
619
28d909e5
JD
6202017-04-10 John Delsignor <john.delsignore@roguewave.com>
621
622 PR binutils/21319
623 * dwarf.c (display_gdb_index): Correct test for a corrupt address
624 table size.
625
0f65a5d8
JW
6262017-04-05 Jiong Wang <jiong.wang@arm.com>
627
628 * objcopy.c (struct redefine_node): Delete the field "next".
629 (redefine_sym_list): Deleted.
630 (redefine_specific_htab): New hash table.
631 (redefine_specific_reverse_htab): Likewise.
632 (eq_string_redefnode): New function.
633 (htab_hash_redefnode): Likewise.
634 (create_symbol2redef_htab): Likewise.
635 (add_specific_symbol_node): Likewise.
636 (create_symbol_htabs): Create redefine_specific_htab and
637 redefine_specific_reverse_htab.
638 (lookup_sym_redefinition): Use hash table instead of list.
639 (redefine_list_append): Likewise, and rename to add_redefine_and_check.
640 (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
641 Update comments.
642
a91e1603
L
6432017-04-04 H.J. Lu <hongjiu.lu@intel.com>
644
645 * NEWS: Mention support for ELF SHF_GNU_MBIND and
646 PT_GNU_MBIND_XXX.
647 * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
648 (get_elf_section_flags): Handle SHF_GNU_MBIND.
649 (process_section_headers): Likewise.
650 * testsuite/binutils-all/mbind1.s: New file.
651 * testsuite/binutils-all/objcopy.exp: Run readelf test on
652 mbind1.s.
653
82156ab7
NC
6542017-04-03 Nick Clifton <nickc@redhat.com>
655
656 PR binutils/21345
657 * readelf.c (get_program_headers): Check for there being too many
658 program headers before attempting to allocate space for them.
659
75ec1fdb
NC
6602017-04-03 Nick Clifton <nickc@redhat.com>
661
662 PR binutils/21344
663 * readelf.c (process_mips_specific): Check for an out of range GOT
664 entry before reading the module pointer.
665
f32ba729
NC
6662017-04-03 Nick Clifton <nickc@redhat.com>
667
668 PR binutils/21343
669 * readelf.c (get_unwind_section_word): Fix snafu checking for
670 invalid word offsets in ARM unwind information.
671
efdf7a02
PC
6722017-03-31 Pip Cet <pipcet@gmail.com>
673
674 * NEWS: Use "WebAssembly" consistently.
675 * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
676
f96bd6c2
PC
6772017-03-30 Pip Cet <pipcet@gmail.com>
678
679 * readelf.c: Add support for wasm32 ELF format WebAssembly files.
680 (guess_is_rela): Likewise.
681 (dump_relocations): Likewise.
682 (is_32bit_abs_reloc): Likewise.
683 (is_none_reloc_): Likewise.
684 * NEWS: Mention the new support.
685 * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
686 as ELF target.
687 (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
688 * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
689 * testsuite/binutils-all/wasm32: New directory.
690 * testsuite/binutils-all/wasm32/create-wasm.d: New file.
691 * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
692 * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
693 * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
694 * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
695 * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
696 * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
697 * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
698 * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
699 * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
700 * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
701 * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
702 * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
703 * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
704 * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
705
52be03fd
AM
7062017-03-29 Alan Modra <amodra@gmail.com>
707
708 * doc/binutils.texi (objdump): Document PowerPC -M options.
709
4a14e306
AK
7102017-03-21 Andi Kleen <ak@linux.intel.com>
711
712 * objdump.c (unwind_inlines): Add.
713 (option_values): Add OPTION_INLINES.
714 (show_line): Unwind inlines if requested.
715 (main): Parse OPTION_INLINES.
716 (usage): Document --inlines.
717 * doc/binutils.texi: Document --inlines.
718 * NEWS: Likewise.
719
75d7d298
NC
7202017-03-21 Nick Clifton <nickc@redhat.com>
721
722 * readelf.c (print_gnu_build_attribute_name): Allow stack
723 protection notes to contain numeric values. Use a colon rather
724 than a space to separate a string name from its values. Decode
725 the numeric value of a stack protection note.
726 * objcopy.c (merge_gnu_build_notes): Allow version notes to
727 contain extra text after the protocol version number.
728
39e224f6
MW
7292017-03-20 Mark Wielaard <mark@klomp.org>
730
731 * readelf.c (process_program_headers): Move dynamic_addr check
732 after .dynamic section cross check.
733
0dd6ae21
NC
7342017-03-17 Nick Clifton <nickc@redhat.com>
735
736 * readelf.c (print_gnu_build_attribute_name): Fix off by one error
737 printing the value for a build note with an ascii name.
738
a8be5506
NC
7392017-03-16 Nick Clifton <nickc@redhat.com>
740
741 * readelf.c (print_gnu_build_attribute_name): Add support for
742 GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
743
c799a79d
NC
7442017-03-14 Nick Clifton <nickc@redhat.com>
745
746 * readelf.c (print_gnu_build_attribute_description): Move symbol
747 printing code to...
748 (print_symbol_for_build_attribute): New function. ...here.
749 Add to find the best symbol to associate with an OPEN note.
750 Add code to cache the symbol table and string table, so that they
751 are not loaded every time a note is displayed.
752 * testsuite/binutils-all/note-2-32.s: Add a function symbol.
753 * testsuite/binutils-all/note-2-64.s: Likewise.
754 * testsuite/binutils-all/note-2-32.d: Update expected note output.
755 * testsuite/binutils-all/note-2-64.d: Likewise.
756
5ef2d51b
AM
7572017-03-13 Alan Modra <amodra@gmail.com>
758 Taeung Song <treeze.taeung@gmail.com>
759
760 * objdump.c (update_source_path): Add abfd param. Add struct
761 stat var. Pass to try_print_file_open. Warn if source is more
762 recent than object.
763 (try_print_file_open, slurp_file): Add struct stat param to
764 return fstat.
765 (show_line): Call update_source_path with bfd.
766
7b5d4822
CHL
7672017-03-10 Chia-Hao Lo <fcamel@gmail.com>
768
769 PR binutils/21235
770 * objdump.c (main): Set do_wide with --wide.
771
55e22ca8
NC
7722017-03-10 Nick Clifton <nickc@redhat.com>
773
774 * readelf.c (get_machine_name): Rearrange switch table in order of
775 increasing machine number. Add missing entries.
776
1fc87489
L
7772017-03-08 H.J. Lu <hongjiu.lu@intel.com>
778
779 PR binutils/21231
780 * readelf.c (decode_x86_isa): Change argument to unsigned int.
781 (print_gnu_property_note): Retrieve property type and datasz as
782 4-byte integer. Consolidate property datasz check. Check
783 GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
784 * testsuite/binutils-all/i386/pr21231a.d: New file.
785 * testsuite/binutils-all/i386/pr21231a.s: Likewise.
786 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
787 * testsuite/binutils-all/i386/pr21231b.s: Likewise.
788 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
789 * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
790 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
791 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
792
79a964dc
NC
7932017-03-06 Nick Clifton <nickc@redhat.com>
794
795 * readelf.c (print_gnu_build_attribute_name): Read byte values
796 from the name string as unsigned bytes.
797 (process_notes_at): Use memcpy to copy an unterminated name
798 string.
799
1f5345a6
ST
8002017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
801
802 * configure.ac (AC_CHECK_DECLS): Add asprintf.
803 * config.in: Regenerate.
804 * configure: Regenerate.
805
c871dade
NC
8062017-03-02 Nick Clifton <nickc@redhat.com>
807
808 * readelf.c (print_gnu_build_attribute_description): Use global
809 symbols for OPEN attributes if at all possible.
05ed4310
NC
810 * objcopy.c (is_merged_note_section): Support build note sections
811 without the SHF_GNU_BUILD_NOTE section flag set.
c871dade 812
b451e98a
JK
8132017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
814
815 * dwarf.c (debug_displays_assert): New static assertion.
816
d4620bee
JK
8172017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
818
819 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
820
9ef920e9
NC
8212017-03-01 Nick Clifton <nickc@redhat.com>
822
823 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
824 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
825 (decode_x86_isa): New function.
826 (print_gnu_property_note): New function.
827 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
828 (print_gnu_build_attribute_description): New function.
829 (print_gnu_build_attribute_name): New function.
830 (process_note): Add support for GNU_BUILD_NOTEs.
831 * objcopy.c (--merge-notes): New command line option.
832 (copy_options): Add merge-notes.
833 (copy_usage): Likewise.
834 (is_merge_note_section): New function.
835 (merge_gnu_build_notes): New function.
836 (copy_object): Merge note sections if asked to do so.
837 (skip_section): Add skip_copy parameter. Add support for skipping
838 merged note sections.
839 (copy_relocations_in_section): Update call to skip_section.
840 (copy_section): Likewise.
841 (copy_main): Add support for merge-notes option.
842 * doc/binutils.texi: Document the new option to objcopy.
843 * NEWS: Mention the new feature.
844 * testsuite/binutils-all/note-2-32.d: New test. Checks note
845 merging on 32-bit targets.
846 * testsuite/binutils-all/note-2-32.s: New test source file.
847 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
848 but for 64-bit targets.
849 * testsuite/binutils-all/note-2-64.s: New test source file.
850 * testsuite/binutils-all/objcopy.exp: Run the new test.
851
65b48a81
PB
8522017-02-28 Peter Bergner <bergner@vnet.ibm.com>
853
854 * objdump.c (main): Use remove_whitespace_and_extra_commas.
855
9dfd0db9
JK
8562017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
857
858 Fix compilation with GCC 4.4.7.
859 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
860 Initialize begin and end.
861
3b83ea38
AM
8622017-02-25 Alan Modra <amodra@gmail.com>
863
864 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
865 Support hpux .comm variant.
866 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
867 dw5 test for hppa64-hpux.
868
32ec8896
NC
8692017-02-24 Nick Clifton <nickc@redhat.com>
870
871 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
872 (do_reloc, do_sections, do_section_groups, do_section_details,
873 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
874 (do_version, do_histogram, do_debugging, do_arch, do_notes,
875 (do_archive_index, is_32bit_elf, decompress_dumps): Use
876 bfd_boolean type.
877 (parse_args): Treat the do_* variables as booleans.
878 (print_vma): Return an unsigned int.
879 (print_symbol): Change width parameter to signed int.
880 (is_ia64_vms): Change return type to bfd_boolean.
881 (guess_is_rela): Likewise.
882 (slurp_rela_relocs): Likewise.
883 (slurp_rel_relocs): Likewise.
884 (dump_relocations): Likewise.
885 (process_file_header): Likewise.
886 (get_program_headers): Likewise.
887 (process_program_headers): Likewise.
888 (process_section_headers): Likewise.
889 (process_section_groups): Likewise.
890 (dump_ia64_vms_dynamic_fixups): Likewise.
891 (dump_ia64_vms_dynamic_relocs): Likewise.
892 (process_ia64_vms_dynamic_relocs): Likewise.
893 (process_relocs): Likewise.
894 (dump_ia64_unwind): Likewise.
895 (ia64_process_unwind): Likewise.
896 (dump_hppa_unwind): Likewise.
897 (slurp_hppa_unwind_table): Likewise.
898 (hppa_process_unwind): Likewise.
899 (decode_arm_unwind_bytecode): Likewise.
900 (decode_tic6x_unwind_bytecode): Likewise.
901 (decode_arm_unwind): Likewise.
902 (dump_arm_unwind): Likewise.
903 (arm_process_unwind): Likewise.
904 (process_unwind): Likewise.
905 (get_32bit_dynamic_section): Likewise.
906 (get_64bit_dynamic_section): Likewise.
907 (process_dynamic_section): Likewise.
908 (process_version_sections): Likewise.
909 (process_symbol_table): Likewise.
910 (process_syminfo): Likewise.
911 (apply_relocations): Likewise.
912 (disassemble_section): Likewise.
913 (dump_section_as_strings): Likewise.
914 (dump_section_as_bytes): Likewise.
915 (load_specific_debug_section): Likewise.
916 (load_debug_section): Likewise.
917 (display_debug_section): Likewise.
918 (process_section_contents): Likewise.
919 (process_attributes): Likewise.
920 (process_nds32_specific): Likewise.
921 (process_gnu_liblist): Likewise.
922 (print_core_note): Likewise.
923 (print_gnu_note): Likewise.
924 (print_v850_note): Likewise.
925 (process_netbsd_elf_note): Likewise.
926 (print_stapsdt_note): Likewise.
927 (print_ia64_vms_note): Likewise.
928 (process_note): Likewise.
929 (process_notes_at): Likewise.
930 (process_corefile_note_segments): Likewise.
931 (process_v850_notes): Likewise.
932 (process_note_sections): Likewise.
933 (process_notes): Likewise.
934 (process_arch_specific): Likewise.
935 (get_file_header): Likewise.
936 (process_object): Likewise.
937 (process_archive): Likewise.
938 (process_file): Likewise.
939 (section_subset): Make static.
940 (get_mips_reg_size): Return a signed integer.
941 (process_object): Reverse the logic of the return value.
942 (process_archive): Likewise.
943 (process_file): Likewise.
6b4bf3bc
NC
944 (process_program_headers): Fix snafu - if the program headers are
945 not available then this is not a cause to fail.
946 (process_corefile_note_segments): Likewise.
32ec8896 947
7bb1ad17
MR
9482017-02-24 Maciej W. Rozycki <macro@imgtec.com>
949
950 * readelf.c (get_ver_flags): Tidy the formatting of the string
951 returned
952
5235cd68
MR
9532017-02-24 Maciej W. Rozycki <macro@imgtec.com>
954
955 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
956 `isum' unsigned.
957 <SHT_GNU_verneed>: Likewise.
958
c9f02c3e
MR
9592017-02-24 Maciej W. Rozycki <macro@imgtec.com>
960
961 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
962 the number of entries processed by the section size. Don't
963 break out of the loop if `ent.vd_next' is 0.
964
a567769b
JK
9652017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
966
967 * testsuite/binutils-all/dw5.S: New file.
968 * testsuite/binutils-all/dw5.W: New file.
969 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
970
2f6cd591
JK
9712017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
972
973 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
974
7a7e1061
JK
9752017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
976
977 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
978 DW_MACRO_GNU_*.
979
bc0a77d2
JK
9802017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
981
982 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
983 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
984 and DW_OP_reinterpret.
985 (read_and_display_attr_value): Support DW_AT_call_value,
986 DW_AT_call_data_value, DW_AT_call_target and
987 DW_AT_call_target_clobbered.
988
77145576
JK
9892017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
990
991 * dwarf.c (fetch_indirect_line_string): New function.
992 (abbrev_attr): New field implicit_const.
993 (add_abbrev_attr): New parameter implicit_const.
994 (process_abbrev_section): Support DW_FORM_implicit_const.
995 (decode_location_expression): Support DW_OP_entry_value.
996 (read_and_display_attr_value): Add parameter implicit_const. Support
997 DW_FORM_line_strp and DW_FORM_implicit_const.
998 (read_and_display_attr): Add parameter implicit_const.
999 (process_debug_info): Support line_str and DWARF-5.
1000 (read_debug_line_header): Support DWARF-5.
1001 (display_formatted_table): New function.
1002 (display_debug_lines_raw): New parameter file. Support DWARF-5.
1003 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
1004 (display_debug_lines): Pass file parameter.
1005 (display_debug_macro): Update read_and_display_attr_value caller.
1006 (display_debug_abbrev): Support DW_FORM_implicit_const.
1007 (display_loclists_list): New function.
1008 (display_loc_list): Support .debug_loclists.
1009 (display_debug_ranges_list): New function from display_debug_ranges.
1010 (display_debug_rnglists_list): New function.
1011 (display_debug_ranges): Support .debug_rnglists.
1012 (debug_displays): Add .debug_line_str, .debug_loclists and
1013 .debug_rnglists.
1014 * dwarf.h: Include dwarf2.h
1015 (DWARF2_Internal_LineInfo): Add li_offset_size.
1016 (DWARF2_Internal_CompUnit): Add cu_unit_type.
1017 (enum dwarf_section_display_enum): Add line_str.
1018 * readelf.c (process_section_headers): Add rnglists and loclists.
1019
ef0b5f1c
JK
10202017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1021
1022 * dwarf.c (display_block): Add parameter delimiter.
1023 (decode_location_expression): Update display_block callers.
1024 (read_and_display_attr_value): Add parameter delimiter.
1025 (read_and_display_attr, display_debug_macro): Update
1026 read_and_display_attr_value caller.
1027
359ca075
JK
10282017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1029
1030 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
1031 and off.
1032 (display_loc_list_dwo): Use dwarf_vma for offset.
1033 (display_debug_loc): Use dwarf_vma for offset, base_address.
1034 (struct range_entry, range_entry_compar): Use dwarf_vma for
1035 ranges_offset.
1036 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
1037 base_address.
1038
60abdbed
NC
10392017-02-23 Nick Clifton <nickc@redhat.com>
1040
1041 * readelf.c (display_tag_value): Use an explicit signed type for
1042 the tag parameter.
1043 (display_gnu_attributes): Use an unsigned integer type for
1044 attribute tags.
1045 (display_power_gnu_attribute): Likewise.
1046 (display_s390_gnu_attribute): Likewise.
1047 (display_sparc_hwcaps): Likewise.
1048 (display_sparc_hwcaps2): Likewise.
1049 (display_sparc_gnu_attribute): Likewise.
1050 (display_mips_gnu_attribute): Likewise.
1051 (display_tic6x_attribute): Likewise.
1052 (display_raw_attribute): Likewise.
1053 (process_attributes): Likewise.
1054 (process_arm_specific): Delete redundant function.
1055 (process_power_specific): Likewise.
1056 (process_s390_specific): Likewise.
1057 (process_sparc_specific): Likewise.
1058 (process_tic6x_specific): Likewise.
1059 (process_msp430x_specific): Likewise.
1060 (display_public_gnu_attributes): New function. Displays known
1061 information about an unknown gnu attribute.
1062 (display_generic_attribute): New function. Calls
1063 display_tag_value for non-nul tags.
1064 (process_arch_specific): Call process_attributes even for
1065 architectures not known to specifically support gnu attributes.
1066
0502a2b4
JK
10672017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1068
1069 * dwarf.c (decode_location_expression): Display also OP.
1070
233f82cf
MR
10712017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1072
1073 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
1074 new line between the heading and the first version definition
1075 entry.
1076
43a444f9
NC
10772017-02-20 Nick Clifton <nickc@redhat.com>
1078
1079 PR binutils/21156
1080 * dwarf.c (cu_tu_indexes_read): Move into...
1081 (load_cu_tu_indexes): ... here. Change the variable into
1082 tri-state. Change the function into boolean, returning
1083 false if the indicies could not be loaded.
1084 (find_cu_tu_set): Return NULL if the indicies could not be
1085 loaded.
1086
b814a36d
NC
10872017-02-17 Nick Clifton <nickc@redhat.com>
1088
1089 PR binutils/21156
1090 * readelf.c (find_section_in_set): Test for invalid section
1091 indicies.
1092
1b4b80bf
NC
10932017-02-17 Nick Clifton <nickc@redhat.com>
1094
1095 * readelf.c (get_section_type_name): Add decoding of GNU section
1096 types.
1097
7c723eec
NC
10982017-02-15 Nick Clifton <nickc@redhat.com>
1099
1100 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
1101 Maintainers section.
1102
bc303e5d
NC
11032017-02-14 Nick Clifton <nickc@redhat.com>
1104
1105 PR binutils/21159
1106 * readelf.c (dump_section_as_strings): Reset the start address if
1107 no decompression is perfromed.
1108 (dump_section_as_bytes): Likewise.
1109
92134dc1
NC
11102017-02-14 Nick Clifton <nickc@redhat.com>
1111
1112 PR binutils/21158
1113 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
1114 empty symbol name.
1115
a2dea0b2
NC
11162017-02-14 Nick Clifton <nickc@redhat.com>
1117
1118 PR binutils/21157
1119 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
1120 pairs.
1121 (parse_number): Exit early if passed an empty string.
1122
b32e566b
NC
11232017-02-14 Nick Clifton <nickc@redhat.com>
1124
1125 PR binutils/21155
1126 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
1127 being within a given range.
1128 (target_specific_reloc_handling): Use macro to test for underflow
1129 as well as overflow of reloc offset.
1130
c1221402
NC
11312017-02-13 Nick Clifton <nickc@redhat.com>
1132
1133 PR binutils/21150
1134 * nm.c (file_symbol): Add test of string length before testing
1135 string characters.
1136
f055032e
NC
11372017-02-13 Nick Clifton <nickc@redhat.com>
1138
1139 PR binutils/21135
1140 * readelf.c (dump_section_as_bytes): Handle the case where
1141 uncompress_section_contents returns false.
1835f746 1142 (dump_section_as_bytes, load_specific_debug_section): Likewise.
f055032e 1143
ebdf1ebf
NC
11442017-02-13 Nick Clifton <nickc@redhat.com>
1145
1146 PR binutils/21149
1147 * readelf.c (get_compression_header): Add size parameter. Check
1148 size against sizeof compression header before attempting to
1149 extract the header.
1150 (process_section_headers): Pass size to get_compression_header.
1151 (dump_section_as_strings): Likewise.
1152 (dump_section_as_bytes): Likewise.
1153 (load_specific_debug_section): Likewise.
1154
4aeb00ad
NC
11552017-02-13 Nick Clifton <nickc@redhat.com>
1156
1157 PR binutils/21148
1158 * readelf.c (process_version_sections): Include size of auxillary
1159 version information when checking for buffer overflow.
1160
0ee3043f
NC
11612017-02-13 Nick Clifton <nickc@redhat.com>
1162
1163 PR binutils/21147
1164 * readelf.c (process_section_contents): Fix off by one error
1165 reporting un-dumped sections.
1166
f84ce13b
NC
11672017-02-13 Nick Clifton <nickc@redhat.com>
1168
1169 PR binutils/21139
1170 * readelf.c (target_specific_reloc_handling): Add num_syms
1171 parameter. Check for symbol table overflow before accessing
1172 symbol value. If reloc pointer is NULL, discard all saved state.
1173 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
1174 Call target_specific_reloc_handling with a NULL reloc pointer
1175 after processing all of the relocs.
1176
03f7786e
NC
11772017-02-13 Nick Clifton <nickc@redhat.com>
1178
1179 PR binutils/21137
1180 * readelf.c (target_specific_reloc_handling): Add end parameter.
1181 Check for buffer overflow before writing relocated values.
1182 (apply_relocations): Pass end to target_specific_reloc_handling.
1183
387dd777
DP
11842017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1185 Nick Clifton <nickc@redhat.com>
1186
1187 PR 20343
1188 * doc/binutils.texi (ar): Extend documentation of the --plugin
1189 option. Include a description of where the plugins should be
1190 located.
1191 (nm): Likewise.
1192
cf581a9b
NC
11932017-01-23 Nick Clifton <nickc@redhat.com>
1194
1195 * MAINTAINERS: Add Bernd to Past Maintainers section.
c49f9d0f 1196 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
71d01c69 1197 section.
cf581a9b 1198
715e99a4
BS
11992017-01-23 Bernd Schmidt <bschmidt@redhat.com>
1200
1201 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
1202
1737c640
AB
12032017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * objdump.c (dump_section_header): Extract max section name length
1206 from data parameter, use this when formatting output.
1207 (find_longest_section_name): New function.
1208 (dump_headers): Calculate longest section name when in wide mode,
1209 reformat to unify printing of header line.
1210
2cedb9eb
BR
12112017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
1212
1213 PR 21059
1214 * arlex.l: Support processing with flex 2.6.3.
1215 * deflex.l: Likewise.
1216
6bb21700
DT
12172017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
1218
1219 * resbin.c: Optional dialog control data immediately follows
1220 the control description without alignment.
1221 * testsuite/binutils-all/windres/controldata.rc: New test.
1222 source.
1223 * testsuite/binutils-all/windres/controldata.rsd: New test.
1224
2425a30e
NC
12252017-01-12 Nick Clifton <nickc@redhat.com>
1226
1227 PR binutils/20876
1228 * NEWS: Mention the new feature.
1229 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
1230 New proc to test the location of separate debug info files using
1231 the build-id method.
1232
b972a0d6
NC
12332017-01-10 Nick Clifton <nickc@redhat.com>
1234
1235 PR 21034
1236 * stabs.c (parse_stab_members): Fix thinko checking for g++
1237 version 1 stabs information.
1238
cd6581da
NC
12392017-01-09 Nick Clifton <nickc@redhat.com>
1240
1241 * objdump.c (display_file): Add new parameter 'last_file'. If
1242 last_file is true, do not call bfd_close at the end of the
1243 function.
1244 (main): Set the value of the last_file parameter when calling
1245 display_file.
1246
4d74727a
AM
12472017-01-09 Alan Modra <amodra@gmail.com>
1248
1249 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
1250 comment.
1251
fd13a84b
NC
12522017-01-06 Nick Clifton <nickc@redhat.com>
1253
1254 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
1255
b0556316
DP
12562017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
1257
1258 PR 20958
1259 * syslex.l (option): Add noyywrap
1260 (yywrap): Delete.
1261
2571583a
AM
12622017-01-02 Alan Modra <amodra@gmail.com>
1263
1264 Update year range in copyright notice of all files.
1265
5c1ad6b5 1266For older changes see ChangeLog-2016
3499769a 1267\f
5c1ad6b5 1268Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
1269
1270Copying and distribution of this file, with or without modification,
1271are permitted in any medium without royalty provided the copyright
1272notice and this notice are preserved.
1273
1274Local Variables:
1275mode: change-log
1276left-margin: 8
1277fill-column: 74
1278version-control: never
1279End: