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