]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
Fix assertion failure for xtensa linker.
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
75800d2c
NC
12017-08-02 Nick Clifton <nickc@redhat.com>
2
3 * testsuite/binutils-all/objdump.exp (cpus_expected): Add am33-2.
4
262cdac7
AM
52017-08-02 Alan Modra <amodra@gmail.com>
6
7 * readelf.c (is_32bit_abs_reloc): Add R_IA64_SECREL32MSB and
8 R_IA64_DIR32MSB.
9 (is_64bit_abs_reloc): Add R_IA64_DIR64MSB.
10 (is_64bit_pcrel_reloc): Add R_IA64_PCREL64MSB.
11
60c4393c
NC
122017-08-01 Nick Clifton <nickc@redhat.com>
13
14 * po/sv.po: Updated Swedish translation.
15
54387c7f
MP
162017-07-31 Marty Plummer <ntzrmtthihu777@gmail.com>
17
18 PR 21861
19 * winduni.c (codepages): Use cp1252 for codepage 0.
20
ec064256
NC
212017-07-25 Nick Clifton <nickc@redhat.com>
22
23 PR 21820
24 * readelf.c (dump_section_as_strings): Do not fail if the section
25 was empty.
26 (dump_section_as_bytes): Likewise.
27
ca4cf9b9
NC
282017-07-24 Nick Clifton <nickc@redhat.com>
29
30 PR 21813
31 * rddbg.c (read_symbol_stabs_debugging_info): Check for an empty
32 string whilst concatenating symbol names.
33
82c78066
NC
342017-07-21 Nick Clifton <nickc@redhat.com>
35
36 * po/fr.po: Updated French translation.
37
b57e815c
SM
382017-07-21 Simon Marchi <simon.marchi@ericsson.com>
39
40 * dwarf.c (last_pointer_size, warned_about_missing_comp_units):
41 Remove.
42 (load_debug_info): Remove assignments to those two variables.
43
ba8826a8
AO
442017-07-21 Alexandre Oliva <aoliva@redhat.com>
45
46 * dwarf.c (struct State_Machine_Registers): Add view field.
47 (reset_state_machine): Reset view.
48 (process_extended_line_op): Reset view when appropriate.
49 (display_debug_lines_raw): Increment or reset view when appropriate.
50 Print nonzero views. Support print view resets, disabled by default.
51 (display_debug_lines_decoded): Likewise. Disambiguate op_code tests,
52 enabling printing of end_sequence.
53 * testsuite/binutils-all/dw2-1.W: Add nonzero views.
54 * testsuite/binutils-all/dw2-3.W: Likewise.
55 * testsuite/binutils-all/dw2-3gabi.W: Likewise.
56 * testsuite/binutils-all/dw5.W: Add end sequence lines.
57 * testsuite/binutils-all/i386/compressed-1a.d: Add nonzero views.
58 * testsuite/binutils-all/libdw2-compressedgabi.out: Likewise.
59 * testsuite/binutils-all/objdump.W: Likewise.
60 * testsuite/binutils-all/objdump.WL: Add end sequence lines.
61 * testsuite/binutils-all/x86-64/compressed-1a.d: Add nonzero views.
62
e4943f2c
TG
632017-07-19 Tristan Gingold <gingold@adacore.com>
64
65 * nm.c (show_stats): Remove variable.
66 (long_options): Remove --stats option.
67 (main): Remove handling of --stats.
68
de194d85
YC
692017-07-18 Nick Clifton <nickc@redhat.com>
70
71 PR 21775
72 * coffgrok.c: Fix spelling typos.
73 * readelf.c: Likewise.
74 * stabs.c: Likewise.
75 * testsuite/binutils-all/objcopy.exp: Likewise.
76
b6a57713
NC
772017-07-18 Nick Clifton <nickc@redhat.com>
78
79 * po/sv.po: Updated Swedish translation.
80
0a79bef4
HPN
812017-07-18 Hans-Peter Nilsson <hp@bitrange.com>
82
83 * dwarf.c (display_debug_names): Initialize hash_prev.
84
2a925816
NC
852017-07-17 Nick Clifton <nickc@redhat.com>
86
87 PR 21433
88 * ar.c (main): Skip check for no files on the command line when
89 running in MRI mode.
90
a502b0bb
L
912017-07-13 H.J. Lu <hongjiu.lu@intel.com>
92
93 * testsuite/binutils-all/objdump.exp: Always delete $testarchive
94 first.
95
429d795d
AM
962017-07-12 Alan Modra <amodra@gmail.com>
97
98 * po/bg.po: Update from translationproject.org/latest/binutils/.
99 * po/ca.po: Likewise.
100 * po/da.po: Likewise.
101 * po/es.po: Likewise.
102 * po/fi.po: Likewise.
103 * po/fr.po: Likewise.
104 * po/hr.po: Likewise.
105 * po/id.po: Likewise.
106 * po/it.po: Likewise.
107 * po/ja.po: Likewise.
108 * po/ro.po: Likewise.
109 * po/ru.po: Likewise.
110 * po/sk.po: Likewise.
111 * po/sr.po: Likewise.
112 * po/sv.po: Likewise.
113 * po/tr.po: Likewise.
114 * po/uk.po: Likewise.
115 * po/vi.po: Likewise.
116 * po/zh_CN.po: Likewise.
117 * po/zh_TW.po: Likewise.
118
0bae9e9e
NC
1192017-07-12 Nick Clifton <nickc@redhat.com>
120
121 Fix compile time warnings using gcc 7.1.1.
122 * dwarf.c (dwarf_vmatoa_1): Do not pass a NULL string pointer to
123 sprintf.
124 * srconv.c (walk_tree_type): Initialise the spare field of the
125 IT_dty structure.
126
04ac15ab
AS
1272017-07-11 Andreas Schwab <schwab@suse.de>
128
129 * readelf.c (process_note): Print newline after description data
130 in narrow mode.
131 (print_core_note): Print newline if nothing was printed in wide
132 mode.
133
14357de1
JK
1342017-07-09 Rafael Fontenelle <rafaelff@gnome.org>
135
136 * dwarf.c (display_formatted_table): Fix error message typo.
137
0b9305ed
JB
1382017-07-07 John Baldwin <jhb@FreeBSD.org>
139
140 * readelf.c (get_freebsd_elfcore_note_type): Handle
141 NT_FREEBSD_PTLWPINFO.
142
1d827a72
L
1432017-07-05 H.J. Lu <hongjiu.lu@intel.com>
144
145 * dwarf.c (display_debug_names): Replace index with xindex.
146
0d702cfe
TG
1472017-07-04 Tristan Gingold <gingold@adacore.com>
148
149 * configure: Regenerate.
150
55a09eb6
TG
1512017-07-04 Tristan Gingold <gingold@adacore.com>
152
153 * NEWS: Add marker for 2.29.
154
15e6ed8c
TG
1552017-07-03 Tristan Gingold <gingold@adacore.com>
156
157 * po/binutils.pot: Regenerate.
158
19871f45
AM
1592017-07-03 Alan Modra <amodra@gmail.com>
160
161 * strings.c (filename_and_size_t): Delete.
162 (strings_a_section): Don't check section size against file size.
163 Use bdf_malloc_and_get_section. Report an error on failures.
164 Replace arg param with filename and got_a_section param.
165 (got_a_section): Move to..
166 (strings_object_file): ..an auto var here. Iterate over sections
167 rather than calling bfd_map_over_sections. Adjust strings_a_section
168 call.
169
61364358
JK
1702017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
171
172 * dwarf.c: Include assert.h.
173 (MAX, MIN, get_IDX_name, display_debug_names): New.
174 (debug_displays): Add .debug_names.
175 * dwarf.h: (enum dwarf_section_display_enum): Add debug_names.
176 * readelf.c (process_section_headers): Add ".debug_names".
177
bae7501e
AM
1782017-07-01 Alan Modra <amodra@gmail.com>
179
180 PR binutils/21665
181 * objdump.c (strtab): Make var a bfd_byte*.
182 (disassemble_section): Don't limit malloc size. Instead, use
183 bfd_malloc_and_get_section.
184 (read_section_stabs): Use bfd_malloc_and_get_section. Return
185 bfd_byte*.
186 (find_stabs_section): Remove now unnecessary cast.
187 * objcopy.c (copy_object): Use bfd_malloc_and_get_section. Free
188 contents on error return.
189 * nlmconv.c (copy_sections): Use bfd_malloc_and_get_section.
190
60a02042
NC
1912017-06-30 Nick Clifton <nickc@redhat.com>
192
193 PR binutils/21665
194 * objdump.c (disassemble_section): Move check for an overlarge
195 section to just before the allocation of memory. Do not check
196 section size against file size, but instead use an arbitrary 2Gb
197 limit. Issue a warning message if the section is too big.
198
909b4e3d
MR
1992017-06-30 Maciej W. Rozycki <macro@imgtec.com>
200
201 * NEWS: Mention microMIPS XPA support.
202
f5b2fd52
MR
2032017-06-30 Maciej W. Rozycki <macro@imgtec.com>
204
205 * NEWS: Mention microMIPS Release 5 ISA support.
206
9785fc2a
MR
2072017-06-30 Maciej W. Rozycki <macro@imgtec.com>
208
209 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: New test.
210 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: New test.
211 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: New test.
212 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: New test.
213 * testsuite/binutils-all/mips/mips-xpa-virt.s: New test source.
214 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
215
e1e94c49
AK
2162017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com>
217
218 * testsuite/binutils-all/arc/double_store.s: New file.
219 * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler
220 options.
221 (do_objfile): New function.
222 (check_assembly): Likewise.
223
88ab90e8
AA
2242017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
225
226 * readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.
227
47fdcf63
L
2282017-06-28 H.J. Lu <hongjiu.lu@intel.com>
229
230 * objdump.c (dump_relocs_in_section): Cast to ufile_ptr when
231 comparing against bfd_get_file_size return.
232
88305e1b
NC
2332017-06-28 Nick Clifton <nickc@redhat.com>
234
235 * objcopy.c (merge_gnu_build_notes): Add support for version 2 notes.
236 * readelf.c (print_gnu_build_attribute_name): Likewise.
237
38bf472a
MR
2382017-06-28 Maciej W. Rozycki <macro@imgtec.com>
239 Matthew Fortune <matthew.fortune@imgtec.com>
240
241 * readelf.c (get_machine_flags) <E_MIPS_MACH_IAMR2>: New case.
242 (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
243 * NEWS: Mention Imagination interAptiv MR2 processor support.
244
cfd14a50
NC
2452017-06-26 Nick Clifton <nickc@redhat.com>
246
247 PR binutils/21665
248 * objdump.c (disassemble_section): Skip any section that is bigger
249 than the entire file.
250
0602cdad
NC
2512017-06-26 Nick Clifton <nickc@redhat.com>
252
253 PR binutils/21659
254 * bucomm.c (get_file_size): Explicitly warn if the file is a
255 directory.
256
ced40572
TP
2572017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
258
259 * readelf.c (arm_attr_tag_CPU_arch): Fill value for ARMv8-R.
260
0e158763
NC
2612017-06-23 Nick Clifton <nickc@redhat.com>
262
263 PR binutils/21659
264 * strings.c (strings_file): Warn about attempts to run strings on
265 a directory.
266
48580982
L
2672017-06-22 H.J. Lu <hongjiu.lu@intel.com>
268
269 * readelf.c (decode_x86_feature): Decode
270 GNU_PROPERTY_X86_FEATURE_1_SHSTK.
271 * testsuite/binutils-all/i386/shstk.d: New file.
272 * testsuite/binutils-all/i386/shstk.s: Likewise.
273 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
274 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
275 * testsuite/binutils-all/x86-64/shstk.s: Likewise.
276
ee2fdd6f
L
2772017-06-22 H.J. Lu <hongjiu.lu@intel.com>
278
279 * readelf.c (decode_x86_feature): New.
280 (print_gnu_property_note): Call decode_x86_feature on
281 GNU_PROPERTY_X86_FEATURE_1_AND.
282 * testsuite/binutils-all/i386/empty.d: New file.
283 * testsuite/binutils-all/i386/empty.s: Likewise.
284 * testsuite/binutils-all/i386/ibt.d: Likewise.
285 * testsuite/binutils-all/i386/ibt.s: Likewise.
286 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
287 * testsuite/binutils-all/x86-64/empty.d: Likewise.
288 * testsuite/binutils-all/x86-64/empty.s: Likewise.
289 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
290 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
291 * testsuite/binutils-all/x86-64/ibt.s: Likewise.
292
19474787
L
2932017-06-21 H.J. Lu <hongjiu.lu@intel.com>
294
295 * dwarf.c (READ_ULEB): Use DWARF_VMA_FMT to report error.
296 (READ_SLEB): Likewise.
297
7f2c8a1d
NC
2982017-06-21 Nick Clifton <nickc@redhat.com>
299
300 PR binutils/21648
301 * dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB. Add check for
302 reading a value that is too big for the containing variable.
303 (SLEB): Rename to SKIP_SLEB and READ_SLEB. Add similar check.
304 Replace uses of LEB and SLEB with appropriate new macro.
305 (display_debug_frames): Use an unsigned int for the 'reg'
306 variable. Use a signed long for the 'l' variable.
307
fd52715c
AK
3082017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
309
310 * readelf.c (get_s390_segment_type): Add support for the new
311 segment type PT_S390_PGSTE.
312 (get_segment_type): Call get_s390_segment_type.
313
d16fdddb
NC
3142017-06-19 Nick Clifton <nickc@redhat.com>
315
316 PR binutils/21619
317 * objdump.c (disassemble_bytes): Check that there is sufficient
318 data available before attempting to display it.
319
d24b7561
SM
3202017-06-06 Simon Marchi <simon.marchi@ericsson.com>
321
322 * sysinfo.y: Free memory allocated by token NAME.
323
10045478
AK
3242017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
325
326 * doc/binutils.texi: Document new cpu=... disassembler options for ARC.
327
8e2f54bc
L
3282017-05-30 H.J. Lu <hongjiu.lu@intel.com>
329
330 PR binutils/21519
331 * objdump.c (dump_relocs_in_section): Replace get_file_size
332 with bfd_get_file_size to get archive element size.
333 * testsuite/binutils-all/objdump.exp (test_objdump_f): New
334 proc.
335 (test_objdump_h): Likewise.
336 (test_objdump_t): Likewise.
337 (test_objdump_r): Likewise.
338 (test_objdump_s): Likewise.
339 Add objdump tests on archive.
340
003ca0fd
YQ
3412017-05-24 Yao Qi <yao.qi@linaro.org>
342
343 * objdump.c (disassemble_data): Caller update.
344
b4f5b984
JM
3452017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
346
347 * objcopy.c (merge_gnu_build_notes): Remove workaround that
348 prevented deleting relocations in duplicated notes in mips64 and
349 sparc.
350
e5713223
MR
3512017-05-19 Maciej W. Rozycki <macro@imgtec.com>
352
353 * testsuite/binutils-all/mips/mips-note-2.d: New test.
354 * testsuite/binutils-all/mips/mips-note-2r.d: New test.
355 * testsuite/binutils-all/mips/mips-note-2-n32.d: New test.
356 * testsuite/binutils-all/mips/mips-note-2-n64.d: New test.
357 * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test.
358 * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test.
359 * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'.
360 Run the new tests.
361
f0681695
MR
3622017-05-19 Maciej W. Rozycki <macro@imgtec.com>
363
364 * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump'
365 option.
366
64517994
JM
3672017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
368
369 * NEWS: Mention the SPARC M8 support.
370
dd47d677
MR
3712017-05-19 Maciej W. Rozycki <macro@imgtec.com>
372
373 * testsuite/binutils-all/mips/mips.exp: Bail out right away if
374 non-ELF.
375
535b785f
AM
3762017-05-18 Alan Modra <amodra@gmail.com>
377
378 * strings.c: Don't compare boolean values against TRUE or FALSE.
379
d8cbc93b
JL
3802017-05-15 Jeff Law <law@redhat.com>
381
382 * readelf.c (display_arc_attribute): Avoid implicit fallthru.
383
3f3467ff
MR
3842017-05-15 Maciej W. Rozycki <macro@imgtec.com>
385
386 * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
387 to `as' flags.
388 * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
389 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
390 * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
391 `.module mips3'.
392 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
393
25499ac7
MR
3942017-05-15 Maciej W. Rozycki <macro@imgtec.com>
395
396 * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
397 * NEWS: Mention MIPS16e2 ASE support.
398
a4f89915
MR
3992017-05-12 Maciej W. Rozycki <macro@imgtec.com>
400
401 * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
402 and SDBBP disassembly.
403
40e5240e
MR
4042017-05-10 Maciej W. Rozycki <macro@imgtec.com>
405
406 * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
407 `copyfile' variables.
408
53a346d8
CZ
4092017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
410
411 * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
412 (get_arc_section_type_name): New function.
413 (get_section_type_name): Use the above function.
414 (display_arc_attribute): New function.
415 (process_arc_specific): Likewise.
416 (process_arch_specific): Handle ARC specific information.
417
21d1fbee
KK
4182017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
419
420 * MAINTAINERS (SH): Remove myself as SH maintainer.
421
2ecf0cc3
L
4222017-05-02 H.J. Lu <hongjiu.lu@intel.com>
423
424 * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
425 long when comparing with sec->reloc_count.
426
1395c6ce
NC
4272017-05-02 Nick Clifton <nickc@redhat.com>
428
429 * objcopy.c (merge_gnu_build_notes): Disable merge if there are
430 more internal relocs than external relocs.
431
a4ddc54e
MR
4322017-05-02 Maciej W. Rozycki <macro@imgtec.com>
433
434 * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
435 disassembly of PC-relative LA and LW synthetic instructions.
436
39ff1b79
NC
4372017-05-02 Nick Clifton <nickc@redhat.com>
438
439 PR 21440
440 * objdump.c (dump_relocs_in_section): Check for an excessive
441 number of relocs before attempting to dump them.
442
ee7e95ef
AM
4432017-05-01 Alan Modra <amodra@gmail.com>
444
445 * objcopy.c (merge_gnu_build_notes): Correct code deleting
446 relocs.
447
b06b2c92
NC
4482017-04-28 Nick Clifton <nickc@redhat.com>
449
450 PR binutils/21439
451 * readelf.c (print_gnu_build_attribute_name): Allow for an empty
452 name field.
453
4e3afec2
NC
4542017-04-28 Nick Clifton <nickc@redhat.com>
455
456 PR binutils/21437
457 * readelf.c (process_version_sections): Check for underflow when
458 computing the start address of the auxillary version data.
459
d949ff56
NC
4602017-04-28 Nick Clifton <nickc@redhat.com>
461
462 PR binutils/21438
463 * dwarf.c (process_extended_line_op): Do not assume that the
464 string extracted from the section is NUL terminated.
465 (fetch_indirect_string): If the string retrieved from the section
466 is not NUL terminated, return an error message.
467 (fetch_indirect_line_string): Likewise.
468 (fetch_indexed_string): Likewise.
469
740a4630
NC
4702017-04-26 Nick Clifton <nickc@redhat.com>
471
d21f3ddb 472 PR binutils/21433
740a4630
NC
473 * bucomm.c (get_file_size): Return -1 if file_name is NULL.
474 * ar.c (main): Fail with usage() invocation if no file names are
475 provided.
476
3e6b6445
NC
4772017-04-26 Nick Clifton <nickc@redhat.com>
478
479 * readelf.c (process_section_headers): Warn about overlarge
480 sections.
481 (print_gnu_build_attribute_name): Print the number of unrecognised
482 note types. Fix formatting in the presence of errors.
483 (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
484 (testsuite/binutils-all/note-2-64.s): Likewise.
485
bbdd9a68
MR
4862017-04-26 Maciej W. Rozycki <macro@imgtec.com>
487
488 * readelf.c (process_mips_specific): Add static GOT support.
489
c4ab9505
MR
4902017-04-25 Maciej W. Rozycki <macro@imgtec.com>
491
492 * readelf.c (process_mips_specific): Remove error reporting from
493 GOT[1] processing.
494
919383ac
MR
4952017-04-25 Maciej W. Rozycki <macro@imgtec.com>
496
497 * readelf.c (process_mips_specific): Remove null GOT data check.
498
6e3d1f07
MR
4992017-04-25 Maciej W. Rozycki <macro@imgtec.com>
500
501 * testsuite/binutils-all/mips/mips16-alias.d: New test.
502 * testsuite/binutils-all/mips/mips16-noalias.d: New test.
503 * testsuite/binutils-all/mips/mips16-alias.s: New test source.
504 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
505
42354845
AM
5062017-04-23 Alan Modra <amodra@gmail.com>
507
508 PR 21418
509 * ar.c (main): Check -a, -b, -i and -N args are given.
510
7034215f
AM
5112017-04-23 Alan Modra <amodra@gmail.com>
512
513 PR 21417
514 * ar.c (main): Check that an archive file is given after options.
515
b02cd3e9
AM
5162017-04-23 Alan Modra <amodra@gmail.com>
517
518 PR 21415
519 * objdump.c (disassemble_section): Check bfd_get_section_contents
520 status.
521
f082820d
AM
5222017-04-23 Alan Modra <amodra@gmail.com>
523
524 PR 21408
525 * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
526 file_table.
527
ddef72cd
NC
5282017-04-21 Nick Clifton <nickc@redhat.com>
529
530 PR binutils/21378
531 * readelf.c (print_gnu_build_attribute_name): Check for an
532 overlarge name field.
533
7296a62a
NC
5342017-04-13 Nick Clifton <nickc@redhat.com>
535
536 PR binutils/21379
537 * readelf.c (process_dynamic_section): Detect over large section
538 offsets in the DT_SYMTAB entry.
539
5402017-04-13 Nick Clifton <nickc@redhat.com>
541
542 PR binutils/21345
543 * readelf.c (process_mips_specific): Catch an unfeasible memory
544 allocation before it happens and print a suitable error message.
545
1d15e434
NC
5462017-04-13 Nick Clifton <nickc@redhat.com>
547
548 * objcopy.c: Add --no-merge-notes option to disable note merging.
549 Add --[no-]merge-notes option to strip, and enable it by default.
550 (num_bytes): New function.
551 (merge_gnu_build_notes): Add code to merge stack size notes.
552 * binutils.texi: Update strip and objcopy documentation.
553 * readelf.c (print_gnu_build_attribute_name): Use defined
554 constants for note types.
555
28d909e5
JD
5562017-04-10 John Delsignor <john.delsignore@roguewave.com>
557
558 PR binutils/21319
559 * dwarf.c (display_gdb_index): Correct test for a corrupt address
560 table size.
561
0f65a5d8
JW
5622017-04-05 Jiong Wang <jiong.wang@arm.com>
563
564 * objcopy.c (struct redefine_node): Delete the field "next".
565 (redefine_sym_list): Deleted.
566 (redefine_specific_htab): New hash table.
567 (redefine_specific_reverse_htab): Likewise.
568 (eq_string_redefnode): New function.
569 (htab_hash_redefnode): Likewise.
570 (create_symbol2redef_htab): Likewise.
571 (add_specific_symbol_node): Likewise.
572 (create_symbol_htabs): Create redefine_specific_htab and
573 redefine_specific_reverse_htab.
574 (lookup_sym_redefinition): Use hash table instead of list.
575 (redefine_list_append): Likewise, and rename to add_redefine_and_check.
576 (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
577 Update comments.
578
a91e1603
L
5792017-04-04 H.J. Lu <hongjiu.lu@intel.com>
580
581 * NEWS: Mention support for ELF SHF_GNU_MBIND and
582 PT_GNU_MBIND_XXX.
583 * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
584 (get_elf_section_flags): Handle SHF_GNU_MBIND.
585 (process_section_headers): Likewise.
586 * testsuite/binutils-all/mbind1.s: New file.
587 * testsuite/binutils-all/objcopy.exp: Run readelf test on
588 mbind1.s.
589
82156ab7
NC
5902017-04-03 Nick Clifton <nickc@redhat.com>
591
592 PR binutils/21345
593 * readelf.c (get_program_headers): Check for there being too many
594 program headers before attempting to allocate space for them.
595
75ec1fdb
NC
5962017-04-03 Nick Clifton <nickc@redhat.com>
597
598 PR binutils/21344
599 * readelf.c (process_mips_specific): Check for an out of range GOT
600 entry before reading the module pointer.
601
f32ba729
NC
6022017-04-03 Nick Clifton <nickc@redhat.com>
603
604 PR binutils/21343
605 * readelf.c (get_unwind_section_word): Fix snafu checking for
606 invalid word offsets in ARM unwind information.
607
efdf7a02
PC
6082017-03-31 Pip Cet <pipcet@gmail.com>
609
610 * NEWS: Use "WebAssembly" consistently.
611 * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
612
f96bd6c2
PC
6132017-03-30 Pip Cet <pipcet@gmail.com>
614
615 * readelf.c: Add support for wasm32 ELF format WebAssembly files.
616 (guess_is_rela): Likewise.
617 (dump_relocations): Likewise.
618 (is_32bit_abs_reloc): Likewise.
619 (is_none_reloc_): Likewise.
620 * NEWS: Mention the new support.
621 * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
622 as ELF target.
623 (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
624 * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
625 * testsuite/binutils-all/wasm32: New directory.
626 * testsuite/binutils-all/wasm32/create-wasm.d: New file.
627 * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
628 * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
629 * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
630 * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
631 * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
632 * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
633 * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
634 * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
635 * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
636 * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
637 * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
638 * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
639 * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
640 * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
641
52be03fd
AM
6422017-03-29 Alan Modra <amodra@gmail.com>
643
644 * doc/binutils.texi (objdump): Document PowerPC -M options.
645
4a14e306
AK
6462017-03-21 Andi Kleen <ak@linux.intel.com>
647
648 * objdump.c (unwind_inlines): Add.
649 (option_values): Add OPTION_INLINES.
650 (show_line): Unwind inlines if requested.
651 (main): Parse OPTION_INLINES.
652 (usage): Document --inlines.
653 * doc/binutils.texi: Document --inlines.
654 * NEWS: Likewise.
655
75d7d298
NC
6562017-03-21 Nick Clifton <nickc@redhat.com>
657
658 * readelf.c (print_gnu_build_attribute_name): Allow stack
659 protection notes to contain numeric values. Use a colon rather
660 than a space to separate a string name from its values. Decode
661 the numeric value of a stack protection note.
662 * objcopy.c (merge_gnu_build_notes): Allow version notes to
663 contain extra text after the protocol version number.
664
39e224f6
MW
6652017-03-20 Mark Wielaard <mark@klomp.org>
666
667 * readelf.c (process_program_headers): Move dynamic_addr check
668 after .dynamic section cross check.
669
0dd6ae21
NC
6702017-03-17 Nick Clifton <nickc@redhat.com>
671
672 * readelf.c (print_gnu_build_attribute_name): Fix off by one error
673 printing the value for a build note with an ascii name.
674
a8be5506
NC
6752017-03-16 Nick Clifton <nickc@redhat.com>
676
677 * readelf.c (print_gnu_build_attribute_name): Add support for
678 GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
679
c799a79d
NC
6802017-03-14 Nick Clifton <nickc@redhat.com>
681
682 * readelf.c (print_gnu_build_attribute_description): Move symbol
683 printing code to...
684 (print_symbol_for_build_attribute): New function. ...here.
685 Add to find the best symbol to associate with an OPEN note.
686 Add code to cache the symbol table and string table, so that they
687 are not loaded every time a note is displayed.
688 * testsuite/binutils-all/note-2-32.s: Add a function symbol.
689 * testsuite/binutils-all/note-2-64.s: Likewise.
690 * testsuite/binutils-all/note-2-32.d: Update expected note output.
691 * testsuite/binutils-all/note-2-64.d: Likewise.
692
5ef2d51b
AM
6932017-03-13 Alan Modra <amodra@gmail.com>
694 Taeung Song <treeze.taeung@gmail.com>
695
696 * objdump.c (update_source_path): Add abfd param. Add struct
697 stat var. Pass to try_print_file_open. Warn if source is more
698 recent than object.
699 (try_print_file_open, slurp_file): Add struct stat param to
700 return fstat.
701 (show_line): Call update_source_path with bfd.
702
7b5d4822
CHL
7032017-03-10 Chia-Hao Lo <fcamel@gmail.com>
704
705 PR binutils/21235
706 * objdump.c (main): Set do_wide with --wide.
707
55e22ca8
NC
7082017-03-10 Nick Clifton <nickc@redhat.com>
709
710 * readelf.c (get_machine_name): Rearrange switch table in order of
711 increasing machine number. Add missing entries.
712
1fc87489
L
7132017-03-08 H.J. Lu <hongjiu.lu@intel.com>
714
715 PR binutils/21231
716 * readelf.c (decode_x86_isa): Change argument to unsigned int.
717 (print_gnu_property_note): Retrieve property type and datasz as
718 4-byte integer. Consolidate property datasz check. Check
719 GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
720 * testsuite/binutils-all/i386/pr21231a.d: New file.
721 * testsuite/binutils-all/i386/pr21231a.s: Likewise.
722 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
723 * testsuite/binutils-all/i386/pr21231b.s: Likewise.
724 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
725 * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
726 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
727 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
728
79a964dc
NC
7292017-03-06 Nick Clifton <nickc@redhat.com>
730
731 * readelf.c (print_gnu_build_attribute_name): Read byte values
732 from the name string as unsigned bytes.
733 (process_notes_at): Use memcpy to copy an unterminated name
734 string.
735
1f5345a6
ST
7362017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
737
738 * configure.ac (AC_CHECK_DECLS): Add asprintf.
739 * config.in: Regenerate.
740 * configure: Regenerate.
741
c871dade
NC
7422017-03-02 Nick Clifton <nickc@redhat.com>
743
744 * readelf.c (print_gnu_build_attribute_description): Use global
745 symbols for OPEN attributes if at all possible.
05ed4310
NC
746 * objcopy.c (is_merged_note_section): Support build note sections
747 without the SHF_GNU_BUILD_NOTE section flag set.
c871dade 748
b451e98a
JK
7492017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
750
751 * dwarf.c (debug_displays_assert): New static assertion.
752
d4620bee
JK
7532017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
754
755 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
756
9ef920e9
NC
7572017-03-01 Nick Clifton <nickc@redhat.com>
758
759 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
760 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
761 (decode_x86_isa): New function.
762 (print_gnu_property_note): New function.
763 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
764 (print_gnu_build_attribute_description): New function.
765 (print_gnu_build_attribute_name): New function.
766 (process_note): Add support for GNU_BUILD_NOTEs.
767 * objcopy.c (--merge-notes): New command line option.
768 (copy_options): Add merge-notes.
769 (copy_usage): Likewise.
770 (is_merge_note_section): New function.
771 (merge_gnu_build_notes): New function.
772 (copy_object): Merge note sections if asked to do so.
773 (skip_section): Add skip_copy parameter. Add support for skipping
774 merged note sections.
775 (copy_relocations_in_section): Update call to skip_section.
776 (copy_section): Likewise.
777 (copy_main): Add support for merge-notes option.
778 * doc/binutils.texi: Document the new option to objcopy.
779 * NEWS: Mention the new feature.
780 * testsuite/binutils-all/note-2-32.d: New test. Checks note
781 merging on 32-bit targets.
782 * testsuite/binutils-all/note-2-32.s: New test source file.
783 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
784 but for 64-bit targets.
785 * testsuite/binutils-all/note-2-64.s: New test source file.
786 * testsuite/binutils-all/objcopy.exp: Run the new test.
787
65b48a81
PB
7882017-02-28 Peter Bergner <bergner@vnet.ibm.com>
789
790 * objdump.c (main): Use remove_whitespace_and_extra_commas.
791
9dfd0db9
JK
7922017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
793
794 Fix compilation with GCC 4.4.7.
795 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
796 Initialize begin and end.
797
3b83ea38
AM
7982017-02-25 Alan Modra <amodra@gmail.com>
799
800 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
801 Support hpux .comm variant.
802 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
803 dw5 test for hppa64-hpux.
804
32ec8896
NC
8052017-02-24 Nick Clifton <nickc@redhat.com>
806
807 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
808 (do_reloc, do_sections, do_section_groups, do_section_details,
809 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
810 (do_version, do_histogram, do_debugging, do_arch, do_notes,
811 (do_archive_index, is_32bit_elf, decompress_dumps): Use
812 bfd_boolean type.
813 (parse_args): Treat the do_* variables as booleans.
814 (print_vma): Return an unsigned int.
815 (print_symbol): Change width parameter to signed int.
816 (is_ia64_vms): Change return type to bfd_boolean.
817 (guess_is_rela): Likewise.
818 (slurp_rela_relocs): Likewise.
819 (slurp_rel_relocs): Likewise.
820 (dump_relocations): Likewise.
821 (process_file_header): Likewise.
822 (get_program_headers): Likewise.
823 (process_program_headers): Likewise.
824 (process_section_headers): Likewise.
825 (process_section_groups): Likewise.
826 (dump_ia64_vms_dynamic_fixups): Likewise.
827 (dump_ia64_vms_dynamic_relocs): Likewise.
828 (process_ia64_vms_dynamic_relocs): Likewise.
829 (process_relocs): Likewise.
830 (dump_ia64_unwind): Likewise.
831 (ia64_process_unwind): Likewise.
832 (dump_hppa_unwind): Likewise.
833 (slurp_hppa_unwind_table): Likewise.
834 (hppa_process_unwind): Likewise.
835 (decode_arm_unwind_bytecode): Likewise.
836 (decode_tic6x_unwind_bytecode): Likewise.
837 (decode_arm_unwind): Likewise.
838 (dump_arm_unwind): Likewise.
839 (arm_process_unwind): Likewise.
840 (process_unwind): Likewise.
841 (get_32bit_dynamic_section): Likewise.
842 (get_64bit_dynamic_section): Likewise.
843 (process_dynamic_section): Likewise.
844 (process_version_sections): Likewise.
845 (process_symbol_table): Likewise.
846 (process_syminfo): Likewise.
847 (apply_relocations): Likewise.
848 (disassemble_section): Likewise.
849 (dump_section_as_strings): Likewise.
850 (dump_section_as_bytes): Likewise.
851 (load_specific_debug_section): Likewise.
852 (load_debug_section): Likewise.
853 (display_debug_section): Likewise.
854 (process_section_contents): Likewise.
855 (process_attributes): Likewise.
856 (process_nds32_specific): Likewise.
857 (process_gnu_liblist): Likewise.
858 (print_core_note): Likewise.
859 (print_gnu_note): Likewise.
860 (print_v850_note): Likewise.
861 (process_netbsd_elf_note): Likewise.
862 (print_stapsdt_note): Likewise.
863 (print_ia64_vms_note): Likewise.
864 (process_note): Likewise.
865 (process_notes_at): Likewise.
866 (process_corefile_note_segments): Likewise.
867 (process_v850_notes): Likewise.
868 (process_note_sections): Likewise.
869 (process_notes): Likewise.
870 (process_arch_specific): Likewise.
871 (get_file_header): Likewise.
872 (process_object): Likewise.
873 (process_archive): Likewise.
874 (process_file): Likewise.
875 (section_subset): Make static.
876 (get_mips_reg_size): Return a signed integer.
877 (process_object): Reverse the logic of the return value.
878 (process_archive): Likewise.
879 (process_file): Likewise.
6b4bf3bc
NC
880 (process_program_headers): Fix snafu - if the program headers are
881 not available then this is not a cause to fail.
882 (process_corefile_note_segments): Likewise.
32ec8896 883
7bb1ad17
MR
8842017-02-24 Maciej W. Rozycki <macro@imgtec.com>
885
886 * readelf.c (get_ver_flags): Tidy the formatting of the string
887 returned
888
5235cd68
MR
8892017-02-24 Maciej W. Rozycki <macro@imgtec.com>
890
891 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
892 `isum' unsigned.
893 <SHT_GNU_verneed>: Likewise.
894
c9f02c3e
MR
8952017-02-24 Maciej W. Rozycki <macro@imgtec.com>
896
897 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
898 the number of entries processed by the section size. Don't
899 break out of the loop if `ent.vd_next' is 0.
900
a567769b
JK
9012017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
902
903 * testsuite/binutils-all/dw5.S: New file.
904 * testsuite/binutils-all/dw5.W: New file.
905 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
906
2f6cd591
JK
9072017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
908
909 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
910
7a7e1061
JK
9112017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
912
913 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
914 DW_MACRO_GNU_*.
915
bc0a77d2
JK
9162017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
917
918 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
919 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
920 and DW_OP_reinterpret.
921 (read_and_display_attr_value): Support DW_AT_call_value,
922 DW_AT_call_data_value, DW_AT_call_target and
923 DW_AT_call_target_clobbered.
924
77145576
JK
9252017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
926
927 * dwarf.c (fetch_indirect_line_string): New function.
928 (abbrev_attr): New field implicit_const.
929 (add_abbrev_attr): New parameter implicit_const.
930 (process_abbrev_section): Support DW_FORM_implicit_const.
931 (decode_location_expression): Support DW_OP_entry_value.
932 (read_and_display_attr_value): Add parameter implicit_const. Support
933 DW_FORM_line_strp and DW_FORM_implicit_const.
934 (read_and_display_attr): Add parameter implicit_const.
935 (process_debug_info): Support line_str and DWARF-5.
936 (read_debug_line_header): Support DWARF-5.
937 (display_formatted_table): New function.
938 (display_debug_lines_raw): New parameter file. Support DWARF-5.
939 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
940 (display_debug_lines): Pass file parameter.
941 (display_debug_macro): Update read_and_display_attr_value caller.
942 (display_debug_abbrev): Support DW_FORM_implicit_const.
943 (display_loclists_list): New function.
944 (display_loc_list): Support .debug_loclists.
945 (display_debug_ranges_list): New function from display_debug_ranges.
946 (display_debug_rnglists_list): New function.
947 (display_debug_ranges): Support .debug_rnglists.
948 (debug_displays): Add .debug_line_str, .debug_loclists and
949 .debug_rnglists.
950 * dwarf.h: Include dwarf2.h
951 (DWARF2_Internal_LineInfo): Add li_offset_size.
952 (DWARF2_Internal_CompUnit): Add cu_unit_type.
953 (enum dwarf_section_display_enum): Add line_str.
954 * readelf.c (process_section_headers): Add rnglists and loclists.
955
ef0b5f1c
JK
9562017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
957
958 * dwarf.c (display_block): Add parameter delimiter.
959 (decode_location_expression): Update display_block callers.
960 (read_and_display_attr_value): Add parameter delimiter.
961 (read_and_display_attr, display_debug_macro): Update
962 read_and_display_attr_value caller.
963
359ca075
JK
9642017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
965
966 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
967 and off.
968 (display_loc_list_dwo): Use dwarf_vma for offset.
969 (display_debug_loc): Use dwarf_vma for offset, base_address.
970 (struct range_entry, range_entry_compar): Use dwarf_vma for
971 ranges_offset.
972 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
973 base_address.
974
60abdbed
NC
9752017-02-23 Nick Clifton <nickc@redhat.com>
976
977 * readelf.c (display_tag_value): Use an explicit signed type for
978 the tag parameter.
979 (display_gnu_attributes): Use an unsigned integer type for
980 attribute tags.
981 (display_power_gnu_attribute): Likewise.
982 (display_s390_gnu_attribute): Likewise.
983 (display_sparc_hwcaps): Likewise.
984 (display_sparc_hwcaps2): Likewise.
985 (display_sparc_gnu_attribute): Likewise.
986 (display_mips_gnu_attribute): Likewise.
987 (display_tic6x_attribute): Likewise.
988 (display_raw_attribute): Likewise.
989 (process_attributes): Likewise.
990 (process_arm_specific): Delete redundant function.
991 (process_power_specific): Likewise.
992 (process_s390_specific): Likewise.
993 (process_sparc_specific): Likewise.
994 (process_tic6x_specific): Likewise.
995 (process_msp430x_specific): Likewise.
996 (display_public_gnu_attributes): New function. Displays known
997 information about an unknown gnu attribute.
998 (display_generic_attribute): New function. Calls
999 display_tag_value for non-nul tags.
1000 (process_arch_specific): Call process_attributes even for
1001 architectures not known to specifically support gnu attributes.
1002
0502a2b4
JK
10032017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1004
1005 * dwarf.c (decode_location_expression): Display also OP.
1006
233f82cf
MR
10072017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1008
1009 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
1010 new line between the heading and the first version definition
1011 entry.
1012
43a444f9
NC
10132017-02-20 Nick Clifton <nickc@redhat.com>
1014
1015 PR binutils/21156
1016 * dwarf.c (cu_tu_indexes_read): Move into...
1017 (load_cu_tu_indexes): ... here. Change the variable into
1018 tri-state. Change the function into boolean, returning
1019 false if the indicies could not be loaded.
1020 (find_cu_tu_set): Return NULL if the indicies could not be
1021 loaded.
1022
b814a36d
NC
10232017-02-17 Nick Clifton <nickc@redhat.com>
1024
1025 PR binutils/21156
1026 * readelf.c (find_section_in_set): Test for invalid section
1027 indicies.
1028
1b4b80bf
NC
10292017-02-17 Nick Clifton <nickc@redhat.com>
1030
1031 * readelf.c (get_section_type_name): Add decoding of GNU section
1032 types.
1033
7c723eec
NC
10342017-02-15 Nick Clifton <nickc@redhat.com>
1035
1036 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
1037 Maintainers section.
1038
bc303e5d
NC
10392017-02-14 Nick Clifton <nickc@redhat.com>
1040
1041 PR binutils/21159
1042 * readelf.c (dump_section_as_strings): Reset the start address if
1043 no decompression is perfromed.
1044 (dump_section_as_bytes): Likewise.
1045
92134dc1
NC
10462017-02-14 Nick Clifton <nickc@redhat.com>
1047
1048 PR binutils/21158
1049 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
1050 empty symbol name.
1051
a2dea0b2
NC
10522017-02-14 Nick Clifton <nickc@redhat.com>
1053
1054 PR binutils/21157
1055 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
1056 pairs.
1057 (parse_number): Exit early if passed an empty string.
1058
b32e566b
NC
10592017-02-14 Nick Clifton <nickc@redhat.com>
1060
1061 PR binutils/21155
1062 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
1063 being within a given range.
1064 (target_specific_reloc_handling): Use macro to test for underflow
1065 as well as overflow of reloc offset.
1066
c1221402
NC
10672017-02-13 Nick Clifton <nickc@redhat.com>
1068
1069 PR binutils/21150
1070 * nm.c (file_symbol): Add test of string length before testing
1071 string characters.
1072
f055032e
NC
10732017-02-13 Nick Clifton <nickc@redhat.com>
1074
1075 PR binutils/21135
1076 * readelf.c (dump_section_as_bytes): Handle the case where
1077 uncompress_section_contents returns false.
1835f746 1078 (dump_section_as_bytes, load_specific_debug_section): Likewise.
f055032e 1079
ebdf1ebf
NC
10802017-02-13 Nick Clifton <nickc@redhat.com>
1081
1082 PR binutils/21149
1083 * readelf.c (get_compression_header): Add size parameter. Check
1084 size against sizeof compression header before attempting to
1085 extract the header.
1086 (process_section_headers): Pass size to get_compression_header.
1087 (dump_section_as_strings): Likewise.
1088 (dump_section_as_bytes): Likewise.
1089 (load_specific_debug_section): Likewise.
1090
4aeb00ad
NC
10912017-02-13 Nick Clifton <nickc@redhat.com>
1092
1093 PR binutils/21148
1094 * readelf.c (process_version_sections): Include size of auxillary
1095 version information when checking for buffer overflow.
1096
0ee3043f
NC
10972017-02-13 Nick Clifton <nickc@redhat.com>
1098
1099 PR binutils/21147
1100 * readelf.c (process_section_contents): Fix off by one error
1101 reporting un-dumped sections.
1102
f84ce13b
NC
11032017-02-13 Nick Clifton <nickc@redhat.com>
1104
1105 PR binutils/21139
1106 * readelf.c (target_specific_reloc_handling): Add num_syms
1107 parameter. Check for symbol table overflow before accessing
1108 symbol value. If reloc pointer is NULL, discard all saved state.
1109 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
1110 Call target_specific_reloc_handling with a NULL reloc pointer
1111 after processing all of the relocs.
1112
03f7786e
NC
11132017-02-13 Nick Clifton <nickc@redhat.com>
1114
1115 PR binutils/21137
1116 * readelf.c (target_specific_reloc_handling): Add end parameter.
1117 Check for buffer overflow before writing relocated values.
1118 (apply_relocations): Pass end to target_specific_reloc_handling.
1119
387dd777
DP
11202017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1121 Nick Clifton <nickc@redhat.com>
1122
1123 PR 20343
1124 * doc/binutils.texi (ar): Extend documentation of the --plugin
1125 option. Include a description of where the plugins should be
1126 located.
1127 (nm): Likewise.
1128
cf581a9b
NC
11292017-01-23 Nick Clifton <nickc@redhat.com>
1130
1131 * MAINTAINERS: Add Bernd to Past Maintainers section.
c49f9d0f 1132 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
71d01c69 1133 section.
cf581a9b 1134
715e99a4
BS
11352017-01-23 Bernd Schmidt <bschmidt@redhat.com>
1136
1137 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
1138
1737c640
AB
11392017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1140
1141 * objdump.c (dump_section_header): Extract max section name length
1142 from data parameter, use this when formatting output.
1143 (find_longest_section_name): New function.
1144 (dump_headers): Calculate longest section name when in wide mode,
1145 reformat to unify printing of header line.
1146
2cedb9eb
BR
11472017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
1148
1149 PR 21059
1150 * arlex.l: Support processing with flex 2.6.3.
1151 * deflex.l: Likewise.
1152
6bb21700
DT
11532017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
1154
1155 * resbin.c: Optional dialog control data immediately follows
1156 the control description without alignment.
1157 * testsuite/binutils-all/windres/controldata.rc: New test.
1158 source.
1159 * testsuite/binutils-all/windres/controldata.rsd: New test.
1160
2425a30e
NC
11612017-01-12 Nick Clifton <nickc@redhat.com>
1162
1163 PR binutils/20876
1164 * NEWS: Mention the new feature.
1165 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
1166 New proc to test the location of separate debug info files using
1167 the build-id method.
1168
b972a0d6
NC
11692017-01-10 Nick Clifton <nickc@redhat.com>
1170
1171 PR 21034
1172 * stabs.c (parse_stab_members): Fix thinko checking for g++
1173 version 1 stabs information.
1174
cd6581da
NC
11752017-01-09 Nick Clifton <nickc@redhat.com>
1176
1177 * objdump.c (display_file): Add new parameter 'last_file'. If
1178 last_file is true, do not call bfd_close at the end of the
1179 function.
1180 (main): Set the value of the last_file parameter when calling
1181 display_file.
1182
4d74727a
AM
11832017-01-09 Alan Modra <amodra@gmail.com>
1184
1185 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
1186 comment.
1187
fd13a84b
NC
11882017-01-06 Nick Clifton <nickc@redhat.com>
1189
1190 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
1191
b0556316
DP
11922017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
1193
1194 PR 20958
1195 * syslex.l (option): Add noyywrap
1196 (yywrap): Delete.
1197
2571583a
AM
11982017-01-02 Alan Modra <amodra@gmail.com>
1199
1200 Update year range in copyright notice of all files.
1201
5c1ad6b5 1202For older changes see ChangeLog-2016
3499769a 1203\f
5c1ad6b5 1204Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
1205
1206Copying and distribution of this file, with or without modification,
1207are permitted in any medium without royalty provided the copyright
1208notice and this notice are preserved.
1209
1210Local Variables:
1211mode: change-log
1212left-margin: 8
1213fill-column: 74
1214version-control: never
1215End: