Automatic date update in version.in
[external/binutils.git] / binutils / ChangeLog
1 2018-12-11  Nick Clifton  <nickc@redhat.com>
2
3         * NEWS: Note that recursion limit has increased to 2048.
4         * doc/binutils.texi: Likewise.
5
6 2018-12-08  Alan Modra  <amodra@gmail.com>
7
8         * strings.c (unget_part_char): New function.
9         (print_strings): Use unget_part_char.  Formatting.
10         * testsuite/binutils-all/strings.exp (test_multibyte): Don't
11         use square brackets in fail message.  Expect "String1\nString2".
12
13 2018-12-07  Alan Modra  <amodra@gmail.com>
14
15         * nm.c (display_rel_file): Use xrealloc to increase minisyms
16         for synthetic symbols.
17
18 2018-12-07  Nick Clifton  <nickc@redhat.com>
19
20         * addr2line.c (demangle_flags): New static variable.
21         (long_options): Add --recurse-limit and --no-recurse-limit.
22         (translate_address): Pass demangle_flags to bfd_demangle.
23         (main): Handle --recurse-limit and --no-recurse-limit options.
24         * cxxfilt.c: (long_options): Add --recurse-limit and
25         --no-recurse-limit.
26         (main): Handle new options.
27         * nm.c (demangle_flags): New static variable.
28         (long_options): Add --recurse-limit and --no-recurse-limit.
29         (main): Handle new options.
30         * objdump.c (demangle_flags): New static variable.
31         (usage): Add --recurse-limit and --no-recurse-limit.
32         (long_options): Likewise.
33         (objdump_print_symname): Pass demangle_flags to bfd_demangle.
34         (disassemble_section): Likewise.
35         (dump_dymbols): Likewise.
36         (main): Handle new options.
37         * prdbg.c (demangle_flags): New static variable.
38         (tg_variable): Pass demangle_flags to demangler.
39         (tg_start_function): Likewise.
40         * stabs.c (demangle_flags): New static variable.
41         (stab_demangle_template): Pass demangle_flags to demangler.
42         (stab_demangle_v3_argtypes): Likewise.
43         (stab_demangle_v3_arg): Likewise.
44         * doc/binutuls.texi: Document new command line options.
45         * NEWS: Mention the new feature.
46         * testsuite/config/default.exp (CXXFILT): Define if not already
47         defined.
48         (CXXFILTFLAGS): Likewise.
49         * testsuite/binutils-all/cxxfilt.exp: New file.  Runs a few
50         simple tests of the cxxfilt program.
51
52 2018-12-03  Nick Clifton  <nickc@redhat.com>
53
54         PR 23941
55         * testsuite/binutils-all/i386/compressed-1a.d: Update expected output.
56         * testsuite/binutils-all/x86-64/compressed-1a.d: Likewise.
57
58 2018-12-01  Alan Modra  <amodra@gmail.com>
59
60         PR 23946
61         * readelf.c (slurp_ia64_unwind_table): Bounds check symbol index
62         on reloc.
63         (slurp_hppa_unwind_table): Likewise.
64
65 2018-12-01  Alan Modra  <amodra@gmail.com>
66
67         PR 23945
68         * readelf.c (slurp_ia64_unwind_table): Don't call elf_ia64_reloc_type
69         needlessly.
70         (slurp_hppa_unwind_table): Use same range checks and error messages
71         as slurp_ia64_unwind_table.
72
73 2018-11-29  Nick Clifton  <nickc@redhat.com>
74
75         PR 23931
76         * objdump.c (dump_relocs_in_section): When checking for an
77         unreasonable amount of relocs in a bfd, allow for the fact that
78         the internal representation of a reloc may be bigger than the
79         external representation.
80
81 2018-11-27  Mark Wielaard  <mark@klomp.org>
82
83         PR binutils/23919
84         * readelf.c (dump_sections_as_strings): Remove bogus addralign check.
85         (dump_sections_as_bytes): Likewise.
86         (load_specific_debug_sections): Likewise.
87         * testsuite/binutils-all/dw2-3.rS: Adjust alignment.
88         * testsuite/binutils-all/dw2-3.rt: Likewise.
89
90 2018-11-20  H.J. Lu  <hongjiu.lu@intel.com>
91
92         PR binutils/23898
93         * testsuite/lib/binutils-common.exp (prune_warnings_extra):
94         Prune gaps in build notes.
95
96 2018-11-13  Francois H. Theron <francois.theron@netronome.com>
97
98         * testsuite/binutils-all/nfp/test1.d: Test for swapped operand crc[].
99
100
101 2018-11-09  Hafiz Abid Qadeer  <abidh@codesourcery.com>
102
103         * configure: Regenerate.
104
105 2018-11-09  Mathias   <m4tze@exitno.de>
106
107         * strings.c (print_strings): Check for multibyte encodings.
108         * binutils-all/strings-1.bin: New file.  Test binary for string decoding.
109         * testsuite/binutils-all/strings.exp: New file.  Test the strings program.
110         * testsuite/config/default.exp (STRINGS): Define if not provided
111         by the environment.
112         (STRINGSFLAGS): Likewise.
113
114 2018-11-07  Masatake Yamato  <yamato@redhat.com>
115
116         * objdump.c (long_options): Have the --disassemble option take an
117         optional argument.
118         (usage): Add description for the `symbol' argument to the
119         --disassemble option.
120         (disasm_sym): New file private variable.
121         (struct objdump_disasm_info): New field `symbol'.
122         (disassemble_section): Introduce `do_print' local variable
123         to control whether objdump displays the result of disassembling
124         for a symbol or not.
125         (main): Set `symbol' file private variable if the option argument
126         for the --disassemble option is given.
127         * doc/binutils.texi (objdump): Add description for the option
128         argument.
129         * NEWS: Mention the new feature.
130         * testsuite/binutils-all/objdump.exp: Add tests of the -d and
131         --disassemble=<symbol> options.
132         * testsuite/binutils-all/bintest.s: Add more symbols and code.
133         * testsuite/binutils-all/readelf.s: Update expected output.
134         * testsuite/binutils-all/readelf.ss-64: Likewise.
135         * testsuite/binutils-all/readelf.ss-mips: Likewise.
136         * testsuite/binutils-all/readelf.ss-tmips: Likewise.
137
138 2018-11-07  Nick Clifton  <nickc@redhat.com>
139
140         * po/pt.po: Updated Portuguese translation.
141
142 2018-11-06  Roman Bolshakov  <r.bolshakov@yadro.com>
143             Saagar Jha  <saagar@saagarjha.com>
144
145         PR 23728
146         * od-macho.c (printf_version): New.
147         (dump_load_command): Use it to print version. Print sdk version. Print
148         version info for watchOS and tvOS. Print LC_NOTE, LC_BUILD_VERSION.
149         (dump_buld_version): New.
150         (bfd_mach_o_platform_name): New
151         (bfd_mach_o_tool_name): New
152
153 2018-11-07  Yoshinori Sato  <ysato@users.sourceforge.jp>
154
155         * testsuite/lib/binutils-common.exp: Special section name
156         use only rx-*-elf.
157
158 2018-11-06  H.J. Lu  <hongjiu.lu@intel.com>
159
160         * doc/binutils.texi: Document --enable-x86-feature and
161         --disable-x86-feature options for elfedit.
162         * elfedit.c: Include "config.h" and <sys/mman.h>.
163         (enable_x86_features): New.
164         (disable_x86_features): Likewise.
165         (update_gnu_property): Likewise.
166         (elf_x86_feature): Likewise.
167         (process_file): Call update_gnu_property on ET_EXEC or ET_DYN
168         file.
169         (command_line_switch): Add OPTION_ENABLE_X86_FEATURE and
170         OPTION_DISABLE_X86_FEATURE.
171         (options): Add--enable-x86-feature and --disable-x86-feature.
172         (usage): Likewise.
173         (main): Handle OPTION_ENABLE_X86_FEATURE and
174         OPTION_DISABLE_X86_FEATURE.
175
176 2018-11-03  H.J. Lu  <hongjiu.lu@intel.com>
177
178         * elfedit.c (update_elf_header): Move EI_MAG? check to ...
179         (get_file_header): Here.
180
181 2018-11-02  H.J. Lu  <hongjiu.lu@intel.com>
182
183         * configure.ac (AC_FUNC_MMAP): New.
184         * config.in: Regenerated.
185         * configure: Likewise.
186
187 2018-11-02  Alan Modra  <amodra@gmail.com>
188
189         * readelf.c (process_section_headers): Don't warn on a zero
190         sh_info or sh_link for any reloc section in an executable or
191         shared library.  Do warn for .rel.dyn/.rela.dyn in ET_REL.
192
193 2018-11-01  Thomas Preud'homme  <thomas.preudhomme@linaro.org>
194
195         * testsuite/config/default.exp: Define LD, LDFLAGS and
196         ld_elf_shared_opt.
197         * testsuite/lib/binutils-common.exp (check_shared_lib_support): Moved
198         from ld-lib.exp.
199         (run_dump_test): Set ld to $LD.
200
201 2018-10-18  Nick Clifton  <nickc@redhat.com>
202
203         * doc/binutils.texi (readelf): Document alternatives to the
204         --unwind option if it is not supported for the target
205         architecture.
206
207 2018-10-16  Alan Modra  <amodra@gmail.com>
208
209         PR 23780
210         * readelf.c (display_raw_attribute): Correct assertion.
211
212 2018-10-15  Alan Modra  <amodra@gmail.com>
213
214         PR 23534
215         * addr2line.c (main): Exit with fatal error if bfd_init
216         returns an unexpected value.
217         * ar.c (main): Likewise.
218         * dlltool.c (identify_dll_for_implib): Likewise.
219         * nm.c (main): Likewise.
220         * objcopy.c (main): Likewise.
221         * objdump.c (main): Likewise.
222         * size.c (main): Likewise.
223         * strings.c (main): Likewise.
224         * windmc.c (main): Likewise.
225         * windres.c (main): Likewise.
226
227 2018-10-11  Jordan Rupprecht  <rupprecht@google.com>
228             Nick Clifton  <nickc@redhat.com>
229
230         * objcopy.c (copy_main): Issue a fata error if the
231         --keep-global-symbol(s) and the --globalize-symbol(s) options are
232         used together.
233         * doc/binutils.texi: Document that the two options are
234         incompatible.
235         * testsuite/binutils-all/copy-5.d: New test.
236         * testsuite/binutils-all/objcopy.exp: Run the new test.
237
238 2018-10-10  Helge Deller <deller@gmx.de>
239             Alan Modra  <amodra@gmail.com>
240
241         * readelf.c (hppa_process_unwind): Don't use eh_addr_size to
242         calculate number of entries.
243         (slurp_hppa_unwind_table): Don't use eh_addr_size here either.
244
245 2018-10-10  Alan Modra  <amodra@gmail.com>
246
247         * objdump.c (dump_dwarf): Set s12z eh_addr_size to 4.
248
249 2018-10-08  Andreas Schwab  <schwab@suse.de>
250
251         * readelf.c (is_32bit_pcrel_reloc): Handle R_RISCV_32_PCREL.
252
253 2018-10-03  Nick Clifton  <nickc@redhat.com>
254
255         * po/pt.po: Updated Portuguese translation.
256         * po/fr.po: Updated French translation.
257
258 2018-09-22  Alan Modra  <amodra@gmail.com>
259
260         * readelf.c (apply_relocations): Don't return FALSE for warnings.
261
262 2018-09-20  Nelson Chu <nelson.chu1990@gmail.com>
263
264         * testsuite/binutils-all/objcopy.exp: Set the unsupported reloc number
265         from 215 to 255 for NDS32.
266
267 2018-09-17  H.J. Lu  <hongjiu.lu@intel.com>
268
269         * objcopy.c (strip_specific_buffer): New.
270         (strip_unneeded_buffer): Likewise.
271         (keep_specific_buffer): Likewise.
272         (localize_specific_buffer): Likewise.
273         (globalize_specific_buffer): Likewise.
274         (keepglobal_specific_buffer): Likewise.
275         (weaken_specific_buffer): Likewise.
276         (add_specific_symbols): Add an argument to return pointer to
277         allocated buffer.
278         (copy_main): Update add_specific_symbols to update pointers to
279         allocated buffer.  Free pointers to allocated buffer before
280         return.
281
282 2018-09-17  Alan Modra  <amodra@gmail.com>
283
284         * objcopy.c (handle_remove_section_option): Don't require a dot
285         after .rela and .rel to handle a possible relocation section.
286         * testsuite/binutils-all/remove-relocs-07.s,
287         * testsuite/binutils-all/remove-relocs-07.d,
288         * testsuite/binutils-all/remove-relocs-08.d: New tests.
289         * testsuite/binutils-all/remove-relocs-01.d,
290         * testsuite/binutils-all/remove-relocs-04.d,
291         * testsuite/binutils-all/remove-relocs-05.d,
292         * testsuite/binutils-all/remove-relocs-06.d: Exclude mips64-openbsd.
293
294 2018-09-17  Alan Modra  <amodra@gmail.com>
295
296         * testsuite/lib/binutils-common.exp (is_som_format): New proc.
297         (run_dump_test): Correct target test for alternate .comm syntax.
298         (get_standard_section_names): Handle som format.
299         * testsuite/lib/utils-lib.exp (default_binutils_assemble_flags):
300         Correct target test for alternate .comm syntax.
301
302 2018-09-17  Alan Modra  <amodra@gmail.com>
303
304         * testsuite/binutils-all/strip-13mips64.s: Add section flags
305         for reloc section.
306         * testsuite/binutils-all/strip-13rel.s: Likewise.
307         * testsuite/binutils-all/strip-13rela.s: Likewise.
308         * testsuite/binutils-all/strip-14mips64.s: Likewise.
309         * testsuite/binutils-all/strip-14rel.s: Likewise.
310         * testsuite/binutils-all/strip-14rela.s: Likewise.
311         * testsuite/binutils-all/strip-15mips64.s: Likewise.
312         * testsuite/binutils-all/strip-15rel.s: Likewise.
313         * testsuite/binutils-all/strip-15rela.s: Likewise.
314
315 2018-09-17  Nick Clifton  <nickc@redhat.com>
316
317         * testsuite/binutils-all/compress.exp: Rename second "objcopy
318         zlib-gnu compress debug sections 3" test to "objcopy zlib-gabi
319         compress debug sections 3" and use gabi object files instead
320         of gnu object files.
321         * testsuite/binutils-all/objcopy.exp: Add suffix to the names
322         of the "ELF group" tests.
323         * testsuite/binutils-all/readelf.exp (proc readelf_find_size):
324         Add an iteration parameter and include it in the name of the
325         test.  Update callers to include an iteration count.
326
327 2018-09-15  Alan Modra  <amodra@gmail.com>
328
329         * testsuite/binutils-all/add-symbol.d: Add "section_subst: no".
330         * testsuite/binutils-all/elfedit.exp: Don't set tempfile or copyfile.
331         * testsuite/binutils-all/symbols-1.d,
332         * testsuite/binutils-all/symbols-2.d,
333         * testsuite/binutils-all/symbols-3.d,
334         * testsuite/binutils-all/symbols-4.d: Quote '*' and '!'.
335         * testsuite/binutils-all/add-empty-section.d,
336         * testsuite/binutils-all/add-section.d,
337         * testsuite/binutils-all/elfedit.exp,
338         * testsuite/binutils-all/note-1.d,
339         * testsuite/binutils-all/pr23633.d: Add $subdir after $srcdir.
340         * testsuite/config/default.exp (AS, ASFLAGS): Define.
341         * testsuite/config/hppa.sed: Handle all common symbols.
342         * testsuite/lib/binutils-common.exp (run_dump_test): New proc,
343         merged from three other versions.
344         (slurp_options, file_contents, set_file_contents): Likewise.
345         (big_or_little_endian, get_standard_section_names): Likewise.
346         * testsuite/lib/utils-lib.exp (run_dump_test): Delete.
347         (slurp_options, proc file_contents): Delete.
348         (get_standard_section_names): Delete.
349
350 2018-09-15  Alan Modra  <amodra@gmail.com>
351
352         * testsuite/binutils-all/copy-2.d,
353         * testsuite/binutils-all/copy-3.d,
354         * testsuite/binutils-all/copy-4.d,
355         * testsuite/binutils-all/elfedit-1.d,
356         * testsuite/binutils-all/note-1.d,
357         * testsuite/binutils-all/note-2-64.d,
358         * testsuite/binutils-all/strip-11.d,
359         * testsuite/binutils-all/strip-13.d,
360         * testsuite/binutils-all/strip-14.d,
361         * testsuite/binutils-all/testranges.d,
362         * testsuite/binutils-all/x86-64/pr23494a-x32.d,
363         * testsuite/binutils-all/x86-64/pr23494a.d,
364         * testsuite/binutils-all/x86-64/pr23494b-x32.d,
365         * testsuite/binutils-all/x86-64/pr23494b.d,
366         * testsuite/binutils-all/x86-64/pr23494c-x32.d,
367         * testsuite/binutils-all/x86-64/pr23494c.d,
368         * testsuite/binutils-all/x86-64/pr23494d-x32.d,
369         * testsuite/binutils-all/x86-64/pr23494d.d,
370         * testsuite/binutils-all/x86-64/pr23494e-x32.d,
371         * testsuite/binutils-all/x86-64/pr23494e.d,
372         * testsuite/lib/utils-lib.exp (run_dump_test): Replace not-target
373         and not-skip with notarget and noskip.
374
375 2018-09-15  Alan Modra  <amodra@gmail.com>
376
377         * testsuite/binutils-all/group-7a.d,
378         * testsuite/binutils-all/group-7b.d,
379         * testsuite/binutils-all/group-7c.d,
380         * testsuite/binutils-all/symbols-1.d,
381         * testsuite/binutils-all/symbols-2.d,
382         * testsuite/binutils-all/symbols-3.d,
383         * testsuite/binutils-all/symbols-4.d: Remove DUMPPROG.
384
385 2018-09-14  Alan Modra  <amodra@gmail.com>
386
387         PR binutils/23633
388         * testsuite/binutils-all/pr23633.d: Don't fail when assembler
389         generates sections other than .text.
390
391 2018-09-13  H.J. Lu  <hongjiu.lu@intel.com>
392
393         PR binutils/23633
394         * testsuite/binutils-all/objcopy.exp: Run pr23633.
395         * testsuite/binutils-all/pr23633.d: New file.
396         * testsuite/binutils-all/pr23633.list: Likewise.
397         * testsuite/binutils-all/pr23633.s: Likewise.
398
399 2018-09-13  Nick Clifton  <nickc@redhat.com>
400
401         PR 23633
402         * objcopy.c (add_specific_symbols): Do not free the buffer at the
403         end of the function.
404
405 2018-09-10  Alan Modra  <amodra@gmail.com>
406
407         PR binutils/23611
408         * objcopy.c (handle_remove_section_option): Consider .rela and
409         .rel sections for stripping directly as well as attached to the
410         associated section they relocate.
411         * doc/binutils.texi (remove-relocations): Specify that this
412         option removes non-dynamic relocation sections.
413         * testsuite/binutils-all/objcopy.exp
414         (objcopy_remove_relocations_from_executable): New test.
415
416 2018-09-03  Nick Clifton  <nickc@redhat.com>
417
418         * po/ja.po: Updated Japanese translation.
419
420 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
421
422         * testsuite/binutils-all/readelf.s-64: Adjusted for
423         .note.gnu.property section.
424         * testsuite/binutils-all/strip-3.d: Also strip
425         .note.gnu.property section.
426
427 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
428
429         * testsuite/binutils-all/i386/compressed-1b.d: Pass
430         -mx86-used-note=no to assembler.
431         * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
432         * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
433         * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
434         * testsuite/binutils-all/i386/empty.d: Pass -mx86-used-note=yes
435         to assembler and update expected output from "readelf -n".
436         * testsuite/binutils-all/i386/ibt.d: Likewise.
437         * testsuite/binutils-all/i386/pr21231a.d: Likewise.
438         * testsuite/binutils-all/i386/pr21231b.d: Likewise.
439         * testsuite/binutils-all/i386/shstk.d: Likewise.
440         * testsuite/binutils-all/x86-64/empty-x32.d: Likewise.
441         * testsuite/binutils-all/x86-64/empty.d: Likewise.
442         * testsuite/binutils-all/x86-64/ibt-x32.d: Likewise.
443         * testsuite/binutils-all/x86-64/ibt.d: Likewise.
444         * testsuite/binutils-all/x86-64/pr21231a.d: Likewise.
445         * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
446         * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
447         * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
448         * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
449         * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
450         * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
451         * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
452         * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
453         * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
454         * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
455         * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
456         * testsuite/binutils-all/x86-64/shstk-x32.d: Likewise.
457         * testsuite/binutils-all/x86-64/shstk.d: Likewise.
458
459 2018-08-30  H.J. Lu  <hongjiu.lu@intel.com>
460
461         * readelf.c (process_section_headers): Treat SHT_FINI_ARRAY and
462         SHT_PREINIT_ARRAY as relocatable sections.
463
464 2018-08-30  Chenghua Xu  <paul.hua.gm@gmail.com>
465
466         * MAINTAINERS: Add myself as a MIPS port maintainer.
467
468 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
469
470         * NEWS: Mention Loongson 2K1000 proccessor support.
471         * readelf.c (get_machine_flags): Handle gs264e.
472
473 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
474
475         * NEWS: Mention Loongson 3A2000/3A3000 proccessor support.
476         * readelf.c (get_machine_flags): Handle gs464e.
477
478 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
479
480         * NEWS: Mention Loongson 3A1000 proccessor support.
481         * readelf.c (get_machine_flags): Rename loongson-3a to gs464.
482         (print_mips_isa_ext): Delete AFL_EXT_LOONGSON_3A.
483
484 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
485
486         * readelf.c (print_mips_ases): Add Loongson EXT2 extension.
487
488 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
489
490          * readelf.c (print_mips_ases): Add Loongson EXT extension.
491
492 2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
493
494         * readelf.c (print_mips_ases): Add CAM extension.
495
496 2018-08-27  H.J. Lu  <hongjiu.lu@intel.com>
497
498         * readelf.c (decode_x86_isa): Print <None> if bitmask only
499         contains the GNU_PROPERTY_X86_UINT32_VALID bit.
500         (decode_x86_feature_1): Likewise.
501         (decode_x86_feature_2): Likewise.
502         (print_gnu_property_note): Don't mask out the
503         GNU_PROPERTY_X86_UINT32_VALID bit.
504         * testsuite/binutils-all/i386/pr21231b.d: Updated.
505         * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
506
507 2018-08-27  H.J. Lu  <hongjiu.lu@intel.com>
508
509         * readelf.c (decode_x86_compat_isa): Break multi-statement line.
510         (decode_x86_isa): Likewise.
511         (decode_x86_feature_2): Likewise.
512
513 2018-08-25  H.J. Lu  <hongjiu.lu@intel.com>
514
515         PR ld/23499
516         * readelf.c (get_symbol_version_string): Return _("<corrupt>")
517         for corrupt symbol version info.
518
519 2018-08-24  H.J. Lu  <hongjiu.lu@intel.com>
520
521         * readelf.c (decode_x86_compat_isa): New function.
522         (decode_x86_feature_2): Likewise.
523         (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
524         (decode_x86_feature): Renamed to ...
525         (decode_x86_feature_1): This.  Remove the type argument.
526         (print_gnu_property_note): Handle X86_COMPAT_ISA_1_USED,
527         X86_COMPAT_ISA_1_NEEDED, X86_UINT32_AND_LO, X86_UINT32_AND_HI,
528         X86_UINT32_OR_LO, X86_UINT32_OR_HI, X86_UINT32_OR_AND_LO and
529         X86_UINT32_OR_AND_HI instead of X86_ISA_1_USED, X86_ISA_1_NEEDED
530         and X86_FEATURE_1_AND.
531         * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
532         GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
533         values.
534         * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
535         * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
536         * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
537         * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
538         * testsuite/binutils-all/i386/pr21231b.d: Updated.
539         * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
540         * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
541         * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
542         * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
543         * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
544         * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
545         * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
546         * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
547         * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
548
549 2018-08-24  H.J. Lu  <hongjiu.lu@intel.com>
550
551         * readelf.c (print_gnu_property_note): Check the
552         GNU_PROPERTY_X86_UINT32_VALID bit for invalid GNU property note.
553
554 2018-08-23  Alan Modra  <amodra@gmail.com>
555
556         * readelf.c (get_ppc64_symbol_other): Return NULL if st_other
557         field contains unrecognised or reserved values.  Handle
558         localentry:1 value.
559
560 2018-08-23  H.J. Lu  <hongjiu.lu@intel.com>
561
562         PR ld/23536
563         * Makefile.am (development.exp): New target.
564         (EXTRA_DEJAGNU_SITE_CONFIG): New.
565         (DISTCLEANFILES): Add development.exp.
566         * Makefile.in: Regenerated.
567         * testsuite/binutils-all/objcopy.exp (strip_test): Call
568         prune_warnings to prune BFD output.
569         (strip_test_with_saving_a_symbol): Likewise.
570         (objcopy_test_without_global_symbol): Likewise.
571         * testsuite/lib/binutils-common.exp (prune_warnings_extra):
572         New proc.
573         (prune_warnings): Likewise.
574
575 2018-08-23  H.J. Lu  <hongjiu.lu@intel.com>
576
577         * README-how-to-make-a-release: Document setting "experimental"
578         to false.
579
580 2018-08-22  Alan Modra  <amodra@gmail.com>
581
582         * readelf.c (process_file_header): Assign updated values from
583         section_header[0] fields to e_phnum, e_shnum and e_shstrndx
584         during printing of header.  Correct e_shstrndx range check.
585         Remove unnecessary casts and use %u rather than %ld for
586         unsigned int header fields.  Don't print a random %lx when
587         reporting an unknown EI_VERSION.
588
589 2018-08-21  Nick Clifton  <nickc@redhat.com>
590
591         * MAINTAINERS: Note that Arnold Metselaar has retired as the z80
592         maintainer.
593
594 2018-08-21  L. Simon  <l.simon@samsung.com>
595
596         PR 23531
597         * readelf.c (hppa_process_unwind): Only dump the unwind table if
598         the data was successfully read in.
599
600 2018-08-18  Alan Modra  <amodra@gmail.com>
601
602         * testsuite/lib/binutils-common.exp (is_elf64): Use directory of
603         input file for readelf.out.
604         (is_rela): New proc.
605         * testsuite/binutils-all/objcopy.exp (elf64): Set new variable
606         from first result of is_elf64 test.
607         (reloc_format): Set using is_rela.
608         (strip-13): Pass RELOC and ELF64 to assembler.
609         (strip-14, strip-15): Use elf64 rather than calling is_elf64 again.
610         * testsuite/binutils-all/strip-13.d: Run for more targets.
611         * testsuite/binutils-all/strip-13mips64.s: Use RELOC and set
612         addend to zero.
613         * testsuite/binutils-all/strip-13rel.s: Use RELOC and ELF64.
614         Don't add _NONE reloc.
615         * testsuite/binutils-all/strip-13rela.s: Likewise.
616
617 2018-08-10  H.J. Lu  <hongjiu.lu@intel.com>
618
619         PR binutils/23494
620         * testsuite/binutils-all/x86-64/pr23494c.s: New file.
621         * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
622         * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
623
624 2018-08-10  H.J. Lu  <hongjiu.lu@intel.com>
625
626         * testsuite/binutils-all/x86-64/pr23494a-x32.d: Skip nacl
627         targets.
628         * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
629         * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
630         * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
631         * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
632         * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
633         * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
634         * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
635
636 2018-08-08  H.J. Lu  <hongjiu.lu@intel.com>
637
638         PR binutils/23494
639         * testsuite/binutils-all/x86-64/pr23494a-x32.d: New file.
640         * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
641         * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
642         * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
643         * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
644         * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
645         * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
646         * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
647         * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
648         * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
649
650 2018-08-08  Kevin Buettner  <kevinb@redhat.com>
651
652         * dwarf.c (decode_location_expresion): Add case for
653         DW_OP_GNU_variable_value.
654
655 2018-08-06  Claudiu Zissulescu  <claziss@synopsys.com>
656
657         * readelf.c (display_arc_attribute): Print Tag_ARC_ATR_version.
658
659 2018-08-03  Nick Clifton  <nickc@redhat.com>
660
661         * objcopy.c (merge_gnu_build_notes): Delete empty notes.  Merge
662         identical function notes.
663
664 2018-08-01  Nick Clifton  <nickc@redhat.com>
665
666         * README-how-to-make-a-release: Add note about regenerating the
667         info files prior to the release.
668
669 2018-07-30  Andrew Jenner  <andrew@codesourcery.com>
670
671         * MAINTAINERS (C-SKY): Add Yunhai Shang as co-maintainer.
672
673 2018-07-30  Andrew Jenner  <andrew@codesourcery.com>
674
675         * MAINTAINERS (C-SKY): Add Lifang Xia as maintainer.
676
677 2018-07-30  Andrew Jenner  <andrew@codesourcery.com>
678
679         * readelf.c: Include elf/csky.h.
680         (guess_is_rela): Handle EM_CSKY.
681         (dump_relocations): Likewise.
682         (get_machine_name): Likewise.
683         (is_32bit_abs_reloc): Likewise.
684
685 2018-07-25  Nick Clifton  <nickc@redhat.com>
686
687         * rdcoff.c (parse_coff_struct_type): Free fields array upon early
688         exit.
689         (parse_coff_enum_type): Free names and vals arrays upon early
690         exit.
691         * rddbg.c (read_section_stabs_debugging_info): Free shandle and
692         strings and stabs arrays upon early exit.
693         * readelf.c (get_32bit_section_headers): Free shdrs structure upon
694         early exit.
695         (get_64bit_section_headers): Likewise.
696         (get_32bit_elf_symbols): Generate an error if multiple symbol
697         table index sections are associated with the same symbol section.
698         (get_64bit_elf_symbols): Likewise.
699         (process_dynamic_section): Generate an error if there are multiple
700         dynamic symbol table sections, multiple dynamic string tables or
701         multiple dynamic symbol information sections.
702
703 2018-07-24  Nick Clifton  <nickc@redhat.com>
704
705         * po/sv.po: Updated Swedish translation.
706
707 2018-07-24  Alan Modra  <amodra@gmail.com>
708
709         PR 23431
710         * dwarf.c (display_formatted_table): Replace "what" parameter
711         with "is_dir".  Expand messages.  Fix capitalisation.
712         * testsuite/binutils-all/dw5.W: Update expected output.
713
714 2018-07-24  Alan Modra  <amodra@gmail.com>
715
716         PR 23430
717         * elfcomm.h (struct archive_info): Rename uses_64bit_indicies
718         to uses_64bit_indices.
719         * elfcomm.c (setup_archive): Update uses of above.
720         * readelf.c (process_archive): Likewise.
721         (get_section_type_name): Rename indicies to indices.
722         (get_32bit_elf_symbols, get_64bit_elf_symbols): Likewise.
723         (process_section_groups): Likewise.
724
725 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
726
727         * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
728         ISA maintenance.
729
730 2018-07-20  Nick Clifton  <nickc@redhat.com>
731
732         * objcopy.c (add_specific_symbols): Free buffer on exit.
733         (add_redefine_syms_file): Close file handle on exit.
734         (copy_object): Close file handle on early exit.
735         Free buffer on early exit.
736         Free gaps buffers once they are no longer needed.
737         * dwarf.c (display_debug_frames): Free allocated memory on exit.
738         (load_separate_debug_info): Free allocate memory on early exit.
739
740 2018-07-20  Chenghua Xu  <paul.hua.gm@gmail.com>
741             Maciej W. Rozycki  <macro@mips.com>
742
743         * readelf.c (print_mips_ases): Add MMI extension.
744
745 2018-07-19  DJ Delorie  <dj@redhat.com>
746
747         * MAINTAINERS (RL78, RX): Remove myself as maintainer.
748
749 2018-07-19  Nick Clifton  <nickc@redhat.com>
750
751         * dwarf.c (read_cie): Free allocated memory before returning with
752         a failure result.
753
754 2018-07-16  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
755
756         * readelf.c (get_note_type): Fix typo in NT_PPC_TM_CVSX note
757         description.
758
759 2018-07-16  Nick Clifton  <nickc@redhat.com>
760
761         * README-how-to-make-a-release: Add note to check for new top
762         level files and add them to the src-release.sh script.
763
764 2018-07-14  Nick Clifton  <nickc@redhat.com>
765
766         * README-how-to-make-a-release: Updated with corrections based on
767         the 2.31 release experience.
768
769 2018-07-12  Francois H. Theron  <francois.theron@netronome.com>
770
771         * readelf.c (process_section_headers): Don't print section type
772         twice for --section-details.
773
774 2018-07-10  Alan Modra  <amodra@gmail.com>
775
776         * testsuite/lib/binutils-common.exp (supports_gnu_unique): Return
777         zero for xgate.
778
779 2018-07-06  Nick Clifton  <nickc@redhat.com>
780
781         * readelf.c (same_section): New function.
782         (print_gnu_build_attribute_description): Do not complain about
783         gaps that cross a section boundary.
784
785 2018-07-05  Nick Clifton  <nickc@redhat.com>
786
787         * po/bg.po: Updated Bulgarian translation.
788
789 2018-07-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
790
791         * NEWS: Use command-line consistently when used in a compount word.
792         * doc/binutils.texi: Likewise and fix trailing whitespace on same
793         line.
794
795 2018-06-26  Nick Clifton  <nickc@redhat.com>
796
797         * po/sv.po: Updated Swedish translation.
798         * po/uk.po: Updated Ukranian translation.
799
800 2018-06-26  Nick Clifton  <nickc@redhat.com>
801
802         * doc/binutils.texi: Fix spelling mistakes.
803         * README--how-to-make-a-release: Likewise.
804
805 2018-06-25  Tom Tromey  <tom@tromey.com>
806
807         * dwarf-mode.el (dwarf-mode-syntax-table): New variable.
808         Bump version number.
809
810 2018-06-24  Nick Clifton  <nickc@redhat.com>
811
812         * README-how-to-make-a-release: Update with experiences from
813         making 2.31 branch.
814         * po/binutils.pot: Regenerate.
815         * configure: Regenerate.
816
817 2018-06-24  Nick Clifton  <nickc@redhat.com>
818
819         2.31 branch created.
820         * NEWS: Add marker for 2.31.
821
822 2018-06-21  Alan Modra  <amodra@gmail.com>
823
824         * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
825         * doc/Makefile.in: Regenerate.
826
827 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
828
829         * configure.ac: Remove AC_PREREQ.
830         * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add
831         info-in-builddir no-texinfo.tex.
832         * Makefile.in: Re-generate.
833         * aclocal.m4: Re-generate.
834         * config.in: Re-generate.
835         * configure: Re-generate.
836         * doc/Makefile.in: Re-generate.
837
838 2018-06-19  Andreas Schwab  <schwab@suse.de>
839
840         * readelf.c (is_16bit_abs_reloc): Handle R_RISCV_SET16.
841         (is_8bit_abs_reloc): New function.
842         (is_6bit_abs_reloc): New function.
843         (is_6bit_inplace_sub_reloc): New function.
844         (apply_relocations): Use them.  Handle 6-bit relocations.
845
846 2018-06-14  Faraz Shahbazker  <Faraz.Shahbazker@mips.com>
847
848         * readelf.c (print_mips_ases): Add GINV extension.
849
850 2018-06-14  H.J. Lu  <hongjiu.lu@intel.com>
851
852         PR binutils/23267
853         * readelf.c (get_symbol_version_string): Check if the first
854         symbol version is base version.
855
856 2018-06-13  Scott Egerton  <scott.egerton@imgtec.com>
857             Faraz Shahbazker  <Faraz.Shahbazker@mips.com>
858
859         * readelf.c (print_mips_ases): Add CRC.
860
861 2018-06-13  Nick Clifton  <nickc@redhat.com>
862
863         * doc/binutils.texi (objdump): Add missing closing square
864         parenthesis to listing of objcopy's command line options.
865
866 2018-06-11  Nick Clifton  <nickc@redhat.com>
867
868         * po/es.po: Updated Spanish translation.
869
870 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
871
872         * configure: Regenerated.
873
874 2018-05-31  Alan Modra  <amodra@gmail.com>
875
876         * testsuite/binutils-all/compress.exp (test_gnu_debuglink): Don't
877         set CC_FOR_TARGET.  Run test non-native.
878         * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
879         Likewise.
880         (test_follow_debuglink): Run test non-native.
881
882 2018-05-30  Ant Bikeneev  <ant.bikineev@gmail.com>
883
884         PR 23107
885         * ar.c (display_offsets): New variable.
886         (usage): Add description of 'O' operator.
887         (decode_option): Handle 'O' operator.
888         (print_descr): Pass display_offsets to print_arelt_descr.
889         * arsup.c: Update call to printy_arelt_descr.
890         * objdump.c: Likewise.
891         * bucomm.c (print_arelt_descr): If offsets parameter is true then
892         display offset of archive element within the archive.
893         * bucomm.h: Update prototype for print_arelt_descr.
894         * doc/binutils.texi: Update description of ar command.
895         * NEWS: Mention the new feature.
896         * testsuite/binutils-all/ar.exp: Add text of new feature.
897
898 2018-05-28  Alan Modra  <amodra@gmail.com>
899
900         PR 23235
901         * testsuite/binutils-all/compress.exp (test_gnu_debuglink): Return
902         unsupported rather than fail on compile errors.
903         * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
904         Likewise.  Save and restore CFLAGS_FOR_TARGET.
905
906 2018-05-18  Kito Cheng  <kito.cheng@gmail.com>
907
908         * readelf.c (get_machine_flags): Handle EF_RISCV_RVE.
909
910 2018-05-18  John Darrington  <john@darrington.wattle.id.au>
911
912         * readelf.c: Add support for s12z architecture.
913         * testsuite/lib/binutils-common.exp (is_elf_format): Excluse s12z
914         targets.
915
916 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
917
918         PR binutils/21446
919         * doc/binutils.texi (-M): Document AArch64 options.
920
921 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
922
923         PR binutils/21446
924         * doc/binutils.texi (-M): Document AArch64 options.
925         * NEWS: Document notes and warnings.
926
927 2018-05-15  Alan Modra  <amodra@gmail.com>
928
929         * testsuite/lib/binutils-common.exp (is_elf_format): Add chorus,
930         cloudabi, fuchsia, kaos and nto.  Merge netbsdelf* into *elf*,
931         and *uclinux* into *linux*.
932         * testsuite/binutils-all/objcopy.exp: Accept armeb for rel
933         strip-13 test, exclude arm-vxworks and arm-windiss.
934
935 2018-05-10  John Darrington  <john@darrington.wattle.id.au>
936
937         * readelf.c (get_machine_name): EM_S12Z - handle new case.
938
939 2018-05-09  Alan Modra  <amodra@gmail.com>
940
941         * od-macho.c (dump_unwind_encoding_x86): Fix typo in last patch.
942
943 2018-05-09  Sebastian Rasmussen  <sebras@gmail.com>
944
945         * od-macho.c (dump_unwind_encoding_x86): Adjust for macro renaming.
946
947 2018-05-08  Alan Modra  <amodra@gmail.com>
948
949         PR 23141
950         * objcopy.c (is_strip_section): Strip groups without a valid
951         signature symbol.
952
953 2018-05-07  Alan Modra  <amodra@gmail.com>
954
955         PR 23142
956         * objcopy.c (group_signature): Don't accept groups that use a
957         symbol table other than the one we've read.
958
959 2018-04-30  Francois H. Theron <francois.theron@netronome.com>
960
961         * readelf.c: Very basic support for EM_NFP and its section types.
962         * testsuite/binutils-all/nfp: New directory.
963         * testsuite/binutils-all/nfp/objdump.exp: New file.  Run new
964         tests.
965         * testsuite/binutils-all/nfp/test2_ctx8.d: New file.
966         * testsuite/binutils-all/nfp/test2_no-pc_ctx4.d: New file.
967         * testsuite/binutils-all/nfp/test1.d: New file.
968         * testsuite/binutils-all/nfp/nfp6000.nffw: New file.
969         * testsuite/binutils-all/nfp/test2_nfp6000.nffw: New file.
970         * NEWS: Mention the new support.
971
972 2018-04-27  Maciej W. Rozycki  <macro@mips.com>
973
974         * testsuite/lib/binutils-common.exp (match_target): New procedure.
975         * testsuite/lib/utils-lib.exp (run_dump_test): Use it in place
976         of `istarget' for matching with `target', `not-target', `skip'
977         and `not-skip' options.
978
979 2018-04-26  Nick Clifton  <nickc@redhat.com>
980
981         * readelf.c (is_32bit_abs_reloc): Support R_PARISC_DIR32 as a
982         32-bit absolute reloc for the HPPA target.
983         * testsuite/binutils-all/note-5.d: New test.
984         * testsuite/binutils-all/note-5.s: Source file for new test.
985         * testsuite/binutils-all/objcopy.exp: Run new test.
986
987 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
988
989         * testsuite/binutils-all/elfedit-2.d: Accept arm*-*-uclinuxfdpiceabi.
990         * testsuite/binutils-all/elfedit-3.d: Likewise.
991         * testsuite/binutils-all/objcopy.exp: Likewise.
992         * testsuite/binutils-all/strip-3.d: Likewise.
993         * testsuite/lib/binutils-common.exp: Likewise.
994
995 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
996         Mickaël Guêné  <mickael.guene@st.com>
997
998         * readelf.c (decode_ARM_machine_flags): Support EF_ARM_PIC.
999         (get_osabi_name): Support ELFOSABI_ARM_FDPIC.
1000
1001 2018-04-25  Alan Modra  <amodra@gmail.com>
1002
1003         * testsuite/binutils-all/arm/objdump.exp: Remove arm-aout and
1004         arm-coff support.
1005         * testsuite/binutils-all/objcopy.exp: Likewise.
1006         * testsuite/lib/binutils-common.exp: Likewise.
1007
1008 2018-04-18  Nick Clifton  <nickc@redhat.com>
1009
1010         PR 23062
1011         * dwarf.c (read_and_display_attr_value): Replace assertions with
1012         test and warning message.
1013
1014 2018-04-18  Alan Modra  <amodra@gmail.com>
1015
1016         * testsuite/lib/binutils-common.exp: Remove support for assorted
1017         aout targets.
1018
1019 2018-04-17  Nick Clifton  <nickc@redhat.com>
1020
1021         PR 23063
1022         * readelf.c (print_symbol): If the width is zero, return straight
1023         away.
1024
1025         PR 23064
1026         * dwarf.c (process_cu_tu_index): Test for a potential buffer
1027         overrun before copying signature pointer.
1028
1029 2018-04-17  Alan Modra  <amodra@gmail.com>
1030
1031         * readelf.c: Revert 2018-04-16 and 2018-04-11 changes.
1032
1033 2018-04-16  Alan Modra  <amodra@gmail.com>
1034
1035         * readelf.c (get_machine_name): Correct typo.
1036
1037 2018-04-16  Alan Modra  <amodra@gmail.com>
1038
1039         * configure.ac: Remove arm-epoc-pe support.
1040         * dlltool.c: Likewise.
1041         * configure: Regenerate.
1042
1043 2018-04-16  Alan Modra  <amodra@gmail.com>
1044
1045         * testsuite/lib/binutils-common.exp: Remove sparc-aout and
1046         sparc-coff support.
1047
1048 2018-04-16  Alan Modra  <amodra@gmail.com>
1049
1050         * testsuite/binutils-all/copy-2.d: Remove m68k-aout and m68k-coff
1051         support.
1052         * testsuite/binutils-all/copy-3.d: Likewise.
1053         * testsuite/binutils-all/objcopy.exp: Likewise.
1054         * testsuite/lib/binutils-common.exp: Likewise.
1055
1056 2018-04-16  Alan Modra  <amodra@gmail.com>
1057
1058         * testsuite/binutils-all/objcopy.exp: Remove sh5 and sh64 support.
1059
1060 2018-04-16  Alan Modra  <amodra@gmail.com>
1061
1062         * testsuite/binutils-all/objcopy.exp: Remove w65 support.
1063
1064 2018-04-16  Alan Modra  <amodra@gmail.com>
1065
1066         * testsuite/binutils-all/objdump.exp: Remove we32k support.
1067
1068 2018-04-16  Alan Modra  <amodra@gmail.com>
1069
1070         * MAINTAINERS (Mark Kettenis): Move to past maintainers.
1071         * testsuite/binutils-all/objdump.exp: Remove m88k support.
1072
1073 2018-04-16  Alan Modra  <amodra@gmail.com>
1074
1075         * readelf.c: Remove i370 support.
1076         * testsuite/binutils-all/objdump.exp: Likewise.
1077
1078 2018-04-16  Alan Modra  <amodra@gmail.com>
1079
1080         * testsuite/binutils-all/objcopy.exp: Remove h8500 support.
1081         * testsuite/lib/binutils-common.exp: Likewise.
1082
1083 2018-04-16  Alan Modra  <amodra@gmail.com>
1084
1085         * testsuite/binutils-all/objcopy.exp: Remove h8300-coff support.
1086
1087 2018-04-16  Alan Modra  <amodra@gmail.com>
1088
1089         * Makefile.am: Remove IEEE 695 support.
1090         * budbg.h: Likewise.
1091         * doc/binutils.texi: Likewise.
1092         * makefile.vms: Likewise.
1093         * objcopy.c: Likewise.
1094         * objdump.c: Likewise.
1095         * rddbg.c: Likewise.
1096         * ieee.c: Delete.
1097         * Makefile.in: Regenerate.
1098         * po/POTFILES.in: Regenerate.
1099
1100 2018-04-16  Alan Modra  <amodra@gmail.com>
1101
1102         * testsuite/binutils-all/copy-2.d: Remove newsos3 support.
1103         * testsuite/binutils-all/nm.exp: Likewise.
1104
1105 2018-04-16  Alan Modra  <amodra@gmail.com>
1106
1107         * .gitignore: Remove netware support.
1108         * Makefile.am: Likewise.
1109         * configure.ac: Likewise.
1110         * doc/Makefile.am: Likewise.
1111         * doc/binutils.texi: Likewise.
1112         * testsuite/binutils-all/nm.exp: Likewise.
1113         * nlmconv.c: Delete.
1114         * nlmconv.h: Delete.
1115         * nlmheader.y: Delete.
1116         * Makefile.in: Regenerate.
1117         * configure: Regenerate.
1118         * doc/Makefile.in: Regenerate.
1119         * po/POTFILES.in: Regenerate.
1120
1121 2018-04-16  Alan Modra  <amodra@gmail.com>
1122
1123         * testsuite/binutils-all/objdump.exp: Remove tahoe support.
1124
1125 2018-04-14  Alan Modra  <amodra@gmail.com>
1126
1127         * readelf.c (get_machine_name): Revert 2018-04-11 change.
1128
1129 2018-04-12  Nick Clifton  <nickc@redhat.com>
1130
1131         PR 23050
1132         * readelf.c (process_dynamic_section): Correct dynamic string
1133         table size calculation.
1134
1135 2018-04-11  Alan Modra  <amodra@gmail.com>
1136
1137         * ieee.c: Remove i960 support.
1138         * od-macho.c: Remove i860 support.
1139         * readelf.c: Remove i860 and i960 support.
1140         * testsuite/binutils-all/objcopy.exp: Likewise.
1141         * testsuite/binutils-all/objdump.exp: Likewise.
1142         * testsuite/lib/binutils-common.exp: Likewise.
1143
1144 2018-04-11  Maciej W. Rozycki  <macro@mips.com>
1145
1146         * testsuite/lib/binutils-common.exp (is_elf_format): Also return
1147         1 for `*-*-lynxos*' and `*-*-symbianelf*' targets.
1148
1149 2018-04-10  Alan Modra  <amodra@gmail.com>
1150
1151         * testsuite/binutils-all/objcopy.exp (strip-14, strip-15): Choose
1152         reloc=11 for pru and reloc=50 for nds32.
1153         * testsuite/binutils-all/strip-15.d: Accept 0xb reloc number.
1154
1155 2018-04-09  Maciej W. Rozycki  <macro@mips.com>
1156
1157         * testsuite/binutils-all/strip-15.d: New test.
1158         * testsuite/binutils-all/strip-15rel.s: New test source.
1159         * testsuite/binutils-all/strip-15rela.s: New test source.
1160         * testsuite/binutils-all/strip-15mips64.s: New test source.
1161         * testsuite/binutils-all/objcopy.exp: Run the new test.
1162
1163 2018-04-09  Maciej W. Rozycki  <macro@mips.com>
1164
1165         * testsuite/binutils-all/strip-14.d: New test.
1166         * testsuite/binutils-all/strip-14rel.s: New test source.
1167         * testsuite/binutils-all/strip-14rela.s: New test source.
1168         * testsuite/binutils-all/strip-14mips64.s: New test source.
1169         * testsuite/binutils-all/objcopy.exp: Run the new test.
1170
1171 2018-04-06  Tom Tromey  <tom@tromey.com>
1172
1173         * dwarf.c (read_and_display_attr_value): Add missing DW_LANG
1174         constants from DWARF 5.
1175
1176 2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1177
1178         PR gas/22318
1179         * configure: Regenerated.
1180
1181 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
1182
1183         * testsuite/binutils-all/strip-13mips64.s: Use `.dc.l' rather
1184         than `.dc.w' in second relocation.
1185
1186 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
1187
1188         * testsuite/binutils-all/strip-13.d: Also expect `unsupported
1189         relocation type 0x8f' error message.
1190
1191 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
1192
1193         * testsuite/binutils-all/strip-13.s: Rename to...
1194         * testsuite/binutils-all/strip-13rela.s: ... this.
1195         * testsuite/binutils-all/strip-13rel.s: New test source.
1196         * testsuite/binutils-all/strip-13mips64.s: New test source.
1197         * testsuite/binutils-all/strip-13.d: Remove `arm-*', `d10v-*',
1198         `dlx-*' and `xgate-*' from `not-target' list.  Add `m6811-*' and
1199         `m68hc11-*' to `not-target' list.
1200         * testsuite/binutils-all/objcopy.exp: Switch between sources for
1201         `strip-13'.
1202
1203 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
1204
1205         * testsuite/binutils-all/strip-13.s: Use 143 (0x8f) rather than
1206         241 (0xf1) for the relocation number and RELA addend.
1207         * testsuite/binutils-all/strip-13.d: Remove `hppa*-*' from the
1208         `not-target' list.
1209
1210 2018-04-04  John David Anglin  <danglin@gcc.gnu.org>
1211
1212         * MAINTAINERS: Update my e-mail address.
1213
1214 2018-04-04  Nick Clifton  <nickc@redhat.com>
1215
1216         * MAINTAINERS: Move Jason Eckhardt to past maintainers section.
1217
1218 2018-03-23  Nick Clifton  <nickc@redhat.com>
1219
1220         * readelf.c (get_symbol_for_build_attribute): Skip ARM mapping
1221         symbols.
1222         (print_gnu_build_attribute_description): If no file start symbol
1223         could be found, look for one two bytes into the file.
1224         * testsuite/binutils-all/note-4-64.s: Set the address of the file
1225         start symbol to two bytes into the file.
1226         * testsuite/binutils-all/note-4-32.s: Likewise.
1227
1228 2018-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1229
1230         * readelf.c (process_dynamic_section): Also dump DF_1_KMOD,
1231         DF_1_WEAKFILTER and DF_1_NOCOMMON.
1232
1233 2018-03-20  Nick Clifton  <nickc@redhat.com>
1234
1235         * po/es.po: Updated Spanish translation.
1236         * po/ru.po: Updated Russian translation.
1237
1238 2018-03-13  Nick Clifton  <nickc@redhat.com>
1239
1240         PR 22957
1241         * stabs.c (pop_binincl): Fail if the file index is off the end of
1242         the stack.
1243
1244 2018-03-13  Nick Clifton  <nickc@redhat.com>
1245
1246         PR 22955
1247         * stabs.c (parse_number): Add p_end parameter and use it to check
1248         the validity of the pp parameter.  Add checks to prevent walking
1249         off the end of the string buffer.
1250         (parse_stab_string): Likewise.
1251         (parse_stab_type): Likewise.
1252         (parse_stab_type_number): Likewise.
1253         (parse_stab_range_type): Likewise.
1254         (parse_stab_sun_builtin_type): Likewise.
1255         (parse_stab_sun_floating_type): Likewise.
1256         (parse_stab_enum_type): Likewise.
1257         (parse_stab_struct_type): Likewise.
1258         (parse_stab_baseclasses): Likewise.
1259         (parse_stab_struct_fields): Likewise.
1260         (parse_stab_cpp_abbrev): Likewise.
1261         (parse_stab_one_struct_field): Likewise.
1262         (parse_stab_members): Likewise.
1263         (parse_stab_tilde_field): Likewise.
1264         (parse_stab_array_type): Likewise.
1265
1266         * parse_stab: Compute the end of the string and then pass it on to
1267         individual parser functions.
1268
1269 2018-03-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
1270
1271         PR binutils/22923
1272         * binutils/readelf.c (get_ver_flags): Expand buffer to avoid
1273         overflow.
1274
1275 2018-03-07  Alan Modra  <amodra@gmail.com>
1276
1277         * configure.ac: Add objdump_private_desc_xcoff for rs6000.
1278         * configure: Regenerate.
1279
1280 2018-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1281
1282         PR binutils/22911
1283         * objdump.c (is_significant_symbol_name): Return TRUE for all
1284         .plt* sections.
1285         (find_symbol_for_address): Replace linear search with binary
1286         search on dynamic relocations.
1287
1288 2018-03-01  Nick Clifton  <nickc@redhat.com>
1289
1290         PR 22905
1291         * dwarf.c (display_debug_ranges): Check that the offset loaded
1292         from the range_entry structure is valid.
1293
1294 2018-03-01  Alan Modra  <amodra@gmail.com>
1295
1296         * configure.ac (ALL_LINGUAS): Add sr.  Sort.
1297         * configure: Regenerate.
1298
1299 2018-02-27  Nick Clifton  <nickc@redhat.com>
1300
1301         * po/pt.po: New Portuguese translation.
1302         * configure.ac (ALL_LINGUAS): Add pt.
1303         * configure: Regenerate.
1304
1305 2018-02-27  Nick Clifton  <nickc@redhat.com>
1306
1307         PR 22875
1308         * objcopy.c (copy_object): Check the error status after marking
1309         symbols used in relocations.
1310         * testsuite/binutils-all/strip-13.s: New test source file.
1311         * testsuite/binutils-all/strip-13.s: New test driver file.
1312         * testsuite/binutils-all/objcopy.exp: Run the new test.
1313
1314 2018-02-26  Alan Modra  <amodra@gmail.com>
1315
1316         * testsuite/binutils-all/mips/mips-reginfo-n32.d,
1317         * testsuite/binutils-all/mips/mips-reginfo.d: Update.
1318
1319 2018-02-23  Alan Modra  <amodra@gmail.com>
1320
1321         * testsuite/binutils-all/mips/mips-reginfo-n32.d,
1322         * testsuite/binutils-all/mips/mips-reginfo.d: Update.
1323
1324 2018-02-20  Ronald Hoogenboom  <hoogenboom30@zonnet.nl>
1325
1326         * doc/binutils.texi (objcopy): Add missing closing square
1327         parenthesis to listing of objcopy's command line options.
1328
1329 2018-02-19  Matthias Klose  <doko@debian.org>
1330
1331         * strings.c (long_options): Include-all-whitespace does not take
1332         an extra agument.
1333
1334 2018-02-13  Alan Modra  <amodra@gmail.com>
1335
1336         PR 22836
1337         * testsuite/binutils-all/group-7.s,
1338         * testsuite/binutils-all/group-7a.d,
1339         * testsuite/binutils-all/group-7b.d,
1340         * testsuite/binutils-all/group-7c.d: New tests.
1341         * testsuite/binutils-all/objcopy.exp: Run them.
1342
1343 2018-02-08  Nick Clifton  <nickc@redhat.com>
1344
1345         PR 22802
1346         * dwarf.c (load_separate_debug_file): Return early if the user is
1347         not interested in debug links.
1348
1349 2018-02-06  Nick Clifton  <nickc@redhat.com>
1350
1351         PR 22793
1352         * readelf.c (find_section): Replace assertion with test and return
1353         of NULL.
1354         (find_section_by_address): Add test of section header table
1355         existance.
1356         (find_section_by_type): Likewise.
1357         (find_section_in_set): Likewise.
1358
1359 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
1360
1361         * testsuite/binutils-all/mips/mips-reginfo.d: New test.
1362         * testsuite/binutils-all/mips/mips-reginfo-n32.d: New test.
1363         * testsuite/binutils-all/mips/mips-reginfo.s: New test source.
1364         * testsuite/binutils-all/mips/mips.exp: Run the new tests.
1365
1366 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
1367
1368         * testsuite/config/default.exp (binutils_run): Document
1369         `binutils_run_status'.
1370         * testsuite/lib/utils-lib.exp (default_binutils_run): Likewise,
1371         and set it.
1372         (run_dump_test): Add `error', `error_output', `warning' and
1373         `warning_output' options.  Update documentation accordingly.
1374
1375 2018-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
1376
1377         * dwarf.c (dwarf_regnames_riscv): New register name table.
1378         (init_dwarf_regnames_riscv): New function.
1379         (init_dwarf_regnames): Add call to initialise RiscV register
1380         names.
1381         * dwarf.h (init_dwarf_regnames_riscv): Declare.
1382         * objdump.c (dump_dwarf): Add call to initialise RiscV register
1383         names.
1384
1385 2018-02-01  Alan Modra  <amodra@gmail.com>
1386
1387         PR 22769
1388         * objdump.c (load_specific_debug_section): Check for overflow
1389         when adding one to section size for a string section terminator.
1390
1391 2018-01-30  Nick Clifton  <nickc@redhat.com>
1392
1393         PR 22734
1394         * doc/binutils.texi (nm): Update description to point out that
1395         zero-initialized values can also be shown as type B, b, S or s
1396         since they can be stored in the BSS section.
1397
1398 2018-01-30  Alan Modra  <amodra@gmail.com>
1399
1400         * objcopy.c (merge_gnu_build_notes): Use (bfd_vma) -1 as
1401         "artificially large" end address.
1402
1403 2018-01-28  Nick Clifton  <nickc@redhat.com>
1404
1405         * README-how-to-make-a-release: Add note about checking gpg key
1406         and the results of gnupload.
1407
1408 2018-01-27  Nick Clifton  <nickc@redhat.com>
1409
1410         * README-how-to-make-a-release: Add details on how to actually
1411         make the release.
1412
1413 2018-01-26  Nick Clifton  <nickc@redhat.com>
1414
1415         * README-how-to-make-a-release: Add more details on updating
1416         version numbers.
1417
1418 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
1419
1420         * doc/binutils.texi (objcopy): Fix a typo in `--rename-section'
1421         option description.
1422
1423 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
1424
1425         * MAINTAINERS: Update my company e-mail address.
1426
1427 2018-01-22  Nick Clifton  <nickc@redhat.com>
1428
1429         * po/sv.po: Updated Swedish translation.
1430
1431 2018-01-18  Nick Clifton  <nickc@redhat.com>
1432
1433         * po/bg.po: Updated Bulgarian translation.
1434
1435 2018-01-16  Joel Brobecker  <brobecker@adacore.com>
1436
1437         * README-how-to-make-a-release: Add reminder to update the
1438         branch name in gdbadmin's crontab on sourceware.
1439
1440 2018-01-16  Joel Brobecker  <brobecker@adacore.com>
1441
1442         * README-how-to-make-a-release: Remove trailing spaces.
1443
1444 2018-01-16  Nick Clifton  <nickc@redhat.com>
1445
1446         * po/fr.po: Updated French translation.
1447
1448 2018-01-15  Nick Clifton  <nickc@redhat.com>
1449
1450         * po/uk.po: Updated Ukranian translation.
1451
1452 2018-01-13  Nick Clifton  <nickc@redhat.com>
1453
1454         * README-how-to-make-a-release: Update notes.
1455         * po/binutils.pot: Regenerated.
1456
1457 2018-01-13  Nick Clifton  <nickc@redhat.com>
1458
1459         * configure: Regenerate.
1460
1461 2018-01-13  Nick Clifton  <nickc@redhat.com>
1462
1463         2.30 branch created.
1464         * NEWS: Add marker for 2.30.
1465
1466 2018-01-12  Nick Clifton  <nickc@redhat.com>
1467
1468         * README-how-to-make-a-release: Add notes on how to make the
1469         branch and prelease snapshot.
1470         * BRANCHES: Add binutils-2_29-branch.
1471
1472 2018-01-10  Nick Clifton  <nickc@redhat.com>
1473
1474         * MAINTAINERS: Note that it is now the configure.ac file and not
1475         the configure.in file that needs to be kept in sync with gcc.
1476         Add a note about sending patches for libiberty to gcc.
1477
1478 2018-01-03  Nick Clifton  <nickc@redhat.com>
1479
1480         * objcopy.c (merge_gnu_build_notes): Add cast to maximum address
1481         constants.
1482
1483 2018-01-03  Nick Clifton  <nickc@redhat.com>
1484
1485         * objcopy.c (objcopy_internal_note): New structure.
1486         (gap_exists): New function.
1487         (is_open_note): New function.
1488         (is_func_note): New function.
1489         (is_64bit): New function.
1490         (merge_gnu_build_notes): Handle v3 notes.  Do not merge
1491         if there are relocations against the notes.
1492         * readelf.c (get_note_type): Use short names for build attribute
1493         notes.
1494         (print_symbol_for_build_attribute): Rename to
1495         get_symbol_for_build_attribute.  Returns the found symbol rather
1496         than printing it.
1497         (print_gnu_build_attribute_description): Maintain address ranges
1498         for function notes as well as global notes.  Handle v3 notes.
1499         (print_gnu_build_attribute_name): Use more space for printing the
1500         name in wide mode.
1501         * testsuite/binutils-all/note-2-32.s: Use .dc.l instead of .word.
1502         Eliminate symbol references in order to remove the need for
1503         relocations.
1504         * testsuite/binutils-all/note-2-64.s: Likewise.
1505         * testsuite/binutils-all/note-3-32.s: Add a size to the note_1
1506         symbol.
1507         * testsuite/binutils-all/note-3-64.s: Likewise.
1508         * testsuite/binutils-all/mips/mips-note-2r-n32.d: Update expected
1509         output.
1510         * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
1511         * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
1512         * testsuite/binutils-all/note-2-32.d: Likewise.
1513         * testsuite/binutils-all/note-2-64.d: Likewise.
1514         * testsuite/binutils-all/note-3-32.d: Likewise.
1515         * testsuite/binutils-all/note-3-64.d: Likewise.
1516         * testsuite/binutils-all/note-4-64.s: New test.  Checks v3 notes.
1517         * testsuite/binutils-all/note-4-32.s: New test.
1518         * testsuite/binutils-all/note-4-64.d: New test result file.
1519         * testsuite/binutils-all/note-4-32.d: New test result file.
1520
1521 2018-01-03  Alan Modra  <amodra@gmail.com>
1522
1523         Update year range in copyright notice of all files.
1524
1525 For older changes see ChangeLog-2017
1526 \f
1527 Copyright (C) 2018 Free Software Foundation, Inc.
1528
1529 Copying and distribution of this file, with or without modification,
1530 are permitted in any medium without royalty provided the copyright
1531 notice and this notice are preserved.
1532
1533 Local Variables:
1534 mode: change-log
1535 left-margin: 8
1536 fill-column: 74
1537 version-control: never
1538 End: