1 2016-07-16 Alan Modra <amodra@gmail.com>
3 * bucomm.c: Don't include libbfd.h.
4 (endian_string, display_target_list): Delete forward declaration.
5 (display_info_table, display_target_tables): Likewise.
6 (LONGEST_ARCH): Delete.
7 (struct display_target): New.
8 (do_display_target): New function.
9 (display_target_list, display_info): Rewrite functions.
10 (display_info_table): Delete.
11 (do_info_size, do_info_header, do_info_row): New functions.
13 2016-07-16 Alan Modra <amodra@gmail.com>
15 * elfcomm.h (HOST_WIDEST_INT): Move to..
17 * od-macho.c: Don't include libbfd.h. Do include dwarf.h
18 (dump_dyld_info_rebase): Use read_leb128 rather than
20 (dump_dyld_info_bind, dump_dyld_info_export_1): Likewise.
21 (dump_segment_split_info): Likewise.
22 (dump_dyld_info): Rename vars to avoid shadowing dwarf.h enums.
23 (dump_load_command): Likewise.
25 2016-07-16 Alan Modra <amodra@gmail.com>
27 * ar.c: Don't include libbfd.h.
28 * objcopy.c: Likewise.
29 * bucomm.c (bfd_get_archive_filename): Use xmalloc rather than
32 2016-07-15 Alan Modra <amodra@gmail.com>
34 * testsuite/binutils-all/remove-relocs-01.s: Use .dc.a, not .word.
36 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
38 * doc/binutils.texi (objcopy): Document 'remove-relocations'.
40 * objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
41 (enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
42 (struct option strip_options): Add 'remove-relocations'.
43 (struct option copy_options): Likewise.
44 (copy_usage): Likewise.
45 (strip_usage): Likewise.
46 (handle_remove_relocations_option): New function.
47 (discard_relocations): New function.
48 (handle_remove_section_option): New function.
49 (copy_relocations_in_section): Use discard_relocations.
50 (strip_main): Use handle_remove_section_option for
51 'remove-section', and handle 'remove-relocations' option.
52 (copy_main): Likewise.
53 * testsuite/binutils-all/objcopy.exp: Run new tests.
54 * testsuite/binutils-all/remove-relocs-01.d: New file.
55 * testsuite/binutils-all/remove-relocs-01.s: New file.
56 * testsuite/binutils-all/remove-relocs-02.d: New file.
57 * testsuite/binutils-all/remove-relocs-03.d: New file.
58 * testsuite/binutils-all/remove-relocs-04.d: New file.
59 * testsuite/binutils-all/remove-relocs-05.d: New file.
60 * testsuite/binutils-all/remove-relocs-06.d: New file.
61 * NEWS: Mention new option.
63 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
65 * objcopy.c (find_section_list): Handle section patterns starting
66 with '!' being a non-matching pattern.
67 * doc/binutils.texi (objcopy): Give example of using '!' with
68 --remove-section and --only-section.
69 (strip): Give example of using '!' with --remove-section.
70 * testsuite/binutils-all/data-sections.s: New file.
71 * testsuite/binutils-all/only-section-01.d: New file.
72 * testsuite/binutils-all/remove-section-01.d: New file.
73 * testsuite/binutils-all/objcopy.exp: Run new tests.
74 * NEWS: Mention new feature.
76 2016-07-09 Alan Modra <amodra@gmail.com>
79 * objdump.c (compare_symbols): For ELF, sort same value/type
80 symbols according to size.
82 2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
84 * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
86 * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
87 ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
88 (process_section_headers): Rename noread to purecode.
90 * section.c (SEC_ELF_NOREAD): Rename to ...
91 (SEC_ELF_PURECODE): ... this.
93 2016-07-01 Nick Clifton <nickc@redhat.com>
95 * prdbg.c (pr_enum_type): Use a buffer big enough to hold an
96 extremely large decimal value.
97 (pr_range_type): Likewise.
98 (pr_array_type): Likewise.
99 (pr_struct_field): Likewise.
100 (pr_class_baseclass): Likewise.
101 (pr_class_method_variant): Likewise.
102 (pr_tag_type): Likewise.
103 (pr_int_constant): Likewise.
104 (pr_typed_constant): Likewise.
105 (pr_variable): Likewise.
106 (pr_function_parameter): Likewise.
107 (pr_start_block): Likewise.
108 (pr_lineno): Likewise.
109 (pr_end_block): Likewise.
110 (tg_enum_type): Likewise.
111 (tg_int_constant): Likewise.
112 (tg_typed_constant): Likewise.
113 (tg_start_block): Likewise.
115 2016-07-01 Nick Clifton <nickc@redhat.com>
117 * testsuite/binutils-all/objcopy.exp
118 (objcopy_test_without_global_symbol): Expect this test to fail on
119 the AArch64 and ARM targets, since they preserve their mapping
122 2016-07-01 Tristan Gingold <gingold@adacore.com>
124 * NEWS: Add marker for 2.27.
126 2016-07-30 Tristan Gingold <gingold@adacore.com>
128 * doc/binutils.texi (objdump): Fix mis-placement.
130 2016-06-28 Nick Clifton <nickc@redhat.com>
132 * testsuite/binutils-all/ar.exp: Relax previous restriction on
133 Alpha targets. Allow ELF based Alpha targets.
135 2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
137 * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
138 the `unique_symbol' test.
140 2016-06-28 Alan Modra <amodra@gmail.com>
143 * objdump.c (objdump_print_symname): Don't attempt to retrieve
144 version info from synthetic symbols.
146 2016-06-24 Alan Modra <amodra@gmail.com>
148 * objcopy.c (find_section_rename): Forward declare. Remove
149 ibfd and sec_ptr param. Add old_name param. Allow for NULL
150 returned_flags. Move read of section name and flags to..
151 (setup_section): ..here. Update find_section_rename call.
152 (filter_symbols): Rename section symbols for renamed sections.
153 (copy_object): Call filter_symbols when renamed sections.
154 * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
155 * testsuite/binutils-all/update-section.exp: Revert 96037eb0
157 * testsuite/binutils-all/objcopy.exp (copy_executable): Use
159 (localize-hidden-1): xfail if is_bad_symtab.
160 * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
163 2016-06-24 Alan Modra <amodra@gmail.com>
165 * objdump.c (struct print_file_list): Add "max_printed".
166 (try_print_file_open): Init new field.
167 (show_line): Don't show 5 context lines when redisplaying source.
169 2016-06-22 Nick Clifton <nickc@redhat.com>
171 * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
172 Skip bfdtest1 tests for tic30 target.
173 * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
175 * testsuite/binutils-all/compress.exp: Expect some tests to fail
177 * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
178 * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
180 * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
182 * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
183 if the bintest.o file was created. Use the
184 get_standard_section_names proc to get the name of the data
186 * testsuite/binutils-all/objdump.exp: Update regexps to allow for
188 * testsuite/binutils-all/readelf.exp: Use
189 get_standard_section_names proc to get the name of the data
191 * testsuite/binutils-all/readelf.r: Allow for non standard text
193 * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
194 * testsuite/binutils-all/size.exp: Allow for non standard section
196 * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
197 to fail on mips targets.
198 * testsuite/lib/utils-lib.exp (default_binutils_run): Use
199 get_standard_section_names proc.
200 (run_dump_test): Likewise.
201 (proc get_standard_section_names): New proc.
203 2016-06-22 Nick Clifton <nickc@redhat.com>
205 * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
206 (process_mips_specific): Likewise.
207 (process_gnu_liblist): Likewise.
209 2016-06-21 Graham Markall <graham.markall@embecosm.com>
211 * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
214 2016-06-15 Nick Clifton <nickc@redhat.com>
216 * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
219 2016-06-14 John Baldwin <jhb@FreeBSD.org>
221 * objcopy.c (do_elf_stt_common): Use correct type.
223 2016-06-14 Alan Modra <amodra@gmail.com>
225 * ar.c: Expand uses of bfd_my_archive.
228 2016-06-14 Alan Modra <amodra@gmail.com>
231 * bucomm.c (bfd_get_archive_filename): Return file name within thin
234 2016-06-02 Nick Clifton <nickc@redhat.com>
237 * objcopy.c (group_signature): Fail if the input symbol table has
238 not been loaded, or if the sh_info field of the group header is 0.
240 * dwarf.c (display_debug_frames): Do not display any
241 interpretation if the block consists solely of DW__CFA_NOPs.
243 2016-05-31 Alan Modra <amodra@gmail.com>
245 * objcopy.c: Formatting, whitespace throughout.
246 (copy_main): Init newsym->othersym.
247 (parse_symflags): Make len a size_t. Adjust uses.
249 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
252 * NEWS: Mention --enable-64-bit-archive.
254 2016-05-18 Nick Clifton <nickc@redhat.com>
257 * objcopy.c (copy_relocations_in_section): Also check for the
258 symbol pointed to by sym_ptr_ptr being NULL.
260 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
262 * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
263 * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
265 * testsuite/binutils-all/mips/mips.exp: Run the new test.
267 2016-05-18 Nick Clifton <nickc@redhat.com>
269 * po/sv.po: Updated Swedish translation.
271 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
273 * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
274 <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
275 <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
276 <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
277 <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
278 <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
279 `d_val' rather than `d_ptr' member of the dynamic entry.
281 2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
283 * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
285 * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
286 with the `strip-10' test.
288 2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
290 * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
293 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
295 * readelf.c (print_mips_ases): Add DSPR3.
297 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
299 * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
300 (arm_attr_public_tags): Define DSP_extension attribute.
302 2016-05-10 Andrew Burgess <andrew.burgess@embecosm.com>
304 * doc/binutils.texi (nm): Update description of --size-sort.
306 2016-05-09 Nick Clifton <nickc@redhat.com>
309 * readelf.c (get_32bit_section_headers): Warn if an out of range
310 sh_link or sh_info field is encountered.
311 (get_64bit_section_headers): Likewise.
313 2016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
315 * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
317 2016-05-03 Nick Clifton <nickc@redhat.com>
319 * po/sv.po: Updated Swedish translation.
321 2016-04-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
323 * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
324 PC relocation for AVR target.
325 (is_none_reloc): Return true if reloc is any of AVR diff
328 2016-04-29 Nick Clifton <nickc@redhat.com>
331 * readelf.c (get_solaris_segment_type): New function.
332 (get_segment_type): Call it.
334 2016-04-28 Nick Clifton <nickc@redhat.com>
336 * po/zh_CN.po: Updated Chinese (simplified) translation.
338 2016-04-28 Nick Clifton <nickc@redhat.com>
341 * testsuite/binutils-all/aarch64/illegal.s: New test.
342 * testsuite/binutils-all/aarch64/illegal.d: New test driver.
344 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
346 * resres.c: Likewise.
348 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
350 * Makefile.in: Regenerated with automake 1.11.6.
351 * aclocal.m4: Likewise.
352 * doc/Makefile.in: Likewise.
354 2016-04-14 Nick Clifton <nickc@redhat.com>
357 * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
358 string sections possibly having the SHF_STRINGS flag bit set.
359 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
360 * testsuite/binutils-all/readelf.s: Likewise.
361 * testsuite/binutils-all/readelf.s-64: Likewise.
362 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
363 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
365 2016-04-13 Nick Clifton <nickc@redhat.com>
368 * readelf.c (get_solaris_section_type): New function: Returns the
369 name of Solaris specific section types.
370 (get_solaris_dynamic_type): New function: Return the name of
371 Solaris specific dynamic types.
372 (get_dynamic_type): Use get_solaris_dynamic_type.
373 (get_section_type_name): Use get_solaris_section_type.
374 (get_solaris_symbol_visibility): New function: Returns Solaris
375 specific symbol visibilities.
376 (print_dynamic_symbol): Use get_solaris_symbol_visibility.
377 (process_symbol_table): Likewise.
379 2016-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
381 * dwarf.h (init_dwarf_regnames_s390): Declare.
382 * dwarf.c (dwarf_regnames_s390): New.
383 (init_dwarf_regnames_s390): New.
384 (init_dwarf_regnames): Call it.
385 * objdump.c (dump_dwarf): Likewise.
387 2016-04-11 Maciej W. Rozycki <macro@imgtec.com>
389 * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
390 * testsuite/binutils-all/mips/mips16-undecoded.s: New test
392 * testsuite/binutils-all/mips/mips.exp: Run the new test.
394 2016-04-04 Nick Clifton <nickc@redhat.com>
397 * dwarf.c (display_debug_aranges): Skip warning about unrecognised
398 version number if the version is zero.
400 2016-03-29 Alan Modra <amodra@gmail.com>
402 * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
403 (get_dynamic_data): Likewise.
405 2016-03-22 Nick Clifton <nickc@redhat.com>
408 * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
409 with run time size check.
411 * configure: Regenerate.
413 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
415 * readelf.c (decode_ARC_machine_flags): Handle nps400.
417 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
419 * readelf.c (get_machine_flags): Move arc processing into...
420 (decode_ARC_machine_flags): ... new function. Remove use of
421 EF_ARC_CPU_GENERIC, change default case from "generic arc" to
422 "unknown arc". Merged ABI printing between two machine types.
424 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
426 * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
427 to the architecture list.
429 2016-03-21 Nick Clifton <nickc@redhat.com>
431 * dlltool.c: Replace use of alloca with call to xmalloc.
432 * dllwrap.c: Likewise.
433 * nlmconv.c: Likewise.
434 * objdump.c: Likewise.
436 * winduni.c: Likewise.
437 * configure: Regenerate.
439 2016-03-07 Nick Clifton <nickc@redhat.com>
442 * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
444 * testsuite/binutils-all/empty: New, empty, file.
446 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
448 * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
450 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
453 * NEWS: Mention --elf-stt-common= for objcopy.
454 * doc/binutils.texi: Document --elf-stt-common= for objcopy.
455 * objcopy.c (do_elf_stt_common): New.
456 (command_line_switch): Add OPTION_ELF_STT_COMMON.
457 (copy_options): Add --elf-stt-common=.
458 (copy_usage): Add --elf-stt-common=.
459 (copy_object): Also check do_elf_stt_common for ELF targets.
460 (copy_file): Handle do_elf_stt_common.
461 (copy_main): Handle OPTION_ELF_STT_COMMON.
462 * readelf.c (apply_relocations): Support STT_COMMON.
463 * testsuite/binutils-all/common-1.s: New file.
464 * testsuite/binutils-all/common-1a.d: Likewise.
465 * testsuite/binutils-all/common-1b.d: Likewise.
466 * testsuite/binutils-all/common-1c.d: Likewise.
467 * testsuite/binutils-all/common-1d.d: Likewise.
468 * testsuite/binutils-all/common-1e.d: Likewise.
469 * testsuite/binutils-all/common-1f.d: Likewise.
470 * testsuite/binutils-all/common-2.s: Likewise.
471 * testsuite/binutils-all/common-2a.d: Likewise.
472 * testsuite/binutils-all/common-2b.d: Likewise.
473 * testsuite/binutils-all/common-2c.d: Likewise.
474 * testsuite/binutils-all/common-2d.d: Likewise.
475 * testsuite/binutils-all/common-2e.d: Likewise.
476 * testsuite/binutils-all/common-2f.d: Likewise.
477 * testsuite/binutils-all/objcopy.exp
478 (objcopy_test_elf_common_symbols): New proc.
479 Run objcopy_test_elf_common_symbols for ELF targets
481 2016-02-16 H.J. Lu <hongjiu.lu@intel.com>
484 * readelf.c (get_section_type_name): Add a missing break.
486 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
488 * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
490 2016-02-15 Nick Clifton <nickc@redhat.com>
492 * readelf.c (get_section_type_name): Add hex prefix to offsets
493 printed for LOPROC and LOOS values. Ensure that a result is
494 always returned for the V850 target, even when an unrecognised
495 processor specific value is encountered.
496 (process_section_headers): Display key values in the order in
497 which they appear to the user. Add the "C (compressed)" value to
500 2016-02-12 H.J. Lu <hongjiu.lu@intel.com>
502 * doc/binutils.texi: Fix a typo.
504 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
506 * testsuite/binutils-all/objdump.exp: Update expected default
507 architecture value for ARC binaries.
509 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
512 * testsuite/binutils-all/objcopy.exp
513 (objcopy_test_without_global_symbol): New proc.
514 Run objcopy_test_without_global_symbol.
515 * testsuite/binutils-all/pr19547.c: New file.
517 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
520 * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
522 * Makefile.in: Regenerated.
523 * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
525 Run test_gnu_debuglink for native ELF build.
527 2016-01-20 Nick Clifton <nickc@redhat.com>
530 * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
531 do not support inserting leading underscores.
533 2016-01-20 Mickael Guene <mickael.guene@st.com>
535 * readelf.c (get_elf_section_flags): Display y letter for section
536 with SHF_ARM_NOREAD section flag in readelf section output.
537 (process_section_headers): Add y letter in readelf section output
538 key mapping for ARM architecture.
539 * objdump.c (dump_section_header): Display NOREAD attributes as
541 * doc/binutils.texi (objdump): Note that it is correct for
542 sections to have both the READONLY and NOREAD attributes.
544 2016-01-19 John Baldwin <jhb@FreeBSD.org>
546 * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
548 2016-01-19 John Baldwin <jhb@FreeBSD.org>
550 * readelf.c (get_freebsd_elfcore_note_type): New
551 (process_note): Add support for FreeBSD core notes.
553 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
554 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
556 * readelf.c (get_machine_flags): Add support for newer ARC ELF
559 2016-01-18 Alan Modra <amodra@gmail.com>
561 * configure: Regenerate.
563 2016-01-17 Alan Modra <amodra@gmail.com>
565 * configure: Regenerate.
567 2016-01-17 Alan Modra <amodra@gmail.com>
569 * testsuite/lib/binutils-common.exp (is_elf_format): Return true
570 for m68hc11/12 and xgate triples.
572 2016-01-17 Alan Modra <amodra@gmail.com>
574 * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
576 2016-01-01 Alan Modra <amodra@gmail.com>
578 Update year range in copyright notice of all files.
580 For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
582 Copyright (C) 2016 Free Software Foundation, Inc.
584 Copying and distribution of this file, with or without modification,
585 are permitted in any medium without royalty provided the copyright
586 notice and this notice are preserved.
592 version-control: never