x86: Support Intel Shadow Stack with SHSTK property
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
48580982
L
12017-06-22 H.J. Lu <hongjiu.lu@intel.com>
2
3 * readelf.c (decode_x86_feature): Decode
4 GNU_PROPERTY_X86_FEATURE_1_SHSTK.
5 * testsuite/binutils-all/i386/shstk.d: New file.
6 * testsuite/binutils-all/i386/shstk.s: Likewise.
7 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
8 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
9 * testsuite/binutils-all/x86-64/shstk.s: Likewise.
10
ee2fdd6f
L
112017-06-22 H.J. Lu <hongjiu.lu@intel.com>
12
13 * readelf.c (decode_x86_feature): New.
14 (print_gnu_property_note): Call decode_x86_feature on
15 GNU_PROPERTY_X86_FEATURE_1_AND.
16 * testsuite/binutils-all/i386/empty.d: New file.
17 * testsuite/binutils-all/i386/empty.s: Likewise.
18 * testsuite/binutils-all/i386/ibt.d: Likewise.
19 * testsuite/binutils-all/i386/ibt.s: Likewise.
20 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
21 * testsuite/binutils-all/x86-64/empty.d: Likewise.
22 * testsuite/binutils-all/x86-64/empty.s: Likewise.
23 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
24 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
25 * testsuite/binutils-all/x86-64/ibt.s: Likewise.
26
19474787
L
272017-06-21 H.J. Lu <hongjiu.lu@intel.com>
28
29 * dwarf.c (READ_ULEB): Use DWARF_VMA_FMT to report error.
30 (READ_SLEB): Likewise.
31
7f2c8a1d
NC
322017-06-21 Nick Clifton <nickc@redhat.com>
33
34 PR binutils/21648
35 * dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB. Add check for
36 reading a value that is too big for the containing variable.
37 (SLEB): Rename to SKIP_SLEB and READ_SLEB. Add similar check.
38 Replace uses of LEB and SLEB with appropriate new macro.
39 (display_debug_frames): Use an unsigned int for the 'reg'
40 variable. Use a signed long for the 'l' variable.
41
d16fdddb
NC
422017-06-19 Nick Clifton <nickc@redhat.com>
43
44 PR binutils/21619
45 * objdump.c (disassemble_bytes): Check that there is sufficient
46 data available before attempting to display it.
47
d24b7561
SM
482017-06-06 Simon Marchi <simon.marchi@ericsson.com>
49
50 * sysinfo.y: Free memory allocated by token NAME.
51
10045478
AK
522017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
53
54 * doc/binutils.texi: Document new cpu=... disassembler options for ARC.
55
8e2f54bc
L
562017-05-30 H.J. Lu <hongjiu.lu@intel.com>
57
58 PR binutils/21519
59 * objdump.c (dump_relocs_in_section): Replace get_file_size
60 with bfd_get_file_size to get archive element size.
61 * testsuite/binutils-all/objdump.exp (test_objdump_f): New
62 proc.
63 (test_objdump_h): Likewise.
64 (test_objdump_t): Likewise.
65 (test_objdump_r): Likewise.
66 (test_objdump_s): Likewise.
67 Add objdump tests on archive.
68
003ca0fd
YQ
692017-05-24 Yao Qi <yao.qi@linaro.org>
70
71 * objdump.c (disassemble_data): Caller update.
72
b4f5b984
JM
732017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
74
75 * objcopy.c (merge_gnu_build_notes): Remove workaround that
76 prevented deleting relocations in duplicated notes in mips64 and
77 sparc.
78
e5713223
MR
792017-05-19 Maciej W. Rozycki <macro@imgtec.com>
80
81 * testsuite/binutils-all/mips/mips-note-2.d: New test.
82 * testsuite/binutils-all/mips/mips-note-2r.d: New test.
83 * testsuite/binutils-all/mips/mips-note-2-n32.d: New test.
84 * testsuite/binutils-all/mips/mips-note-2-n64.d: New test.
85 * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test.
86 * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test.
87 * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'.
88 Run the new tests.
89
f0681695
MR
902017-05-19 Maciej W. Rozycki <macro@imgtec.com>
91
92 * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump'
93 option.
94
64517994
JM
952017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
96
97 * NEWS: Mention the SPARC M8 support.
98
dd47d677
MR
992017-05-19 Maciej W. Rozycki <macro@imgtec.com>
100
101 * testsuite/binutils-all/mips/mips.exp: Bail out right away if
102 non-ELF.
103
535b785f
AM
1042017-05-18 Alan Modra <amodra@gmail.com>
105
106 * strings.c: Don't compare boolean values against TRUE or FALSE.
107
d8cbc93b
JL
1082017-05-15 Jeff Law <law@redhat.com>
109
110 * readelf.c (display_arc_attribute): Avoid implicit fallthru.
111
3f3467ff
MR
1122017-05-15 Maciej W. Rozycki <macro@imgtec.com>
113
114 * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
115 to `as' flags.
116 * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
117 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
118 * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
119 `.module mips3'.
120 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
121
25499ac7
MR
1222017-05-15 Maciej W. Rozycki <macro@imgtec.com>
123
124 * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
125 * NEWS: Mention MIPS16e2 ASE support.
126
a4f89915
MR
1272017-05-12 Maciej W. Rozycki <macro@imgtec.com>
128
129 * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
130 and SDBBP disassembly.
131
40e5240e
MR
1322017-05-10 Maciej W. Rozycki <macro@imgtec.com>
133
134 * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
135 `copyfile' variables.
136
53a346d8
CZ
1372017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
138
139 * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
140 (get_arc_section_type_name): New function.
141 (get_section_type_name): Use the above function.
142 (display_arc_attribute): New function.
143 (process_arc_specific): Likewise.
144 (process_arch_specific): Handle ARC specific information.
145
21d1fbee
KK
1462017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
147
148 * MAINTAINERS (SH): Remove myself as SH maintainer.
149
2ecf0cc3
L
1502017-05-02 H.J. Lu <hongjiu.lu@intel.com>
151
152 * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
153 long when comparing with sec->reloc_count.
154
1395c6ce
NC
1552017-05-02 Nick Clifton <nickc@redhat.com>
156
157 * objcopy.c (merge_gnu_build_notes): Disable merge if there are
158 more internal relocs than external relocs.
159
a4ddc54e
MR
1602017-05-02 Maciej W. Rozycki <macro@imgtec.com>
161
162 * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
163 disassembly of PC-relative LA and LW synthetic instructions.
164
39ff1b79
NC
1652017-05-02 Nick Clifton <nickc@redhat.com>
166
167 PR 21440
168 * objdump.c (dump_relocs_in_section): Check for an excessive
169 number of relocs before attempting to dump them.
170
ee7e95ef
AM
1712017-05-01 Alan Modra <amodra@gmail.com>
172
173 * objcopy.c (merge_gnu_build_notes): Correct code deleting
174 relocs.
175
b06b2c92
NC
1762017-04-28 Nick Clifton <nickc@redhat.com>
177
178 PR binutils/21439
179 * readelf.c (print_gnu_build_attribute_name): Allow for an empty
180 name field.
181
4e3afec2
NC
1822017-04-28 Nick Clifton <nickc@redhat.com>
183
184 PR binutils/21437
185 * readelf.c (process_version_sections): Check for underflow when
186 computing the start address of the auxillary version data.
187
d949ff56
NC
1882017-04-28 Nick Clifton <nickc@redhat.com>
189
190 PR binutils/21438
191 * dwarf.c (process_extended_line_op): Do not assume that the
192 string extracted from the section is NUL terminated.
193 (fetch_indirect_string): If the string retrieved from the section
194 is not NUL terminated, return an error message.
195 (fetch_indirect_line_string): Likewise.
196 (fetch_indexed_string): Likewise.
197
740a4630
NC
1982017-04-26 Nick Clifton <nickc@redhat.com>
199
d21f3ddb 200 PR binutils/21433
740a4630
NC
201 * bucomm.c (get_file_size): Return -1 if file_name is NULL.
202 * ar.c (main): Fail with usage() invocation if no file names are
203 provided.
204
3e6b6445
NC
2052017-04-26 Nick Clifton <nickc@redhat.com>
206
207 * readelf.c (process_section_headers): Warn about overlarge
208 sections.
209 (print_gnu_build_attribute_name): Print the number of unrecognised
210 note types. Fix formatting in the presence of errors.
211 (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
212 (testsuite/binutils-all/note-2-64.s): Likewise.
213
bbdd9a68
MR
2142017-04-26 Maciej W. Rozycki <macro@imgtec.com>
215
216 * readelf.c (process_mips_specific): Add static GOT support.
217
c4ab9505
MR
2182017-04-25 Maciej W. Rozycki <macro@imgtec.com>
219
220 * readelf.c (process_mips_specific): Remove error reporting from
221 GOT[1] processing.
222
919383ac
MR
2232017-04-25 Maciej W. Rozycki <macro@imgtec.com>
224
225 * readelf.c (process_mips_specific): Remove null GOT data check.
226
6e3d1f07
MR
2272017-04-25 Maciej W. Rozycki <macro@imgtec.com>
228
229 * testsuite/binutils-all/mips/mips16-alias.d: New test.
230 * testsuite/binutils-all/mips/mips16-noalias.d: New test.
231 * testsuite/binutils-all/mips/mips16-alias.s: New test source.
232 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
233
42354845
AM
2342017-04-23 Alan Modra <amodra@gmail.com>
235
236 PR 21418
237 * ar.c (main): Check -a, -b, -i and -N args are given.
238
7034215f
AM
2392017-04-23 Alan Modra <amodra@gmail.com>
240
241 PR 21417
242 * ar.c (main): Check that an archive file is given after options.
243
b02cd3e9
AM
2442017-04-23 Alan Modra <amodra@gmail.com>
245
246 PR 21415
247 * objdump.c (disassemble_section): Check bfd_get_section_contents
248 status.
249
f082820d
AM
2502017-04-23 Alan Modra <amodra@gmail.com>
251
252 PR 21408
253 * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
254 file_table.
255
ddef72cd
NC
2562017-04-21 Nick Clifton <nickc@redhat.com>
257
258 PR binutils/21378
259 * readelf.c (print_gnu_build_attribute_name): Check for an
260 overlarge name field.
261
7296a62a
NC
2622017-04-13 Nick Clifton <nickc@redhat.com>
263
264 PR binutils/21379
265 * readelf.c (process_dynamic_section): Detect over large section
266 offsets in the DT_SYMTAB entry.
267
2682017-04-13 Nick Clifton <nickc@redhat.com>
269
270 PR binutils/21345
271 * readelf.c (process_mips_specific): Catch an unfeasible memory
272 allocation before it happens and print a suitable error message.
273
1d15e434
NC
2742017-04-13 Nick Clifton <nickc@redhat.com>
275
276 * objcopy.c: Add --no-merge-notes option to disable note merging.
277 Add --[no-]merge-notes option to strip, and enable it by default.
278 (num_bytes): New function.
279 (merge_gnu_build_notes): Add code to merge stack size notes.
280 * binutils.texi: Update strip and objcopy documentation.
281 * readelf.c (print_gnu_build_attribute_name): Use defined
282 constants for note types.
283
28d909e5
JD
2842017-04-10 John Delsignor <john.delsignore@roguewave.com>
285
286 PR binutils/21319
287 * dwarf.c (display_gdb_index): Correct test for a corrupt address
288 table size.
289
0f65a5d8
JW
2902017-04-05 Jiong Wang <jiong.wang@arm.com>
291
292 * objcopy.c (struct redefine_node): Delete the field "next".
293 (redefine_sym_list): Deleted.
294 (redefine_specific_htab): New hash table.
295 (redefine_specific_reverse_htab): Likewise.
296 (eq_string_redefnode): New function.
297 (htab_hash_redefnode): Likewise.
298 (create_symbol2redef_htab): Likewise.
299 (add_specific_symbol_node): Likewise.
300 (create_symbol_htabs): Create redefine_specific_htab and
301 redefine_specific_reverse_htab.
302 (lookup_sym_redefinition): Use hash table instead of list.
303 (redefine_list_append): Likewise, and rename to add_redefine_and_check.
304 (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
305 Update comments.
306
a91e1603
L
3072017-04-04 H.J. Lu <hongjiu.lu@intel.com>
308
309 * NEWS: Mention support for ELF SHF_GNU_MBIND and
310 PT_GNU_MBIND_XXX.
311 * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
312 (get_elf_section_flags): Handle SHF_GNU_MBIND.
313 (process_section_headers): Likewise.
314 * testsuite/binutils-all/mbind1.s: New file.
315 * testsuite/binutils-all/objcopy.exp: Run readelf test on
316 mbind1.s.
317
82156ab7
NC
3182017-04-03 Nick Clifton <nickc@redhat.com>
319
320 PR binutils/21345
321 * readelf.c (get_program_headers): Check for there being too many
322 program headers before attempting to allocate space for them.
323
75ec1fdb
NC
3242017-04-03 Nick Clifton <nickc@redhat.com>
325
326 PR binutils/21344
327 * readelf.c (process_mips_specific): Check for an out of range GOT
328 entry before reading the module pointer.
329
f32ba729
NC
3302017-04-03 Nick Clifton <nickc@redhat.com>
331
332 PR binutils/21343
333 * readelf.c (get_unwind_section_word): Fix snafu checking for
334 invalid word offsets in ARM unwind information.
335
efdf7a02
PC
3362017-03-31 Pip Cet <pipcet@gmail.com>
337
338 * NEWS: Use "WebAssembly" consistently.
339 * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
340
f96bd6c2
PC
3412017-03-30 Pip Cet <pipcet@gmail.com>
342
343 * readelf.c: Add support for wasm32 ELF format WebAssembly files.
344 (guess_is_rela): Likewise.
345 (dump_relocations): Likewise.
346 (is_32bit_abs_reloc): Likewise.
347 (is_none_reloc_): Likewise.
348 * NEWS: Mention the new support.
349 * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
350 as ELF target.
351 (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
352 * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
353 * testsuite/binutils-all/wasm32: New directory.
354 * testsuite/binutils-all/wasm32/create-wasm.d: New file.
355 * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
356 * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
357 * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
358 * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
359 * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
360 * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
361 * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
362 * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
363 * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
364 * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
365 * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
366 * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
367 * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
368 * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
369
52be03fd
AM
3702017-03-29 Alan Modra <amodra@gmail.com>
371
372 * doc/binutils.texi (objdump): Document PowerPC -M options.
373
4a14e306
AK
3742017-03-21 Andi Kleen <ak@linux.intel.com>
375
376 * objdump.c (unwind_inlines): Add.
377 (option_values): Add OPTION_INLINES.
378 (show_line): Unwind inlines if requested.
379 (main): Parse OPTION_INLINES.
380 (usage): Document --inlines.
381 * doc/binutils.texi: Document --inlines.
382 * NEWS: Likewise.
383
75d7d298
NC
3842017-03-21 Nick Clifton <nickc@redhat.com>
385
386 * readelf.c (print_gnu_build_attribute_name): Allow stack
387 protection notes to contain numeric values. Use a colon rather
388 than a space to separate a string name from its values. Decode
389 the numeric value of a stack protection note.
390 * objcopy.c (merge_gnu_build_notes): Allow version notes to
391 contain extra text after the protocol version number.
392
39e224f6
MW
3932017-03-20 Mark Wielaard <mark@klomp.org>
394
395 * readelf.c (process_program_headers): Move dynamic_addr check
396 after .dynamic section cross check.
397
0dd6ae21
NC
3982017-03-17 Nick Clifton <nickc@redhat.com>
399
400 * readelf.c (print_gnu_build_attribute_name): Fix off by one error
401 printing the value for a build note with an ascii name.
402
a8be5506
NC
4032017-03-16 Nick Clifton <nickc@redhat.com>
404
405 * readelf.c (print_gnu_build_attribute_name): Add support for
406 GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
407
c799a79d
NC
4082017-03-14 Nick Clifton <nickc@redhat.com>
409
410 * readelf.c (print_gnu_build_attribute_description): Move symbol
411 printing code to...
412 (print_symbol_for_build_attribute): New function. ...here.
413 Add to find the best symbol to associate with an OPEN note.
414 Add code to cache the symbol table and string table, so that they
415 are not loaded every time a note is displayed.
416 * testsuite/binutils-all/note-2-32.s: Add a function symbol.
417 * testsuite/binutils-all/note-2-64.s: Likewise.
418 * testsuite/binutils-all/note-2-32.d: Update expected note output.
419 * testsuite/binutils-all/note-2-64.d: Likewise.
420
5ef2d51b
AM
4212017-03-13 Alan Modra <amodra@gmail.com>
422 Taeung Song <treeze.taeung@gmail.com>
423
424 * objdump.c (update_source_path): Add abfd param. Add struct
425 stat var. Pass to try_print_file_open. Warn if source is more
426 recent than object.
427 (try_print_file_open, slurp_file): Add struct stat param to
428 return fstat.
429 (show_line): Call update_source_path with bfd.
430
7b5d4822
CHL
4312017-03-10 Chia-Hao Lo <fcamel@gmail.com>
432
433 PR binutils/21235
434 * objdump.c (main): Set do_wide with --wide.
435
55e22ca8
NC
4362017-03-10 Nick Clifton <nickc@redhat.com>
437
438 * readelf.c (get_machine_name): Rearrange switch table in order of
439 increasing machine number. Add missing entries.
440
1fc87489
L
4412017-03-08 H.J. Lu <hongjiu.lu@intel.com>
442
443 PR binutils/21231
444 * readelf.c (decode_x86_isa): Change argument to unsigned int.
445 (print_gnu_property_note): Retrieve property type and datasz as
446 4-byte integer. Consolidate property datasz check. Check
447 GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
448 * testsuite/binutils-all/i386/pr21231a.d: New file.
449 * testsuite/binutils-all/i386/pr21231a.s: Likewise.
450 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
451 * testsuite/binutils-all/i386/pr21231b.s: Likewise.
452 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
453 * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
454 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
455 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
456
79a964dc
NC
4572017-03-06 Nick Clifton <nickc@redhat.com>
458
459 * readelf.c (print_gnu_build_attribute_name): Read byte values
460 from the name string as unsigned bytes.
461 (process_notes_at): Use memcpy to copy an unterminated name
462 string.
463
1f5345a6
ST
4642017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
465
466 * configure.ac (AC_CHECK_DECLS): Add asprintf.
467 * config.in: Regenerate.
468 * configure: Regenerate.
469
c871dade
NC
4702017-03-02 Nick Clifton <nickc@redhat.com>
471
472 * readelf.c (print_gnu_build_attribute_description): Use global
473 symbols for OPEN attributes if at all possible.
05ed4310
NC
474 * objcopy.c (is_merged_note_section): Support build note sections
475 without the SHF_GNU_BUILD_NOTE section flag set.
c871dade 476
b451e98a
JK
4772017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
478
479 * dwarf.c (debug_displays_assert): New static assertion.
480
d4620bee
JK
4812017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
482
483 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
484
9ef920e9
NC
4852017-03-01 Nick Clifton <nickc@redhat.com>
486
487 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
488 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
489 (decode_x86_isa): New function.
490 (print_gnu_property_note): New function.
491 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
492 (print_gnu_build_attribute_description): New function.
493 (print_gnu_build_attribute_name): New function.
494 (process_note): Add support for GNU_BUILD_NOTEs.
495 * objcopy.c (--merge-notes): New command line option.
496 (copy_options): Add merge-notes.
497 (copy_usage): Likewise.
498 (is_merge_note_section): New function.
499 (merge_gnu_build_notes): New function.
500 (copy_object): Merge note sections if asked to do so.
501 (skip_section): Add skip_copy parameter. Add support for skipping
502 merged note sections.
503 (copy_relocations_in_section): Update call to skip_section.
504 (copy_section): Likewise.
505 (copy_main): Add support for merge-notes option.
506 * doc/binutils.texi: Document the new option to objcopy.
507 * NEWS: Mention the new feature.
508 * testsuite/binutils-all/note-2-32.d: New test. Checks note
509 merging on 32-bit targets.
510 * testsuite/binutils-all/note-2-32.s: New test source file.
511 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
512 but for 64-bit targets.
513 * testsuite/binutils-all/note-2-64.s: New test source file.
514 * testsuite/binutils-all/objcopy.exp: Run the new test.
515
65b48a81
PB
5162017-02-28 Peter Bergner <bergner@vnet.ibm.com>
517
518 * objdump.c (main): Use remove_whitespace_and_extra_commas.
519
9dfd0db9
JK
5202017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
521
522 Fix compilation with GCC 4.4.7.
523 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
524 Initialize begin and end.
525
3b83ea38
AM
5262017-02-25 Alan Modra <amodra@gmail.com>
527
528 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
529 Support hpux .comm variant.
530 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
531 dw5 test for hppa64-hpux.
532
32ec8896
NC
5332017-02-24 Nick Clifton <nickc@redhat.com>
534
535 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
536 (do_reloc, do_sections, do_section_groups, do_section_details,
537 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
538 (do_version, do_histogram, do_debugging, do_arch, do_notes,
539 (do_archive_index, is_32bit_elf, decompress_dumps): Use
540 bfd_boolean type.
541 (parse_args): Treat the do_* variables as booleans.
542 (print_vma): Return an unsigned int.
543 (print_symbol): Change width parameter to signed int.
544 (is_ia64_vms): Change return type to bfd_boolean.
545 (guess_is_rela): Likewise.
546 (slurp_rela_relocs): Likewise.
547 (slurp_rel_relocs): Likewise.
548 (dump_relocations): Likewise.
549 (process_file_header): Likewise.
550 (get_program_headers): Likewise.
551 (process_program_headers): Likewise.
552 (process_section_headers): Likewise.
553 (process_section_groups): Likewise.
554 (dump_ia64_vms_dynamic_fixups): Likewise.
555 (dump_ia64_vms_dynamic_relocs): Likewise.
556 (process_ia64_vms_dynamic_relocs): Likewise.
557 (process_relocs): Likewise.
558 (dump_ia64_unwind): Likewise.
559 (ia64_process_unwind): Likewise.
560 (dump_hppa_unwind): Likewise.
561 (slurp_hppa_unwind_table): Likewise.
562 (hppa_process_unwind): Likewise.
563 (decode_arm_unwind_bytecode): Likewise.
564 (decode_tic6x_unwind_bytecode): Likewise.
565 (decode_arm_unwind): Likewise.
566 (dump_arm_unwind): Likewise.
567 (arm_process_unwind): Likewise.
568 (process_unwind): Likewise.
569 (get_32bit_dynamic_section): Likewise.
570 (get_64bit_dynamic_section): Likewise.
571 (process_dynamic_section): Likewise.
572 (process_version_sections): Likewise.
573 (process_symbol_table): Likewise.
574 (process_syminfo): Likewise.
575 (apply_relocations): Likewise.
576 (disassemble_section): Likewise.
577 (dump_section_as_strings): Likewise.
578 (dump_section_as_bytes): Likewise.
579 (load_specific_debug_section): Likewise.
580 (load_debug_section): Likewise.
581 (display_debug_section): Likewise.
582 (process_section_contents): Likewise.
583 (process_attributes): Likewise.
584 (process_nds32_specific): Likewise.
585 (process_gnu_liblist): Likewise.
586 (print_core_note): Likewise.
587 (print_gnu_note): Likewise.
588 (print_v850_note): Likewise.
589 (process_netbsd_elf_note): Likewise.
590 (print_stapsdt_note): Likewise.
591 (print_ia64_vms_note): Likewise.
592 (process_note): Likewise.
593 (process_notes_at): Likewise.
594 (process_corefile_note_segments): Likewise.
595 (process_v850_notes): Likewise.
596 (process_note_sections): Likewise.
597 (process_notes): Likewise.
598 (process_arch_specific): Likewise.
599 (get_file_header): Likewise.
600 (process_object): Likewise.
601 (process_archive): Likewise.
602 (process_file): Likewise.
603 (section_subset): Make static.
604 (get_mips_reg_size): Return a signed integer.
605 (process_object): Reverse the logic of the return value.
606 (process_archive): Likewise.
607 (process_file): Likewise.
6b4bf3bc
NC
608 (process_program_headers): Fix snafu - if the program headers are
609 not available then this is not a cause to fail.
610 (process_corefile_note_segments): Likewise.
32ec8896 611
7bb1ad17
MR
6122017-02-24 Maciej W. Rozycki <macro@imgtec.com>
613
614 * readelf.c (get_ver_flags): Tidy the formatting of the string
615 returned
616
5235cd68
MR
6172017-02-24 Maciej W. Rozycki <macro@imgtec.com>
618
619 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
620 `isum' unsigned.
621 <SHT_GNU_verneed>: Likewise.
622
c9f02c3e
MR
6232017-02-24 Maciej W. Rozycki <macro@imgtec.com>
624
625 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
626 the number of entries processed by the section size. Don't
627 break out of the loop if `ent.vd_next' is 0.
628
a567769b
JK
6292017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
630
631 * testsuite/binutils-all/dw5.S: New file.
632 * testsuite/binutils-all/dw5.W: New file.
633 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
634
2f6cd591
JK
6352017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
636
637 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
638
7a7e1061
JK
6392017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
640
641 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
642 DW_MACRO_GNU_*.
643
bc0a77d2
JK
6442017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
645
646 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
647 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
648 and DW_OP_reinterpret.
649 (read_and_display_attr_value): Support DW_AT_call_value,
650 DW_AT_call_data_value, DW_AT_call_target and
651 DW_AT_call_target_clobbered.
652
77145576
JK
6532017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
654
655 * dwarf.c (fetch_indirect_line_string): New function.
656 (abbrev_attr): New field implicit_const.
657 (add_abbrev_attr): New parameter implicit_const.
658 (process_abbrev_section): Support DW_FORM_implicit_const.
659 (decode_location_expression): Support DW_OP_entry_value.
660 (read_and_display_attr_value): Add parameter implicit_const. Support
661 DW_FORM_line_strp and DW_FORM_implicit_const.
662 (read_and_display_attr): Add parameter implicit_const.
663 (process_debug_info): Support line_str and DWARF-5.
664 (read_debug_line_header): Support DWARF-5.
665 (display_formatted_table): New function.
666 (display_debug_lines_raw): New parameter file. Support DWARF-5.
667 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
668 (display_debug_lines): Pass file parameter.
669 (display_debug_macro): Update read_and_display_attr_value caller.
670 (display_debug_abbrev): Support DW_FORM_implicit_const.
671 (display_loclists_list): New function.
672 (display_loc_list): Support .debug_loclists.
673 (display_debug_ranges_list): New function from display_debug_ranges.
674 (display_debug_rnglists_list): New function.
675 (display_debug_ranges): Support .debug_rnglists.
676 (debug_displays): Add .debug_line_str, .debug_loclists and
677 .debug_rnglists.
678 * dwarf.h: Include dwarf2.h
679 (DWARF2_Internal_LineInfo): Add li_offset_size.
680 (DWARF2_Internal_CompUnit): Add cu_unit_type.
681 (enum dwarf_section_display_enum): Add line_str.
682 * readelf.c (process_section_headers): Add rnglists and loclists.
683
ef0b5f1c
JK
6842017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
685
686 * dwarf.c (display_block): Add parameter delimiter.
687 (decode_location_expression): Update display_block callers.
688 (read_and_display_attr_value): Add parameter delimiter.
689 (read_and_display_attr, display_debug_macro): Update
690 read_and_display_attr_value caller.
691
359ca075
JK
6922017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
695 and off.
696 (display_loc_list_dwo): Use dwarf_vma for offset.
697 (display_debug_loc): Use dwarf_vma for offset, base_address.
698 (struct range_entry, range_entry_compar): Use dwarf_vma for
699 ranges_offset.
700 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
701 base_address.
702
60abdbed
NC
7032017-02-23 Nick Clifton <nickc@redhat.com>
704
705 * readelf.c (display_tag_value): Use an explicit signed type for
706 the tag parameter.
707 (display_gnu_attributes): Use an unsigned integer type for
708 attribute tags.
709 (display_power_gnu_attribute): Likewise.
710 (display_s390_gnu_attribute): Likewise.
711 (display_sparc_hwcaps): Likewise.
712 (display_sparc_hwcaps2): Likewise.
713 (display_sparc_gnu_attribute): Likewise.
714 (display_mips_gnu_attribute): Likewise.
715 (display_tic6x_attribute): Likewise.
716 (display_raw_attribute): Likewise.
717 (process_attributes): Likewise.
718 (process_arm_specific): Delete redundant function.
719 (process_power_specific): Likewise.
720 (process_s390_specific): Likewise.
721 (process_sparc_specific): Likewise.
722 (process_tic6x_specific): Likewise.
723 (process_msp430x_specific): Likewise.
724 (display_public_gnu_attributes): New function. Displays known
725 information about an unknown gnu attribute.
726 (display_generic_attribute): New function. Calls
727 display_tag_value for non-nul tags.
728 (process_arch_specific): Call process_attributes even for
729 architectures not known to specifically support gnu attributes.
730
0502a2b4
JK
7312017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
732
733 * dwarf.c (decode_location_expression): Display also OP.
734
233f82cf
MR
7352017-02-22 Maciej W. Rozycki <macro@imgtec.com>
736
737 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
738 new line between the heading and the first version definition
739 entry.
740
43a444f9
NC
7412017-02-20 Nick Clifton <nickc@redhat.com>
742
743 PR binutils/21156
744 * dwarf.c (cu_tu_indexes_read): Move into...
745 (load_cu_tu_indexes): ... here. Change the variable into
746 tri-state. Change the function into boolean, returning
747 false if the indicies could not be loaded.
748 (find_cu_tu_set): Return NULL if the indicies could not be
749 loaded.
750
b814a36d
NC
7512017-02-17 Nick Clifton <nickc@redhat.com>
752
753 PR binutils/21156
754 * readelf.c (find_section_in_set): Test for invalid section
755 indicies.
756
1b4b80bf
NC
7572017-02-17 Nick Clifton <nickc@redhat.com>
758
759 * readelf.c (get_section_type_name): Add decoding of GNU section
760 types.
761
7c723eec
NC
7622017-02-15 Nick Clifton <nickc@redhat.com>
763
764 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
765 Maintainers section.
766
bc303e5d
NC
7672017-02-14 Nick Clifton <nickc@redhat.com>
768
769 PR binutils/21159
770 * readelf.c (dump_section_as_strings): Reset the start address if
771 no decompression is perfromed.
772 (dump_section_as_bytes): Likewise.
773
92134dc1
NC
7742017-02-14 Nick Clifton <nickc@redhat.com>
775
776 PR binutils/21158
777 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
778 empty symbol name.
779
a2dea0b2
NC
7802017-02-14 Nick Clifton <nickc@redhat.com>
781
782 PR binutils/21157
783 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
784 pairs.
785 (parse_number): Exit early if passed an empty string.
786
b32e566b
NC
7872017-02-14 Nick Clifton <nickc@redhat.com>
788
789 PR binutils/21155
790 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
791 being within a given range.
792 (target_specific_reloc_handling): Use macro to test for underflow
793 as well as overflow of reloc offset.
794
c1221402
NC
7952017-02-13 Nick Clifton <nickc@redhat.com>
796
797 PR binutils/21150
798 * nm.c (file_symbol): Add test of string length before testing
799 string characters.
800
f055032e
NC
8012017-02-13 Nick Clifton <nickc@redhat.com>
802
803 PR binutils/21135
804 * readelf.c (dump_section_as_bytes): Handle the case where
805 uncompress_section_contents returns false.
1835f746 806 (dump_section_as_bytes, load_specific_debug_section): Likewise.
f055032e 807
ebdf1ebf
NC
8082017-02-13 Nick Clifton <nickc@redhat.com>
809
810 PR binutils/21149
811 * readelf.c (get_compression_header): Add size parameter. Check
812 size against sizeof compression header before attempting to
813 extract the header.
814 (process_section_headers): Pass size to get_compression_header.
815 (dump_section_as_strings): Likewise.
816 (dump_section_as_bytes): Likewise.
817 (load_specific_debug_section): Likewise.
818
4aeb00ad
NC
8192017-02-13 Nick Clifton <nickc@redhat.com>
820
821 PR binutils/21148
822 * readelf.c (process_version_sections): Include size of auxillary
823 version information when checking for buffer overflow.
824
0ee3043f
NC
8252017-02-13 Nick Clifton <nickc@redhat.com>
826
827 PR binutils/21147
828 * readelf.c (process_section_contents): Fix off by one error
829 reporting un-dumped sections.
830
f84ce13b
NC
8312017-02-13 Nick Clifton <nickc@redhat.com>
832
833 PR binutils/21139
834 * readelf.c (target_specific_reloc_handling): Add num_syms
835 parameter. Check for symbol table overflow before accessing
836 symbol value. If reloc pointer is NULL, discard all saved state.
837 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
838 Call target_specific_reloc_handling with a NULL reloc pointer
839 after processing all of the relocs.
840
03f7786e
NC
8412017-02-13 Nick Clifton <nickc@redhat.com>
842
843 PR binutils/21137
844 * readelf.c (target_specific_reloc_handling): Add end parameter.
845 Check for buffer overflow before writing relocated values.
846 (apply_relocations): Pass end to target_specific_reloc_handling.
847
387dd777
DP
8482017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
849 Nick Clifton <nickc@redhat.com>
850
851 PR 20343
852 * doc/binutils.texi (ar): Extend documentation of the --plugin
853 option. Include a description of where the plugins should be
854 located.
855 (nm): Likewise.
856
cf581a9b
NC
8572017-01-23 Nick Clifton <nickc@redhat.com>
858
859 * MAINTAINERS: Add Bernd to Past Maintainers section.
c49f9d0f 860 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
71d01c69 861 section.
cf581a9b 862
715e99a4
BS
8632017-01-23 Bernd Schmidt <bschmidt@redhat.com>
864
865 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
866
1737c640
AB
8672017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * objdump.c (dump_section_header): Extract max section name length
870 from data parameter, use this when formatting output.
871 (find_longest_section_name): New function.
872 (dump_headers): Calculate longest section name when in wide mode,
873 reformat to unify printing of header line.
874
2cedb9eb
BR
8752017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
876
877 PR 21059
878 * arlex.l: Support processing with flex 2.6.3.
879 * deflex.l: Likewise.
880
6bb21700
DT
8812017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
882
883 * resbin.c: Optional dialog control data immediately follows
884 the control description without alignment.
885 * testsuite/binutils-all/windres/controldata.rc: New test.
886 source.
887 * testsuite/binutils-all/windres/controldata.rsd: New test.
888
2425a30e
NC
8892017-01-12 Nick Clifton <nickc@redhat.com>
890
891 PR binutils/20876
892 * NEWS: Mention the new feature.
893 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
894 New proc to test the location of separate debug info files using
895 the build-id method.
896
b972a0d6
NC
8972017-01-10 Nick Clifton <nickc@redhat.com>
898
899 PR 21034
900 * stabs.c (parse_stab_members): Fix thinko checking for g++
901 version 1 stabs information.
902
cd6581da
NC
9032017-01-09 Nick Clifton <nickc@redhat.com>
904
905 * objdump.c (display_file): Add new parameter 'last_file'. If
906 last_file is true, do not call bfd_close at the end of the
907 function.
908 (main): Set the value of the last_file parameter when calling
909 display_file.
910
4d74727a
AM
9112017-01-09 Alan Modra <amodra@gmail.com>
912
913 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
914 comment.
915
fd13a84b
NC
9162017-01-06 Nick Clifton <nickc@redhat.com>
917
918 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
919
b0556316
DP
9202017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
921
922 PR 20958
923 * syslex.l (option): Add noyywrap
924 (yywrap): Delete.
925
2571583a
AM
9262017-01-02 Alan Modra <amodra@gmail.com>
927
928 Update year range in copyright notice of all files.
929
5c1ad6b5 930For older changes see ChangeLog-2016
3499769a 931\f
5c1ad6b5 932Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
933
934Copying and distribution of this file, with or without modification,
935are permitted in any medium without royalty provided the copyright
936notice and this notice are preserved.
937
938Local Variables:
939mode: change-log
940left-margin: 8
941fill-column: 74
942version-control: never
943End:
This page took 0.137168 seconds and 4 git commands to generate.