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