Add markers.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
55a09eb6
TG
12017-07-04 Tristan Gingold <gingold@adacore.com>
2
3 * NEWS: Add marker for 2.29.
4
15e6ed8c
TG
52017-07-03 Tristan Gingold <gingold@adacore.com>
6
7 * po/binutils.pot: Regenerate.
8
19871f45
AM
92017-07-03 Alan Modra <amodra@gmail.com>
10
11 * strings.c (filename_and_size_t): Delete.
12 (strings_a_section): Don't check section size against file size.
13 Use bdf_malloc_and_get_section. Report an error on failures.
14 Replace arg param with filename and got_a_section param.
15 (got_a_section): Move to..
16 (strings_object_file): ..an auto var here. Iterate over sections
17 rather than calling bfd_map_over_sections. Adjust strings_a_section
18 call.
19
61364358
JK
202017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
21
22 * dwarf.c: Include assert.h.
23 (MAX, MIN, get_IDX_name, display_debug_names): New.
24 (debug_displays): Add .debug_names.
25 * dwarf.h: (enum dwarf_section_display_enum): Add debug_names.
26 * readelf.c (process_section_headers): Add ".debug_names".
27
bae7501e
AM
282017-07-01 Alan Modra <amodra@gmail.com>
29
30 PR binutils/21665
31 * objdump.c (strtab): Make var a bfd_byte*.
32 (disassemble_section): Don't limit malloc size. Instead, use
33 bfd_malloc_and_get_section.
34 (read_section_stabs): Use bfd_malloc_and_get_section. Return
35 bfd_byte*.
36 (find_stabs_section): Remove now unnecessary cast.
37 * objcopy.c (copy_object): Use bfd_malloc_and_get_section. Free
38 contents on error return.
39 * nlmconv.c (copy_sections): Use bfd_malloc_and_get_section.
40
60a02042
NC
412017-06-30 Nick Clifton <nickc@redhat.com>
42
43 PR binutils/21665
44 * objdump.c (disassemble_section): Move check for an overlarge
45 section to just before the allocation of memory. Do not check
46 section size against file size, but instead use an arbitrary 2Gb
47 limit. Issue a warning message if the section is too big.
48
909b4e3d
MR
492017-06-30 Maciej W. Rozycki <macro@imgtec.com>
50
51 * NEWS: Mention microMIPS XPA support.
52
f5b2fd52
MR
532017-06-30 Maciej W. Rozycki <macro@imgtec.com>
54
55 * NEWS: Mention microMIPS Release 5 ISA support.
56
9785fc2a
MR
572017-06-30 Maciej W. Rozycki <macro@imgtec.com>
58
59 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: New test.
60 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: New test.
61 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: New test.
62 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: New test.
63 * testsuite/binutils-all/mips/mips-xpa-virt.s: New test source.
64 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
65
e1e94c49
AK
662017-06-29 Anton Kolesov <Anton.Kolesov@synopsys.com>
67
68 * testsuite/binutils-all/arc/double_store.s: New file.
69 * testsuite/binutils-all/arc/objdump.exp: Tests for disassembler
70 options.
71 (do_objfile): New function.
72 (check_assembly): Likewise.
73
88ab90e8
AA
742017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com>
75
76 * readelf.c (get_note_type): Add NT_S390_GS_CB and NT_S390_GS_BC.
77
47fdcf63
L
782017-06-28 H.J. Lu <hongjiu.lu@intel.com>
79
80 * objdump.c (dump_relocs_in_section): Cast to ufile_ptr when
81 comparing against bfd_get_file_size return.
82
88305e1b
NC
832017-06-28 Nick Clifton <nickc@redhat.com>
84
85 * objcopy.c (merge_gnu_build_notes): Add support for version 2 notes.
86 * readelf.c (print_gnu_build_attribute_name): Likewise.
87
38bf472a
MR
882017-06-28 Maciej W. Rozycki <macro@imgtec.com>
89 Matthew Fortune <matthew.fortune@imgtec.com>
90
91 * readelf.c (get_machine_flags) <E_MIPS_MACH_IAMR2>: New case.
92 (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise.
93 * NEWS: Mention Imagination interAptiv MR2 processor support.
94
cfd14a50
NC
952017-06-26 Nick Clifton <nickc@redhat.com>
96
97 PR binutils/21665
98 * objdump.c (disassemble_section): Skip any section that is bigger
99 than the entire file.
100
0602cdad
NC
1012017-06-26 Nick Clifton <nickc@redhat.com>
102
103 PR binutils/21659
104 * bucomm.c (get_file_size): Explicitly warn if the file is a
105 directory.
106
ced40572
TP
1072017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
108
109 * readelf.c (arm_attr_tag_CPU_arch): Fill value for ARMv8-R.
110
0e158763
NC
1112017-06-23 Nick Clifton <nickc@redhat.com>
112
113 PR binutils/21659
114 * strings.c (strings_file): Warn about attempts to run strings on
115 a directory.
116
48580982
L
1172017-06-22 H.J. Lu <hongjiu.lu@intel.com>
118
119 * readelf.c (decode_x86_feature): Decode
120 GNU_PROPERTY_X86_FEATURE_1_SHSTK.
121 * testsuite/binutils-all/i386/shstk.d: New file.
122 * testsuite/binutils-all/i386/shstk.s: Likewise.
123 * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
124 * testsuite/binutils-all/x86-64/shstk.d: Likewise.
125 * testsuite/binutils-all/x86-64/shstk.s: Likewise.
126
ee2fdd6f
L
1272017-06-22 H.J. Lu <hongjiu.lu@intel.com>
128
129 * readelf.c (decode_x86_feature): New.
130 (print_gnu_property_note): Call decode_x86_feature on
131 GNU_PROPERTY_X86_FEATURE_1_AND.
132 * testsuite/binutils-all/i386/empty.d: New file.
133 * testsuite/binutils-all/i386/empty.s: Likewise.
134 * testsuite/binutils-all/i386/ibt.d: Likewise.
135 * testsuite/binutils-all/i386/ibt.s: Likewise.
136 * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
137 * testsuite/binutils-all/x86-64/empty.d: Likewise.
138 * testsuite/binutils-all/x86-64/empty.s: Likewise.
139 * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
140 * testsuite/binutils-all/x86-64/ibt.d: Likewise.
141 * testsuite/binutils-all/x86-64/ibt.s: Likewise.
142
19474787
L
1432017-06-21 H.J. Lu <hongjiu.lu@intel.com>
144
145 * dwarf.c (READ_ULEB): Use DWARF_VMA_FMT to report error.
146 (READ_SLEB): Likewise.
147
7f2c8a1d
NC
1482017-06-21 Nick Clifton <nickc@redhat.com>
149
150 PR binutils/21648
151 * dwarf.c (LEB): Rename to SKIP_ULEB and READ_ULEB. Add check for
152 reading a value that is too big for the containing variable.
153 (SLEB): Rename to SKIP_SLEB and READ_SLEB. Add similar check.
154 Replace uses of LEB and SLEB with appropriate new macro.
155 (display_debug_frames): Use an unsigned int for the 'reg'
156 variable. Use a signed long for the 'l' variable.
157
fd52715c
AK
1582017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
159
160 * readelf.c (get_s390_segment_type): Add support for the new
161 segment type PT_S390_PGSTE.
162 (get_segment_type): Call get_s390_segment_type.
163
d16fdddb
NC
1642017-06-19 Nick Clifton <nickc@redhat.com>
165
166 PR binutils/21619
167 * objdump.c (disassemble_bytes): Check that there is sufficient
168 data available before attempting to display it.
169
d24b7561
SM
1702017-06-06 Simon Marchi <simon.marchi@ericsson.com>
171
172 * sysinfo.y: Free memory allocated by token NAME.
173
10045478
AK
1742017-05-30 Anton Kolesov <anton.kolesov@synopsys.com>
175
176 * doc/binutils.texi: Document new cpu=... disassembler options for ARC.
177
8e2f54bc
L
1782017-05-30 H.J. Lu <hongjiu.lu@intel.com>
179
180 PR binutils/21519
181 * objdump.c (dump_relocs_in_section): Replace get_file_size
182 with bfd_get_file_size to get archive element size.
183 * testsuite/binutils-all/objdump.exp (test_objdump_f): New
184 proc.
185 (test_objdump_h): Likewise.
186 (test_objdump_t): Likewise.
187 (test_objdump_r): Likewise.
188 (test_objdump_s): Likewise.
189 Add objdump tests on archive.
190
003ca0fd
YQ
1912017-05-24 Yao Qi <yao.qi@linaro.org>
192
193 * objdump.c (disassemble_data): Caller update.
194
b4f5b984
JM
1952017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
196
197 * objcopy.c (merge_gnu_build_notes): Remove workaround that
198 prevented deleting relocations in duplicated notes in mips64 and
199 sparc.
200
e5713223
MR
2012017-05-19 Maciej W. Rozycki <macro@imgtec.com>
202
203 * testsuite/binutils-all/mips/mips-note-2.d: New test.
204 * testsuite/binutils-all/mips/mips-note-2r.d: New test.
205 * testsuite/binutils-all/mips/mips-note-2-n32.d: New test.
206 * testsuite/binutils-all/mips/mips-note-2-n64.d: New test.
207 * testsuite/binutils-all/mips/mips-note-2r-n32.d: New test.
208 * testsuite/binutils-all/mips/mips-note-2r-n64.d: New test.
209 * testsuite/binutils-all/mips/mips.exp: Define `has_newabi'.
210 Run the new tests.
211
f0681695
MR
2122017-05-19 Maciej W. Rozycki <macro@imgtec.com>
213
214 * testsuite/lib/utils-lib.exp (run_dump_test): Handle the `dump'
215 option.
216
64517994
JM
2172017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
218
219 * NEWS: Mention the SPARC M8 support.
220
dd47d677
MR
2212017-05-19 Maciej W. Rozycki <macro@imgtec.com>
222
223 * testsuite/binutils-all/mips/mips.exp: Bail out right away if
224 non-ELF.
225
535b785f
AM
2262017-05-18 Alan Modra <amodra@gmail.com>
227
228 * strings.c: Don't compare boolean values against TRUE or FALSE.
229
d8cbc93b
JL
2302017-05-15 Jeff Law <law@redhat.com>
231
232 * readelf.c (display_arc_attribute): Avoid implicit fallthru.
233
3f3467ff
MR
2342017-05-15 Maciej W. Rozycki <macro@imgtec.com>
235
236 * testsuite/binutils-all/mips/mips16-undecoded.d: Add `-mips3'
237 to `as' flags.
238 * testsuite/binutils-all/mips/mips16e2-undecoded.d: New test.
239 * testsuite/binutils-all/mips/mips16e2-extend-insn.d: New test.
240 * testsuite/binutils-all/mips/mips16-undecoded.s: Remove
241 `.module mips3'.
242 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
243
25499ac7
MR
2442017-05-15 Maciej W. Rozycki <macro@imgtec.com>
245
246 * readelf.c (print_mips_ases): Handle MIPS16e2 ASE.
247 * NEWS: Mention MIPS16e2 ASE support.
248
a4f89915
MR
2492017-05-12 Maciej W. Rozycki <macro@imgtec.com>
250
251 * testsuite/binutils-all/mips/mips16-extend-insn.d: Adjust BREAK
252 and SDBBP disassembly.
253
40e5240e
MR
2542017-05-10 Maciej W. Rozycki <macro@imgtec.com>
255
256 * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
257 `copyfile' variables.
258
53a346d8
CZ
2592017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
260
261 * readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
262 (get_arc_section_type_name): New function.
263 (get_section_type_name): Use the above function.
264 (display_arc_attribute): New function.
265 (process_arc_specific): Likewise.
266 (process_arch_specific): Handle ARC specific information.
267
21d1fbee
KK
2682017-05-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
269
270 * MAINTAINERS (SH): Remove myself as SH maintainer.
271
2ecf0cc3
L
2722017-05-02 H.J. Lu <hongjiu.lu@intel.com>
273
274 * objcopy.c (merge_gnu_build_notes): Cast relcount to unsigned
275 long when comparing with sec->reloc_count.
276
1395c6ce
NC
2772017-05-02 Nick Clifton <nickc@redhat.com>
278
279 * objcopy.c (merge_gnu_build_notes): Disable merge if there are
280 more internal relocs than external relocs.
281
a4ddc54e
MR
2822017-05-02 Maciej W. Rozycki <macro@imgtec.com>
283
284 * testsuite/binutils-all/mips/mips16-undecoded.d: Adjust the
285 disassembly of PC-relative LA and LW synthetic instructions.
286
39ff1b79
NC
2872017-05-02 Nick Clifton <nickc@redhat.com>
288
289 PR 21440
290 * objdump.c (dump_relocs_in_section): Check for an excessive
291 number of relocs before attempting to dump them.
292
ee7e95ef
AM
2932017-05-01 Alan Modra <amodra@gmail.com>
294
295 * objcopy.c (merge_gnu_build_notes): Correct code deleting
296 relocs.
297
b06b2c92
NC
2982017-04-28 Nick Clifton <nickc@redhat.com>
299
300 PR binutils/21439
301 * readelf.c (print_gnu_build_attribute_name): Allow for an empty
302 name field.
303
4e3afec2
NC
3042017-04-28 Nick Clifton <nickc@redhat.com>
305
306 PR binutils/21437
307 * readelf.c (process_version_sections): Check for underflow when
308 computing the start address of the auxillary version data.
309
d949ff56
NC
3102017-04-28 Nick Clifton <nickc@redhat.com>
311
312 PR binutils/21438
313 * dwarf.c (process_extended_line_op): Do not assume that the
314 string extracted from the section is NUL terminated.
315 (fetch_indirect_string): If the string retrieved from the section
316 is not NUL terminated, return an error message.
317 (fetch_indirect_line_string): Likewise.
318 (fetch_indexed_string): Likewise.
319
740a4630
NC
3202017-04-26 Nick Clifton <nickc@redhat.com>
321
d21f3ddb 322 PR binutils/21433
740a4630
NC
323 * bucomm.c (get_file_size): Return -1 if file_name is NULL.
324 * ar.c (main): Fail with usage() invocation if no file names are
325 provided.
326
3e6b6445
NC
3272017-04-26 Nick Clifton <nickc@redhat.com>
328
329 * readelf.c (process_section_headers): Warn about overlarge
330 sections.
331 (print_gnu_build_attribute_name): Print the number of unrecognised
332 note types. Fix formatting in the presence of errors.
333 (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
334 (testsuite/binutils-all/note-2-64.s): Likewise.
335
bbdd9a68
MR
3362017-04-26 Maciej W. Rozycki <macro@imgtec.com>
337
338 * readelf.c (process_mips_specific): Add static GOT support.
339
c4ab9505
MR
3402017-04-25 Maciej W. Rozycki <macro@imgtec.com>
341
342 * readelf.c (process_mips_specific): Remove error reporting from
343 GOT[1] processing.
344
919383ac
MR
3452017-04-25 Maciej W. Rozycki <macro@imgtec.com>
346
347 * readelf.c (process_mips_specific): Remove null GOT data check.
348
6e3d1f07
MR
3492017-04-25 Maciej W. Rozycki <macro@imgtec.com>
350
351 * testsuite/binutils-all/mips/mips16-alias.d: New test.
352 * testsuite/binutils-all/mips/mips16-noalias.d: New test.
353 * testsuite/binutils-all/mips/mips16-alias.s: New test source.
354 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
355
42354845
AM
3562017-04-23 Alan Modra <amodra@gmail.com>
357
358 PR 21418
359 * ar.c (main): Check -a, -b, -i and -N args are given.
360
7034215f
AM
3612017-04-23 Alan Modra <amodra@gmail.com>
362
363 PR 21417
364 * ar.c (main): Check that an archive file is given after options.
365
b02cd3e9
AM
3662017-04-23 Alan Modra <amodra@gmail.com>
367
368 PR 21415
369 * objdump.c (disassemble_section): Check bfd_get_section_contents
370 status.
371
f082820d
AM
3722017-04-23 Alan Modra <amodra@gmail.com>
373
374 PR 21408
375 * dwarf.c (display_debug_lines_decoded): Don't segfault on NULL
376 file_table.
377
ddef72cd
NC
3782017-04-21 Nick Clifton <nickc@redhat.com>
379
380 PR binutils/21378
381 * readelf.c (print_gnu_build_attribute_name): Check for an
382 overlarge name field.
383
7296a62a
NC
3842017-04-13 Nick Clifton <nickc@redhat.com>
385
386 PR binutils/21379
387 * readelf.c (process_dynamic_section): Detect over large section
388 offsets in the DT_SYMTAB entry.
389
3902017-04-13 Nick Clifton <nickc@redhat.com>
391
392 PR binutils/21345
393 * readelf.c (process_mips_specific): Catch an unfeasible memory
394 allocation before it happens and print a suitable error message.
395
1d15e434
NC
3962017-04-13 Nick Clifton <nickc@redhat.com>
397
398 * objcopy.c: Add --no-merge-notes option to disable note merging.
399 Add --[no-]merge-notes option to strip, and enable it by default.
400 (num_bytes): New function.
401 (merge_gnu_build_notes): Add code to merge stack size notes.
402 * binutils.texi: Update strip and objcopy documentation.
403 * readelf.c (print_gnu_build_attribute_name): Use defined
404 constants for note types.
405
28d909e5
JD
4062017-04-10 John Delsignor <john.delsignore@roguewave.com>
407
408 PR binutils/21319
409 * dwarf.c (display_gdb_index): Correct test for a corrupt address
410 table size.
411
0f65a5d8
JW
4122017-04-05 Jiong Wang <jiong.wang@arm.com>
413
414 * objcopy.c (struct redefine_node): Delete the field "next".
415 (redefine_sym_list): Deleted.
416 (redefine_specific_htab): New hash table.
417 (redefine_specific_reverse_htab): Likewise.
418 (eq_string_redefnode): New function.
419 (htab_hash_redefnode): Likewise.
420 (create_symbol2redef_htab): Likewise.
421 (add_specific_symbol_node): Likewise.
422 (create_symbol_htabs): Create redefine_specific_htab and
423 redefine_specific_reverse_htab.
424 (lookup_sym_redefinition): Use hash table instead of list.
425 (redefine_list_append): Likewise, and rename to add_redefine_and_check.
426 (copy_main): Use redefine_specific_htab instead of redefine_sym_list.
427 Update comments.
428
a91e1603
L
4292017-04-04 H.J. Lu <hongjiu.lu@intel.com>
430
431 * NEWS: Mention support for ELF SHF_GNU_MBIND and
432 PT_GNU_MBIND_XXX.
433 * readelf.c (get_segment_type): Handle PT_GNU_MBIND_XXX.
434 (get_elf_section_flags): Handle SHF_GNU_MBIND.
435 (process_section_headers): Likewise.
436 * testsuite/binutils-all/mbind1.s: New file.
437 * testsuite/binutils-all/objcopy.exp: Run readelf test on
438 mbind1.s.
439
82156ab7
NC
4402017-04-03 Nick Clifton <nickc@redhat.com>
441
442 PR binutils/21345
443 * readelf.c (get_program_headers): Check for there being too many
444 program headers before attempting to allocate space for them.
445
75ec1fdb
NC
4462017-04-03 Nick Clifton <nickc@redhat.com>
447
448 PR binutils/21344
449 * readelf.c (process_mips_specific): Check for an out of range GOT
450 entry before reading the module pointer.
451
f32ba729
NC
4522017-04-03 Nick Clifton <nickc@redhat.com>
453
454 PR binutils/21343
455 * readelf.c (get_unwind_section_word): Fix snafu checking for
456 invalid word offsets in ARM unwind information.
457
efdf7a02
PC
4582017-03-31 Pip Cet <pipcet@gmail.com>
459
460 * NEWS: Use "WebAssembly" consistently.
461 * testsuite/binutils-all/wasm32/wasm32.exp: Fix copyright notice.
462
f96bd6c2
PC
4632017-03-30 Pip Cet <pipcet@gmail.com>
464
465 * readelf.c: Add support for wasm32 ELF format WebAssembly files.
466 (guess_is_rela): Likewise.
467 (dump_relocations): Likewise.
468 (is_32bit_abs_reloc): Likewise.
469 (is_none_reloc_): Likewise.
470 * NEWS: Mention the new support.
471 * testsuite/lib/binutils-common.exp (is_elf_format): Mark wasm32
472 as ELF target.
473 (supports_gnu_unique): Mark wasm32 as supporting STB_GNU_UNIQUE.
474 * testsuite/binutils-all/nm.exp: Mark wasm32 as requiring .size annotations.
475 * testsuite/binutils-all/wasm32: New directory.
476 * testsuite/binutils-all/wasm32/create-wasm.d: New file.
477 * testsuite/binutils-all/wasm32/create-wasm.s: Likewise.
478 * testsuite/binutils-all/wasm32/custom-section.d: Likewise.
479 * testsuite/binutils-all/wasm32/custom-section.s: Likewise.
480 * testsuite/binutils-all/wasm32/invalid-wasm-1.d: Likewise.
481 * testsuite/binutils-all/wasm32/invalid-wasm-1.s: Likewise.
482 * testsuite/binutils-all/wasm32/long-sections.d: Likewise.
483 * testsuite/binutils-all/wasm32/long-sections.s: Likewise.
484 * testsuite/binutils-all/wasm32/parse-wasm.d: Likewise.
485 * testsuite/binutils-all/wasm32/parse-wasm.s: Likewise.
486 * testsuite/binutils-all/wasm32/parse-wasm-2.d: Likewise.
487 * testsuite/binutils-all/wasm32/parse-wasm-2.s: Likewise.
488 * testsuite/binutils-all/wasm32/prepared-section.d: Likewise.
489 * testsuite/binutils-all/wasm32/prepared-section.s: Likewise.
490 * testsuite/binutils-all/wasm32/wasm32.exp: New file, run tests.
491
52be03fd
AM
4922017-03-29 Alan Modra <amodra@gmail.com>
493
494 * doc/binutils.texi (objdump): Document PowerPC -M options.
495
4a14e306
AK
4962017-03-21 Andi Kleen <ak@linux.intel.com>
497
498 * objdump.c (unwind_inlines): Add.
499 (option_values): Add OPTION_INLINES.
500 (show_line): Unwind inlines if requested.
501 (main): Parse OPTION_INLINES.
502 (usage): Document --inlines.
503 * doc/binutils.texi: Document --inlines.
504 * NEWS: Likewise.
505
75d7d298
NC
5062017-03-21 Nick Clifton <nickc@redhat.com>
507
508 * readelf.c (print_gnu_build_attribute_name): Allow stack
509 protection notes to contain numeric values. Use a colon rather
510 than a space to separate a string name from its values. Decode
511 the numeric value of a stack protection note.
512 * objcopy.c (merge_gnu_build_notes): Allow version notes to
513 contain extra text after the protocol version number.
514
39e224f6
MW
5152017-03-20 Mark Wielaard <mark@klomp.org>
516
517 * readelf.c (process_program_headers): Move dynamic_addr check
518 after .dynamic section cross check.
519
0dd6ae21
NC
5202017-03-17 Nick Clifton <nickc@redhat.com>
521
522 * readelf.c (print_gnu_build_attribute_name): Fix off by one error
523 printing the value for a build note with an ascii name.
524
a8be5506
NC
5252017-03-16 Nick Clifton <nickc@redhat.com>
526
527 * readelf.c (print_gnu_build_attribute_name): Add support for
528 GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
529
c799a79d
NC
5302017-03-14 Nick Clifton <nickc@redhat.com>
531
532 * readelf.c (print_gnu_build_attribute_description): Move symbol
533 printing code to...
534 (print_symbol_for_build_attribute): New function. ...here.
535 Add to find the best symbol to associate with an OPEN note.
536 Add code to cache the symbol table and string table, so that they
537 are not loaded every time a note is displayed.
538 * testsuite/binutils-all/note-2-32.s: Add a function symbol.
539 * testsuite/binutils-all/note-2-64.s: Likewise.
540 * testsuite/binutils-all/note-2-32.d: Update expected note output.
541 * testsuite/binutils-all/note-2-64.d: Likewise.
542
5ef2d51b
AM
5432017-03-13 Alan Modra <amodra@gmail.com>
544 Taeung Song <treeze.taeung@gmail.com>
545
546 * objdump.c (update_source_path): Add abfd param. Add struct
547 stat var. Pass to try_print_file_open. Warn if source is more
548 recent than object.
549 (try_print_file_open, slurp_file): Add struct stat param to
550 return fstat.
551 (show_line): Call update_source_path with bfd.
552
7b5d4822
CHL
5532017-03-10 Chia-Hao Lo <fcamel@gmail.com>
554
555 PR binutils/21235
556 * objdump.c (main): Set do_wide with --wide.
557
55e22ca8
NC
5582017-03-10 Nick Clifton <nickc@redhat.com>
559
560 * readelf.c (get_machine_name): Rearrange switch table in order of
561 increasing machine number. Add missing entries.
562
1fc87489
L
5632017-03-08 H.J. Lu <hongjiu.lu@intel.com>
564
565 PR binutils/21231
566 * readelf.c (decode_x86_isa): Change argument to unsigned int.
567 (print_gnu_property_note): Retrieve property type and datasz as
568 4-byte integer. Consolidate property datasz check. Check
569 GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
570 * testsuite/binutils-all/i386/pr21231a.d: New file.
571 * testsuite/binutils-all/i386/pr21231a.s: Likewise.
572 * testsuite/binutils-all/i386/pr21231b.d: Likewise.
573 * testsuite/binutils-all/i386/pr21231b.s: Likewise.
574 * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
575 * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
576 * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
577 * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
578
79a964dc
NC
5792017-03-06 Nick Clifton <nickc@redhat.com>
580
581 * readelf.c (print_gnu_build_attribute_name): Read byte values
582 from the name string as unsigned bytes.
583 (process_notes_at): Use memcpy to copy an unterminated name
584 string.
585
1f5345a6
ST
5862017-03-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
587
588 * configure.ac (AC_CHECK_DECLS): Add asprintf.
589 * config.in: Regenerate.
590 * configure: Regenerate.
591
c871dade
NC
5922017-03-02 Nick Clifton <nickc@redhat.com>
593
594 * readelf.c (print_gnu_build_attribute_description): Use global
595 symbols for OPEN attributes if at all possible.
05ed4310
NC
596 * objcopy.c (is_merged_note_section): Support build note sections
597 without the SHF_GNU_BUILD_NOTE section flag set.
c871dade 598
b451e98a
JK
5992017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
600
601 * dwarf.c (debug_displays_assert): New static assertion.
602
d4620bee
JK
6032017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
604
605 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
606
9ef920e9
NC
6072017-03-01 Nick Clifton <nickc@redhat.com>
608
609 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
610 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
611 (decode_x86_isa): New function.
612 (print_gnu_property_note): New function.
613 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
614 (print_gnu_build_attribute_description): New function.
615 (print_gnu_build_attribute_name): New function.
616 (process_note): Add support for GNU_BUILD_NOTEs.
617 * objcopy.c (--merge-notes): New command line option.
618 (copy_options): Add merge-notes.
619 (copy_usage): Likewise.
620 (is_merge_note_section): New function.
621 (merge_gnu_build_notes): New function.
622 (copy_object): Merge note sections if asked to do so.
623 (skip_section): Add skip_copy parameter. Add support for skipping
624 merged note sections.
625 (copy_relocations_in_section): Update call to skip_section.
626 (copy_section): Likewise.
627 (copy_main): Add support for merge-notes option.
628 * doc/binutils.texi: Document the new option to objcopy.
629 * NEWS: Mention the new feature.
630 * testsuite/binutils-all/note-2-32.d: New test. Checks note
631 merging on 32-bit targets.
632 * testsuite/binutils-all/note-2-32.s: New test source file.
633 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
634 but for 64-bit targets.
635 * testsuite/binutils-all/note-2-64.s: New test source file.
636 * testsuite/binutils-all/objcopy.exp: Run the new test.
637
65b48a81
PB
6382017-02-28 Peter Bergner <bergner@vnet.ibm.com>
639
640 * objdump.c (main): Use remove_whitespace_and_extra_commas.
641
9dfd0db9
JK
6422017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
643
644 Fix compilation with GCC 4.4.7.
645 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
646 Initialize begin and end.
647
3b83ea38
AM
6482017-02-25 Alan Modra <amodra@gmail.com>
649
650 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
651 Support hpux .comm variant.
652 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
653 dw5 test for hppa64-hpux.
654
32ec8896
NC
6552017-02-24 Nick Clifton <nickc@redhat.com>
656
657 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
658 (do_reloc, do_sections, do_section_groups, do_section_details,
659 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
660 (do_version, do_histogram, do_debugging, do_arch, do_notes,
661 (do_archive_index, is_32bit_elf, decompress_dumps): Use
662 bfd_boolean type.
663 (parse_args): Treat the do_* variables as booleans.
664 (print_vma): Return an unsigned int.
665 (print_symbol): Change width parameter to signed int.
666 (is_ia64_vms): Change return type to bfd_boolean.
667 (guess_is_rela): Likewise.
668 (slurp_rela_relocs): Likewise.
669 (slurp_rel_relocs): Likewise.
670 (dump_relocations): Likewise.
671 (process_file_header): Likewise.
672 (get_program_headers): Likewise.
673 (process_program_headers): Likewise.
674 (process_section_headers): Likewise.
675 (process_section_groups): Likewise.
676 (dump_ia64_vms_dynamic_fixups): Likewise.
677 (dump_ia64_vms_dynamic_relocs): Likewise.
678 (process_ia64_vms_dynamic_relocs): Likewise.
679 (process_relocs): Likewise.
680 (dump_ia64_unwind): Likewise.
681 (ia64_process_unwind): Likewise.
682 (dump_hppa_unwind): Likewise.
683 (slurp_hppa_unwind_table): Likewise.
684 (hppa_process_unwind): Likewise.
685 (decode_arm_unwind_bytecode): Likewise.
686 (decode_tic6x_unwind_bytecode): Likewise.
687 (decode_arm_unwind): Likewise.
688 (dump_arm_unwind): Likewise.
689 (arm_process_unwind): Likewise.
690 (process_unwind): Likewise.
691 (get_32bit_dynamic_section): Likewise.
692 (get_64bit_dynamic_section): Likewise.
693 (process_dynamic_section): Likewise.
694 (process_version_sections): Likewise.
695 (process_symbol_table): Likewise.
696 (process_syminfo): Likewise.
697 (apply_relocations): Likewise.
698 (disassemble_section): Likewise.
699 (dump_section_as_strings): Likewise.
700 (dump_section_as_bytes): Likewise.
701 (load_specific_debug_section): Likewise.
702 (load_debug_section): Likewise.
703 (display_debug_section): Likewise.
704 (process_section_contents): Likewise.
705 (process_attributes): Likewise.
706 (process_nds32_specific): Likewise.
707 (process_gnu_liblist): Likewise.
708 (print_core_note): Likewise.
709 (print_gnu_note): Likewise.
710 (print_v850_note): Likewise.
711 (process_netbsd_elf_note): Likewise.
712 (print_stapsdt_note): Likewise.
713 (print_ia64_vms_note): Likewise.
714 (process_note): Likewise.
715 (process_notes_at): Likewise.
716 (process_corefile_note_segments): Likewise.
717 (process_v850_notes): Likewise.
718 (process_note_sections): Likewise.
719 (process_notes): Likewise.
720 (process_arch_specific): Likewise.
721 (get_file_header): Likewise.
722 (process_object): Likewise.
723 (process_archive): Likewise.
724 (process_file): Likewise.
725 (section_subset): Make static.
726 (get_mips_reg_size): Return a signed integer.
727 (process_object): Reverse the logic of the return value.
728 (process_archive): Likewise.
729 (process_file): Likewise.
6b4bf3bc
NC
730 (process_program_headers): Fix snafu - if the program headers are
731 not available then this is not a cause to fail.
732 (process_corefile_note_segments): Likewise.
32ec8896 733
7bb1ad17
MR
7342017-02-24 Maciej W. Rozycki <macro@imgtec.com>
735
736 * readelf.c (get_ver_flags): Tidy the formatting of the string
737 returned
738
5235cd68
MR
7392017-02-24 Maciej W. Rozycki <macro@imgtec.com>
740
741 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
742 `isum' unsigned.
743 <SHT_GNU_verneed>: Likewise.
744
c9f02c3e
MR
7452017-02-24 Maciej W. Rozycki <macro@imgtec.com>
746
747 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
748 the number of entries processed by the section size. Don't
749 break out of the loop if `ent.vd_next' is 0.
750
a567769b
JK
7512017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
752
753 * testsuite/binutils-all/dw5.S: New file.
754 * testsuite/binutils-all/dw5.W: New file.
755 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
756
2f6cd591
JK
7572017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
758
759 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
760
7a7e1061
JK
7612017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
762
763 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
764 DW_MACRO_GNU_*.
765
bc0a77d2
JK
7662017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
767
768 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
769 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
770 and DW_OP_reinterpret.
771 (read_and_display_attr_value): Support DW_AT_call_value,
772 DW_AT_call_data_value, DW_AT_call_target and
773 DW_AT_call_target_clobbered.
774
77145576
JK
7752017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
776
777 * dwarf.c (fetch_indirect_line_string): New function.
778 (abbrev_attr): New field implicit_const.
779 (add_abbrev_attr): New parameter implicit_const.
780 (process_abbrev_section): Support DW_FORM_implicit_const.
781 (decode_location_expression): Support DW_OP_entry_value.
782 (read_and_display_attr_value): Add parameter implicit_const. Support
783 DW_FORM_line_strp and DW_FORM_implicit_const.
784 (read_and_display_attr): Add parameter implicit_const.
785 (process_debug_info): Support line_str and DWARF-5.
786 (read_debug_line_header): Support DWARF-5.
787 (display_formatted_table): New function.
788 (display_debug_lines_raw): New parameter file. Support DWARF-5.
789 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
790 (display_debug_lines): Pass file parameter.
791 (display_debug_macro): Update read_and_display_attr_value caller.
792 (display_debug_abbrev): Support DW_FORM_implicit_const.
793 (display_loclists_list): New function.
794 (display_loc_list): Support .debug_loclists.
795 (display_debug_ranges_list): New function from display_debug_ranges.
796 (display_debug_rnglists_list): New function.
797 (display_debug_ranges): Support .debug_rnglists.
798 (debug_displays): Add .debug_line_str, .debug_loclists and
799 .debug_rnglists.
800 * dwarf.h: Include dwarf2.h
801 (DWARF2_Internal_LineInfo): Add li_offset_size.
802 (DWARF2_Internal_CompUnit): Add cu_unit_type.
803 (enum dwarf_section_display_enum): Add line_str.
804 * readelf.c (process_section_headers): Add rnglists and loclists.
805
ef0b5f1c
JK
8062017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
807
808 * dwarf.c (display_block): Add parameter delimiter.
809 (decode_location_expression): Update display_block callers.
810 (read_and_display_attr_value): Add parameter delimiter.
811 (read_and_display_attr, display_debug_macro): Update
812 read_and_display_attr_value caller.
813
359ca075
JK
8142017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
815
816 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
817 and off.
818 (display_loc_list_dwo): Use dwarf_vma for offset.
819 (display_debug_loc): Use dwarf_vma for offset, base_address.
820 (struct range_entry, range_entry_compar): Use dwarf_vma for
821 ranges_offset.
822 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
823 base_address.
824
60abdbed
NC
8252017-02-23 Nick Clifton <nickc@redhat.com>
826
827 * readelf.c (display_tag_value): Use an explicit signed type for
828 the tag parameter.
829 (display_gnu_attributes): Use an unsigned integer type for
830 attribute tags.
831 (display_power_gnu_attribute): Likewise.
832 (display_s390_gnu_attribute): Likewise.
833 (display_sparc_hwcaps): Likewise.
834 (display_sparc_hwcaps2): Likewise.
835 (display_sparc_gnu_attribute): Likewise.
836 (display_mips_gnu_attribute): Likewise.
837 (display_tic6x_attribute): Likewise.
838 (display_raw_attribute): Likewise.
839 (process_attributes): Likewise.
840 (process_arm_specific): Delete redundant function.
841 (process_power_specific): Likewise.
842 (process_s390_specific): Likewise.
843 (process_sparc_specific): Likewise.
844 (process_tic6x_specific): Likewise.
845 (process_msp430x_specific): Likewise.
846 (display_public_gnu_attributes): New function. Displays known
847 information about an unknown gnu attribute.
848 (display_generic_attribute): New function. Calls
849 display_tag_value for non-nul tags.
850 (process_arch_specific): Call process_attributes even for
851 architectures not known to specifically support gnu attributes.
852
0502a2b4
JK
8532017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
854
855 * dwarf.c (decode_location_expression): Display also OP.
856
233f82cf
MR
8572017-02-22 Maciej W. Rozycki <macro@imgtec.com>
858
859 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
860 new line between the heading and the first version definition
861 entry.
862
43a444f9
NC
8632017-02-20 Nick Clifton <nickc@redhat.com>
864
865 PR binutils/21156
866 * dwarf.c (cu_tu_indexes_read): Move into...
867 (load_cu_tu_indexes): ... here. Change the variable into
868 tri-state. Change the function into boolean, returning
869 false if the indicies could not be loaded.
870 (find_cu_tu_set): Return NULL if the indicies could not be
871 loaded.
872
b814a36d
NC
8732017-02-17 Nick Clifton <nickc@redhat.com>
874
875 PR binutils/21156
876 * readelf.c (find_section_in_set): Test for invalid section
877 indicies.
878
1b4b80bf
NC
8792017-02-17 Nick Clifton <nickc@redhat.com>
880
881 * readelf.c (get_section_type_name): Add decoding of GNU section
882 types.
883
7c723eec
NC
8842017-02-15 Nick Clifton <nickc@redhat.com>
885
886 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
887 Maintainers section.
888
bc303e5d
NC
8892017-02-14 Nick Clifton <nickc@redhat.com>
890
891 PR binutils/21159
892 * readelf.c (dump_section_as_strings): Reset the start address if
893 no decompression is perfromed.
894 (dump_section_as_bytes): Likewise.
895
92134dc1
NC
8962017-02-14 Nick Clifton <nickc@redhat.com>
897
898 PR binutils/21158
899 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
900 empty symbol name.
901
a2dea0b2
NC
9022017-02-14 Nick Clifton <nickc@redhat.com>
903
904 PR binutils/21157
905 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
906 pairs.
907 (parse_number): Exit early if passed an empty string.
908
b32e566b
NC
9092017-02-14 Nick Clifton <nickc@redhat.com>
910
911 PR binutils/21155
912 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
913 being within a given range.
914 (target_specific_reloc_handling): Use macro to test for underflow
915 as well as overflow of reloc offset.
916
c1221402
NC
9172017-02-13 Nick Clifton <nickc@redhat.com>
918
919 PR binutils/21150
920 * nm.c (file_symbol): Add test of string length before testing
921 string characters.
922
f055032e
NC
9232017-02-13 Nick Clifton <nickc@redhat.com>
924
925 PR binutils/21135
926 * readelf.c (dump_section_as_bytes): Handle the case where
927 uncompress_section_contents returns false.
1835f746 928 (dump_section_as_bytes, load_specific_debug_section): Likewise.
f055032e 929
ebdf1ebf
NC
9302017-02-13 Nick Clifton <nickc@redhat.com>
931
932 PR binutils/21149
933 * readelf.c (get_compression_header): Add size parameter. Check
934 size against sizeof compression header before attempting to
935 extract the header.
936 (process_section_headers): Pass size to get_compression_header.
937 (dump_section_as_strings): Likewise.
938 (dump_section_as_bytes): Likewise.
939 (load_specific_debug_section): Likewise.
940
4aeb00ad
NC
9412017-02-13 Nick Clifton <nickc@redhat.com>
942
943 PR binutils/21148
944 * readelf.c (process_version_sections): Include size of auxillary
945 version information when checking for buffer overflow.
946
0ee3043f
NC
9472017-02-13 Nick Clifton <nickc@redhat.com>
948
949 PR binutils/21147
950 * readelf.c (process_section_contents): Fix off by one error
951 reporting un-dumped sections.
952
f84ce13b
NC
9532017-02-13 Nick Clifton <nickc@redhat.com>
954
955 PR binutils/21139
956 * readelf.c (target_specific_reloc_handling): Add num_syms
957 parameter. Check for symbol table overflow before accessing
958 symbol value. If reloc pointer is NULL, discard all saved state.
959 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
960 Call target_specific_reloc_handling with a NULL reloc pointer
961 after processing all of the relocs.
962
03f7786e
NC
9632017-02-13 Nick Clifton <nickc@redhat.com>
964
965 PR binutils/21137
966 * readelf.c (target_specific_reloc_handling): Add end parameter.
967 Check for buffer overflow before writing relocated values.
968 (apply_relocations): Pass end to target_specific_reloc_handling.
969
387dd777
DP
9702017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
971 Nick Clifton <nickc@redhat.com>
972
973 PR 20343
974 * doc/binutils.texi (ar): Extend documentation of the --plugin
975 option. Include a description of where the plugins should be
976 located.
977 (nm): Likewise.
978
cf581a9b
NC
9792017-01-23 Nick Clifton <nickc@redhat.com>
980
981 * MAINTAINERS: Add Bernd to Past Maintainers section.
c49f9d0f 982 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
71d01c69 983 section.
cf581a9b 984
715e99a4
BS
9852017-01-23 Bernd Schmidt <bschmidt@redhat.com>
986
987 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
988
1737c640
AB
9892017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
990
991 * objdump.c (dump_section_header): Extract max section name length
992 from data parameter, use this when formatting output.
993 (find_longest_section_name): New function.
994 (dump_headers): Calculate longest section name when in wide mode,
995 reformat to unify printing of header line.
996
2cedb9eb
BR
9972017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
998
999 PR 21059
1000 * arlex.l: Support processing with flex 2.6.3.
1001 * deflex.l: Likewise.
1002
6bb21700
DT
10032017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
1004
1005 * resbin.c: Optional dialog control data immediately follows
1006 the control description without alignment.
1007 * testsuite/binutils-all/windres/controldata.rc: New test.
1008 source.
1009 * testsuite/binutils-all/windres/controldata.rsd: New test.
1010
2425a30e
NC
10112017-01-12 Nick Clifton <nickc@redhat.com>
1012
1013 PR binutils/20876
1014 * NEWS: Mention the new feature.
1015 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
1016 New proc to test the location of separate debug info files using
1017 the build-id method.
1018
b972a0d6
NC
10192017-01-10 Nick Clifton <nickc@redhat.com>
1020
1021 PR 21034
1022 * stabs.c (parse_stab_members): Fix thinko checking for g++
1023 version 1 stabs information.
1024
cd6581da
NC
10252017-01-09 Nick Clifton <nickc@redhat.com>
1026
1027 * objdump.c (display_file): Add new parameter 'last_file'. If
1028 last_file is true, do not call bfd_close at the end of the
1029 function.
1030 (main): Set the value of the last_file parameter when calling
1031 display_file.
1032
4d74727a
AM
10332017-01-09 Alan Modra <amodra@gmail.com>
1034
1035 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
1036 comment.
1037
fd13a84b
NC
10382017-01-06 Nick Clifton <nickc@redhat.com>
1039
1040 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
1041
b0556316
DP
10422017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
1043
1044 PR 20958
1045 * syslex.l (option): Add noyywrap
1046 (yywrap): Delete.
1047
2571583a
AM
10482017-01-02 Alan Modra <amodra@gmail.com>
1049
1050 Update year range in copyright notice of all files.
1051
5c1ad6b5 1052For older changes see ChangeLog-2016
3499769a 1053\f
5c1ad6b5 1054Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
1055
1056Copying and distribution of this file, with or without modification,
1057are permitted in any medium without royalty provided the copyright
1058notice and this notice are preserved.
1059
1060Local Variables:
1061mode: change-log
1062left-margin: 8
1063fill-column: 74
1064version-control: never
1065End:
This page took 0.131844 seconds and 4 git commands to generate.