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