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