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