Extend the assembler so that it can automatically generate GNU Build attribute notes...
[external/binutils.git] / binutils / ChangeLog
1 2018-04-26  Nick Clifton  <nickc@redhat.com>
2
3         * readelf.c (is_32bit_abs_reloc): Support R_PARISC_DIR32 as a
4         32-bit absolute reloc for the HPPA target.
5         * testsuite/binutils-all/note-5.d: New test.
6         * testsuite/binutils-all/note-5.s: Source file for new test.
7         * testsuite/binutils-all/objcopy.exp: Run new test.
8
9 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
10
11         * testsuite/binutils-all/elfedit-2.d: Accept arm*-*-uclinuxfdpiceabi.
12         * testsuite/binutils-all/elfedit-3.d: Likewise.
13         * testsuite/binutils-all/objcopy.exp: Likewise.
14         * testsuite/binutils-all/strip-3.d: Likewise.
15         * testsuite/lib/binutils-common.exp: Likewise.
16
17 2018-04-25  Christophe Lyon  <christophe.lyon@st.com>
18         Mickaël Guêné  <mickael.guene@st.com>
19
20         * readelf.c (decode_ARM_machine_flags): Support EF_ARM_PIC.
21         (get_osabi_name): Support ELFOSABI_ARM_FDPIC.
22
23 2018-04-25  Alan Modra  <amodra@gmail.com>
24
25         * testsuite/binutils-all/arm/objdump.exp: Remove arm-aout and
26         arm-coff support.
27         * testsuite/binutils-all/objcopy.exp: Likewise.
28         * testsuite/lib/binutils-common.exp: Likewise.
29
30 2018-04-18  Nick Clifton  <nickc@redhat.com>
31
32         PR 23062
33         * dwarf.c (read_and_display_attr_value): Replace assertions with
34         test and warning message.
35
36 2018-04-18  Alan Modra  <amodra@gmail.com>
37
38         * testsuite/lib/binutils-common.exp: Remove support for assorted
39         aout targets.
40
41 2018-04-17  Nick Clifton  <nickc@redhat.com>
42
43         PR 23063
44         * readelf.c (print_symbol): If the width is zero, return straight
45         away.
46
47         PR 23064
48         * dwarf.c (process_cu_tu_index): Test for a potential buffer
49         overrun before copying signature pointer.
50
51 2018-04-17  Alan Modra  <amodra@gmail.com>
52
53         * readelf.c: Revert 2018-04-16 and 2018-04-11 changes.
54
55 2018-04-16  Alan Modra  <amodra@gmail.com>
56
57         * readelf.c (get_machine_name): Correct typo.
58
59 2018-04-16  Alan Modra  <amodra@gmail.com>
60
61         * configure.ac: Remove arm-epoc-pe support.
62         * dlltool.c: Likewise.
63         * configure: Regenerate.
64
65 2018-04-16  Alan Modra  <amodra@gmail.com>
66
67         * testsuite/lib/binutils-common.exp: Remove sparc-aout and
68         sparc-coff support.
69
70 2018-04-16  Alan Modra  <amodra@gmail.com>
71
72         * testsuite/binutils-all/copy-2.d: Remove m68k-aout and m68k-coff
73         support.
74         * testsuite/binutils-all/copy-3.d: Likewise.
75         * testsuite/binutils-all/objcopy.exp: Likewise.
76         * testsuite/lib/binutils-common.exp: Likewise.
77
78 2018-04-16  Alan Modra  <amodra@gmail.com>
79
80         * testsuite/binutils-all/objcopy.exp: Remove sh5 and sh64 support.
81
82 2018-04-16  Alan Modra  <amodra@gmail.com>
83
84         * testsuite/binutils-all/objcopy.exp: Remove w65 support.
85
86 2018-04-16  Alan Modra  <amodra@gmail.com>
87
88         * testsuite/binutils-all/objdump.exp: Remove we32k support.
89
90 2018-04-16  Alan Modra  <amodra@gmail.com>
91
92         * MAINTAINERS (Mark Kettenis): Move to past maintainers.
93         * testsuite/binutils-all/objdump.exp: Remove m88k support.
94
95 2018-04-16  Alan Modra  <amodra@gmail.com>
96
97         * readelf.c: Remove i370 support.
98         * testsuite/binutils-all/objdump.exp: Likewise.
99
100 2018-04-16  Alan Modra  <amodra@gmail.com>
101
102         * testsuite/binutils-all/objcopy.exp: Remove h8500 support.
103         * testsuite/lib/binutils-common.exp: Likewise.
104
105 2018-04-16  Alan Modra  <amodra@gmail.com>
106
107         * testsuite/binutils-all/objcopy.exp: Remove h8300-coff support.
108
109 2018-04-16  Alan Modra  <amodra@gmail.com>
110
111         * Makefile.am: Remove IEEE 695 support.
112         * budbg.h: Likewise.
113         * doc/binutils.texi: Likewise.
114         * makefile.vms: Likewise.
115         * objcopy.c: Likewise.
116         * objdump.c: Likewise.
117         * rddbg.c: Likewise.
118         * ieee.c: Delete.
119         * Makefile.in: Regenerate.
120         * po/POTFILES.in: Regenerate.
121
122 2018-04-16  Alan Modra  <amodra@gmail.com>
123
124         * testsuite/binutils-all/copy-2.d: Remove newsos3 support.
125         * testsuite/binutils-all/nm.exp: Likewise.
126
127 2018-04-16  Alan Modra  <amodra@gmail.com>
128
129         * .gitignore: Remove netware support.
130         * Makefile.am: Likewise.
131         * configure.ac: Likewise.
132         * doc/Makefile.am: Likewise.
133         * doc/binutils.texi: Likewise.
134         * testsuite/binutils-all/nm.exp: Likewise.
135         * nlmconv.c: Delete.
136         * nlmconv.h: Delete.
137         * nlmheader.y: Delete.
138         * Makefile.in: Regenerate.
139         * configure: Regenerate.
140         * doc/Makefile.in: Regenerate.
141         * po/POTFILES.in: Regenerate.
142
143 2018-04-16  Alan Modra  <amodra@gmail.com>
144
145         * testsuite/binutils-all/objdump.exp: Remove tahoe support.
146
147 2018-04-14  Alan Modra  <amodra@gmail.com>
148
149         * readelf.c (get_machine_name): Revert 2018-04-11 change.
150
151 2018-04-12  Nick Clifton  <nickc@redhat.com>
152
153         PR 23050
154         * readelf.c (process_dynamic_section): Correct dynamic string
155         table size calculation.
156
157 2018-04-11  Alan Modra  <amodra@gmail.com>
158
159         * ieee.c: Remove i960 support.
160         * od-macho.c: Remove i860 support.
161         * readelf.c: Remove i860 and i960 support.
162         * testsuite/binutils-all/objcopy.exp: Likewise.
163         * testsuite/binutils-all/objdump.exp: Likewise.
164         * testsuite/lib/binutils-common.exp: Likewise.
165
166 2018-04-11  Maciej W. Rozycki  <macro@mips.com>
167
168         * testsuite/lib/binutils-common.exp (is_elf_format): Also return
169         1 for `*-*-lynxos*' and `*-*-symbianelf*' targets.
170
171 2018-04-10  Alan Modra  <amodra@gmail.com>
172
173         * testsuite/binutils-all/objcopy.exp (strip-14, strip-15): Choose
174         reloc=11 for pru and reloc=50 for nds32.
175         * testsuite/binutils-all/strip-15.d: Accept 0xb reloc number.
176
177 2018-04-09  Maciej W. Rozycki  <macro@mips.com>
178
179         * testsuite/binutils-all/strip-15.d: New test.
180         * testsuite/binutils-all/strip-15rel.s: New test source.
181         * testsuite/binutils-all/strip-15rela.s: New test source.
182         * testsuite/binutils-all/strip-15mips64.s: New test source.
183         * testsuite/binutils-all/objcopy.exp: Run the new test.
184
185 2018-04-09  Maciej W. Rozycki  <macro@mips.com>
186
187         * testsuite/binutils-all/strip-14.d: New test.
188         * testsuite/binutils-all/strip-14rel.s: New test source.
189         * testsuite/binutils-all/strip-14rela.s: New test source.
190         * testsuite/binutils-all/strip-14mips64.s: New test source.
191         * testsuite/binutils-all/objcopy.exp: Run the new test.
192
193 2018-04-06  Tom Tromey  <tom@tromey.com>
194
195         * dwarf.c (read_and_display_attr_value): Add missing DW_LANG
196         constants from DWARF 5.
197
198 2018-04-05  H.J. Lu  <hongjiu.lu@intel.com>
199
200         PR gas/22318
201         * configure: Regenerated.
202
203 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
204
205         * testsuite/binutils-all/strip-13mips64.s: Use `.dc.l' rather
206         than `.dc.w' in second relocation.
207
208 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
209
210         * testsuite/binutils-all/strip-13.d: Also expect `unsupported
211         relocation type 0x8f' error message.
212
213 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
214
215         * testsuite/binutils-all/strip-13.s: Rename to...
216         * testsuite/binutils-all/strip-13rela.s: ... this.
217         * testsuite/binutils-all/strip-13rel.s: New test source.
218         * testsuite/binutils-all/strip-13mips64.s: New test source.
219         * testsuite/binutils-all/strip-13.d: Remove `arm-*', `d10v-*',
220         `dlx-*' and `xgate-*' from `not-target' list.  Add `m6811-*' and
221         `m68hc11-*' to `not-target' list.
222         * testsuite/binutils-all/objcopy.exp: Switch between sources for
223         `strip-13'.
224
225 2018-04-05  Maciej W. Rozycki  <macro@mips.com>
226
227         * testsuite/binutils-all/strip-13.s: Use 143 (0x8f) rather than
228         241 (0xf1) for the relocation number and RELA addend.
229         * testsuite/binutils-all/strip-13.d: Remove `hppa*-*' from the
230         `not-target' list.
231
232 2018-04-04  John David Anglin  <danglin@gcc.gnu.org>
233
234         * MAINTAINERS: Update my e-mail address.
235
236 2018-04-04  Nick Clifton  <nickc@redhat.com>
237
238         * MAINTAINERS: Move Jason Eckhardt to past maintainers section.
239
240 2018-03-23  Nick Clifton  <nickc@redhat.com>
241
242         * readelf.c (get_symbol_for_build_attribute): Skip ARM mapping
243         symbols.
244         (print_gnu_build_attribute_description): If no file start symbol
245         could be found, look for one two bytes into the file.
246         * testsuite/binutils-all/note-4-64.s: Set the address of the file
247         start symbol to two bytes into the file.
248         * testsuite/binutils-all/note-4-32.s: Likewise.
249
250 2018-03-21  H.J. Lu  <hongjiu.lu@intel.com>
251
252         * readelf.c (process_dynamic_section): Also dump DF_1_KMOD,
253         DF_1_WEAKFILTER and DF_1_NOCOMMON.
254
255 2018-03-20  Nick Clifton  <nickc@redhat.com>
256
257         * po/es.po: Updated Spanish translation.
258         * po/ru.po: Updated Russian translation.
259
260 2018-03-13  Nick Clifton  <nickc@redhat.com>
261
262         PR 22957
263         * stabs.c (pop_binincl): Fail if the file index is off the end of
264         the stack.
265
266 2018-03-13  Nick Clifton  <nickc@redhat.com>
267
268         PR 22955
269         * stabs.c (parse_number): Add p_end parameter and use it to check
270         the validity of the pp parameter.  Add checks to prevent walking
271         off the end of the string buffer.
272         (parse_stab_string): Likewise.
273         (parse_stab_type): Likewise.
274         (parse_stab_type_number): Likewise.
275         (parse_stab_range_type): Likewise.
276         (parse_stab_sun_builtin_type): Likewise.
277         (parse_stab_sun_floating_type): Likewise.
278         (parse_stab_enum_type): Likewise.
279         (parse_stab_struct_type): Likewise.
280         (parse_stab_baseclasses): Likewise.
281         (parse_stab_struct_fields): Likewise.
282         (parse_stab_cpp_abbrev): Likewise.
283         (parse_stab_one_struct_field): Likewise.
284         (parse_stab_members): Likewise.
285         (parse_stab_tilde_field): Likewise.
286         (parse_stab_array_type): Likewise.
287
288         * parse_stab: Compute the end of the string and then pass it on to
289         individual parser functions.
290
291 2018-03-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
292
293         PR binutils/22923
294         * binutils/readelf.c (get_ver_flags): Expand buffer to avoid
295         overflow.
296
297 2018-03-07  Alan Modra  <amodra@gmail.com>
298
299         * configure.ac: Add objdump_private_desc_xcoff for rs6000.
300         * configure: Regenerate.
301
302 2018-03-05  H.J. Lu  <hongjiu.lu@intel.com>
303
304         PR binutils/22911
305         * objdump.c (is_significant_symbol_name): Return TRUE for all
306         .plt* sections.
307         (find_symbol_for_address): Replace linear search with binary
308         search on dynamic relocations.
309
310 2018-03-01  Nick Clifton  <nickc@redhat.com>
311
312         PR 22905
313         * dwarf.c (display_debug_ranges): Check that the offset loaded
314         from the range_entry structure is valid.
315
316 2018-03-01  Alan Modra  <amodra@gmail.com>
317
318         * configure.ac (ALL_LINGUAS): Add sr.  Sort.
319         * configure: Regenerate.
320
321 2018-02-27  Nick Clifton  <nickc@redhat.com>
322
323         * po/pt.po: New Portuguese translation.
324         * configure.ac (ALL_LINGUAS): Add pt.
325         * configure: Regenerate.
326
327 2018-02-27  Nick Clifton  <nickc@redhat.com>
328
329         PR 22875
330         * objcopy.c (copy_object): Check the error status after marking
331         symbols used in relocations.
332         * testsuite/binutils-all/strip-13.s: New test source file.
333         * testsuite/binutils-all/strip-13.s: New test driver file.
334         * testsuite/binutils-all/objcopy.exp: Run the new test.
335
336 2018-02-26  Alan Modra  <amodra@gmail.com>
337
338         * testsuite/binutils-all/mips/mips-reginfo-n32.d,
339         * testsuite/binutils-all/mips/mips-reginfo.d: Update.
340
341 2018-02-23  Alan Modra  <amodra@gmail.com>
342
343         * testsuite/binutils-all/mips/mips-reginfo-n32.d,
344         * testsuite/binutils-all/mips/mips-reginfo.d: Update.
345
346 2018-02-20  Ronald Hoogenboom  <hoogenboom30@zonnet.nl>
347
348         * doc/binutils.texi (objcopy): Add missing closing square
349         parenthesis to listing of objcopy's command line options.
350
351 2018-02-19  Matthias Klose  <doko@debian.org>
352
353         * strings.c (long_options): Include-all-whitespace does not take
354         an extra agument.
355
356 2018-02-13  Alan Modra  <amodra@gmail.com>
357
358         PR 22836
359         * testsuite/binutils-all/group-7.s,
360         * testsuite/binutils-all/group-7a.d,
361         * testsuite/binutils-all/group-7b.d,
362         * testsuite/binutils-all/group-7c.d: New tests.
363         * testsuite/binutils-all/objcopy.exp: Run them.
364
365 2018-02-08  Nick Clifton  <nickc@redhat.com>
366
367         PR 22802
368         * dwarf.c (load_separate_debug_file): Return early if the user is
369         not interested in debug links.
370
371 2018-02-06  Nick Clifton  <nickc@redhat.com>
372
373         PR 22793
374         * readelf.c (find_section): Replace assertion with test and return
375         of NULL.
376         (find_section_by_address): Add test of section header table
377         existance.
378         (find_section_by_type): Likewise.
379         (find_section_in_set): Likewise.
380
381 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
382
383         * testsuite/binutils-all/mips/mips-reginfo.d: New test.
384         * testsuite/binutils-all/mips/mips-reginfo-n32.d: New test.
385         * testsuite/binutils-all/mips/mips-reginfo.s: New test source.
386         * testsuite/binutils-all/mips/mips.exp: Run the new tests.
387
388 2018-02-05  Maciej W. Rozycki  <macro@mips.com>
389
390         * testsuite/config/default.exp (binutils_run): Document
391         `binutils_run_status'.
392         * testsuite/lib/utils-lib.exp (default_binutils_run): Likewise,
393         and set it.
394         (run_dump_test): Add `error', `error_output', `warning' and
395         `warning_output' options.  Update documentation accordingly.
396
397 2018-02-02  Andrew Burgess  <andrew.burgess@embecosm.com>
398
399         * dwarf.c (dwarf_regnames_riscv): New register name table.
400         (init_dwarf_regnames_riscv): New function.
401         (init_dwarf_regnames): Add call to initialise RiscV register
402         names.
403         * dwarf.h (init_dwarf_regnames_riscv): Declare.
404         * objdump.c (dump_dwarf): Add call to initialise RiscV register
405         names.
406
407 2018-02-01  Alan Modra  <amodra@gmail.com>
408
409         PR 22769
410         * objdump.c (load_specific_debug_section): Check for overflow
411         when adding one to section size for a string section terminator.
412
413 2018-01-30  Nick Clifton  <nickc@redhat.com>
414
415         PR 22734
416         * doc/binutils.texi (nm): Update description to point out that
417         zero-initialized values can also be shown as type B, b, S or s
418         since they can be stored in the BSS section.
419
420 2018-01-30  Alan Modra  <amodra@gmail.com>
421
422         * objcopy.c (merge_gnu_build_notes): Use (bfd_vma) -1 as
423         "artificially large" end address.
424
425 2018-01-28  Nick Clifton  <nickc@redhat.com>
426
427         * README-how-to-make-a-release: Add note about checking gpg key
428         and the results of gnupload.
429
430 2018-01-27  Nick Clifton  <nickc@redhat.com>
431
432         * README-how-to-make-a-release: Add details on how to actually
433         make the release.
434
435 2018-01-26  Nick Clifton  <nickc@redhat.com>
436
437         * README-how-to-make-a-release: Add more details on updating
438         version numbers.
439
440 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
441
442         * doc/binutils.texi (objcopy): Fix a typo in `--rename-section'
443         option description.
444
445 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
446
447         * MAINTAINERS: Update my company e-mail address.
448
449 2018-01-22  Nick Clifton  <nickc@redhat.com>
450
451         * po/sv.po: Updated Swedish translation.
452
453 2018-01-18  Nick Clifton  <nickc@redhat.com>
454
455         * po/bg.po: Updated Bulgarian translation.
456
457 2018-01-16  Joel Brobecker  <brobecker@adacore.com>
458
459         * README-how-to-make-a-release: Add reminder to update the
460         branch name in gdbadmin's crontab on sourceware.
461
462 2018-01-16  Joel Brobecker  <brobecker@adacore.com>
463
464         * README-how-to-make-a-release: Remove trailing spaces.
465
466 2018-01-16  Nick Clifton  <nickc@redhat.com>
467
468         * po/fr.po: Updated French translation.
469
470 2018-01-15  Nick Clifton  <nickc@redhat.com>
471
472         * po/uk.po: Updated Ukranian translation.
473
474 2018-01-13  Nick Clifton  <nickc@redhat.com>
475
476         * README-how-to-make-a-release: Update notes.
477         * po/binutils.pot: Regenerated.
478
479 2018-01-13  Nick Clifton  <nickc@redhat.com>
480
481         * configure: Regenerate.
482
483 2018-01-13  Nick Clifton  <nickc@redhat.com>
484
485         2.30 branch created.
486         * NEWS: Add marker for 2.30.
487
488 2018-01-12  Nick Clifton  <nickc@redhat.com>
489
490         * README-how-to-make-a-release: Add notes on how to make the
491         branch and prelease snapshot.
492         * BRANCHES: Add binutils-2_29-branch.
493
494 2018-01-10  Nick Clifton  <nickc@redhat.com>
495
496         * MAINTAINERS: Note that it is now the configure.ac file and not
497         the configure.in file that needs to be kept in sync with gcc.
498         Add a note about sending patches for libiberty to gcc.
499
500 2018-01-03  Nick Clifton  <nickc@redhat.com>
501
502         * objcopy.c (merge_gnu_build_notes): Add cast to maximum address
503         constants.
504
505 2018-01-03  Nick Clifton  <nickc@redhat.com>
506
507         * objcopy.c (objcopy_internal_note): New structure.
508         (gap_exists): New function.
509         (is_open_note): New function.
510         (is_func_note): New function.
511         (is_64bit): New function.
512         (merge_gnu_build_notes): Handle v3 notes.  Do not merge
513         if there are relocations against the notes.
514         * readelf.c (get_note_type): Use short names for build attribute
515         notes.
516         (print_symbol_for_build_attribute): Rename to
517         get_symbol_for_build_attribute.  Returns the found symbol rather
518         than printing it.
519         (print_gnu_build_attribute_description): Maintain address ranges
520         for function notes as well as global notes.  Handle v3 notes.
521         (print_gnu_build_attribute_name): Use more space for printing the
522         name in wide mode.
523         * testsuite/binutils-all/note-2-32.s: Use .dc.l instead of .word.
524         Eliminate symbol references in order to remove the need for
525         relocations.
526         * testsuite/binutils-all/note-2-64.s: Likewise.
527         * testsuite/binutils-all/note-3-32.s: Add a size to the note_1
528         symbol.
529         * testsuite/binutils-all/note-3-64.s: Likewise.
530         * testsuite/binutils-all/mips/mips-note-2r-n32.d: Update expected
531         output.
532         * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
533         * testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
534         * testsuite/binutils-all/note-2-32.d: Likewise.
535         * testsuite/binutils-all/note-2-64.d: Likewise.
536         * testsuite/binutils-all/note-3-32.d: Likewise.
537         * testsuite/binutils-all/note-3-64.d: Likewise.
538         * testsuite/binutils-all/note-4-64.s: New test.  Checks v3 notes.
539         * testsuite/binutils-all/note-4-32.s: New test.
540         * testsuite/binutils-all/note-4-64.d: New test result file.
541         * testsuite/binutils-all/note-4-32.d: New test result file.
542
543 2018-01-03  Alan Modra  <amodra@gmail.com>
544
545         Update year range in copyright notice of all files.
546
547 For older changes see ChangeLog-2017
548 \f
549 Copyright (C) 2018 Free Software Foundation, Inc.
550
551 Copying and distribution of this file, with or without modification,
552 are permitted in any medium without royalty provided the copyright
553 notice and this notice are preserved.
554
555 Local Variables:
556 mode: change-log
557 left-margin: 8
558 fill-column: 74
559 version-control: never
560 End: