Fix RX and M68HC11 linker testsuite failures.
[external/binutils.git] / binutils / ChangeLog
1 2016-06-28  Alan Modra  <amodra@gmail.com>
2
3         PR 20304
4         * objdump.c (objdump_print_symname): Don't attempt to retrieve
5         version info from synthetic symbols.
6
7 2016-06-24  Alan Modra  <amodra@gmail.com>
8
9         * objcopy.c (find_section_rename): Forward declare.  Remove
10         ibfd and sec_ptr param.  Add old_name param.  Allow for NULL
11         returned_flags.  Move read of section name and flags to..
12         (setup_section): ..here.  Update find_section_rename call.
13         (filter_symbols): Rename section symbols for renamed sections.
14         (copy_object): Call filter_symbols when renamed sections.
15         * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
16         * testsuite/binutils-all/update-section.exp: Revert 96037eb0
17         mips xfail.
18         * testsuite/binutils-all/objcopy.exp (copy_executable): Use
19         is_bad_symtab.
20         (localize-hidden-1): xfail if is_bad_symtab.
21         * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
22         between mips/tmips.
23
24 2016-06-24  Alan Modra  <amodra@gmail.com>
25
26         * objdump.c (struct print_file_list): Add "max_printed".
27         (try_print_file_open): Init new field.
28         (show_line): Don't show 5 context lines when redisplaying source.
29
30 2016-06-22  Nick Clifton  <nickc@redhat.com>
31
32         * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
33         Skip bfdtest1 tests for tic30 target.
34         * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
35         target.
36         * testsuite/binutils-all/compress.exp: Expect some tests to fail
37         on the nds32.
38         * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
39         * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
40         targets.
41         * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
42         targets.
43         * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
44         if the bintest.o file was created.  Use the
45         get_standard_section_names proc to get the name of the data
46         section.
47         * testsuite/binutils-all/objdump.exp: Update regexps to allow for
48         RX section names.
49         * testsuite/binutils-all/readelf.exp: Use
50         get_standard_section_names proc to get the name of the data
51         section.
52         * testsuite/binutils-all/readelf.r: Allow for non standard text
53         section names.
54         * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
55         * testsuite/binutils-all/size.exp: Allow for non standard section
56         names.
57         * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
58         to fail on mips targets.
59         * testsuite/lib/utils-lib.exp (default_binutils_run): Use
60         get_standard_section_names proc.
61         (run_dump_test): Likewise.
62         (proc get_standard_section_names): New proc.
63
64 2016-06-22  Nick Clifton  <nickc@redhat.com>
65
66         * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
67         (process_mips_specific): Likewise.
68         (process_gnu_liblist): Likewise.
69
70 2016-06-21  Graham Markall  <graham.markall@embecosm.com>
71
72         * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
73         case.
74
75 2016-06-15  Nick Clifton  <nickc@redhat.com>
76
77         * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
78         reloc.
79
80 2016-06-14  John Baldwin  <jhb@FreeBSD.org>
81
82         * objcopy.c (do_elf_stt_common): Use correct type.
83
84 2016-06-14  Alan Modra  <amodra@gmail.com>
85
86         * ar.c: Expand uses of bfd_my_archive.
87         * size.c: Likewise.
88
89 2016-06-14  Alan Modra  <amodra@gmail.com>
90
91         PR ld/20241
92         * bucomm.c (bfd_get_archive_filename): Return file name within thin
93         archive.
94
95 2016-06-02  Nick Clifton  <nickc@redhat.com>
96
97         PR 20089
98         * objcopy.c (group_signature): Fail if the input symbol table has
99         not been loaded, or if the sh_info field of the group header is 0.
100
101         * dwarf.c (display_debug_frames): Do not display any
102         interpretation if the block consists solely of DW__CFA_NOPs.
103
104 2016-05-31  Alan Modra  <amodra@gmail.com>
105
106         * objcopy.c: Formatting, whitespace throughout.
107         (copy_main): Init newsym->othersym.
108         (parse_symflags): Make len a size_t.  Adjust uses.
109
110 2016-05-25  H.J. Lu  <hongjiu.lu@intel.com>
111
112         PR binutils/14625
113         * NEWS: Mention --enable-64-bit-archive.
114
115 2016-05-18  Nick Clifton  <nickc@redhat.com>
116
117         PR 20096
118         * objcopy.c (copy_relocations_in_section): Also check for the
119         symbol pointed to by sym_ptr_ptr being NULL.
120
121 2016-05-18  Maciej W. Rozycki  <macro@imgtec.com>
122
123         * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
124         * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
125         source.
126         * testsuite/binutils-all/mips/mips.exp: Run the new test.
127
128 2016-05-18  Nick Clifton  <nickc@redhat.com>
129
130         * po/sv.po: Updated Swedish translation.
131
132 2016-05-18  Maciej W. Rozycki  <macro@imgtec.com>
133
134         * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
135         <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
136         <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
137         <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
138         <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
139         <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
140         `d_val' rather than `d_ptr' member of the dynamic entry.
141
142 2016-05-17  Maciej W. Rozycki  <macro@imgtec.com>
143
144         * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
145         procedure.
146         * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
147         with the `strip-10' test.
148
149 2016-05-16  Maciej W. Rozycki  <macro@imgtec.com>
150
151         * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
152         test for the V850.
153
154 2016-05-11  Andrew Bennett  <andrew.bennett@imgtec.com>
155
156         * readelf.c (print_mips_ases): Add DSPR3.
157
158 2016-05-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
159
160         * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
161         (arm_attr_public_tags): Define DSP_extension attribute.
162
163 2016-05-10  Andrew Burgess  <andrew.burgess@embecosm.com>
164
165         * doc/binutils.texi (nm): Update description of --size-sort.
166
167 2016-05-09  Nick Clifton  <nickc@redhat.com>
168
169         PR binutils/20063
170         * readelf.c (get_32bit_section_headers): Warn if an out of range
171         sh_link or sh_info field is encountered.
172         (get_64bit_section_headers): Likewise.
173
174 2016-05-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
175
176         * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
177
178 2016-05-03  Nick Clifton  <nickc@redhat.com>
179
180         * po/sv.po: Updated Swedish translation.
181
182 2016-04-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
183
184         * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
185         PC relocation for AVR target.
186         (is_none_reloc): Return true if reloc is any of AVR diff
187         relocations.
188
189 2016-04-29  Nick Clifton  <nickc@redhat.com>
190
191         PR 19938
192         * readelf.c (get_solaris_segment_type): New function.
193         (get_segment_type): Call it.
194
195 2016-04-28  Nick Clifton  <nickc@redhat.com>
196
197         * po/zh_CN.po: Updated Chinese (simplified) translation.
198
199 2016-04-28  Nick Clifton  <nickc@redhat.com>
200
201         PR target/19722
202         * testsuite/binutils-all/aarch64/illegal.s: New test.
203         * testsuite/binutils-all/aarch64/illegal.d: New test driver.
204
205 2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
206
207         * resres.c: Likewise.
208
209 2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
210
211         * Makefile.in: Regenerated with automake 1.11.6.
212         * aclocal.m4: Likewise.
213         * doc/Makefile.in: Likewise.
214
215 2016-04-14  Nick Clifton  <nickc@redhat.com>
216
217         PR target/19938
218         * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
219         string sections possibly having the SHF_STRINGS flag bit set.
220         * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
221         * testsuite/binutils-all/readelf.s: Likewise.
222         * testsuite/binutils-all/readelf.s-64: Likewise.
223         * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
224         * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
225
226 2016-04-13  Nick Clifton  <nickc@redhat.com>
227
228         PR target/19938
229         * readelf.c (get_solaris_section_type): New function: Returns the
230         name of Solaris specific section types.
231         (get_solaris_dynamic_type): New function: Return the name of
232         Solaris specific dynamic types.
233         (get_dynamic_type): Use get_solaris_dynamic_type.
234         (get_section_type_name): Use get_solaris_section_type.
235         (get_solaris_symbol_visibility): New function: Returns Solaris
236         specific symbol visibilities.
237         (print_dynamic_symbol): Use get_solaris_symbol_visibility.
238         (process_symbol_table): Likewise.
239
240 2016-04-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
241
242         * dwarf.h (init_dwarf_regnames_s390): Declare.
243         * dwarf.c (dwarf_regnames_s390): New.
244         (init_dwarf_regnames_s390): New.
245         (init_dwarf_regnames): Call it.
246         * objdump.c (dump_dwarf): Likewise.
247
248 2016-04-11  Maciej W. Rozycki  <macro@imgtec.com>
249
250         * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
251         * testsuite/binutils-all/mips/mips16-undecoded.s: New test
252         source.
253         * testsuite/binutils-all/mips/mips.exp: Run the new test.
254
255 2016-04-04  Nick Clifton  <nickc@redhat.com>
256
257         PR 19872
258         * dwarf.c (display_debug_aranges): Skip warning about unrecognised
259         version number if the version is zero.
260
261 2016-03-29  Alan Modra  <amodra@gmail.com>
262
263         * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
264         (get_dynamic_data): Likewise.
265
266 2016-03-22  Nick Clifton  <nickc@redhat.com>
267
268         PR 19851
269         * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
270         with run time size check.
271
272         * configure: Regenerate.
273
274 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
275
276         * readelf.c (decode_ARC_machine_flags): Handle nps400.
277
278 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
279
280         * readelf.c (get_machine_flags): Move arc processing into...
281         (decode_ARC_machine_flags): ... new function.  Remove use of
282         EF_ARC_CPU_GENERIC, change default case from "generic arc" to
283         "unknown arc".  Merged ABI printing between two machine types.
284
285 2016-03-21  Andrew Burgess  <andrew.burgess@embecosm.com>
286
287         * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
288         to the architecture list.
289
290 2016-03-21  Nick Clifton  <nickc@redhat.com>
291
292         * dlltool.c: Replace use of alloca with call to xmalloc.
293         * dllwrap.c: Likewise.
294         * nlmconv.c: Likewise.
295         * objdump.c: Likewise.
296         * resrc.c: Likewise.
297         * winduni.c: Likewise.
298         * configure: Regenerate.
299
300 2016-03-07  Nick Clifton  <nickc@redhat.com>
301
302         PR binutils/19775
303         * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
304         Run the new proc.
305         * testsuite/binutils-all/empty: New, empty, file.
306
307 2016-03-04  Matthew Wahab  <matthew.wahab@arm.com>
308
309         * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
310
311 2016-02-26  H.J. Lu  <hongjiu.lu@intel.com>
312
313         PR ld/19645
314         * NEWS: Mention --elf-stt-common= for objcopy.
315         * doc/binutils.texi: Document --elf-stt-common= for objcopy.
316         * objcopy.c (do_elf_stt_common): New.
317         (command_line_switch): Add OPTION_ELF_STT_COMMON.
318         (copy_options): Add --elf-stt-common=.
319         (copy_usage): Add --elf-stt-common=.
320         (copy_object): Also check do_elf_stt_common for ELF targets.
321         (copy_file): Handle do_elf_stt_common.
322         (copy_main): Handle OPTION_ELF_STT_COMMON.
323         * readelf.c (apply_relocations): Support STT_COMMON.
324         * testsuite/binutils-all/common-1.s: New file.
325         * testsuite/binutils-all/common-1a.d: Likewise.
326         * testsuite/binutils-all/common-1b.d: Likewise.
327         * testsuite/binutils-all/common-1c.d: Likewise.
328         * testsuite/binutils-all/common-1d.d: Likewise.
329         * testsuite/binutils-all/common-1e.d: Likewise.
330         * testsuite/binutils-all/common-1f.d: Likewise.
331         * testsuite/binutils-all/common-2.s: Likewise.
332         * testsuite/binutils-all/common-2a.d: Likewise.
333         * testsuite/binutils-all/common-2b.d: Likewise.
334         * testsuite/binutils-all/common-2c.d: Likewise.
335         * testsuite/binutils-all/common-2d.d: Likewise.
336         * testsuite/binutils-all/common-2e.d: Likewise.
337         * testsuite/binutils-all/common-2f.d: Likewise.
338         * testsuite/binutils-all/objcopy.exp
339         (objcopy_test_elf_common_symbols): New proc.
340         Run objcopy_test_elf_common_symbols for ELF targets
341
342 2016-02-16  H.J. Lu  <hongjiu.lu@intel.com>
343
344         PR binutils/19647
345         * readelf.c (get_section_type_name): Add a missing break.
346
347 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
348
349         * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
350
351 2016-02-15  Nick Clifton  <nickc@redhat.com>
352
353         * readelf.c (get_section_type_name): Add hex prefix to offsets
354         printed for LOPROC and LOOS values.  Ensure that a result is
355         always returned for the V850 target, even when an unrecognised
356         processor specific value is encountered.
357         (process_section_headers): Display key values in the order in
358         which they appear to the user.  Add the "C (compressed)" value to
359         the list.
360
361 2016-02-12  H.J. Lu  <hongjiu.lu@intel.com>
362
363         * doc/binutils.texi: Fix a typo.
364
365 2016-02-05  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
366
367         * testsuite/binutils-all/objdump.exp: Update expected default
368         architecture value for ARC binaries.
369
370 2016-02-02  H.J. Lu  <hongjiu.lu@intel.com>
371
372         PR binutils/19547
373         * testsuite/binutils-all/objcopy.exp
374         (objcopy_test_without_global_symbol): New proc.
375         Run objcopy_test_without_global_symbol.
376         * testsuite/binutils-all/pr19547.c: New file.
377
378 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
379
380         PR binutils/19523
381         * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
382         runtest.
383         * Makefile.in: Regenerated.
384         * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
385         proc.
386         Run test_gnu_debuglink for native ELF build.
387
388 2016-01-20  Nick Clifton  <nickc@redhat.com>
389
390         PR 19495
391         * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
392         do not support inserting leading underscores.
393
394 2016-01-20  Mickael Guene  <mickael.guene@st.com>
395
396         * readelf.c (get_elf_section_flags): Display y letter for section
397         with SHF_ARM_NOREAD section flag in readelf section output.
398         (process_section_headers): Add y letter in readelf section output
399         key mapping for ARM architecture.
400         * objdump.c (dump_section_header): Display NOREAD attributes as
401         well.
402         * doc/binutils.texi (objdump): Note that it is correct for
403         sections to have both the READONLY and NOREAD attributes.
404
405 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
406
407         * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
408
409 2016-01-19  John Baldwin  <jhb@FreeBSD.org>
410
411         * readelf.c (get_freebsd_elfcore_note_type): New
412         (process_note): Add support for FreeBSD core notes.
413
414 2016-01-18  Miranda Cupertino  <Cupertino.Miranda@synopsys.com>
415             Zissulescu Claudiu  <Claudiu.Zissulescu@synopsys.com>
416
417         * readelf.c (get_machine_flags): Add support for newer ARC ELF
418         header flags.
419
420 2016-01-18  Alan Modra  <amodra@gmail.com>
421
422         * configure: Regenerate.
423
424 2016-01-17  Alan Modra  <amodra@gmail.com>
425
426         * configure: Regenerate.
427
428 2016-01-17  Alan Modra  <amodra@gmail.com>
429
430         * testsuite/lib/binutils-common.exp (is_elf_format): Return true
431         for m68hc11/12 and xgate triples.
432
433 2016-01-17  Alan Modra  <amodra@gmail.com>
434
435         * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
436
437 2016-01-01  Alan Modra  <amodra@gmail.com>
438
439         Update year range in copyright notice of all files.
440
441 For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
442 \f
443 Copyright (C) 2016 Free Software Foundation, Inc.
444
445 Copying and distribution of this file, with or without modification,
446 are permitted in any medium without royalty provided the copyright
447 notice and this notice are preserved.
448
449 Local Variables:
450 mode: change-log
451 left-margin: 8
452 fill-column: 74
453 version-control: never
454 End: