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