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