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