Add .note.gnu.property runtime verification and merge support
[external/binutils.git] / binutils / ChangeLog
1 2018-01-03  Nick Clifton  <nickc@redhat.com>
2
3         * objcopy.c (objcopy_internal_note): New structure.
4         (gap_exists): New function.
5         (is_open_note): New function.
6         (is_func_note): New function.
7         (is_64bit): New function.
8         (merge_gnu_build_notes): Handle v3 notes.  Do not merge
9         if there are relocations against the notes.
10         * readelf.c (get_note_type): Use short names for build attribute
11         notes.
12         (print_symbol_for_build_attribute): Rename to
13         get_symbol_for_build_attribute.  Returns the found symbol rather
14         than printing it.
15         (print_gnu_build_attribute_description): Maintain address ranges
16         for function notes as well as global notes.  Handle v3 notes.
17         (print_gnu_build_attribute_name): Use more space for printing the
18         name in wide mode.
19         * testsuite/binutils-all/note-2-32.s: Use .dc.l instead of .word.
20         Eliminate symbol references in order to remove the need for
21         relocations.
22         * testsuite/binutils-all/note-2-64.s: Likewise.
23         * testsuite/binutils-all/note-3-32.s: Add a size to the note_1
24         symbol.
25         * testsuite/binutils-all/note-3-64.s: Likewise.
26         * testsuite/binutils-all/mips/mips-note-2r-n32.d: Update expected
27         output.
28         * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
29         * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
30         * testsuite/binutils-all/note-2-32.d: Likewise.
31         * testsuite/binutils-all/note-2-64.d: Likewise.
32         * testsuite/binutils-all/note-3-32.d: Likewise.
33         * testsuite/binutils-all/note-3-64.d: Likewise.
34         * testsuite/binutils-all/note-4-64.s: New test.  Checks v3 notes.
35         * testsuite/binutils-all/note-4-32.s: New test.
36         * testsuite/binutils-all/note-4-64.d: New test result file.
37         * testsuite/binutils-all/note-4-32.d: New test result file.
38
39 2017-05-01  Alan Modra  <amodra@gmail.com>
40
41         * objcopy.c (merge_gnu_build_notes): Correct code deleting
42         relocs.
43
44 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
45
46         PR binutils/22490
47         * readelf.c (process_notes_at): Add an argument for note
48         alignment.  If note alignment is less than 4, use 4 byte
49         alignment.  Otherwise, skip notes if alignment isn't 4 nor
50         8 bytes.
51         (process_corefile_note_segments): Pass segment alignment to
52         process_notes_at.
53         (process_note_sections): Pass section alignment to
54         process_notes_at.
55         (process_object): Call load_separate_debug_file only if
56         e_shstrndx != SHN_UNDEF.
57
58 2017-11-27  Nick Clifton  <nickc@redhat.com>
59
60         PR 22490
61         * readelf.c (dump_section_as_bytes): Check for a NULL string
62         section pointer.
63         (process_notes_at): Compute the alignment to use if displaying
64         notes from a segment.
65
66 2017-11-02  Mingi Cho  <mgcho.minic@gmail.com>
67
68         PR 22384
69         * readelf.c (print_gnu_property_note): Improve overflow checks so
70         that they will work on a 32-bit host.
71
72 2017-11-24  H.J. Lu  <hongjiu.lu@intel.com>
73
74         PR binutils/22444
75         * readelf.c (process_notes_at): Use ELF_NOTE_DESC_OFFSET to get
76         the offset of the note descriptor.  Use ELF_NOTE_NEXT_OFFSET to
77         get the offset of the next note entry.
78
79 2017-08-17  Nick Clifton  <nickc@redhat.com>
80
81         * testsuite/binutils-all/note-3-64.s: New test.  Checks assembly
82         and decoding of version2 GNU build attribute notes.
83         * testsuite/binutils-all/note-3-32.s: New test.  32-bit version of
84         the above test.
85         * testsuite/binutils-all/note-3-64.d: New test driver.
86         * testsuite/binutils-all/note-3-32.d: New test driver.
87         * testsuite/binutils-all/objcopy.exp: Run the new test.
88         * readelf.c (is_64bit_abs_reloc): Add R_SPARC_64.
89
90 2017-06-28  Nick Clifton  <nickc@redhat.com>
91
92         * objcopy.c (merge_gnu_build_notes): Add support for version 2 notes.
93         * readelf.c (print_gnu_build_attribute_name): Likewise.
94
95 2017-04-28  Nick Clifton  <nickc@redhat.com>
96
97         PR binutils/21439
98         * readelf.c (print_gnu_build_attribute_name): Allow for an empty
99         name field.
100
101 2017-04-26  Nick Clifton  <nickc@redhat.com>
102
103         * readelf.c (process_section_headers): Warn about overlarge
104         sections.
105         (print_gnu_build_attribute_name): Print the number of unrecognised
106         note types.  Fix formatting in the presence of errors.
107         (testsuite/binutils-all/note-2-32.s): Fix encoding of numeric notes.
108         (testsuite/binutils-all/note-2-64.s): Likewise.
109
110 2017-04-21  Nick Clifton  <nickc@redhat.com>
111
112         PR binutils/21378
113         * readelf.c (print_gnu_build_attribute_name): Check for an
114         overlarge name field.
115
116 2017-04-13  Nick Clifton  <nickc@redhat.com>
117
118         * objcopy.c: Add --no-merge-notes option to disable note merging.
119         Add --[no-]merge-notes option to strip, and enable it by default.
120         (num_bytes): New function.
121         (merge_gnu_build_notes): Add code to merge stack size notes.
122         * binutils.texi: Update strip and objcopy documentation.
123         * readelf.c (print_gnu_build_attribute_name): Use defined
124         constants for note types.
125
126 2017-03-21  Nick Clifton  <nickc@redhat.com>
127
128         * readelf.c (print_gnu_build_attribute_name): Allow stack
129         protection notes to contain numeric values.  Use a colon rather
130         than a space to separate a string name from its values.  Decode
131         the numeric value of a stack protection note.
132         * objcopy.c (merge_gnu_build_notes): Allow version notes to
133         contain extra text after the protocol version number.
134
135 2017-03-16  Nick Clifton  <nickc@redhat.com>
136
137         * readelf.c (print_gnu_build_attribute_name): Add support for
138         GNU_BUILD_ATTRIBUTE_SHORT_ENUM.
139
140 2017-03-14  Nick Clifton  <nickc@redhat.com>
141
142         * readelf.c (print_gnu_build_attribute_description): Move symbol
143         printing code to...
144         (print_symbol_for_build_attribute): New function.  ...here.
145         Add to find the best symbol to associate with an OPEN note.
146         Add code to cache the symbol table and string table, so that they
147         are not loaded every time a note is displayed.
148         * testsuite/binutils-all/note-2-32.s: Add a function symbol.
149         * testsuite/binutils-all/note-2-64.s: Likewise.
150         * testsuite/binutils-all/note-2-32.d: Update expected note output.
151         * testsuite/binutils-all/note-2-64.d: Likewise.
152
153 2017-03-08  H.J. Lu  <hongjiu.lu@intel.com>
154
155         PR binutils/21231
156         * readelf.c (decode_x86_isa): Change argument to unsigned int.
157         (print_gnu_property_note): Retrieve property type and datasz as
158         4-byte integer.  Consolidate property datasz check.  Check
159         GNU_PROPERTY_LOPROC and GNU_PROPERTY_LOUSER.
160         * testsuite/binutils-all/i386/pr21231a.d: New file.
161         * testsuite/binutils-all/i386/pr21231a.s: Likewise.
162         * testsuite/binutils-all/i386/pr21231b.d: Likewise.
163         * testsuite/binutils-all/i386/pr21231b.s: Likewise.
164         * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
165         * testsuite/binutils-all/x86-64/pr21231a.s: Likewise.
166         * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
167         * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
168
169 2017-03-06  Nick Clifton  <nickc@redhat.com>
170
171         * readelf.c (print_gnu_build_attribute_name): Read byte values
172         from the name string as unsigned bytes.
173         (process_notes_at): Use memcpy to copy an unterminated name
174         string.
175
176 2017-03-02  Nick Clifton  <nickc@redhat.com>
177
178         * readelf.c (print_gnu_build_attribute_description): Use global
179         symbols for OPEN attributes if at all possible.
180
181 2017-03-01  Nick Clifton  <nickc@redhat.com>
182
183         * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
184         (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
185         (decode_x86_isa): New function.
186         (print_gnu_property_note): New function.
187         (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
188         (print_gnu_build_attribute_description): New function.
189         (print_gnu_build_attribute_name): New function.
190         (process_note): Add support for GNU_BUILD_NOTEs.
191         * objcopy.c (--merge-notes): New command line option.
192         (copy_options): Add merge-notes.
193         (copy_usage): Likewise.
194         (is_merge_note_section): New function.
195         (merge_gnu_build_notes): New function.
196         (copy_object): Merge note sections if asked to do so.
197         (skip_section): Add skip_copy parameter.  Add support for skipping
198         merged note sections.
199         (copy_relocations_in_section): Update call to skip_section.
200         (copy_section): Likewise.
201         (copy_main): Add support for merge-notes option.
202         * doc/binutils.texi: Document the new option to objcopy.
203         * NEWS: Mention the new feature.
204         * testsuite/binutils-all/note-2-32.d: New test.  Checks note
205         merging on 32-bit targets.
206         * testsuite/binutils-all/note-2-32.s: New test source file.
207         * testsuite/binutils-all/note-2-64.d: New test.  Like note-2-32.d
208         but for 64-bit targets.
209         * testsuite/binutils-all/note-2-64.s: New test source file.
210         * testsuite/binutils-all/objcopy.exp: Run the new test.
211
212 2016-10-17  Nick Clifton  <nickc@redhat.com>
213
214         * readelf.c (apply_relocations): Fail if the symbol table section
215         linked to by the reloc section does not have either the SHT_SYMTAB
216         or SHT_DYNSYM type.
217         (print_gnu_note): Decode the contents of NT_GNU_HWCAP notes.
218         Print the contents of unknown note types.
219         (process_note): Add the file and section to the parameter list.
220         Use print_symbol to display the note name.
221         Display the contents of unknown note types.
222         (process_corefile_note_segment): Rename to process_notes_at.
223         Add section parameter.  Apply relocations to the notes when
224         loading from a section.  Display section name when processing
225         notes in a section.
226         * testsuite/binutils-all/readelf.n: Update expected output.
227
228 2017-04-03  Nick Clifton  <nickc@redhat.com>
229
230         PR binutils/21343
231         * readelf.c (get_unwind_section_word): Fix snafu checking for
232         invalid word offsets in ARM unwind information.
233
234 2016-08-03  Tristan Gingold  <gingold@adacore.com>
235
236         * configure: Regenerate.
237
238 2016-07-01  Nick Clifton  <nickc@redhat.com>
239
240         * Import this patch from the mainline:
241         2016-07-01  Nick Clifton  <nickc@redhat.com>
242
243         * testsuite/binutils-all/objcopy.exp
244         (objcopy_test_without_global_symbol): Expect this test to fail on
245         the AArch64 and ARM targets, since they preserve their mapping
246         symbols.
247
248 2016-07-01  Tristan Gingold  <gingold@adacore.com>
249
250         * configure: Regenerate.
251
252 2016-07-01  Tristan Gingold  <gingold@adacore.com>
253
254         * configure: Regenerate.
255
256 2016-07-01  Tristan Gingold  <gingold@adacore.com>
257
258         * NEWS: Add marker for 2.27.
259
260 2016-07-30  Tristan Gingold  <gingold@adacore.com>
261
262         * doc/binutils.texi (objdump): Fix mis-placement.
263
264 2016-06-28  Nick Clifton  <nickc@redhat.com>
265
266         * testsuite/binutils-all/ar.exp: Relax previous restriction on
267         Alpha targets.  Allow ELF based Alpha targets.
268
269 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
270
271         * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
272         the `unique_symbol' test.
273
274 2016-06-28  Alan Modra  <amodra@gmail.com>
275
276         PR 20304
277         * objdump.c (objdump_print_symname): Don't attempt to retrieve
278         version info from synthetic symbols.
279
280 2016-06-24  Alan Modra  <amodra@gmail.com>
281
282         * objcopy.c (find_section_rename): Forward declare.  Remove
283         ibfd and sec_ptr param.  Add old_name param.  Allow for NULL
284         returned_flags.  Move read of section name and flags to..
285         (setup_section): ..here.  Update find_section_rename call.
286         (filter_symbols): Rename section symbols for renamed sections.
287         (copy_object): Call filter_symbols when renamed sections.
288         * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
289         * testsuite/binutils-all/update-section.exp: Revert 96037eb0
290         mips xfail.
291         * testsuite/binutils-all/objcopy.exp (copy_executable): Use
292         is_bad_symtab.
293         (localize-hidden-1): xfail if is_bad_symtab.
294         * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
295         between mips/tmips.
296
297 2016-06-24  Alan Modra  <amodra@gmail.com>
298
299         * objdump.c (struct print_file_list): Add "max_printed".
300         (try_print_file_open): Init new field.
301         (show_line): Don't show 5 context lines when redisplaying source.
302
303 2016-06-22  Nick Clifton  <nickc@redhat.com>
304
305         * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
306         Skip bfdtest1 tests for tic30 target.
307         * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
308         target.
309         * testsuite/binutils-all/compress.exp: Expect some tests to fail
310         on the nds32.
311         * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
312         * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
313         targets.
314         * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
315         targets.
316         * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
317         if the bintest.o file was created.  Use the
318         get_standard_section_names proc to get the name of the data
319         section.
320         * testsuite/binutils-all/objdump.exp: Update regexps to allow for
321         RX section names.
322         * testsuite/binutils-all/readelf.exp: Use
323         get_standard_section_names proc to get the name of the data
324         section.
325         * testsuite/binutils-all/readelf.r: Allow for non standard text
326         section names.
327         * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
328         * testsuite/binutils-all/size.exp: Allow for non standard section
329         names.
330         * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
331         to fail on mips targets.
332         * testsuite/lib/utils-lib.exp (default_binutils_run): Use
333         get_standard_section_names proc.
334         (run_dump_test): Likewise.
335         (proc get_standard_section_names): New proc.
336
337 2016-06-22  Nick Clifton  <nickc@redhat.com>
338
339         * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
340         (process_mips_specific): Likewise.
341         (process_gnu_liblist): Likewise.
342
343 2016-06-21  Graham Markall  <graham.markall@embecosm.com>
344
345         * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
346         case.
347
348 2016-06-15  Nick Clifton  <nickc@redhat.com>
349
350         * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
351         reloc.
352
353 2016-06-14  John Baldwin  <jhb@FreeBSD.org>
354
355         * objcopy.c (do_elf_stt_common): Use correct type.
356
357 2016-06-14  Alan Modra  <amodra@gmail.com>
358
359         * ar.c: Expand uses of bfd_my_archive.
360         * size.c: Likewise.
361
362 2016-06-14  Alan Modra  <amodra@gmail.com>
363
364         PR ld/20241
365         * bucomm.c (bfd_get_archive_filename): Return file name within thin
366         archive.
367
368 2016-06-02  Nick Clifton  <nickc@redhat.com>
369
370         PR 20089
371         * objcopy.c (group_signature): Fail if the input symbol table has
372         not been loaded, or if the sh_info field of the group header is 0.
373
374         * dwarf.c (display_debug_frames): Do not display any
375         interpretation if the block consists solely of DW__CFA_NOPs.
376
377 2016-05-31  Alan Modra  <amodra@gmail.com>
378
379         * objcopy.c: Formatting, whitespace throughout.
380         (copy_main): Init newsym->othersym.
381         (parse_symflags): Make len a size_t.  Adjust uses.
382
383 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
384
385         PR binutils/14625
386         * NEWS: Mention --enable-64-bit-archive.
387
388 2016-05-18  Nick Clifton  <nickc@redhat.com>
389
390         PR 20096
391         * objcopy.c (copy_relocations_in_section): Also check for the
392         symbol pointed to by sym_ptr_ptr being NULL.
393
394 2016-05-18  Maciej W. Rozycki  <macro@imgtec.com>
395
396         * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
397         * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
398         source.
399         * testsuite/binutils-all/mips/mips.exp: Run the new test.
400
401 2016-05-18  Nick Clifton  <nickc@redhat.com>
402
403         * po/sv.po: Updated Swedish translation.
404
405 2016-05-18  Maciej W. Rozycki  <macro@imgtec.com>
406
407         * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
408         <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
409         <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
410         <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
411         <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
412         <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
413         `d_val' rather than `d_ptr' member of the dynamic entry.
414
415 2016-05-17  Maciej W. Rozycki  <macro@imgtec.com>
416
417         * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
418         procedure.
419         * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
420         with the `strip-10' test.
421
422 2016-05-16  Maciej W. Rozycki  <macro@imgtec.com>
423
424         * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
425         test for the V850.
426
427 2016-05-11  Andrew Bennett  <andrew.bennett@imgtec.com>
428
429         * readelf.c (print_mips_ases): Add DSPR3.
430
431 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
432
433         * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
434         (arm_attr_public_tags): Define DSP_extension attribute.
435
436 2016-05-10  Andrew Burgess  <andrew.burgess@embecosm.com>
437
438         * doc/binutils.texi (nm): Update description of --size-sort.
439
440 2016-05-09  Nick Clifton  <nickc@redhat.com>
441
442         PR binutils/20063
443         * readelf.c (get_32bit_section_headers): Warn if an out of range
444         sh_link or sh_info field is encountered.
445         (get_64bit_section_headers): Likewise.
446
447 2016-05-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
448
449         * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
450
451 2016-05-03  Nick Clifton  <nickc@redhat.com>
452
453         * po/sv.po: Updated Swedish translation.
454
455 2016-04-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
456
457         * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
458         PC relocation for AVR target.
459         (is_none_reloc): Return true if reloc is any of AVR diff
460         relocations.
461
462 2016-04-29  Nick Clifton  <nickc@redhat.com>
463
464         PR 19938
465         * readelf.c (get_solaris_segment_type): New function.
466         (get_segment_type): Call it.
467
468 2016-04-28  Nick Clifton  <nickc@redhat.com>
469
470         * po/zh_CN.po: Updated Chinese (simplified) translation.
471
472 2016-04-28  Nick Clifton  <nickc@redhat.com>
473
474         PR target/19722
475         * testsuite/binutils-all/aarch64/illegal.s: New test.
476         * testsuite/binutils-all/aarch64/illegal.d: New test driver.
477
478 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
479
480         * resres.c: Likewise.
481
482 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
483
484         * Makefile.in: Regenerated with automake 1.11.6.
485         * aclocal.m4: Likewise.
486         * doc/Makefile.in: Likewise.
487
488 2016-04-14  Nick Clifton  <nickc@redhat.com>
489
490         PR target/19938
491         * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
492         string sections possibly having the SHF_STRINGS flag bit set.
493         * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
494         * testsuite/binutils-all/readelf.s: Likewise.
495         * testsuite/binutils-all/readelf.s-64: Likewise.
496         * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
497         * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
498
499 2016-04-13  Nick Clifton  <nickc@redhat.com>
500
501         PR target/19938
502         * readelf.c (get_solaris_section_type): New function: Returns the
503         name of Solaris specific section types.
504         (get_solaris_dynamic_type): New function: Return the name of
505         Solaris specific dynamic types.
506         (get_dynamic_type): Use get_solaris_dynamic_type.
507         (get_section_type_name): Use get_solaris_section_type.
508         (get_solaris_symbol_visibility): New function: Returns Solaris
509         specific symbol visibilities.
510         (print_dynamic_symbol): Use get_solaris_symbol_visibility.
511         (process_symbol_table): Likewise.
512
513 2016-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
514
515         * dwarf.h (init_dwarf_regnames_s390): Declare.
516         * dwarf.c (dwarf_regnames_s390): New.
517         (init_dwarf_regnames_s390): New.
518         (init_dwarf_regnames): Call it.
519         * objdump.c (dump_dwarf): Likewise.
520
521 2016-04-11  Maciej W. Rozycki  <macro@imgtec.com>
522
523         * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
524         * testsuite/binutils-all/mips/mips16-undecoded.s: New test
525         source.
526         * testsuite/binutils-all/mips/mips.exp: Run the new test.
527
528 2016-04-04  Nick Clifton  <nickc@redhat.com>
529
530         PR 19872
531         * dwarf.c (display_debug_aranges): Skip warning about unrecognised
532         version number if the version is zero.
533
534 2016-03-29  Alan Modra  <amodra@gmail.com>
535
536         * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
537         (get_dynamic_data): Likewise.
538
539 2016-03-22  Nick Clifton  <nickc@redhat.com>
540
541         PR 19851
542         * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
543         with run time size check.
544
545         * configure: Regenerate.
546
547 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
548
549         * readelf.c (decode_ARC_machine_flags): Handle nps400.
550
551 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
552
553         * readelf.c (get_machine_flags): Move arc processing into...
554         (decode_ARC_machine_flags): ... new function.  Remove use of
555         EF_ARC_CPU_GENERIC, change default case from "generic arc" to
556         "unknown arc".  Merged ABI printing between two machine types.
557
558 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
559
560         * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
561         to the architecture list.
562
563 2016-03-21  Nick Clifton  <nickc@redhat.com>
564
565         * dlltool.c: Replace use of alloca with call to xmalloc.
566         * dllwrap.c: Likewise.
567         * nlmconv.c: Likewise.
568         * objdump.c: Likewise.
569         * resrc.c: Likewise.
570         * winduni.c: Likewise.
571         * configure: Regenerate.
572
573 2016-03-07  Nick Clifton  <nickc@redhat.com>
574
575         PR binutils/19775
576         * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
577         Run the new proc.
578         * testsuite/binutils-all/empty: New, empty, file.
579
580 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
581
582         * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
583
584 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
585
586         PR ld/19645
587         * NEWS: Mention --elf-stt-common= for objcopy.
588         * doc/binutils.texi: Document --elf-stt-common= for objcopy.
589         * objcopy.c (do_elf_stt_common): New.
590         (command_line_switch): Add OPTION_ELF_STT_COMMON.
591         (copy_options): Add --elf-stt-common=.
592         (copy_usage): Add --elf-stt-common=.
593         (copy_object): Also check do_elf_stt_common for ELF targets.
594         (copy_file): Handle do_elf_stt_common.
595         (copy_main): Handle OPTION_ELF_STT_COMMON.
596         * readelf.c (apply_relocations): Support STT_COMMON.
597         * testsuite/binutils-all/common-1.s: New file.
598         * testsuite/binutils-all/common-1a.d: Likewise.
599         * testsuite/binutils-all/common-1b.d: Likewise.
600         * testsuite/binutils-all/common-1c.d: Likewise.
601         * testsuite/binutils-all/common-1d.d: Likewise.
602         * testsuite/binutils-all/common-1e.d: Likewise.
603         * testsuite/binutils-all/common-1f.d: Likewise.
604         * testsuite/binutils-all/common-2.s: Likewise.
605         * testsuite/binutils-all/common-2a.d: Likewise.
606         * testsuite/binutils-all/common-2b.d: Likewise.
607         * testsuite/binutils-all/common-2c.d: Likewise.
608         * testsuite/binutils-all/common-2d.d: Likewise.
609         * testsuite/binutils-all/common-2e.d: Likewise.
610         * testsuite/binutils-all/common-2f.d: Likewise.
611         * testsuite/binutils-all/objcopy.exp
612         (objcopy_test_elf_common_symbols): New proc.
613         Run objcopy_test_elf_common_symbols for ELF targets
614
615 2016-02-16  H.J. Lu  <hongjiu.lu@intel.com>
616
617         PR binutils/19647
618         * readelf.c (get_section_type_name): Add a missing break.
619
620 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
621
622         * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
623
624 2016-02-15  Nick Clifton  <nickc@redhat.com>
625
626         * readelf.c (get_section_type_name): Add hex prefix to offsets
627         printed for LOPROC and LOOS values.  Ensure that a result is
628         always returned for the V850 target, even when an unrecognised
629         processor specific value is encountered.
630         (process_section_headers): Display key values in the order in
631         which they appear to the user.  Add the "C (compressed)" value to
632         the list.
633
634 2016-02-12  H.J. Lu  <hongjiu.lu@intel.com>
635
636         * doc/binutils.texi: Fix a typo.
637
638 2016-02-05  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
639
640         * testsuite/binutils-all/objdump.exp: Update expected default
641         architecture value for ARC binaries.
642
643 2016-02-02  H.J. Lu  <hongjiu.lu@intel.com>
644
645         PR binutils/19547
646         * testsuite/binutils-all/objcopy.exp
647         (objcopy_test_without_global_symbol): New proc.
648         Run objcopy_test_without_global_symbol.
649         * testsuite/binutils-all/pr19547.c: New file.
650
651 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
652
653         PR binutils/19523
654         * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
655         runtest.
656         * Makefile.in: Regenerated.
657         * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
658         proc.
659         Run test_gnu_debuglink for native ELF build.
660
661 2016-01-20  Nick Clifton  <nickc@redhat.com>
662
663         PR 19495
664         * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
665         do not support inserting leading underscores.
666
667 2016-01-20  Mickael Guene  <mickael.guene@st.com>
668
669         * readelf.c (get_elf_section_flags): Display y letter for section
670         with SHF_ARM_NOREAD section flag in readelf section output.
671         (process_section_headers): Add y letter in readelf section output
672         key mapping for ARM architecture.
673         * objdump.c (dump_section_header): Display NOREAD attributes as
674         well.
675         * doc/binutils.texi (objdump): Note that it is correct for
676         sections to have both the READONLY and NOREAD attributes.
677
678 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
679
680         * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
681
682 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
683
684         * readelf.c (get_freebsd_elfcore_note_type): New
685         (process_note): Add support for FreeBSD core notes.
686
687 2016-01-18  Miranda Cupertino  <Cupertino.Miranda@synopsys.com>
688             Zissulescu Claudiu  <Claudiu.Zissulescu@synopsys.com>
689
690         * readelf.c (get_machine_flags): Add support for newer ARC ELF
691         header flags.
692
693 2016-01-18  Alan Modra  <amodra@gmail.com>
694
695         * configure: Regenerate.
696
697 2016-01-17  Alan Modra  <amodra@gmail.com>
698
699         * configure: Regenerate.
700
701 2016-01-17  Alan Modra  <amodra@gmail.com>
702
703         * testsuite/lib/binutils-common.exp (is_elf_format): Return true
704         for m68hc11/12 and xgate triples.
705
706 2016-01-17  Alan Modra  <amodra@gmail.com>
707
708         * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
709
710 2016-01-01  Alan Modra  <amodra@gmail.com>
711
712         Update year range in copyright notice of all files.
713
714 For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
715 \f
716 Copyright (C) 2016 Free Software Foundation, Inc.
717
718 Copying and distribution of this file, with or without modification,
719 are permitted in any medium without royalty provided the copyright
720 notice and this notice are preserved.
721
722 Local Variables:
723 mode: change-log
724 left-margin: 8
725 fill-column: 74
726 version-control: never
727 End: