elf: Check for corrupt symbol version info
[external/binutils.git] / binutils / ChangeLog
1 2018-08-25  H.J. Lu  <hongjiu.lu@intel.com>
2
3         PR ld/23499
4         * readelf.c (get_symbol_version_string): Return _("<corrupt>")
5         for corrupt symbol version info.
6
7 2018-08-24  H.J. Lu  <hongjiu.lu@intel.com>
8
9         * readelf.c (decode_x86_compat_isa): New function.
10         (decode_x86_feature_2): Likewise.
11         (decode_x86_isa): Updated for new X86_ISA_1_XXX bits.
12         (decode_x86_feature): Renamed to ...
13         (decode_x86_feature_1): This.  Remove the type argument.
14         (print_gnu_property_note): Handle X86_COMPAT_ISA_1_USED,
15         X86_COMPAT_ISA_1_NEEDED, X86_UINT32_AND_LO, X86_UINT32_AND_HI,
16         X86_UINT32_OR_LO, X86_UINT32_OR_HI, X86_UINT32_OR_AND_LO and
17         X86_UINT32_OR_AND_HI instead of X86_ISA_1_USED, X86_ISA_1_NEEDED
18         and X86_FEATURE_1_AND.
19         * testsuite/binutils-all/i386/pr21231b.s: Updated to the current
20         GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
21         values.
22         * testsuite/binutils-all/x86-64/pr21231b.s: Likewise.
23         * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
24         * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
25         * testsuite/binutils-all/x86-64/pr23494c.s: Likewise.
26         * testsuite/binutils-all/i386/pr21231b.d: Updated.
27         * testsuite/binutils-all/x86-64/pr21231b.d: Likewise.
28         * testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
29         * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
30         * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
31         * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
32         * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
33         * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
34         * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
35         * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
36
37 2018-08-24  H.J. Lu  <hongjiu.lu@intel.com>
38
39         * readelf.c (print_gnu_property_note): Check the
40         GNU_PROPERTY_X86_UINT32_VALID bit for invalid GNU property note.
41
42 2018-08-23  Alan Modra  <amodra@gmail.com>
43
44         * readelf.c (get_ppc64_symbol_other): Return NULL if st_other
45         field contains unrecognised or reserved values.  Handle
46         localentry:1 value.
47
48 2018-08-23  H.J. Lu  <hongjiu.lu@intel.com>
49
50         PR ld/23536
51         * Makefile.am (development.exp): New target.
52         (EXTRA_DEJAGNU_SITE_CONFIG): New.
53         (DISTCLEANFILES): Add development.exp.
54         * Makefile.in: Regenerated.
55         * testsuite/binutils-all/objcopy.exp (strip_test): Call
56         prune_warnings to prune BFD output.
57         (strip_test_with_saving_a_symbol): Likewise.
58         (objcopy_test_without_global_symbol): Likewise.
59         * testsuite/lib/binutils-common.exp (prune_warnings_extra):
60         New proc.
61         (prune_warnings): Likewise.
62
63 2018-08-23  H.J. Lu  <hongjiu.lu@intel.com>
64
65         * README-how-to-make-a-release: Document setting "experimental"
66         to false.
67
68 2018-08-22  Alan Modra  <amodra@gmail.com>
69
70         * readelf.c (process_file_header): Assign updated values from
71         section_header[0] fields to e_phnum, e_shnum and e_shstrndx
72         during printing of header.  Correct e_shstrndx range check.
73         Remove unnecessary casts and use %u rather than %ld for
74         unsigned int header fields.  Don't print a random %lx when
75         reporting an unknown EI_VERSION.
76
77 2018-08-21  Nick Clifton  <nickc@redhat.com>
78
79         * MAINTAINERS: Note that Arnold Metselaar has retired as the z80
80         maintainer.
81
82 2018-08-21  L. Simon  <l.simon@samsung.com>
83
84         PR 23531
85         * readelf.c (hppa_process_unwind): Only dump the unwind table if
86         the data was successfully read in.
87
88 2018-08-18  Alan Modra  <amodra@gmail.com>
89
90         * testsuite/lib/binutils-common.exp (is_elf64): Use directory of
91         input file for readelf.out.
92         (is_rela): New proc.
93         * testsuite/binutils-all/objcopy.exp (elf64): Set new variable
94         from first result of is_elf64 test.
95         (reloc_format): Set using is_rela.
96         (strip-13): Pass RELOC and ELF64 to assembler.
97         (strip-14, strip-15): Use elf64 rather than calling is_elf64 again.
98         * testsuite/binutils-all/strip-13.d: Run for more targets.
99         * testsuite/binutils-all/strip-13mips64.s: Use RELOC and set
100         addend to zero.
101         * testsuite/binutils-all/strip-13rel.s: Use RELOC and ELF64.
102         Don't add _NONE reloc.
103         * testsuite/binutils-all/strip-13rela.s: Likewise.
104
105 2018-08-10  H.J. Lu  <hongjiu.lu@intel.com>
106
107         PR binutils/23494
108         * testsuite/binutils-all/x86-64/pr23494c.s: New file.
109         * testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
110         * testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
111
112 2018-08-10  H.J. Lu  <hongjiu.lu@intel.com>
113
114         * testsuite/binutils-all/x86-64/pr23494a-x32.d: Skip nacl
115         targets.
116         * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
117         * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
118         * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
119         * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
120         * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
121         * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
122         * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
123
124 2018-08-08  H.J. Lu  <hongjiu.lu@intel.com>
125
126         PR binutils/23494
127         * testsuite/binutils-all/x86-64/pr23494a-x32.d: New file.
128         * testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
129         * testsuite/binutils-all/x86-64/pr23494a.s: Likewise.
130         * testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
131         * testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
132         * testsuite/binutils-all/x86-64/pr23494b.s: Likewise.
133         * testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
134         * testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
135         * testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
136         * testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
137
138 2018-08-08  Kevin Buettner  <kevinb@redhat.com>
139
140         * dwarf.c (decode_location_expresion): Add case for
141         DW_OP_GNU_variable_value.
142
143 2018-08-06  Claudiu Zissulescu  <claziss@synopsys.com>
144
145         * readelf.c (display_arc_attribute): Print Tag_ARC_ATR_version.
146
147 2018-08-03  Nick Clifton  <nickc@redhat.com>
148
149         * objcopy.c (merge_gnu_build_notes): Delete empty notes.  Merge
150         identical function notes.
151
152 2018-08-01  Nick Clifton  <nickc@redhat.com>
153
154         * README-how-to-make-a-release: Add note about regenerating the
155         info files prior to the release.
156
157 2018-07-30  Andrew Jenner  <andrew@codesourcery.com>
158
159         * MAINTAINERS (C-SKY): Add Yunhai Shang as co-maintainer.
160
161 2018-07-30  Andrew Jenner  <andrew@codesourcery.com>
162
163         * MAINTAINERS (C-SKY): Add Lifang Xia as maintainer.
164
165 2018-07-30  Andrew Jenner  <andrew@codesourcery.com>
166
167         * readelf.c: Include elf/csky.h.
168         (guess_is_rela): Handle EM_CSKY.
169         (dump_relocations): Likewise.
170         (get_machine_name): Likewise.
171         (is_32bit_abs_reloc): Likewise.
172
173 2018-07-25  Nick Clifton  <nickc@redhat.com>
174
175         * rdcoff.c (parse_coff_struct_type): Free fields array upon early
176         exit.
177         (parse_coff_enum_type): Free names and vals arrays upon early
178         exit.
179         * rddbg.c (read_section_stabs_debugging_info): Free shandle and
180         strings and stabs arrays upon early exit.
181         * readelf.c (get_32bit_section_headers): Free shdrs structure upon
182         early exit.
183         (get_64bit_section_headers): Likewise.
184         (get_32bit_elf_symbols): Generate an error if multiple symbol
185         table index sections are associated with the same symbol section.
186         (get_64bit_elf_symbols): Likewise.
187         (process_dynamic_section): Generate an error if there are multiple
188         dynamic symbol table sections, multiple dynamic string tables or
189         multiple dynamic symbol information sections.
190
191 2018-07-24  Nick Clifton  <nickc@redhat.com>
192
193         * po/sv.po: Updated Swedish translation.
194
195 2018-07-24  Alan Modra  <amodra@gmail.com>
196
197         PR 23431
198         * dwarf.c (display_formatted_table): Replace "what" parameter
199         with "is_dir".  Expand messages.  Fix capitalisation.
200         * testsuite/binutils-all/dw5.W: Update expected output.
201
202 2018-07-24  Alan Modra  <amodra@gmail.com>
203
204         PR 23430
205         * elfcomm.h (struct archive_info): Rename uses_64bit_indicies
206         to uses_64bit_indices.
207         * elfcomm.c (setup_archive): Update uses of above.
208         * readelf.c (process_archive): Likewise.
209         (get_section_type_name): Rename indicies to indices.
210         (get_32bit_elf_symbols, get_64bit_elf_symbols): Likewise.
211         (process_section_groups): Likewise.
212
213 2018-07-20  Maciej W. Rozycki  <macro@mips.com>
214
215         * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
216         ISA maintenance.
217
218 2018-07-20  Nick Clifton  <nickc@redhat.com>
219
220         * objcopy.c (add_specific_symbols): Free buffer on exit.
221         (add_redefine_syms_file): Close file handle on exit.
222         (copy_object): Close file handle on early exit.
223         Free buffer on early exit.
224         Free gaps buffers once they are no longer needed.
225         * dwarf.c (display_debug_frames): Free allocated memory on exit.
226         (load_separate_debug_info): Free allocate memory on early exit.
227
228 2018-07-20  Chenghua Xu  <paul.hua.gm@gmail.com>
229             Maciej W. Rozycki  <macro@mips.com>
230
231         * readelf.c (print_mips_ases): Add MMI extension.
232
233 2018-07-19  DJ Delorie  <dj@redhat.com>
234
235         * MAINTAINERS (RL78, RX): Remove myself as maintainer.
236
237 2018-07-19  Nick Clifton  <nickc@redhat.com>
238
239         * dwarf.c (read_cie): Free allocated memory before returning with
240         a failure result.
241
242 2018-07-16  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
243
244         * readelf.c (get_note_type): Fix typo in NT_PPC_TM_CVSX note
245         description.
246
247 2018-07-16  Nick Clifton  <nickc@redhat.com>
248
249         * README-how-to-make-a-release: Add note to check for new top
250         level files and add them to the src-release.sh script.
251
252 2018-07-14  Nick Clifton  <nickc@redhat.com>
253
254         * README-how-to-make-a-release: Updated with corrections based on
255         the 2.31 release experience.
256
257 2018-07-12  Francois H. Theron  <francois.theron@netronome.com>
258
259         * readelf.c (process_section_headers): Don't print section type
260         twice for --section-details.
261
262 2018-07-10  Alan Modra  <amodra@gmail.com>
263
264         * testsuite/lib/binutils-common.exp (supports_gnu_unique): Return
265         zero for xgate.
266
267 2018-07-06  Nick Clifton  <nickc@redhat.com>
268
269         * readelf.c (same_section): New function.
270         (print_gnu_build_attribute_description): Do not complain about
271         gaps that cross a section boundary.
272
273 2018-07-05  Nick Clifton  <nickc@redhat.com>
274
275         * po/bg.po: Updated Bulgarian translation.
276
277 2018-07-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>
278
279         * NEWS: Use command-line consistently when used in a compount word.
280         * doc/binutils.texi: Likewise and fix trailing whitespace on same
281         line.
282
283 2018-06-26  Nick Clifton  <nickc@redhat.com>
284
285         * po/sv.po: Updated Swedish translation.
286         * po/uk.po: Updated Ukranian translation.
287
288 2018-06-26  Nick Clifton  <nickc@redhat.com>
289
290         * doc/binutils.texi: Fix spelling mistakes.
291         * README--how-to-make-a-release: Likewise.
292
293 2018-06-25  Tom Tromey  <tom@tromey.com>
294
295         * dwarf-mode.el (dwarf-mode-syntax-table): New variable.
296         Bump version number.
297
298 2018-06-24  Nick Clifton  <nickc@redhat.com>
299
300         * README-how-to-make-a-release: Update with experiences from
301         making 2.31 branch.
302         * po/binutils.pot: Regenerate.
303         * configure: Regenerate.
304
305 2018-06-24  Nick Clifton  <nickc@redhat.com>
306
307         2.31 branch created.
308         * NEWS: Add marker for 2.31.
309
310 2018-06-21  Alan Modra  <amodra@gmail.com>
311
312         * doc/Makefile.am (AUTOMAKE_OPTIONS): Add "foreign".
313         * doc/Makefile.in: Regenerate.
314
315 2018-06-19  Simon Marchi  <simon.marchi@ericsson.com>
316
317         * configure.ac: Remove AC_PREREQ.
318         * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add
319         info-in-builddir no-texinfo.tex.
320         * Makefile.in: Re-generate.
321         * aclocal.m4: Re-generate.
322         * config.in: Re-generate.
323         * configure: Re-generate.
324         * doc/Makefile.in: Re-generate.
325
326 2018-06-19  Andreas Schwab  <schwab@suse.de>
327
328         * readelf.c (is_16bit_abs_reloc): Handle R_RISCV_SET16.
329         (is_8bit_abs_reloc): New function.
330         (is_6bit_abs_reloc): New function.
331         (is_6bit_inplace_sub_reloc): New function.
332         (apply_relocations): Use them.  Handle 6-bit relocations.
333
334 2018-06-14  Faraz Shahbazker  <Faraz.Shahbazker@mips.com>
335
336         * readelf.c (print_mips_ases): Add GINV extension.
337
338 2018-06-14  H.J. Lu  <hongjiu.lu@intel.com>
339
340         PR binutils/23267
341         * readelf.c (get_symbol_version_string): Check if the first
342         symbol version is base version.
343
344 2018-06-13  Scott Egerton  <scott.egerton@imgtec.com>
345             Faraz Shahbazker  <Faraz.Shahbazker@mips.com>
346
347         * readelf.c (print_mips_ases): Add CRC.
348
349 2018-06-13  Nick Clifton  <nickc@redhat.com>
350
351         * doc/binutils.texi (objdump): Add missing closing square
352         parenthesis to listing of objcopy's command line options.
353
354 2018-06-11  Nick Clifton  <nickc@redhat.com>
355
356         * po/es.po: Updated Spanish translation.
357
358 2018-06-01  H.J. Lu  <hongjiu.lu@intel.com>
359
360         * configure: Regenerated.
361
362 2018-05-31  Alan Modra  <amodra@gmail.com>
363
364         * testsuite/binutils-all/compress.exp (test_gnu_debuglink): Don't
365         set CC_FOR_TARGET.  Run test non-native.
366         * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
367         Likewise.
368         (test_follow_debuglink): Run test non-native.
369
370 2018-05-30  Ant Bikeneev  <ant.bikineev@gmail.com>
371
372         PR 23107
373         * ar.c (display_offsets): New variable.
374         (usage): Add description of 'O' operator.
375         (decode_option): Handle 'O' operator.
376         (print_descr): Pass display_offsets to print_arelt_descr.
377         * arsup.c: Update call to printy_arelt_descr.
378         * objdump.c: Likewise.
379         * bucomm.c (print_arelt_descr): If offsets parameter is true then
380         display offset of archive element within the archive.
381         * bucomm.h: Update prototype for print_arelt_descr.
382         * doc/binutils.texi: Update description of ar command.
383         * NEWS: Mention the new feature.
384         * testsuite/binutils-all/ar.exp: Add text of new feature.
385
386 2018-05-28  Alan Modra  <amodra@gmail.com>
387
388         PR 23235
389         * testsuite/binutils-all/compress.exp (test_gnu_debuglink): Return
390         unsupported rather than fail on compile errors.
391         * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
392         Likewise.  Save and restore CFLAGS_FOR_TARGET.
393
394 2018-05-18  Kito Cheng  <kito.cheng@gmail.com>
395
396         * readelf.c (get_machine_flags): Handle EF_RISCV_RVE.
397
398 2018-05-18  John Darrington  <john@darrington.wattle.id.au>
399
400         * readelf.c: Add support for s12z architecture.
401         * testsuite/lib/binutils-common.exp (is_elf_format): Excluse s12z
402         targets.
403
404 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
405
406         PR binutils/21446
407         * doc/binutils.texi (-M): Document AArch64 options.
408
409 2018-05-15  Tamar Christina  <tamar.christina@arm.com>
410
411         PR binutils/21446
412         * doc/binutils.texi (-M): Document AArch64 options.
413         * NEWS: Document notes and warnings.
414
415 2018-05-15  Alan Modra  <amodra@gmail.com>
416
417         * testsuite/lib/binutils-common.exp (is_elf_format): Add chorus,
418         cloudabi, fuchsia, kaos and nto.  Merge netbsdelf* into *elf*,
419         and *uclinux* into *linux*.
420         * testsuite/binutils-all/objcopy.exp: Accept armeb for rel
421         strip-13 test, exclude arm-vxworks and arm-windiss.
422
423 2018-05-10  John Darrington  <john@darrington.wattle.id.au>
424
425         * readelf.c (get_machine_name): EM_S12Z - handle new case.
426
427 2018-05-09  Alan Modra  <amodra@gmail.com>
428
429         * od-macho.c (dump_unwind_encoding_x86): Fix typo in last patch.
430
431 2018-05-09  Sebastian Rasmussen  <sebras@gmail.com>
432
433         * od-macho.c (dump_unwind_encoding_x86): Adjust for macro renaming.
434
435 2018-05-08  Alan Modra  <amodra@gmail.com>
436
437         PR 23141
438         * objcopy.c (is_strip_section): Strip groups without a valid
439         signature symbol.
440
441 2018-05-07  Alan Modra  <amodra@gmail.com>
442
443         PR 23142
444         * objcopy.c (group_signature): Don't accept groups that use a
445         symbol table other than the one we've read.
446
447 2018-04-30  Francois H. Theron <francois.theron@netronome.com>
448
449         * readelf.c: Very basic support for EM_NFP and its section types.
450         * testsuite/binutils-all/nfp: New directory.
451         * testsuite/binutils-all/nfp/objdump.exp: New file.  Run new
452         tests.
453         * testsuite/binutils-all/nfp/test2_ctx8.d: New file.
454         * testsuite/binutils-all/nfp/test2_no-pc_ctx4.d: New file.
455         * testsuite/binutils-all/nfp/test1.d: New file.
456         * testsuite/binutils-all/nfp/nfp6000.nffw: New file.
457         * testsuite/binutils-all/nfp/test2_nfp6000.nffw: New file.
458         * NEWS: Mention the new support.
459
460 2018-04-27  Maciej W. Rozycki  <macro@mips.com>
461
462         * testsuite/lib/binutils-common.exp (match_target): New procedure.
463         * testsuite/lib/utils-lib.exp (run_dump_test): Use it in place
464         of `istarget' for matching with `target', `not-target', `skip'
465         and `not-skip' options.
466
467 2018-04-26  Nick Clifton  <nickc@redhat.com>
468
469         * readelf.c (is_32bit_abs_reloc): Support R_PARISC_DIR32 as a
470         32-bit absolute reloc for the HPPA target.
471         * testsuite/binutils-all/note-5.d: New test.
472         * testsuite/binutils-all/note-5.s: Source file for new test.
473         * testsuite/binutils-all/objcopy.exp: Run new test.
474
475 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
476
477         * testsuite/binutils-all/elfedit-2.d: Accept arm*-*-uclinuxfdpiceabi.
478         * testsuite/binutils-all/elfedit-3.d: Likewise.
479         * testsuite/binutils-all/objcopy.exp: Likewise.
480         * testsuite/binutils-all/strip-3.d: Likewise.
481         * testsuite/lib/binutils-common.exp: Likewise.
482
483 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
484         Mickaël Guêné  <mickael.guene@st.com>
485
486         * readelf.c (decode_ARM_machine_flags): Support EF_ARM_PIC.
487         (get_osabi_name): Support ELFOSABI_ARM_FDPIC.
488
489 2018-04-25  Alan Modra  <amodra@gmail.com>
490
491         * testsuite/binutils-all/arm/objdump.exp: Remove arm-aout and
492         arm-coff support.
493         * testsuite/binutils-all/objcopy.exp: Likewise.
494         * testsuite/lib/binutils-common.exp: Likewise.
495
496 2018-04-18  Nick Clifton  <nickc@redhat.com>
497
498         PR 23062
499         * dwarf.c (read_and_display_attr_value): Replace assertions with
500         test and warning message.
501
502 2018-04-18  Alan Modra  <amodra@gmail.com>
503
504         * testsuite/lib/binutils-common.exp: Remove support for assorted
505         aout targets.
506
507 2018-04-17  Nick Clifton  <nickc@redhat.com>
508
509         PR 23063
510         * readelf.c (print_symbol): If the width is zero, return straight
511         away.
512
513         PR 23064
514         * dwarf.c (process_cu_tu_index): Test for a potential buffer
515         overrun before copying signature pointer.
516
517 2018-04-17  Alan Modra  <amodra@gmail.com>
518
519         * readelf.c: Revert 2018-04-16 and 2018-04-11 changes.
520
521 2018-04-16  Alan Modra  <amodra@gmail.com>
522
523         * readelf.c (get_machine_name): Correct typo.
524
525 2018-04-16  Alan Modra  <amodra@gmail.com>
526
527         * configure.ac: Remove arm-epoc-pe support.
528         * dlltool.c: Likewise.
529         * configure: Regenerate.
530
531 2018-04-16  Alan Modra  <amodra@gmail.com>
532
533         * testsuite/lib/binutils-common.exp: Remove sparc-aout and
534         sparc-coff support.
535
536 2018-04-16  Alan Modra  <amodra@gmail.com>
537
538         * testsuite/binutils-all/copy-2.d: Remove m68k-aout and m68k-coff
539         support.
540         * testsuite/binutils-all/copy-3.d: Likewise.
541         * testsuite/binutils-all/objcopy.exp: Likewise.
542         * testsuite/lib/binutils-common.exp: Likewise.
543
544 2018-04-16  Alan Modra  <amodra@gmail.com>
545
546         * testsuite/binutils-all/objcopy.exp: Remove sh5 and sh64 support.
547
548 2018-04-16  Alan Modra  <amodra@gmail.com>
549
550         * testsuite/binutils-all/objcopy.exp: Remove w65 support.
551
552 2018-04-16  Alan Modra  <amodra@gmail.com>
553
554         * testsuite/binutils-all/objdump.exp: Remove we32k support.
555
556 2018-04-16  Alan Modra  <amodra@gmail.com>
557
558         * MAINTAINERS (Mark Kettenis): Move to past maintainers.
559         * testsuite/binutils-all/objdump.exp: Remove m88k support.
560
561 2018-04-16  Alan Modra  <amodra@gmail.com>
562
563         * readelf.c: Remove i370 support.
564         * testsuite/binutils-all/objdump.exp: Likewise.
565
566 2018-04-16  Alan Modra  <amodra@gmail.com>
567
568         * testsuite/binutils-all/objcopy.exp: Remove h8500 support.
569         * testsuite/lib/binutils-common.exp: Likewise.
570
571 2018-04-16  Alan Modra  <amodra@gmail.com>
572
573         * testsuite/binutils-all/objcopy.exp: Remove h8300-coff support.
574
575 2018-04-16  Alan Modra  <amodra@gmail.com>
576
577         * Makefile.am: Remove IEEE 695 support.
578         * budbg.h: Likewise.
579         * doc/binutils.texi: Likewise.
580         * makefile.vms: Likewise.
581         * objcopy.c: Likewise.
582         * objdump.c: Likewise.
583         * rddbg.c: Likewise.
584         * ieee.c: Delete.
585         * Makefile.in: Regenerate.
586         * po/POTFILES.in: Regenerate.
587
588 2018-04-16  Alan Modra  <amodra@gmail.com>
589
590         * testsuite/binutils-all/copy-2.d: Remove newsos3 support.
591         * testsuite/binutils-all/nm.exp: Likewise.
592
593 2018-04-16  Alan Modra  <amodra@gmail.com>
594
595         * .gitignore: Remove netware support.
596         * Makefile.am: Likewise.
597         * configure.ac: Likewise.
598         * doc/Makefile.am: Likewise.
599         * doc/binutils.texi: Likewise.
600         * testsuite/binutils-all/nm.exp: Likewise.
601         * nlmconv.c: Delete.
602         * nlmconv.h: Delete.
603         * nlmheader.y: Delete.
604         * Makefile.in: Regenerate.
605         * configure: Regenerate.
606         * doc/Makefile.in: Regenerate.
607         * po/POTFILES.in: Regenerate.
608
609 2018-04-16  Alan Modra  <amodra@gmail.com>
610
611         * testsuite/binutils-all/objdump.exp: Remove tahoe support.
612
613 2018-04-14  Alan Modra  <amodra@gmail.com>
614
615         * readelf.c (get_machine_name): Revert 2018-04-11 change.
616
617 2018-04-12  Nick Clifton  <nickc@redhat.com>
618
619         PR 23050
620         * readelf.c (process_dynamic_section): Correct dynamic string
621         table size calculation.
622
623 2018-04-11  Alan Modra  <amodra@gmail.com>
624
625         * ieee.c: Remove i960 support.
626         * od-macho.c: Remove i860 support.
627         * readelf.c: Remove i860 and i960 support.
628         * testsuite/binutils-all/objcopy.exp: Likewise.
629         * testsuite/binutils-all/objdump.exp: Likewise.
630         * testsuite/lib/binutils-common.exp: Likewise.
631
632 2018-04-11  Maciej W. Rozycki  <macro@mips.com>
633
634         * testsuite/lib/binutils-common.exp (is_elf_format): Also return
635         1 for `*-*-lynxos*' and `*-*-symbianelf*' targets.
636
637 2018-04-10  Alan Modra  <amodra@gmail.com>
638
639         * testsuite/binutils-all/objcopy.exp (strip-14, strip-15): Choose
640         reloc=11 for pru and reloc=50 for nds32.
641         * testsuite/binutils-all/strip-15.d: Accept 0xb reloc number.
642
643 2018-04-09  Maciej W. Rozycki  <macro@mips.com>
644
645         * testsuite/binutils-all/strip-15.d: New test.
646         * testsuite/binutils-all/strip-15rel.s: New test source.
647         * testsuite/binutils-all/strip-15rela.s: New test source.
648         * testsuite/binutils-all/strip-15mips64.s: New test source.
649         * testsuite/binutils-all/objcopy.exp: Run the new test.
650
651 2018-04-09  Maciej W. Rozycki  <macro@mips.com>
652
653         * testsuite/binutils-all/strip-14.d: New test.
654         * testsuite/binutils-all/strip-14rel.s: New test source.
655         * testsuite/binutils-all/strip-14rela.s: New test source.
656         * testsuite/binutils-all/strip-14mips64.s: New test source.
657         * testsuite/binutils-all/objcopy.exp: Run the new test.
658
659 2018-04-06  Tom Tromey  <tom@tromey.com>
660
661         * dwarf.c (read_and_display_attr_value): Add missing DW_LANG
662         constants from DWARF 5.
663
664 2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
665
666         PR gas/22318
667         * configure: Regenerated.
668
669 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
670
671         * testsuite/binutils-all/strip-13mips64.s: Use `.dc.l' rather
672         than `.dc.w' in second relocation.
673
674 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
675
676         * testsuite/binutils-all/strip-13.d: Also expect `unsupported
677         relocation type 0x8f' error message.
678
679 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
680
681         * testsuite/binutils-all/strip-13.s: Rename to...
682         * testsuite/binutils-all/strip-13rela.s: ... this.
683         * testsuite/binutils-all/strip-13rel.s: New test source.
684         * testsuite/binutils-all/strip-13mips64.s: New test source.
685         * testsuite/binutils-all/strip-13.d: Remove `arm-*', `d10v-*',
686         `dlx-*' and `xgate-*' from `not-target' list.  Add `m6811-*' and
687         `m68hc11-*' to `not-target' list.
688         * testsuite/binutils-all/objcopy.exp: Switch between sources for
689         `strip-13'.
690
691 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
692
693         * testsuite/binutils-all/strip-13.s: Use 143 (0x8f) rather than
694         241 (0xf1) for the relocation number and RELA addend.
695         * testsuite/binutils-all/strip-13.d: Remove `hppa*-*' from the
696         `not-target' list.
697
698 2018-04-04  John David Anglin  <danglin@gcc.gnu.org>
699
700         * MAINTAINERS: Update my e-mail address.
701
702 2018-04-04  Nick Clifton  <nickc@redhat.com>
703
704         * MAINTAINERS: Move Jason Eckhardt to past maintainers section.
705
706 2018-03-23  Nick Clifton  <nickc@redhat.com>
707
708         * readelf.c (get_symbol_for_build_attribute): Skip ARM mapping
709         symbols.
710         (print_gnu_build_attribute_description): If no file start symbol
711         could be found, look for one two bytes into the file.
712         * testsuite/binutils-all/note-4-64.s: Set the address of the file
713         start symbol to two bytes into the file.
714         * testsuite/binutils-all/note-4-32.s: Likewise.
715
716 2018-03-21  H.J. Lu  <hongjiu.lu@intel.com>
717
718         * readelf.c (process_dynamic_section): Also dump DF_1_KMOD,
719         DF_1_WEAKFILTER and DF_1_NOCOMMON.
720
721 2018-03-20  Nick Clifton  <nickc@redhat.com>
722
723         * po/es.po: Updated Spanish translation.
724         * po/ru.po: Updated Russian translation.
725
726 2018-03-13  Nick Clifton  <nickc@redhat.com>
727
728         PR 22957
729         * stabs.c (pop_binincl): Fail if the file index is off the end of
730         the stack.
731
732 2018-03-13  Nick Clifton  <nickc@redhat.com>
733
734         PR 22955
735         * stabs.c (parse_number): Add p_end parameter and use it to check
736         the validity of the pp parameter.  Add checks to prevent walking
737         off the end of the string buffer.
738         (parse_stab_string): Likewise.
739         (parse_stab_type): Likewise.
740         (parse_stab_type_number): Likewise.
741         (parse_stab_range_type): Likewise.
742         (parse_stab_sun_builtin_type): Likewise.
743         (parse_stab_sun_floating_type): Likewise.
744         (parse_stab_enum_type): Likewise.
745         (parse_stab_struct_type): Likewise.
746         (parse_stab_baseclasses): Likewise.
747         (parse_stab_struct_fields): Likewise.
748         (parse_stab_cpp_abbrev): Likewise.
749         (parse_stab_one_struct_field): Likewise.
750         (parse_stab_members): Likewise.
751         (parse_stab_tilde_field): Likewise.
752         (parse_stab_array_type): Likewise.
753
754         * parse_stab: Compute the end of the string and then pass it on to
755         individual parser functions.
756
757 2018-03-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
758
759         PR binutils/22923
760         * binutils/readelf.c (get_ver_flags): Expand buffer to avoid
761         overflow.
762
763 2018-03-07  Alan Modra  <amodra@gmail.com>
764
765         * configure.ac: Add objdump_private_desc_xcoff for rs6000.
766         * configure: Regenerate.
767
768 2018-03-05  H.J. Lu  <hongjiu.lu@intel.com>
769
770         PR binutils/22911
771         * objdump.c (is_significant_symbol_name): Return TRUE for all
772         .plt* sections.
773         (find_symbol_for_address): Replace linear search with binary
774         search on dynamic relocations.
775
776 2018-03-01  Nick Clifton  <nickc@redhat.com>
777
778         PR 22905
779         * dwarf.c (display_debug_ranges): Check that the offset loaded
780         from the range_entry structure is valid.
781
782 2018-03-01  Alan Modra  <amodra@gmail.com>
783
784         * configure.ac (ALL_LINGUAS): Add sr.  Sort.
785         * configure: Regenerate.
786
787 2018-02-27  Nick Clifton  <nickc@redhat.com>
788
789         * po/pt.po: New Portuguese translation.
790         * configure.ac (ALL_LINGUAS): Add pt.
791         * configure: Regenerate.
792
793 2018-02-27  Nick Clifton  <nickc@redhat.com>
794
795         PR 22875
796         * objcopy.c (copy_object): Check the error status after marking
797         symbols used in relocations.
798         * testsuite/binutils-all/strip-13.s: New test source file.
799         * testsuite/binutils-all/strip-13.s: New test driver file.
800         * testsuite/binutils-all/objcopy.exp: Run the new test.
801
802 2018-02-26  Alan Modra  <amodra@gmail.com>
803
804         * testsuite/binutils-all/mips/mips-reginfo-n32.d,
805         * testsuite/binutils-all/mips/mips-reginfo.d: Update.
806
807 2018-02-23  Alan Modra  <amodra@gmail.com>
808
809         * testsuite/binutils-all/mips/mips-reginfo-n32.d,
810         * testsuite/binutils-all/mips/mips-reginfo.d: Update.
811
812 2018-02-20  Ronald Hoogenboom  <hoogenboom30@zonnet.nl>
813
814         * doc/binutils.texi (objcopy): Add missing closing square
815         parenthesis to listing of objcopy's command line options.
816
817 2018-02-19  Matthias Klose  <doko@debian.org>
818
819         * strings.c (long_options): Include-all-whitespace does not take
820         an extra agument.
821
822 2018-02-13  Alan Modra  <amodra@gmail.com>
823
824         PR 22836
825         * testsuite/binutils-all/group-7.s,
826         * testsuite/binutils-all/group-7a.d,
827         * testsuite/binutils-all/group-7b.d,
828         * testsuite/binutils-all/group-7c.d: New tests.
829         * testsuite/binutils-all/objcopy.exp: Run them.
830
831 2018-02-08  Nick Clifton  <nickc@redhat.com>
832
833         PR 22802
834         * dwarf.c (load_separate_debug_file): Return early if the user is
835         not interested in debug links.
836
837 2018-02-06  Nick Clifton  <nickc@redhat.com>
838
839         PR 22793
840         * readelf.c (find_section): Replace assertion with test and return
841         of NULL.
842         (find_section_by_address): Add test of section header table
843         existance.
844         (find_section_by_type): Likewise.
845         (find_section_in_set): Likewise.
846
847 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
848
849         * testsuite/binutils-all/mips/mips-reginfo.d: New test.
850         * testsuite/binutils-all/mips/mips-reginfo-n32.d: New test.
851         * testsuite/binutils-all/mips/mips-reginfo.s: New test source.
852         * testsuite/binutils-all/mips/mips.exp: Run the new tests.
853
854 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
855
856         * testsuite/config/default.exp (binutils_run): Document
857         `binutils_run_status'.
858         * testsuite/lib/utils-lib.exp (default_binutils_run): Likewise,
859         and set it.
860         (run_dump_test): Add `error', `error_output', `warning' and
861         `warning_output' options.  Update documentation accordingly.
862
863 2018-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
864
865         * dwarf.c (dwarf_regnames_riscv): New register name table.
866         (init_dwarf_regnames_riscv): New function.
867         (init_dwarf_regnames): Add call to initialise RiscV register
868         names.
869         * dwarf.h (init_dwarf_regnames_riscv): Declare.
870         * objdump.c (dump_dwarf): Add call to initialise RiscV register
871         names.
872
873 2018-02-01  Alan Modra  <amodra@gmail.com>
874
875         PR 22769
876         * objdump.c (load_specific_debug_section): Check for overflow
877         when adding one to section size for a string section terminator.
878
879 2018-01-30  Nick Clifton  <nickc@redhat.com>
880
881         PR 22734
882         * doc/binutils.texi (nm): Update description to point out that
883         zero-initialized values can also be shown as type B, b, S or s
884         since they can be stored in the BSS section.
885
886 2018-01-30  Alan Modra  <amodra@gmail.com>
887
888         * objcopy.c (merge_gnu_build_notes): Use (bfd_vma) -1 as
889         "artificially large" end address.
890
891 2018-01-28  Nick Clifton  <nickc@redhat.com>
892
893         * README-how-to-make-a-release: Add note about checking gpg key
894         and the results of gnupload.
895
896 2018-01-27  Nick Clifton  <nickc@redhat.com>
897
898         * README-how-to-make-a-release: Add details on how to actually
899         make the release.
900
901 2018-01-26  Nick Clifton  <nickc@redhat.com>
902
903         * README-how-to-make-a-release: Add more details on updating
904         version numbers.
905
906 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
907
908         * doc/binutils.texi (objcopy): Fix a typo in `--rename-section'
909         option description.
910
911 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
912
913         * MAINTAINERS: Update my company e-mail address.
914
915 2018-01-22  Nick Clifton  <nickc@redhat.com>
916
917         * po/sv.po: Updated Swedish translation.
918
919 2018-01-18  Nick Clifton  <nickc@redhat.com>
920
921         * po/bg.po: Updated Bulgarian translation.
922
923 2018-01-16  Joel Brobecker  <brobecker@adacore.com>
924
925         * README-how-to-make-a-release: Add reminder to update the
926         branch name in gdbadmin's crontab on sourceware.
927
928 2018-01-16  Joel Brobecker  <brobecker@adacore.com>
929
930         * README-how-to-make-a-release: Remove trailing spaces.
931
932 2018-01-16  Nick Clifton  <nickc@redhat.com>
933
934         * po/fr.po: Updated French translation.
935
936 2018-01-15  Nick Clifton  <nickc@redhat.com>
937
938         * po/uk.po: Updated Ukranian translation.
939
940 2018-01-13  Nick Clifton  <nickc@redhat.com>
941
942         * README-how-to-make-a-release: Update notes.
943         * po/binutils.pot: Regenerated.
944
945 2018-01-13  Nick Clifton  <nickc@redhat.com>
946
947         * configure: Regenerate.
948
949 2018-01-13  Nick Clifton  <nickc@redhat.com>
950
951         2.30 branch created.
952         * NEWS: Add marker for 2.30.
953
954 2018-01-12  Nick Clifton  <nickc@redhat.com>
955
956         * README-how-to-make-a-release: Add notes on how to make the
957         branch and prelease snapshot.
958         * BRANCHES: Add binutils-2_29-branch.
959
960 2018-01-10  Nick Clifton  <nickc@redhat.com>
961
962         * MAINTAINERS: Note that it is now the configure.ac file and not
963         the configure.in file that needs to be kept in sync with gcc.
964         Add a note about sending patches for libiberty to gcc.
965
966 2018-01-03  Nick Clifton  <nickc@redhat.com>
967
968         * objcopy.c (merge_gnu_build_notes): Add cast to maximum address
969         constants.
970
971 2018-01-03  Nick Clifton  <nickc@redhat.com>
972
973         * objcopy.c (objcopy_internal_note): New structure.
974         (gap_exists): New function.
975         (is_open_note): New function.
976         (is_func_note): New function.
977         (is_64bit): New function.
978         (merge_gnu_build_notes): Handle v3 notes.  Do not merge
979         if there are relocations against the notes.
980         * readelf.c (get_note_type): Use short names for build attribute
981         notes.
982         (print_symbol_for_build_attribute): Rename to
983         get_symbol_for_build_attribute.  Returns the found symbol rather
984         than printing it.
985         (print_gnu_build_attribute_description): Maintain address ranges
986         for function notes as well as global notes.  Handle v3 notes.
987         (print_gnu_build_attribute_name): Use more space for printing the
988         name in wide mode.
989         * testsuite/binutils-all/note-2-32.s: Use .dc.l instead of .word.
990         Eliminate symbol references in order to remove the need for
991         relocations.
992         * testsuite/binutils-all/note-2-64.s: Likewise.
993         * testsuite/binutils-all/note-3-32.s: Add a size to the note_1
994         symbol.
995         * testsuite/binutils-all/note-3-64.s: Likewise.
996         * testsuite/binutils-all/mips/mips-note-2r-n32.d: Update expected
997         output.
998         * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
999         * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
1000         * testsuite/binutils-all/note-2-32.d: Likewise.
1001         * testsuite/binutils-all/note-2-64.d: Likewise.
1002         * testsuite/binutils-all/note-3-32.d: Likewise.
1003         * testsuite/binutils-all/note-3-64.d: Likewise.
1004         * testsuite/binutils-all/note-4-64.s: New test.  Checks v3 notes.
1005         * testsuite/binutils-all/note-4-32.s: New test.
1006         * testsuite/binutils-all/note-4-64.d: New test result file.
1007         * testsuite/binutils-all/note-4-32.d: New test result file.
1008
1009 2018-01-03  Alan Modra  <amodra@gmail.com>
1010
1011         Update year range in copyright notice of all files.
1012
1013 For older changes see ChangeLog-2017
1014 \f
1015 Copyright (C) 2018 Free Software Foundation, Inc.
1016
1017 Copying and distribution of this file, with or without modification,
1018 are permitted in any medium without royalty provided the copyright
1019 notice and this notice are preserved.
1020
1021 Local Variables:
1022 mode: change-log
1023 left-margin: 8
1024 fill-column: 74
1025 version-control: never
1026 End: