1 2016-07-20 Claudiu Zissulescu <claziss@synopsys.com>
3 * doc/binutils.texi (objdump): Add ARC disassembler options.
4 * testsuite/binutils-all/arc/dsp.s: New file.
5 * testsuite/binutils-all/arc/objdump.exp: Likewise.
6 * NEWS: Mention the new feature.
8 2016-07-20 Nick Clifton <nickc@redhat.com>
10 * doc/binutils.texi (objcopy): Note that the localize symbol
11 options do not affect unique symbols.
13 2016-07-16 Alan Modra <amodra@gmail.com>
15 * ar.c: Include plugin-api.h.
18 2016-07-16 Alan Modra <amodra@gmail.com>
20 * bucomm.c: Don't include libbfd.h.
21 (endian_string, display_target_list): Delete forward declaration.
22 (display_info_table, display_target_tables): Likewise.
23 (LONGEST_ARCH): Delete.
24 (struct display_target): New.
25 (do_display_target): New function.
26 (display_target_list, display_info): Rewrite functions.
27 (display_info_table): Delete.
28 (do_info_size, do_info_header, do_info_row): New functions.
30 2016-07-16 Alan Modra <amodra@gmail.com>
32 * elfcomm.h (HOST_WIDEST_INT): Move to..
34 * od-macho.c: Don't include libbfd.h. Do include dwarf.h
35 (dump_dyld_info_rebase): Use read_leb128 rather than
37 (dump_dyld_info_bind, dump_dyld_info_export_1): Likewise.
38 (dump_segment_split_info): Likewise.
39 (dump_dyld_info): Rename vars to avoid shadowing dwarf.h enums.
40 (dump_load_command): Likewise.
42 2016-07-16 Alan Modra <amodra@gmail.com>
44 * ar.c: Don't include libbfd.h.
45 * objcopy.c: Likewise.
46 * bucomm.c (bfd_get_archive_filename): Use xmalloc rather than
49 2016-07-15 Alan Modra <amodra@gmail.com>
51 * testsuite/binutils-all/remove-relocs-01.s: Use .dc.a, not .word.
53 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
55 * doc/binutils.texi (objcopy): Document 'remove-relocations'.
57 * objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
58 (enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
59 (struct option strip_options): Add 'remove-relocations'.
60 (struct option copy_options): Likewise.
61 (copy_usage): Likewise.
62 (strip_usage): Likewise.
63 (handle_remove_relocations_option): New function.
64 (discard_relocations): New function.
65 (handle_remove_section_option): New function.
66 (copy_relocations_in_section): Use discard_relocations.
67 (strip_main): Use handle_remove_section_option for
68 'remove-section', and handle 'remove-relocations' option.
69 (copy_main): Likewise.
70 * testsuite/binutils-all/objcopy.exp: Run new tests.
71 * testsuite/binutils-all/remove-relocs-01.d: New file.
72 * testsuite/binutils-all/remove-relocs-01.s: New file.
73 * testsuite/binutils-all/remove-relocs-02.d: New file.
74 * testsuite/binutils-all/remove-relocs-03.d: New file.
75 * testsuite/binutils-all/remove-relocs-04.d: New file.
76 * testsuite/binutils-all/remove-relocs-05.d: New file.
77 * testsuite/binutils-all/remove-relocs-06.d: New file.
78 * NEWS: Mention new option.
80 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
82 * objcopy.c (find_section_list): Handle section patterns starting
83 with '!' being a non-matching pattern.
84 * doc/binutils.texi (objcopy): Give example of using '!' with
85 --remove-section and --only-section.
86 (strip): Give example of using '!' with --remove-section.
87 * testsuite/binutils-all/data-sections.s: New file.
88 * testsuite/binutils-all/only-section-01.d: New file.
89 * testsuite/binutils-all/remove-section-01.d: New file.
90 * testsuite/binutils-all/objcopy.exp: Run new tests.
91 * NEWS: Mention new feature.
93 2016-07-09 Alan Modra <amodra@gmail.com>
96 * objdump.c (compare_symbols): For ELF, sort same value/type
97 symbols according to size.
99 2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
101 * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
103 * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
104 ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
105 (process_section_headers): Rename noread to purecode.
107 * section.c (SEC_ELF_NOREAD): Rename to ...
108 (SEC_ELF_PURECODE): ... this.
110 2016-07-01 Nick Clifton <nickc@redhat.com>
112 * prdbg.c (pr_enum_type): Use a buffer big enough to hold an
113 extremely large decimal value.
114 (pr_range_type): Likewise.
115 (pr_array_type): Likewise.
116 (pr_struct_field): Likewise.
117 (pr_class_baseclass): Likewise.
118 (pr_class_method_variant): Likewise.
119 (pr_tag_type): Likewise.
120 (pr_int_constant): Likewise.
121 (pr_typed_constant): Likewise.
122 (pr_variable): Likewise.
123 (pr_function_parameter): Likewise.
124 (pr_start_block): Likewise.
125 (pr_lineno): Likewise.
126 (pr_end_block): Likewise.
127 (tg_enum_type): Likewise.
128 (tg_int_constant): Likewise.
129 (tg_typed_constant): Likewise.
130 (tg_start_block): Likewise.
132 2016-07-01 Nick Clifton <nickc@redhat.com>
134 * testsuite/binutils-all/objcopy.exp
135 (objcopy_test_without_global_symbol): Expect this test to fail on
136 the AArch64 and ARM targets, since they preserve their mapping
139 2016-07-01 Tristan Gingold <gingold@adacore.com>
141 * NEWS: Add marker for 2.27.
143 2016-07-30 Tristan Gingold <gingold@adacore.com>
145 * doc/binutils.texi (objdump): Fix mis-placement.
147 2016-06-28 Nick Clifton <nickc@redhat.com>
149 * testsuite/binutils-all/ar.exp: Relax previous restriction on
150 Alpha targets. Allow ELF based Alpha targets.
152 2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
154 * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
155 the `unique_symbol' test.
157 2016-06-28 Alan Modra <amodra@gmail.com>
160 * objdump.c (objdump_print_symname): Don't attempt to retrieve
161 version info from synthetic symbols.
163 2016-06-24 Alan Modra <amodra@gmail.com>
165 * objcopy.c (find_section_rename): Forward declare. Remove
166 ibfd and sec_ptr param. Add old_name param. Allow for NULL
167 returned_flags. Move read of section name and flags to..
168 (setup_section): ..here. Update find_section_rename call.
169 (filter_symbols): Rename section symbols for renamed sections.
170 (copy_object): Call filter_symbols when renamed sections.
171 * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
172 * testsuite/binutils-all/update-section.exp: Revert 96037eb0
174 * testsuite/binutils-all/objcopy.exp (copy_executable): Use
176 (localize-hidden-1): xfail if is_bad_symtab.
177 * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
180 2016-06-24 Alan Modra <amodra@gmail.com>
182 * objdump.c (struct print_file_list): Add "max_printed".
183 (try_print_file_open): Init new field.
184 (show_line): Don't show 5 context lines when redisplaying source.
186 2016-06-22 Nick Clifton <nickc@redhat.com>
188 * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
189 Skip bfdtest1 tests for tic30 target.
190 * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
192 * testsuite/binutils-all/compress.exp: Expect some tests to fail
194 * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
195 * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
197 * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
199 * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
200 if the bintest.o file was created. Use the
201 get_standard_section_names proc to get the name of the data
203 * testsuite/binutils-all/objdump.exp: Update regexps to allow for
205 * testsuite/binutils-all/readelf.exp: Use
206 get_standard_section_names proc to get the name of the data
208 * testsuite/binutils-all/readelf.r: Allow for non standard text
210 * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
211 * testsuite/binutils-all/size.exp: Allow for non standard section
213 * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
214 to fail on mips targets.
215 * testsuite/lib/utils-lib.exp (default_binutils_run): Use
216 get_standard_section_names proc.
217 (run_dump_test): Likewise.
218 (proc get_standard_section_names): New proc.
220 2016-06-22 Nick Clifton <nickc@redhat.com>
222 * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
223 (process_mips_specific): Likewise.
224 (process_gnu_liblist): Likewise.
226 2016-06-21 Graham Markall <graham.markall@embecosm.com>
228 * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
231 2016-06-15 Nick Clifton <nickc@redhat.com>
233 * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
236 2016-06-14 John Baldwin <jhb@FreeBSD.org>
238 * objcopy.c (do_elf_stt_common): Use correct type.
240 2016-06-14 Alan Modra <amodra@gmail.com>
242 * ar.c: Expand uses of bfd_my_archive.
245 2016-06-14 Alan Modra <amodra@gmail.com>
248 * bucomm.c (bfd_get_archive_filename): Return file name within thin
251 2016-06-02 Nick Clifton <nickc@redhat.com>
254 * objcopy.c (group_signature): Fail if the input symbol table has
255 not been loaded, or if the sh_info field of the group header is 0.
257 * dwarf.c (display_debug_frames): Do not display any
258 interpretation if the block consists solely of DW__CFA_NOPs.
260 2016-05-31 Alan Modra <amodra@gmail.com>
262 * objcopy.c: Formatting, whitespace throughout.
263 (copy_main): Init newsym->othersym.
264 (parse_symflags): Make len a size_t. Adjust uses.
266 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
269 * NEWS: Mention --enable-64-bit-archive.
271 2016-05-18 Nick Clifton <nickc@redhat.com>
274 * objcopy.c (copy_relocations_in_section): Also check for the
275 symbol pointed to by sym_ptr_ptr being NULL.
277 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
279 * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
280 * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
282 * testsuite/binutils-all/mips/mips.exp: Run the new test.
284 2016-05-18 Nick Clifton <nickc@redhat.com>
286 * po/sv.po: Updated Swedish translation.
288 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
290 * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
291 <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
292 <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
293 <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
294 <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
295 <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
296 `d_val' rather than `d_ptr' member of the dynamic entry.
298 2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
300 * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
302 * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
303 with the `strip-10' test.
305 2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
307 * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
310 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
312 * readelf.c (print_mips_ases): Add DSPR3.
314 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
316 * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
317 (arm_attr_public_tags): Define DSP_extension attribute.
319 2016-05-10 Andrew Burgess <andrew.burgess@embecosm.com>
321 * doc/binutils.texi (nm): Update description of --size-sort.
323 2016-05-09 Nick Clifton <nickc@redhat.com>
326 * readelf.c (get_32bit_section_headers): Warn if an out of range
327 sh_link or sh_info field is encountered.
328 (get_64bit_section_headers): Likewise.
330 2016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
332 * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
334 2016-05-03 Nick Clifton <nickc@redhat.com>
336 * po/sv.po: Updated Swedish translation.
338 2016-04-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
340 * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
341 PC relocation for AVR target.
342 (is_none_reloc): Return true if reloc is any of AVR diff
345 2016-04-29 Nick Clifton <nickc@redhat.com>
348 * readelf.c (get_solaris_segment_type): New function.
349 (get_segment_type): Call it.
351 2016-04-28 Nick Clifton <nickc@redhat.com>
353 * po/zh_CN.po: Updated Chinese (simplified) translation.
355 2016-04-28 Nick Clifton <nickc@redhat.com>
358 * testsuite/binutils-all/aarch64/illegal.s: New test.
359 * testsuite/binutils-all/aarch64/illegal.d: New test driver.
361 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
363 * resres.c: Likewise.
365 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
367 * Makefile.in: Regenerated with automake 1.11.6.
368 * aclocal.m4: Likewise.
369 * doc/Makefile.in: Likewise.
371 2016-04-14 Nick Clifton <nickc@redhat.com>
374 * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
375 string sections possibly having the SHF_STRINGS flag bit set.
376 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
377 * testsuite/binutils-all/readelf.s: Likewise.
378 * testsuite/binutils-all/readelf.s-64: Likewise.
379 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
380 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
382 2016-04-13 Nick Clifton <nickc@redhat.com>
385 * readelf.c (get_solaris_section_type): New function: Returns the
386 name of Solaris specific section types.
387 (get_solaris_dynamic_type): New function: Return the name of
388 Solaris specific dynamic types.
389 (get_dynamic_type): Use get_solaris_dynamic_type.
390 (get_section_type_name): Use get_solaris_section_type.
391 (get_solaris_symbol_visibility): New function: Returns Solaris
392 specific symbol visibilities.
393 (print_dynamic_symbol): Use get_solaris_symbol_visibility.
394 (process_symbol_table): Likewise.
396 2016-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
398 * dwarf.h (init_dwarf_regnames_s390): Declare.
399 * dwarf.c (dwarf_regnames_s390): New.
400 (init_dwarf_regnames_s390): New.
401 (init_dwarf_regnames): Call it.
402 * objdump.c (dump_dwarf): Likewise.
404 2016-04-11 Maciej W. Rozycki <macro@imgtec.com>
406 * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
407 * testsuite/binutils-all/mips/mips16-undecoded.s: New test
409 * testsuite/binutils-all/mips/mips.exp: Run the new test.
411 2016-04-04 Nick Clifton <nickc@redhat.com>
414 * dwarf.c (display_debug_aranges): Skip warning about unrecognised
415 version number if the version is zero.
417 2016-03-29 Alan Modra <amodra@gmail.com>
419 * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
420 (get_dynamic_data): Likewise.
422 2016-03-22 Nick Clifton <nickc@redhat.com>
425 * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
426 with run time size check.
428 * configure: Regenerate.
430 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
432 * readelf.c (decode_ARC_machine_flags): Handle nps400.
434 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
436 * readelf.c (get_machine_flags): Move arc processing into...
437 (decode_ARC_machine_flags): ... new function. Remove use of
438 EF_ARC_CPU_GENERIC, change default case from "generic arc" to
439 "unknown arc". Merged ABI printing between two machine types.
441 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
443 * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
444 to the architecture list.
446 2016-03-21 Nick Clifton <nickc@redhat.com>
448 * dlltool.c: Replace use of alloca with call to xmalloc.
449 * dllwrap.c: Likewise.
450 * nlmconv.c: Likewise.
451 * objdump.c: Likewise.
453 * winduni.c: Likewise.
454 * configure: Regenerate.
456 2016-03-07 Nick Clifton <nickc@redhat.com>
459 * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
461 * testsuite/binutils-all/empty: New, empty, file.
463 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
465 * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
467 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
470 * NEWS: Mention --elf-stt-common= for objcopy.
471 * doc/binutils.texi: Document --elf-stt-common= for objcopy.
472 * objcopy.c (do_elf_stt_common): New.
473 (command_line_switch): Add OPTION_ELF_STT_COMMON.
474 (copy_options): Add --elf-stt-common=.
475 (copy_usage): Add --elf-stt-common=.
476 (copy_object): Also check do_elf_stt_common for ELF targets.
477 (copy_file): Handle do_elf_stt_common.
478 (copy_main): Handle OPTION_ELF_STT_COMMON.
479 * readelf.c (apply_relocations): Support STT_COMMON.
480 * testsuite/binutils-all/common-1.s: New file.
481 * testsuite/binutils-all/common-1a.d: Likewise.
482 * testsuite/binutils-all/common-1b.d: Likewise.
483 * testsuite/binutils-all/common-1c.d: Likewise.
484 * testsuite/binutils-all/common-1d.d: Likewise.
485 * testsuite/binutils-all/common-1e.d: Likewise.
486 * testsuite/binutils-all/common-1f.d: Likewise.
487 * testsuite/binutils-all/common-2.s: Likewise.
488 * testsuite/binutils-all/common-2a.d: Likewise.
489 * testsuite/binutils-all/common-2b.d: Likewise.
490 * testsuite/binutils-all/common-2c.d: Likewise.
491 * testsuite/binutils-all/common-2d.d: Likewise.
492 * testsuite/binutils-all/common-2e.d: Likewise.
493 * testsuite/binutils-all/common-2f.d: Likewise.
494 * testsuite/binutils-all/objcopy.exp
495 (objcopy_test_elf_common_symbols): New proc.
496 Run objcopy_test_elf_common_symbols for ELF targets
498 2016-02-16 H.J. Lu <hongjiu.lu@intel.com>
501 * readelf.c (get_section_type_name): Add a missing break.
503 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
505 * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
507 2016-02-15 Nick Clifton <nickc@redhat.com>
509 * readelf.c (get_section_type_name): Add hex prefix to offsets
510 printed for LOPROC and LOOS values. Ensure that a result is
511 always returned for the V850 target, even when an unrecognised
512 processor specific value is encountered.
513 (process_section_headers): Display key values in the order in
514 which they appear to the user. Add the "C (compressed)" value to
517 2016-02-12 H.J. Lu <hongjiu.lu@intel.com>
519 * doc/binutils.texi: Fix a typo.
521 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
523 * testsuite/binutils-all/objdump.exp: Update expected default
524 architecture value for ARC binaries.
526 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
529 * testsuite/binutils-all/objcopy.exp
530 (objcopy_test_without_global_symbol): New proc.
531 Run objcopy_test_without_global_symbol.
532 * testsuite/binutils-all/pr19547.c: New file.
534 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
537 * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
539 * Makefile.in: Regenerated.
540 * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
542 Run test_gnu_debuglink for native ELF build.
544 2016-01-20 Nick Clifton <nickc@redhat.com>
547 * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
548 do not support inserting leading underscores.
550 2016-01-20 Mickael Guene <mickael.guene@st.com>
552 * readelf.c (get_elf_section_flags): Display y letter for section
553 with SHF_ARM_NOREAD section flag in readelf section output.
554 (process_section_headers): Add y letter in readelf section output
555 key mapping for ARM architecture.
556 * objdump.c (dump_section_header): Display NOREAD attributes as
558 * doc/binutils.texi (objdump): Note that it is correct for
559 sections to have both the READONLY and NOREAD attributes.
561 2016-01-19 John Baldwin <jhb@FreeBSD.org>
563 * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
565 2016-01-19 John Baldwin <jhb@FreeBSD.org>
567 * readelf.c (get_freebsd_elfcore_note_type): New
568 (process_note): Add support for FreeBSD core notes.
570 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
571 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
573 * readelf.c (get_machine_flags): Add support for newer ARC ELF
576 2016-01-18 Alan Modra <amodra@gmail.com>
578 * configure: Regenerate.
580 2016-01-17 Alan Modra <amodra@gmail.com>
582 * configure: Regenerate.
584 2016-01-17 Alan Modra <amodra@gmail.com>
586 * testsuite/lib/binutils-common.exp (is_elf_format): Return true
587 for m68hc11/12 and xgate triples.
589 2016-01-17 Alan Modra <amodra@gmail.com>
591 * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
593 2016-01-01 Alan Modra <amodra@gmail.com>
595 Update year range in copyright notice of all files.
597 For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
599 Copyright (C) 2016 Free Software Foundation, Inc.
601 Copying and distribution of this file, with or without modification,
602 are permitted in any medium without royalty provided the copyright
603 notice and this notice are preserved.
609 version-control: never