ef923cbba15bddf9305c4d0cc20e76776852cdb6
[external/binutils.git] / binutils / ChangeLog
1 2016-11-22  Alan Modra  <amodra@gmail.com>
2
3         PR 20744
4         * NEWS: Mention PowerPC VLE relocation error.
5
6 2016-11-16  Mark Wielaard  <mark@klomp.org>
7
8         * cxxfilt.c (main): Recognize rust_demangling.
9
10 2016-11-14  Rudy  <jacky.chouchou@yandex.ru>
11
12         PR binutils/20814
13         * dlltool.c (struct export): Remove hint field.
14         (make_one_lib_file): Store the ordinal value for IDATA6 not the
15         hint.
16         (gen_lib_file): Delete reference to hint field.
17         (mangle_defs): Delete computation of hint field.
18
19 2016-11-11  Nick Clifton  <nickc@redhat.com>
20
21         PR binutils/20751
22         * nm.c (with_symbol_versions): New local variable.
23         (long_options): Add --with-symbol-versions.
24         (usage): Mention --with-symbol-versions.
25         (print_symbol): If with_symbol_versions is set then display the
26         version information associated with the symbol.
27         * NEWS: Mention the new feature.
28         * doc/binutils.texi (nm): Document the new option.
29         (objdump): Describe how symbol version information is displayed
30         for dynamic symbol dumps.
31         (readelf): Describe how symbol version information is displayed.
32         * testsuite/binutils-all/nm.exp: Add a test of the new feature.
33
34 2016-11-08  Nick Clifton  <nickc@redhat.com>
35
36         PR binutils/20794
37         * readelf.c (process_section_headers): Fix off-by-one error when
38         checking for invalid sh_link and sh_info fields.
39
40 2016-11-04  Andrew Burgess  <andrew.burgess@embecosm.com>
41
42         * objcopy.c (copy_section): Add extra calls to free for error
43         paths.
44
45 2016-11-04  Tom Tromey  <tom@tromey.com>
46
47         * dwarf-mode.el (dwarf-browse): Set default-directory.  Bump
48         version number.
49
50 2016-11-04  Palmer Dabbelt <palmer@dabbelt.com>
51
52         * MAINTAINERS: Add myself and Andrew Waterman as maintainers for
53         the RISC-V target.
54
55 2016-11-01  Palmer Dabbelt  <palmer@dabbelt.com>
56             Andrew Waterman <andrew@sifive.com>
57
58         Add support for RISC-V architecture.
59         * readelf.c (guess_is_rela): Add EM_RISCV.
60         (get_machine_name): Likewise.
61         (dump_relocations): Add support for riscv relocations.
62         (get_machine_flags): Add support for riscv flags.
63         (is_32bit_abs_reloc): Add R_RISCV_32.
64         (is_64bit_abs_reloc): Add R_RISCV_64.
65         (is_none_reloc): Add R_RISCV_NONE.
66         * testsuite/binutils-all/objdump.exp (cpus_expected): Add riscv.
67         Expect the debug_ranges test to fail.
68
69 2016-10-17  Nick Clifton  <nickc@redhat.com>
70
71         * readelf.c (apply_relocations): Fail if the symbol table section
72         linked to by the reloc section does not have either the SHT_SYMTAB
73         or SHT_DYNSYM type.
74         (print_gnu_note): Decode the contents of NT_GNU_HWCAP notes.
75         Print the contents of unknown note types.
76         (process_note): Add the file and section to the parameter list.
77         Use print_symbol to display the note name.
78         Display the contents of unknown note types.
79         (process_corefile_note_segment): Rename to process_notes_at.
80         Add section parameter.  Apply relocations to the notes when
81         loading from a section.  Display section name when processing
82         notes in a section.
83         * testsuite/binutils-all/readelf.n: Update expected output.
84
85 2016-10-17  Nick Clifton  <nickc@redhat.com>
86
87         * readelf.c (get_dynamic_type): Add DT_SYMTAB_SHNDX.
88         (get_machine_type): Add EM_CLOUDSHIELD, EM_COREA_1ST,
89         EM_COREA_2ND, EM_OPEN8, EM_VIDEOCORE5, EM_56800EX, EM_BA1, EM_BA2,
90         EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_KMX16, EM_KMX8,
91         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA,
92         EM_Z80, EM_AMDGPU, EM_RISCV.
93         (get_osabi_name): Add ELFOSABI_CLOUDABI and ELFOSABI_OPENVS.
94         (get_group_flags): Update to handle flags in the
95         GRP_MASKOS and GRP_MASKPROC ranges.
96
97 2016-10-14  Luis Machado  <lgustavo@codesourcery.com>
98
99         * testsuite/lib/utils-lib.exp (run_dump_test): Call remote_download
100         to copy file to remote host.
101
102 2016-10-11  Nick Clifton  <nickc@redhat.com>
103
104         * objdump.c (is_significant_symbol_name): New function.
105         (remove_useless_symbols): Do not remove significanr symbols.
106         (find_symbol_for_address): If an exact match for the specified
107         address has not been found, try scanning the dynamic relocs to see
108         if one of these matches the address.  If so, use the symbol
109         associated with the reloc.
110         (objdump_print_addr_with_symbol): Do not print offsets to symbols
111         with no value.
112         (disassemble_section): Only use dynamic relocs if the user
113         requested this.
114         (disassemble_data): Always load dynamic relocs if they are
115         available.
116
117 2016-10-06  Alan Modra  <amodra@gmail.com>
118
119         * dlltool.c: Spell fall through comments consistently.
120         * objcopy.c: Likewise.
121         * readelf.c: Likewise.
122         * dwarf.c: Add missing fall through comments.
123         * elfcomm.c: Likewise.
124         * sysinfo.y: Likewise.
125         * readelf.c: Likewise.  Also remove extraneous comments.
126
127 2016-10-06  Alan Modra  <amodra@gmail.com>
128
129         * cxxfilt.c (usage): Add ATTRIBUTE_NORETURN.
130         * elfedit.c (usage): Likewise.
131         * nm.c (usage): Likewise.
132         * objcopy.c (copy_usage, strip_usage): Likewise.
133         * srconv.c (show_usage): Likewise.
134         * strings.c (usage): Likewise.
135         * sysdump.c (show_usage): Likewise.
136         * srconv.c: Remove unneeded forward function declarations.
137         * strings.c: Likewise.
138         * sysdump.c: Likewise.
139
140 2016-10-06  Alan Modra  <amodra@gmail.com>
141
142         * coffdump.c (dump_coff_where): Add missing break.
143         * stabs.c (stab_xcoff_builtin_type): Likewise.
144
145 2016-09-29  Alan Modra  <amodra@gmail.com>
146
147         * readelf.c (process_arch_specific): Call process_power_specific
148         for EM_PPC64.
149
150 2016-09-26  Vlad Zakharov  <vzakhar@synopsys.com>
151
152         * Makefile.am: Replace AM_CLFAGS with AM_CFLAGS_FOR_BUILD
153         when building with CC_FOR_BUILD compiler.
154         * Makefile.in: Regenerate.
155         * configure: Likewise.
156         * doc/Makefile.in: Likewise.
157
158 2016-09-26  Alan Modra  <amodra@gmail.com>
159
160         * readelf.c (display_power_gnu_attribute): Catch truncated section
161         for all powerpc attributes.  Display long double ABI.  Don't
162         capitalize words, except for names.  Show known bits of tag values
163         when some unknown bits are present.  Whitespace fixes.
164
165 2016-09-26  Alan Modra  <amodra@gmail.com>
166
167         * nm.c (get_elf_symbol_type): Don't use sprintf with translated
168         strings, use asprintf instead.
169         (get_coff_symbol_type): Likewise.
170
171 2016-09-19  Alan Modra  <amodra@gmail.com>
172
173         * nm.c (print_symbol): Remove is_synthetic param.  Test sym->flags
174         instead.
175         (print_size_symbols, print_symbols): Adjust to suit, deleting
176         now unused synth_count param and fromsynth var.
177         (display_rel_file): Adjust, localizing synth_count.
178
179 2016-09-14  Ed Maste  <emaste@freebsd.org>
180
181         * readelf.c (process_mips_specific): Fix typo in error message.
182
183 2016-09-06  Nick Clifton  <nickc@redhat.com>
184
185         * readelf.c (request_dump_bynumber): Only call memcpy if
186         dump_sects is not NULL.
187
188 2016-08-29  H.J. Lu  <hongjiu.lu@intel.com>
189
190         * readelf.c (load_specific_debug_section): Check the external
191         compression header size.
192
193 2016-08-19  Nick Clifton  <nickc@redhat.com>
194
195         * testsuite/binutils-all/readelf.s: Adjust expected ordering of
196         sections.
197         * testsuite/binutils-all/readelf.s-64: Likewise.
198
199 2016-08-12  Nick Clifton  <nickc@redhat.com>
200
201         * readelf.c (process_symbol_table): Generate a warning if a local
202         symbol is found at and offste greater than or equal to the sh_info
203         field of it's section header.
204
205 2016-08-08  Nick Clifton  <nickc@redhat.com>
206
207         PR binutils/20440
208         * dwarf.c (display_debug_lines_decoded): Add checks for running
209         off the end of the section when populating the directory table and
210         file table.
211         (frame_display_row): Set max_regs equal to ncols.
212         * readelf.c (load_specific_debug_section): If the section is
213         compressed, but it is not big enough to hold a compression
214         header then warn and return 0.
215
216         PR binutils/20439
217         * dwarf.c (display_debug_lines_decoded): Check directory and file
218         indicies before using them to access directory and file tables.
219
220 2016-08-02  Nick Clifton  <nickc@redhat.com>
221
222         PR binutils/17512
223         * resbin.c (bin_to_res_version): Cast variables to correct type
224         for printing in error message.
225
226 2016-07-28  Nick Clifton  <nickc@redhat.com>
227
228         PR binutils/17512
229         * rescoff.c (read_coff_res_dir): Fix detection of buffer overrun.
230         * resbin.c (bin_to_res_version): Allow for the padded length of a
231         version block to be longer than the recorded length.  Skip padding
232         bytes.
233
234 2016-07-21  H.J. Lu  <hongjiu.lu@intel.com>
235
236         * configure: Regenerated.
237
238 2016-07-20  Claudiu Zissulescu  <claziss@synopsys.com>
239
240         * doc/binutils.texi (objdump): Add ARC disassembler options.
241         * testsuite/binutils-all/arc/dsp.s: New file.
242         * testsuite/binutils-all/arc/objdump.exp: Likewise.
243         * NEWS: Mention the new feature.
244
245 2016-07-20  Nick Clifton  <nickc@redhat.com>
246
247         * doc/binutils.texi (objcopy): Note that the localize symbol
248         options do not affect unique symbols.
249
250 2016-07-16  Alan Modra  <amodra@gmail.com>
251
252         * ar.c: Include plugin-api.h.
253         * nm.c: Likewise.
254
255 2016-07-16  Alan Modra  <amodra@gmail.com>
256
257         * bucomm.c: Don't include libbfd.h.
258         (endian_string, display_target_list): Delete forward declaration.
259         (display_info_table, display_target_tables): Likewise.
260         (LONGEST_ARCH): Delete.
261         (struct display_target): New.
262         (do_display_target): New function.
263         (display_target_list, display_info): Rewrite functions.
264         (display_info_table): Delete.
265         (do_info_size, do_info_header, do_info_row): New functions.
266
267 2016-07-16  Alan Modra  <amodra@gmail.com>
268
269         * elfcomm.h (HOST_WIDEST_INT): Move to..
270         * sysdep.h: ..here.
271         * od-macho.c: Don't include libbfd.h.  Do include dwarf.h
272         (dump_dyld_info_rebase): Use read_leb128 rather than
273         read_unsigned_leb128.
274         (dump_dyld_info_bind, dump_dyld_info_export_1): Likewise.
275         (dump_segment_split_info): Likewise.
276         (dump_dyld_info): Rename vars to avoid shadowing dwarf.h enums.
277         (dump_load_command): Likewise.
278
279 2016-07-16  Alan Modra  <amodra@gmail.com>
280
281         * ar.c: Don't include libbfd.h.
282         * objcopy.c: Likewise.
283         * bucomm.c (bfd_get_archive_filename): Use xmalloc rather than
284         bfd_malloc.
285
286 2016-07-15  Alan Modra  <amodra@gmail.com>
287
288         * testsuite/binutils-all/remove-relocs-01.s: Use .dc.a, not .word.
289
290 2016-07-14  Andrew Burgess  <andrew.burgess@embecosm.com>
291
292         * doc/binutils.texi (objcopy): Document 'remove-relocations'.
293         (strip): Likewise.
294         * objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
295         (enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
296         (struct option strip_options): Add 'remove-relocations'.
297         (struct option copy_options): Likewise.
298         (copy_usage): Likewise.
299         (strip_usage): Likewise.
300         (handle_remove_relocations_option): New function.
301         (discard_relocations): New function.
302         (handle_remove_section_option): New function.
303         (copy_relocations_in_section): Use discard_relocations.
304         (strip_main): Use handle_remove_section_option for
305         'remove-section', and handle 'remove-relocations' option.
306         (copy_main): Likewise.
307         * testsuite/binutils-all/objcopy.exp: Run new tests.
308         * testsuite/binutils-all/remove-relocs-01.d: New file.
309         * testsuite/binutils-all/remove-relocs-01.s: New file.
310         * testsuite/binutils-all/remove-relocs-02.d: New file.
311         * testsuite/binutils-all/remove-relocs-03.d: New file.
312         * testsuite/binutils-all/remove-relocs-04.d: New file.
313         * testsuite/binutils-all/remove-relocs-05.d: New file.
314         * testsuite/binutils-all/remove-relocs-06.d: New file.
315         * NEWS: Mention new option.
316
317 2016-07-14  Andrew Burgess  <andrew.burgess@embecosm.com>
318
319         * objcopy.c (find_section_list): Handle section patterns starting
320         with '!' being a non-matching pattern.
321         * doc/binutils.texi (objcopy): Give example of using '!' with
322         --remove-section and --only-section.
323         (strip): Give example of using '!' with --remove-section.
324         * testsuite/binutils-all/data-sections.s: New file.
325         * testsuite/binutils-all/only-section-01.d: New file.
326         * testsuite/binutils-all/remove-section-01.d: New file.
327         * testsuite/binutils-all/objcopy.exp: Run new tests.
328         * NEWS: Mention new feature.
329
330 2016-07-09  Alan Modra  <amodra@gmail.com>
331
332         PR binutils/20337
333         * objdump.c (compare_symbols): For ELF, sort same value/type
334         symbols according to size.
335
336 2016-07-05  Andre Vieria  <andre.simoesdiasvieira@arm.com>
337
338         * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
339         to SEC_ELF_NOREAD.
340         * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
341         ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
342         (process_section_headers): Rename noread to purecode.
343
344         * section.c (SEC_ELF_NOREAD): Rename to ...
345         (SEC_ELF_PURECODE): ... this.
346
347 2016-07-01  Nick Clifton  <nickc@redhat.com>
348
349         * prdbg.c (pr_enum_type): Use a buffer big enough to hold an
350         extremely large decimal value.
351         (pr_range_type): Likewise.
352         (pr_array_type): Likewise.
353         (pr_struct_field): Likewise.
354         (pr_class_baseclass): Likewise.
355         (pr_class_method_variant): Likewise.
356         (pr_tag_type): Likewise.
357         (pr_int_constant): Likewise.
358         (pr_typed_constant): Likewise.
359         (pr_variable): Likewise.
360         (pr_function_parameter): Likewise.
361         (pr_start_block): Likewise.
362         (pr_lineno): Likewise.
363         (pr_end_block): Likewise.
364         (tg_enum_type): Likewise.
365         (tg_int_constant): Likewise.
366         (tg_typed_constant): Likewise.
367         (tg_start_block): Likewise.
368
369 2016-07-01  Nick Clifton  <nickc@redhat.com>
370
371         * testsuite/binutils-all/objcopy.exp
372         (objcopy_test_without_global_symbol): Expect this test to fail on
373         the AArch64 and ARM targets, since they preserve their mapping
374         symbols.
375
376 2016-07-01  Tristan Gingold  <gingold@adacore.com>
377
378         * NEWS: Add marker for 2.27.
379
380 2016-07-30  Tristan Gingold  <gingold@adacore.com>
381
382         * doc/binutils.texi (objdump): Fix mis-placement.
383
384 2016-06-28  Nick Clifton  <nickc@redhat.com>
385
386         * testsuite/binutils-all/ar.exp: Relax previous restriction on
387         Alpha targets.  Allow ELF based Alpha targets.
388
389 2016-06-28  Maciej W. Rozycki  <macro@imgtec.com>
390
391         * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
392         the `unique_symbol' test.
393
394 2016-06-28  Alan Modra  <amodra@gmail.com>
395
396         PR 20304
397         * objdump.c (objdump_print_symname): Don't attempt to retrieve
398         version info from synthetic symbols.
399
400 2016-06-24  Alan Modra  <amodra@gmail.com>
401
402         * objcopy.c (find_section_rename): Forward declare.  Remove
403         ibfd and sec_ptr param.  Add old_name param.  Allow for NULL
404         returned_flags.  Move read of section name and flags to..
405         (setup_section): ..here.  Update find_section_rename call.
406         (filter_symbols): Rename section symbols for renamed sections.
407         (copy_object): Call filter_symbols when renamed sections.
408         * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
409         * testsuite/binutils-all/update-section.exp: Revert 96037eb0
410         mips xfail.
411         * testsuite/binutils-all/objcopy.exp (copy_executable): Use
412         is_bad_symtab.
413         (localize-hidden-1): xfail if is_bad_symtab.
414         * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
415         between mips/tmips.
416
417 2016-06-24  Alan Modra  <amodra@gmail.com>
418
419         * objdump.c (struct print_file_list): Add "max_printed".
420         (try_print_file_open): Init new field.
421         (show_line): Don't show 5 context lines when redisplaying source.
422
423 2016-06-22  Nick Clifton  <nickc@redhat.com>
424
425         * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
426         Skip bfdtest1 tests for tic30 target.
427         * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
428         target.
429         * testsuite/binutils-all/compress.exp: Expect some tests to fail
430         on the nds32.
431         * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
432         * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
433         targets.
434         * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
435         targets.
436         * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
437         if the bintest.o file was created.  Use the
438         get_standard_section_names proc to get the name of the data
439         section.
440         * testsuite/binutils-all/objdump.exp: Update regexps to allow for
441         RX section names.
442         * testsuite/binutils-all/readelf.exp: Use
443         get_standard_section_names proc to get the name of the data
444         section.
445         * testsuite/binutils-all/readelf.r: Allow for non standard text
446         section names.
447         * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
448         * testsuite/binutils-all/size.exp: Allow for non standard section
449         names.
450         * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
451         to fail on mips targets.
452         * testsuite/lib/utils-lib.exp (default_binutils_run): Use
453         get_standard_section_names proc.
454         (run_dump_test): Likewise.
455         (proc get_standard_section_names): New proc.
456
457 2016-06-22  Nick Clifton  <nickc@redhat.com>
458
459         * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
460         (process_mips_specific): Likewise.
461         (process_gnu_liblist): Likewise.
462
463 2016-06-21  Graham Markall  <graham.markall@embecosm.com>
464
465         * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
466         case.
467
468 2016-06-15  Nick Clifton  <nickc@redhat.com>
469
470         * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
471         reloc.
472
473 2016-06-14  John Baldwin  <jhb@FreeBSD.org>
474
475         * objcopy.c (do_elf_stt_common): Use correct type.
476
477 2016-06-14  Alan Modra  <amodra@gmail.com>
478
479         * ar.c: Expand uses of bfd_my_archive.
480         * size.c: Likewise.
481
482 2016-06-14  Alan Modra  <amodra@gmail.com>
483
484         PR ld/20241
485         * bucomm.c (bfd_get_archive_filename): Return file name within thin
486         archive.
487
488 2016-06-02  Nick Clifton  <nickc@redhat.com>
489
490         PR 20089
491         * objcopy.c (group_signature): Fail if the input symbol table has
492         not been loaded, or if the sh_info field of the group header is 0.
493
494         * dwarf.c (display_debug_frames): Do not display any
495         interpretation if the block consists solely of DW__CFA_NOPs.
496
497 2016-05-31  Alan Modra  <amodra@gmail.com>
498
499         * objcopy.c: Formatting, whitespace throughout.
500         (copy_main): Init newsym->othersym.
501         (parse_symflags): Make len a size_t.  Adjust uses.
502
503 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
504
505         PR binutils/14625
506         * NEWS: Mention --enable-64-bit-archive.
507
508 2016-05-18  Nick Clifton  <nickc@redhat.com>
509
510         PR 20096
511         * objcopy.c (copy_relocations_in_section): Also check for the
512         symbol pointed to by sym_ptr_ptr being NULL.
513
514 2016-05-18  Maciej W. Rozycki  <macro@imgtec.com>
515
516         * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
517         * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
518         source.
519         * testsuite/binutils-all/mips/mips.exp: Run the new test.
520
521 2016-05-18  Nick Clifton  <nickc@redhat.com>
522
523         * po/sv.po: Updated Swedish translation.
524
525 2016-05-18  Maciej W. Rozycki  <macro@imgtec.com>
526
527         * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
528         <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
529         <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
530         <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
531         <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
532         <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
533         `d_val' rather than `d_ptr' member of the dynamic entry.
534
535 2016-05-17  Maciej W. Rozycki  <macro@imgtec.com>
536
537         * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
538         procedure.
539         * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
540         with the `strip-10' test.
541
542 2016-05-16  Maciej W. Rozycki  <macro@imgtec.com>
543
544         * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
545         test for the V850.
546
547 2016-05-11  Andrew Bennett  <andrew.bennett@imgtec.com>
548
549         * readelf.c (print_mips_ases): Add DSPR3.
550
551 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
552
553         * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
554         (arm_attr_public_tags): Define DSP_extension attribute.
555
556 2016-05-10  Andrew Burgess  <andrew.burgess@embecosm.com>
557
558         * doc/binutils.texi (nm): Update description of --size-sort.
559
560 2016-05-09  Nick Clifton  <nickc@redhat.com>
561
562         PR binutils/20063
563         * readelf.c (get_32bit_section_headers): Warn if an out of range
564         sh_link or sh_info field is encountered.
565         (get_64bit_section_headers): Likewise.
566
567 2016-05-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
568
569         * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
570
571 2016-05-03  Nick Clifton  <nickc@redhat.com>
572
573         * po/sv.po: Updated Swedish translation.
574
575 2016-04-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
576
577         * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
578         PC relocation for AVR target.
579         (is_none_reloc): Return true if reloc is any of AVR diff
580         relocations.
581
582 2016-04-29  Nick Clifton  <nickc@redhat.com>
583
584         PR 19938
585         * readelf.c (get_solaris_segment_type): New function.
586         (get_segment_type): Call it.
587
588 2016-04-28  Nick Clifton  <nickc@redhat.com>
589
590         * po/zh_CN.po: Updated Chinese (simplified) translation.
591
592 2016-04-28  Nick Clifton  <nickc@redhat.com>
593
594         PR target/19722
595         * testsuite/binutils-all/aarch64/illegal.s: New test.
596         * testsuite/binutils-all/aarch64/illegal.d: New test driver.
597
598 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
599
600         * resres.c: Likewise.
601
602 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
603
604         * Makefile.in: Regenerated with automake 1.11.6.
605         * aclocal.m4: Likewise.
606         * doc/Makefile.in: Likewise.
607
608 2016-04-14  Nick Clifton  <nickc@redhat.com>
609
610         PR target/19938
611         * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
612         string sections possibly having the SHF_STRINGS flag bit set.
613         * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
614         * testsuite/binutils-all/readelf.s: Likewise.
615         * testsuite/binutils-all/readelf.s-64: Likewise.
616         * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
617         * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
618
619 2016-04-13  Nick Clifton  <nickc@redhat.com>
620
621         PR target/19938
622         * readelf.c (get_solaris_section_type): New function: Returns the
623         name of Solaris specific section types.
624         (get_solaris_dynamic_type): New function: Return the name of
625         Solaris specific dynamic types.
626         (get_dynamic_type): Use get_solaris_dynamic_type.
627         (get_section_type_name): Use get_solaris_section_type.
628         (get_solaris_symbol_visibility): New function: Returns Solaris
629         specific symbol visibilities.
630         (print_dynamic_symbol): Use get_solaris_symbol_visibility.
631         (process_symbol_table): Likewise.
632
633 2016-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
634
635         * dwarf.h (init_dwarf_regnames_s390): Declare.
636         * dwarf.c (dwarf_regnames_s390): New.
637         (init_dwarf_regnames_s390): New.
638         (init_dwarf_regnames): Call it.
639         * objdump.c (dump_dwarf): Likewise.
640
641 2016-04-11  Maciej W. Rozycki  <macro@imgtec.com>
642
643         * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
644         * testsuite/binutils-all/mips/mips16-undecoded.s: New test
645         source.
646         * testsuite/binutils-all/mips/mips.exp: Run the new test.
647
648 2016-04-04  Nick Clifton  <nickc@redhat.com>
649
650         PR 19872
651         * dwarf.c (display_debug_aranges): Skip warning about unrecognised
652         version number if the version is zero.
653
654 2016-03-29  Alan Modra  <amodra@gmail.com>
655
656         * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
657         (get_dynamic_data): Likewise.
658
659 2016-03-22  Nick Clifton  <nickc@redhat.com>
660
661         PR 19851
662         * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
663         with run time size check.
664
665         * configure: Regenerate.
666
667 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
668
669         * readelf.c (decode_ARC_machine_flags): Handle nps400.
670
671 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
672
673         * readelf.c (get_machine_flags): Move arc processing into...
674         (decode_ARC_machine_flags): ... new function.  Remove use of
675         EF_ARC_CPU_GENERIC, change default case from "generic arc" to
676         "unknown arc".  Merged ABI printing between two machine types.
677
678 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
679
680         * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
681         to the architecture list.
682
683 2016-03-21  Nick Clifton  <nickc@redhat.com>
684
685         * dlltool.c: Replace use of alloca with call to xmalloc.
686         * dllwrap.c: Likewise.
687         * nlmconv.c: Likewise.
688         * objdump.c: Likewise.
689         * resrc.c: Likewise.
690         * winduni.c: Likewise.
691         * configure: Regenerate.
692
693 2016-03-07  Nick Clifton  <nickc@redhat.com>
694
695         PR binutils/19775
696         * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
697         Run the new proc.
698         * testsuite/binutils-all/empty: New, empty, file.
699
700 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
701
702         * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
703
704 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
705
706         PR ld/19645
707         * NEWS: Mention --elf-stt-common= for objcopy.
708         * doc/binutils.texi: Document --elf-stt-common= for objcopy.
709         * objcopy.c (do_elf_stt_common): New.
710         (command_line_switch): Add OPTION_ELF_STT_COMMON.
711         (copy_options): Add --elf-stt-common=.
712         (copy_usage): Add --elf-stt-common=.
713         (copy_object): Also check do_elf_stt_common for ELF targets.
714         (copy_file): Handle do_elf_stt_common.
715         (copy_main): Handle OPTION_ELF_STT_COMMON.
716         * readelf.c (apply_relocations): Support STT_COMMON.
717         * testsuite/binutils-all/common-1.s: New file.
718         * testsuite/binutils-all/common-1a.d: Likewise.
719         * testsuite/binutils-all/common-1b.d: Likewise.
720         * testsuite/binutils-all/common-1c.d: Likewise.
721         * testsuite/binutils-all/common-1d.d: Likewise.
722         * testsuite/binutils-all/common-1e.d: Likewise.
723         * testsuite/binutils-all/common-1f.d: Likewise.
724         * testsuite/binutils-all/common-2.s: Likewise.
725         * testsuite/binutils-all/common-2a.d: Likewise.
726         * testsuite/binutils-all/common-2b.d: Likewise.
727         * testsuite/binutils-all/common-2c.d: Likewise.
728         * testsuite/binutils-all/common-2d.d: Likewise.
729         * testsuite/binutils-all/common-2e.d: Likewise.
730         * testsuite/binutils-all/common-2f.d: Likewise.
731         * testsuite/binutils-all/objcopy.exp
732         (objcopy_test_elf_common_symbols): New proc.
733         Run objcopy_test_elf_common_symbols for ELF targets
734
735 2016-02-16  H.J. Lu  <hongjiu.lu@intel.com>
736
737         PR binutils/19647
738         * readelf.c (get_section_type_name): Add a missing break.
739
740 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
741
742         * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
743
744 2016-02-15  Nick Clifton  <nickc@redhat.com>
745
746         * readelf.c (get_section_type_name): Add hex prefix to offsets
747         printed for LOPROC and LOOS values.  Ensure that a result is
748         always returned for the V850 target, even when an unrecognised
749         processor specific value is encountered.
750         (process_section_headers): Display key values in the order in
751         which they appear to the user.  Add the "C (compressed)" value to
752         the list.
753
754 2016-02-12  H.J. Lu  <hongjiu.lu@intel.com>
755
756         * doc/binutils.texi: Fix a typo.
757
758 2016-02-05  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
759
760         * testsuite/binutils-all/objdump.exp: Update expected default
761         architecture value for ARC binaries.
762
763 2016-02-02  H.J. Lu  <hongjiu.lu@intel.com>
764
765         PR binutils/19547
766         * testsuite/binutils-all/objcopy.exp
767         (objcopy_test_without_global_symbol): New proc.
768         Run objcopy_test_without_global_symbol.
769         * testsuite/binutils-all/pr19547.c: New file.
770
771 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
772
773         PR binutils/19523
774         * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
775         runtest.
776         * Makefile.in: Regenerated.
777         * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
778         proc.
779         Run test_gnu_debuglink for native ELF build.
780
781 2016-01-20  Nick Clifton  <nickc@redhat.com>
782
783         PR 19495
784         * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
785         do not support inserting leading underscores.
786
787 2016-01-20  Mickael Guene  <mickael.guene@st.com>
788
789         * readelf.c (get_elf_section_flags): Display y letter for section
790         with SHF_ARM_NOREAD section flag in readelf section output.
791         (process_section_headers): Add y letter in readelf section output
792         key mapping for ARM architecture.
793         * objdump.c (dump_section_header): Display NOREAD attributes as
794         well.
795         * doc/binutils.texi (objdump): Note that it is correct for
796         sections to have both the READONLY and NOREAD attributes.
797
798 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
799
800         * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
801
802 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
803
804         * readelf.c (get_freebsd_elfcore_note_type): New
805         (process_note): Add support for FreeBSD core notes.
806
807 2016-01-18  Miranda Cupertino  <Cupertino.Miranda@synopsys.com>
808             Zissulescu Claudiu  <Claudiu.Zissulescu@synopsys.com>
809
810         * readelf.c (get_machine_flags): Add support for newer ARC ELF
811         header flags.
812
813 2016-01-18  Alan Modra  <amodra@gmail.com>
814
815         * configure: Regenerate.
816
817 2016-01-17  Alan Modra  <amodra@gmail.com>
818
819         * configure: Regenerate.
820
821 2016-01-17  Alan Modra  <amodra@gmail.com>
822
823         * testsuite/lib/binutils-common.exp (is_elf_format): Return true
824         for m68hc11/12 and xgate triples.
825
826 2016-01-17  Alan Modra  <amodra@gmail.com>
827
828         * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
829
830 2016-01-01  Alan Modra  <amodra@gmail.com>
831
832         Update year range in copyright notice of all files.
833
834 For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
835 \f
836 Copyright (C) 2016 Free Software Foundation, Inc.
837
838 Copying and distribution of this file, with or without modification,
839 are permitted in any medium without royalty provided the copyright
840 notice and this notice are preserved.
841
842 Local Variables:
843 mode: change-log
844 left-margin: 8
845 fill-column: 74
846 version-control: never
847 End: