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