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