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