1 2016-07-21 H.J. Lu <hongjiu.lu@intel.com>
3 * configure: Regenerated.
5 2016-07-20 Claudiu Zissulescu <claziss@synopsys.com>
7 * doc/binutils.texi (objdump): Add ARC disassembler options.
8 * testsuite/binutils-all/arc/dsp.s: New file.
9 * testsuite/binutils-all/arc/objdump.exp: Likewise.
10 * NEWS: Mention the new feature.
12 2016-07-20 Nick Clifton <nickc@redhat.com>
14 * doc/binutils.texi (objcopy): Note that the localize symbol
15 options do not affect unique symbols.
17 2016-07-16 Alan Modra <amodra@gmail.com>
19 * ar.c: Include plugin-api.h.
22 2016-07-16 Alan Modra <amodra@gmail.com>
24 * bucomm.c: Don't include libbfd.h.
25 (endian_string, display_target_list): Delete forward declaration.
26 (display_info_table, display_target_tables): Likewise.
27 (LONGEST_ARCH): Delete.
28 (struct display_target): New.
29 (do_display_target): New function.
30 (display_target_list, display_info): Rewrite functions.
31 (display_info_table): Delete.
32 (do_info_size, do_info_header, do_info_row): New functions.
34 2016-07-16 Alan Modra <amodra@gmail.com>
36 * elfcomm.h (HOST_WIDEST_INT): Move to..
38 * od-macho.c: Don't include libbfd.h. Do include dwarf.h
39 (dump_dyld_info_rebase): Use read_leb128 rather than
41 (dump_dyld_info_bind, dump_dyld_info_export_1): Likewise.
42 (dump_segment_split_info): Likewise.
43 (dump_dyld_info): Rename vars to avoid shadowing dwarf.h enums.
44 (dump_load_command): Likewise.
46 2016-07-16 Alan Modra <amodra@gmail.com>
48 * ar.c: Don't include libbfd.h.
49 * objcopy.c: Likewise.
50 * bucomm.c (bfd_get_archive_filename): Use xmalloc rather than
53 2016-07-15 Alan Modra <amodra@gmail.com>
55 * testsuite/binutils-all/remove-relocs-01.s: Use .dc.a, not .word.
57 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
59 * doc/binutils.texi (objcopy): Document 'remove-relocations'.
61 * objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
62 (enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
63 (struct option strip_options): Add 'remove-relocations'.
64 (struct option copy_options): Likewise.
65 (copy_usage): Likewise.
66 (strip_usage): Likewise.
67 (handle_remove_relocations_option): New function.
68 (discard_relocations): New function.
69 (handle_remove_section_option): New function.
70 (copy_relocations_in_section): Use discard_relocations.
71 (strip_main): Use handle_remove_section_option for
72 'remove-section', and handle 'remove-relocations' option.
73 (copy_main): Likewise.
74 * testsuite/binutils-all/objcopy.exp: Run new tests.
75 * testsuite/binutils-all/remove-relocs-01.d: New file.
76 * testsuite/binutils-all/remove-relocs-01.s: New file.
77 * testsuite/binutils-all/remove-relocs-02.d: New file.
78 * testsuite/binutils-all/remove-relocs-03.d: New file.
79 * testsuite/binutils-all/remove-relocs-04.d: New file.
80 * testsuite/binutils-all/remove-relocs-05.d: New file.
81 * testsuite/binutils-all/remove-relocs-06.d: New file.
82 * NEWS: Mention new option.
84 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
86 * objcopy.c (find_section_list): Handle section patterns starting
87 with '!' being a non-matching pattern.
88 * doc/binutils.texi (objcopy): Give example of using '!' with
89 --remove-section and --only-section.
90 (strip): Give example of using '!' with --remove-section.
91 * testsuite/binutils-all/data-sections.s: New file.
92 * testsuite/binutils-all/only-section-01.d: New file.
93 * testsuite/binutils-all/remove-section-01.d: New file.
94 * testsuite/binutils-all/objcopy.exp: Run new tests.
95 * NEWS: Mention new feature.
97 2016-07-09 Alan Modra <amodra@gmail.com>
100 * objdump.c (compare_symbols): For ELF, sort same value/type
101 symbols according to size.
103 2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
105 * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
107 * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
108 ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
109 (process_section_headers): Rename noread to purecode.
111 * section.c (SEC_ELF_NOREAD): Rename to ...
112 (SEC_ELF_PURECODE): ... this.
114 2016-07-01 Nick Clifton <nickc@redhat.com>
116 * prdbg.c (pr_enum_type): Use a buffer big enough to hold an
117 extremely large decimal value.
118 (pr_range_type): Likewise.
119 (pr_array_type): Likewise.
120 (pr_struct_field): Likewise.
121 (pr_class_baseclass): Likewise.
122 (pr_class_method_variant): Likewise.
123 (pr_tag_type): Likewise.
124 (pr_int_constant): Likewise.
125 (pr_typed_constant): Likewise.
126 (pr_variable): Likewise.
127 (pr_function_parameter): Likewise.
128 (pr_start_block): Likewise.
129 (pr_lineno): Likewise.
130 (pr_end_block): Likewise.
131 (tg_enum_type): Likewise.
132 (tg_int_constant): Likewise.
133 (tg_typed_constant): Likewise.
134 (tg_start_block): Likewise.
136 2016-07-01 Nick Clifton <nickc@redhat.com>
138 * testsuite/binutils-all/objcopy.exp
139 (objcopy_test_without_global_symbol): Expect this test to fail on
140 the AArch64 and ARM targets, since they preserve their mapping
143 2016-07-01 Tristan Gingold <gingold@adacore.com>
145 * NEWS: Add marker for 2.27.
147 2016-07-30 Tristan Gingold <gingold@adacore.com>
149 * doc/binutils.texi (objdump): Fix mis-placement.
151 2016-06-28 Nick Clifton <nickc@redhat.com>
153 * testsuite/binutils-all/ar.exp: Relax previous restriction on
154 Alpha targets. Allow ELF based Alpha targets.
156 2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
158 * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
159 the `unique_symbol' test.
161 2016-06-28 Alan Modra <amodra@gmail.com>
164 * objdump.c (objdump_print_symname): Don't attempt to retrieve
165 version info from synthetic symbols.
167 2016-06-24 Alan Modra <amodra@gmail.com>
169 * objcopy.c (find_section_rename): Forward declare. Remove
170 ibfd and sec_ptr param. Add old_name param. Allow for NULL
171 returned_flags. Move read of section name and flags to..
172 (setup_section): ..here. Update find_section_rename call.
173 (filter_symbols): Rename section symbols for renamed sections.
174 (copy_object): Call filter_symbols when renamed sections.
175 * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
176 * testsuite/binutils-all/update-section.exp: Revert 96037eb0
178 * testsuite/binutils-all/objcopy.exp (copy_executable): Use
180 (localize-hidden-1): xfail if is_bad_symtab.
181 * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
184 2016-06-24 Alan Modra <amodra@gmail.com>
186 * objdump.c (struct print_file_list): Add "max_printed".
187 (try_print_file_open): Init new field.
188 (show_line): Don't show 5 context lines when redisplaying source.
190 2016-06-22 Nick Clifton <nickc@redhat.com>
192 * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
193 Skip bfdtest1 tests for tic30 target.
194 * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
196 * testsuite/binutils-all/compress.exp: Expect some tests to fail
198 * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
199 * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
201 * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
203 * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
204 if the bintest.o file was created. Use the
205 get_standard_section_names proc to get the name of the data
207 * testsuite/binutils-all/objdump.exp: Update regexps to allow for
209 * testsuite/binutils-all/readelf.exp: Use
210 get_standard_section_names proc to get the name of the data
212 * testsuite/binutils-all/readelf.r: Allow for non standard text
214 * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
215 * testsuite/binutils-all/size.exp: Allow for non standard section
217 * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
218 to fail on mips targets.
219 * testsuite/lib/utils-lib.exp (default_binutils_run): Use
220 get_standard_section_names proc.
221 (run_dump_test): Likewise.
222 (proc get_standard_section_names): New proc.
224 2016-06-22 Nick Clifton <nickc@redhat.com>
226 * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
227 (process_mips_specific): Likewise.
228 (process_gnu_liblist): Likewise.
230 2016-06-21 Graham Markall <graham.markall@embecosm.com>
232 * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
235 2016-06-15 Nick Clifton <nickc@redhat.com>
237 * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
240 2016-06-14 John Baldwin <jhb@FreeBSD.org>
242 * objcopy.c (do_elf_stt_common): Use correct type.
244 2016-06-14 Alan Modra <amodra@gmail.com>
246 * ar.c: Expand uses of bfd_my_archive.
249 2016-06-14 Alan Modra <amodra@gmail.com>
252 * bucomm.c (bfd_get_archive_filename): Return file name within thin
255 2016-06-02 Nick Clifton <nickc@redhat.com>
258 * objcopy.c (group_signature): Fail if the input symbol table has
259 not been loaded, or if the sh_info field of the group header is 0.
261 * dwarf.c (display_debug_frames): Do not display any
262 interpretation if the block consists solely of DW__CFA_NOPs.
264 2016-05-31 Alan Modra <amodra@gmail.com>
266 * objcopy.c: Formatting, whitespace throughout.
267 (copy_main): Init newsym->othersym.
268 (parse_symflags): Make len a size_t. Adjust uses.
270 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
273 * NEWS: Mention --enable-64-bit-archive.
275 2016-05-18 Nick Clifton <nickc@redhat.com>
278 * objcopy.c (copy_relocations_in_section): Also check for the
279 symbol pointed to by sym_ptr_ptr being NULL.
281 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
283 * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
284 * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
286 * testsuite/binutils-all/mips/mips.exp: Run the new test.
288 2016-05-18 Nick Clifton <nickc@redhat.com>
290 * po/sv.po: Updated Swedish translation.
292 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
294 * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
295 <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
296 <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
297 <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
298 <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
299 <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
300 `d_val' rather than `d_ptr' member of the dynamic entry.
302 2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
304 * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
306 * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
307 with the `strip-10' test.
309 2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
311 * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
314 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
316 * readelf.c (print_mips_ases): Add DSPR3.
318 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
320 * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
321 (arm_attr_public_tags): Define DSP_extension attribute.
323 2016-05-10 Andrew Burgess <andrew.burgess@embecosm.com>
325 * doc/binutils.texi (nm): Update description of --size-sort.
327 2016-05-09 Nick Clifton <nickc@redhat.com>
330 * readelf.c (get_32bit_section_headers): Warn if an out of range
331 sh_link or sh_info field is encountered.
332 (get_64bit_section_headers): Likewise.
334 2016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
336 * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
338 2016-05-03 Nick Clifton <nickc@redhat.com>
340 * po/sv.po: Updated Swedish translation.
342 2016-04-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
344 * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
345 PC relocation for AVR target.
346 (is_none_reloc): Return true if reloc is any of AVR diff
349 2016-04-29 Nick Clifton <nickc@redhat.com>
352 * readelf.c (get_solaris_segment_type): New function.
353 (get_segment_type): Call it.
355 2016-04-28 Nick Clifton <nickc@redhat.com>
357 * po/zh_CN.po: Updated Chinese (simplified) translation.
359 2016-04-28 Nick Clifton <nickc@redhat.com>
362 * testsuite/binutils-all/aarch64/illegal.s: New test.
363 * testsuite/binutils-all/aarch64/illegal.d: New test driver.
365 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
367 * resres.c: Likewise.
369 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
371 * Makefile.in: Regenerated with automake 1.11.6.
372 * aclocal.m4: Likewise.
373 * doc/Makefile.in: Likewise.
375 2016-04-14 Nick Clifton <nickc@redhat.com>
378 * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
379 string sections possibly having the SHF_STRINGS flag bit set.
380 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
381 * testsuite/binutils-all/readelf.s: Likewise.
382 * testsuite/binutils-all/readelf.s-64: Likewise.
383 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
384 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
386 2016-04-13 Nick Clifton <nickc@redhat.com>
389 * readelf.c (get_solaris_section_type): New function: Returns the
390 name of Solaris specific section types.
391 (get_solaris_dynamic_type): New function: Return the name of
392 Solaris specific dynamic types.
393 (get_dynamic_type): Use get_solaris_dynamic_type.
394 (get_section_type_name): Use get_solaris_section_type.
395 (get_solaris_symbol_visibility): New function: Returns Solaris
396 specific symbol visibilities.
397 (print_dynamic_symbol): Use get_solaris_symbol_visibility.
398 (process_symbol_table): Likewise.
400 2016-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
402 * dwarf.h (init_dwarf_regnames_s390): Declare.
403 * dwarf.c (dwarf_regnames_s390): New.
404 (init_dwarf_regnames_s390): New.
405 (init_dwarf_regnames): Call it.
406 * objdump.c (dump_dwarf): Likewise.
408 2016-04-11 Maciej W. Rozycki <macro@imgtec.com>
410 * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
411 * testsuite/binutils-all/mips/mips16-undecoded.s: New test
413 * testsuite/binutils-all/mips/mips.exp: Run the new test.
415 2016-04-04 Nick Clifton <nickc@redhat.com>
418 * dwarf.c (display_debug_aranges): Skip warning about unrecognised
419 version number if the version is zero.
421 2016-03-29 Alan Modra <amodra@gmail.com>
423 * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
424 (get_dynamic_data): Likewise.
426 2016-03-22 Nick Clifton <nickc@redhat.com>
429 * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
430 with run time size check.
432 * configure: Regenerate.
434 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
436 * readelf.c (decode_ARC_machine_flags): Handle nps400.
438 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
440 * readelf.c (get_machine_flags): Move arc processing into...
441 (decode_ARC_machine_flags): ... new function. Remove use of
442 EF_ARC_CPU_GENERIC, change default case from "generic arc" to
443 "unknown arc". Merged ABI printing between two machine types.
445 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
447 * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
448 to the architecture list.
450 2016-03-21 Nick Clifton <nickc@redhat.com>
452 * dlltool.c: Replace use of alloca with call to xmalloc.
453 * dllwrap.c: Likewise.
454 * nlmconv.c: Likewise.
455 * objdump.c: Likewise.
457 * winduni.c: Likewise.
458 * configure: Regenerate.
460 2016-03-07 Nick Clifton <nickc@redhat.com>
463 * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
465 * testsuite/binutils-all/empty: New, empty, file.
467 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
469 * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
471 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
474 * NEWS: Mention --elf-stt-common= for objcopy.
475 * doc/binutils.texi: Document --elf-stt-common= for objcopy.
476 * objcopy.c (do_elf_stt_common): New.
477 (command_line_switch): Add OPTION_ELF_STT_COMMON.
478 (copy_options): Add --elf-stt-common=.
479 (copy_usage): Add --elf-stt-common=.
480 (copy_object): Also check do_elf_stt_common for ELF targets.
481 (copy_file): Handle do_elf_stt_common.
482 (copy_main): Handle OPTION_ELF_STT_COMMON.
483 * readelf.c (apply_relocations): Support STT_COMMON.
484 * testsuite/binutils-all/common-1.s: New file.
485 * testsuite/binutils-all/common-1a.d: Likewise.
486 * testsuite/binutils-all/common-1b.d: Likewise.
487 * testsuite/binutils-all/common-1c.d: Likewise.
488 * testsuite/binutils-all/common-1d.d: Likewise.
489 * testsuite/binutils-all/common-1e.d: Likewise.
490 * testsuite/binutils-all/common-1f.d: Likewise.
491 * testsuite/binutils-all/common-2.s: Likewise.
492 * testsuite/binutils-all/common-2a.d: Likewise.
493 * testsuite/binutils-all/common-2b.d: Likewise.
494 * testsuite/binutils-all/common-2c.d: Likewise.
495 * testsuite/binutils-all/common-2d.d: Likewise.
496 * testsuite/binutils-all/common-2e.d: Likewise.
497 * testsuite/binutils-all/common-2f.d: Likewise.
498 * testsuite/binutils-all/objcopy.exp
499 (objcopy_test_elf_common_symbols): New proc.
500 Run objcopy_test_elf_common_symbols for ELF targets
502 2016-02-16 H.J. Lu <hongjiu.lu@intel.com>
505 * readelf.c (get_section_type_name): Add a missing break.
507 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
509 * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
511 2016-02-15 Nick Clifton <nickc@redhat.com>
513 * readelf.c (get_section_type_name): Add hex prefix to offsets
514 printed for LOPROC and LOOS values. Ensure that a result is
515 always returned for the V850 target, even when an unrecognised
516 processor specific value is encountered.
517 (process_section_headers): Display key values in the order in
518 which they appear to the user. Add the "C (compressed)" value to
521 2016-02-12 H.J. Lu <hongjiu.lu@intel.com>
523 * doc/binutils.texi: Fix a typo.
525 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
527 * testsuite/binutils-all/objdump.exp: Update expected default
528 architecture value for ARC binaries.
530 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
533 * testsuite/binutils-all/objcopy.exp
534 (objcopy_test_without_global_symbol): New proc.
535 Run objcopy_test_without_global_symbol.
536 * testsuite/binutils-all/pr19547.c: New file.
538 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
541 * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
543 * Makefile.in: Regenerated.
544 * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
546 Run test_gnu_debuglink for native ELF build.
548 2016-01-20 Nick Clifton <nickc@redhat.com>
551 * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
552 do not support inserting leading underscores.
554 2016-01-20 Mickael Guene <mickael.guene@st.com>
556 * readelf.c (get_elf_section_flags): Display y letter for section
557 with SHF_ARM_NOREAD section flag in readelf section output.
558 (process_section_headers): Add y letter in readelf section output
559 key mapping for ARM architecture.
560 * objdump.c (dump_section_header): Display NOREAD attributes as
562 * doc/binutils.texi (objdump): Note that it is correct for
563 sections to have both the READONLY and NOREAD attributes.
565 2016-01-19 John Baldwin <jhb@FreeBSD.org>
567 * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
569 2016-01-19 John Baldwin <jhb@FreeBSD.org>
571 * readelf.c (get_freebsd_elfcore_note_type): New
572 (process_note): Add support for FreeBSD core notes.
574 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
575 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
577 * readelf.c (get_machine_flags): Add support for newer ARC ELF
580 2016-01-18 Alan Modra <amodra@gmail.com>
582 * configure: Regenerate.
584 2016-01-17 Alan Modra <amodra@gmail.com>
586 * configure: Regenerate.
588 2016-01-17 Alan Modra <amodra@gmail.com>
590 * testsuite/lib/binutils-common.exp (is_elf_format): Return true
591 for m68hc11/12 and xgate triples.
593 2016-01-17 Alan Modra <amodra@gmail.com>
595 * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
597 2016-01-01 Alan Modra <amodra@gmail.com>
599 Update year range in copyright notice of all files.
601 For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
603 Copyright (C) 2016 Free Software Foundation, Inc.
605 Copying and distribution of this file, with or without modification,
606 are permitted in any medium without royalty provided the copyright
607 notice and this notice are preserved.
613 version-control: never