1 2016-07-16 Alan Modra <amodra@gmail.com>
3 * ar.c: Don't include libbfd.h.
5 * bucomm.c (bfd_get_archive_filename): Use xmalloc rather than
8 2016-07-15 Alan Modra <amodra@gmail.com>
10 * testsuite/binutils-all/remove-relocs-01.s: Use .dc.a, not .word.
12 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
14 * doc/binutils.texi (objcopy): Document 'remove-relocations'.
16 * objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
17 (enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
18 (struct option strip_options): Add 'remove-relocations'.
19 (struct option copy_options): Likewise.
20 (copy_usage): Likewise.
21 (strip_usage): Likewise.
22 (handle_remove_relocations_option): New function.
23 (discard_relocations): New function.
24 (handle_remove_section_option): New function.
25 (copy_relocations_in_section): Use discard_relocations.
26 (strip_main): Use handle_remove_section_option for
27 'remove-section', and handle 'remove-relocations' option.
28 (copy_main): Likewise.
29 * testsuite/binutils-all/objcopy.exp: Run new tests.
30 * testsuite/binutils-all/remove-relocs-01.d: New file.
31 * testsuite/binutils-all/remove-relocs-01.s: New file.
32 * testsuite/binutils-all/remove-relocs-02.d: New file.
33 * testsuite/binutils-all/remove-relocs-03.d: New file.
34 * testsuite/binutils-all/remove-relocs-04.d: New file.
35 * testsuite/binutils-all/remove-relocs-05.d: New file.
36 * testsuite/binutils-all/remove-relocs-06.d: New file.
37 * NEWS: Mention new option.
39 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
41 * objcopy.c (find_section_list): Handle section patterns starting
42 with '!' being a non-matching pattern.
43 * doc/binutils.texi (objcopy): Give example of using '!' with
44 --remove-section and --only-section.
45 (strip): Give example of using '!' with --remove-section.
46 * testsuite/binutils-all/data-sections.s: New file.
47 * testsuite/binutils-all/only-section-01.d: New file.
48 * testsuite/binutils-all/remove-section-01.d: New file.
49 * testsuite/binutils-all/objcopy.exp: Run new tests.
50 * NEWS: Mention new feature.
52 2016-07-09 Alan Modra <amodra@gmail.com>
55 * objdump.c (compare_symbols): For ELF, sort same value/type
56 symbols according to size.
58 2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
60 * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
62 * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
63 ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
64 (process_section_headers): Rename noread to purecode.
66 * section.c (SEC_ELF_NOREAD): Rename to ...
67 (SEC_ELF_PURECODE): ... this.
69 2016-07-01 Nick Clifton <nickc@redhat.com>
71 * prdbg.c (pr_enum_type): Use a buffer big enough to hold an
72 extremely large decimal value.
73 (pr_range_type): Likewise.
74 (pr_array_type): Likewise.
75 (pr_struct_field): Likewise.
76 (pr_class_baseclass): Likewise.
77 (pr_class_method_variant): Likewise.
78 (pr_tag_type): Likewise.
79 (pr_int_constant): Likewise.
80 (pr_typed_constant): Likewise.
81 (pr_variable): Likewise.
82 (pr_function_parameter): Likewise.
83 (pr_start_block): Likewise.
84 (pr_lineno): Likewise.
85 (pr_end_block): Likewise.
86 (tg_enum_type): Likewise.
87 (tg_int_constant): Likewise.
88 (tg_typed_constant): Likewise.
89 (tg_start_block): Likewise.
91 2016-07-01 Nick Clifton <nickc@redhat.com>
93 * testsuite/binutils-all/objcopy.exp
94 (objcopy_test_without_global_symbol): Expect this test to fail on
95 the AArch64 and ARM targets, since they preserve their mapping
98 2016-07-01 Tristan Gingold <gingold@adacore.com>
100 * NEWS: Add marker for 2.27.
102 2016-07-30 Tristan Gingold <gingold@adacore.com>
104 * doc/binutils.texi (objdump): Fix mis-placement.
106 2016-06-28 Nick Clifton <nickc@redhat.com>
108 * testsuite/binutils-all/ar.exp: Relax previous restriction on
109 Alpha targets. Allow ELF based Alpha targets.
111 2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
113 * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
114 the `unique_symbol' test.
116 2016-06-28 Alan Modra <amodra@gmail.com>
119 * objdump.c (objdump_print_symname): Don't attempt to retrieve
120 version info from synthetic symbols.
122 2016-06-24 Alan Modra <amodra@gmail.com>
124 * objcopy.c (find_section_rename): Forward declare. Remove
125 ibfd and sec_ptr param. Add old_name param. Allow for NULL
126 returned_flags. Move read of section name and flags to..
127 (setup_section): ..here. Update find_section_rename call.
128 (filter_symbols): Rename section symbols for renamed sections.
129 (copy_object): Call filter_symbols when renamed sections.
130 * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
131 * testsuite/binutils-all/update-section.exp: Revert 96037eb0
133 * testsuite/binutils-all/objcopy.exp (copy_executable): Use
135 (localize-hidden-1): xfail if is_bad_symtab.
136 * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
139 2016-06-24 Alan Modra <amodra@gmail.com>
141 * objdump.c (struct print_file_list): Add "max_printed".
142 (try_print_file_open): Init new field.
143 (show_line): Don't show 5 context lines when redisplaying source.
145 2016-06-22 Nick Clifton <nickc@redhat.com>
147 * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
148 Skip bfdtest1 tests for tic30 target.
149 * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
151 * testsuite/binutils-all/compress.exp: Expect some tests to fail
153 * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
154 * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
156 * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
158 * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
159 if the bintest.o file was created. Use the
160 get_standard_section_names proc to get the name of the data
162 * testsuite/binutils-all/objdump.exp: Update regexps to allow for
164 * testsuite/binutils-all/readelf.exp: Use
165 get_standard_section_names proc to get the name of the data
167 * testsuite/binutils-all/readelf.r: Allow for non standard text
169 * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
170 * testsuite/binutils-all/size.exp: Allow for non standard section
172 * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
173 to fail on mips targets.
174 * testsuite/lib/utils-lib.exp (default_binutils_run): Use
175 get_standard_section_names proc.
176 (run_dump_test): Likewise.
177 (proc get_standard_section_names): New proc.
179 2016-06-22 Nick Clifton <nickc@redhat.com>
181 * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
182 (process_mips_specific): Likewise.
183 (process_gnu_liblist): Likewise.
185 2016-06-21 Graham Markall <graham.markall@embecosm.com>
187 * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
190 2016-06-15 Nick Clifton <nickc@redhat.com>
192 * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
195 2016-06-14 John Baldwin <jhb@FreeBSD.org>
197 * objcopy.c (do_elf_stt_common): Use correct type.
199 2016-06-14 Alan Modra <amodra@gmail.com>
201 * ar.c: Expand uses of bfd_my_archive.
204 2016-06-14 Alan Modra <amodra@gmail.com>
207 * bucomm.c (bfd_get_archive_filename): Return file name within thin
210 2016-06-02 Nick Clifton <nickc@redhat.com>
213 * objcopy.c (group_signature): Fail if the input symbol table has
214 not been loaded, or if the sh_info field of the group header is 0.
216 * dwarf.c (display_debug_frames): Do not display any
217 interpretation if the block consists solely of DW__CFA_NOPs.
219 2016-05-31 Alan Modra <amodra@gmail.com>
221 * objcopy.c: Formatting, whitespace throughout.
222 (copy_main): Init newsym->othersym.
223 (parse_symflags): Make len a size_t. Adjust uses.
225 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
228 * NEWS: Mention --enable-64-bit-archive.
230 2016-05-18 Nick Clifton <nickc@redhat.com>
233 * objcopy.c (copy_relocations_in_section): Also check for the
234 symbol pointed to by sym_ptr_ptr being NULL.
236 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
238 * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
239 * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
241 * testsuite/binutils-all/mips/mips.exp: Run the new test.
243 2016-05-18 Nick Clifton <nickc@redhat.com>
245 * po/sv.po: Updated Swedish translation.
247 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
249 * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
250 <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
251 <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
252 <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
253 <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
254 <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
255 `d_val' rather than `d_ptr' member of the dynamic entry.
257 2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
259 * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
261 * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
262 with the `strip-10' test.
264 2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
266 * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
269 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
271 * readelf.c (print_mips_ases): Add DSPR3.
273 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
275 * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
276 (arm_attr_public_tags): Define DSP_extension attribute.
278 2016-05-10 Andrew Burgess <andrew.burgess@embecosm.com>
280 * doc/binutils.texi (nm): Update description of --size-sort.
282 2016-05-09 Nick Clifton <nickc@redhat.com>
285 * readelf.c (get_32bit_section_headers): Warn if an out of range
286 sh_link or sh_info field is encountered.
287 (get_64bit_section_headers): Likewise.
289 2016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
291 * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
293 2016-05-03 Nick Clifton <nickc@redhat.com>
295 * po/sv.po: Updated Swedish translation.
297 2016-04-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
299 * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
300 PC relocation for AVR target.
301 (is_none_reloc): Return true if reloc is any of AVR diff
304 2016-04-29 Nick Clifton <nickc@redhat.com>
307 * readelf.c (get_solaris_segment_type): New function.
308 (get_segment_type): Call it.
310 2016-04-28 Nick Clifton <nickc@redhat.com>
312 * po/zh_CN.po: Updated Chinese (simplified) translation.
314 2016-04-28 Nick Clifton <nickc@redhat.com>
317 * testsuite/binutils-all/aarch64/illegal.s: New test.
318 * testsuite/binutils-all/aarch64/illegal.d: New test driver.
320 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
322 * resres.c: Likewise.
324 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
326 * Makefile.in: Regenerated with automake 1.11.6.
327 * aclocal.m4: Likewise.
328 * doc/Makefile.in: Likewise.
330 2016-04-14 Nick Clifton <nickc@redhat.com>
333 * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
334 string sections possibly having the SHF_STRINGS flag bit set.
335 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
336 * testsuite/binutils-all/readelf.s: Likewise.
337 * testsuite/binutils-all/readelf.s-64: Likewise.
338 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
339 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
341 2016-04-13 Nick Clifton <nickc@redhat.com>
344 * readelf.c (get_solaris_section_type): New function: Returns the
345 name of Solaris specific section types.
346 (get_solaris_dynamic_type): New function: Return the name of
347 Solaris specific dynamic types.
348 (get_dynamic_type): Use get_solaris_dynamic_type.
349 (get_section_type_name): Use get_solaris_section_type.
350 (get_solaris_symbol_visibility): New function: Returns Solaris
351 specific symbol visibilities.
352 (print_dynamic_symbol): Use get_solaris_symbol_visibility.
353 (process_symbol_table): Likewise.
355 2016-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
357 * dwarf.h (init_dwarf_regnames_s390): Declare.
358 * dwarf.c (dwarf_regnames_s390): New.
359 (init_dwarf_regnames_s390): New.
360 (init_dwarf_regnames): Call it.
361 * objdump.c (dump_dwarf): Likewise.
363 2016-04-11 Maciej W. Rozycki <macro@imgtec.com>
365 * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
366 * testsuite/binutils-all/mips/mips16-undecoded.s: New test
368 * testsuite/binutils-all/mips/mips.exp: Run the new test.
370 2016-04-04 Nick Clifton <nickc@redhat.com>
373 * dwarf.c (display_debug_aranges): Skip warning about unrecognised
374 version number if the version is zero.
376 2016-03-29 Alan Modra <amodra@gmail.com>
378 * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
379 (get_dynamic_data): Likewise.
381 2016-03-22 Nick Clifton <nickc@redhat.com>
384 * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
385 with run time size check.
387 * configure: Regenerate.
389 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
391 * readelf.c (decode_ARC_machine_flags): Handle nps400.
393 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
395 * readelf.c (get_machine_flags): Move arc processing into...
396 (decode_ARC_machine_flags): ... new function. Remove use of
397 EF_ARC_CPU_GENERIC, change default case from "generic arc" to
398 "unknown arc". Merged ABI printing between two machine types.
400 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
402 * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
403 to the architecture list.
405 2016-03-21 Nick Clifton <nickc@redhat.com>
407 * dlltool.c: Replace use of alloca with call to xmalloc.
408 * dllwrap.c: Likewise.
409 * nlmconv.c: Likewise.
410 * objdump.c: Likewise.
412 * winduni.c: Likewise.
413 * configure: Regenerate.
415 2016-03-07 Nick Clifton <nickc@redhat.com>
418 * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
420 * testsuite/binutils-all/empty: New, empty, file.
422 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
424 * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
426 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
429 * NEWS: Mention --elf-stt-common= for objcopy.
430 * doc/binutils.texi: Document --elf-stt-common= for objcopy.
431 * objcopy.c (do_elf_stt_common): New.
432 (command_line_switch): Add OPTION_ELF_STT_COMMON.
433 (copy_options): Add --elf-stt-common=.
434 (copy_usage): Add --elf-stt-common=.
435 (copy_object): Also check do_elf_stt_common for ELF targets.
436 (copy_file): Handle do_elf_stt_common.
437 (copy_main): Handle OPTION_ELF_STT_COMMON.
438 * readelf.c (apply_relocations): Support STT_COMMON.
439 * testsuite/binutils-all/common-1.s: New file.
440 * testsuite/binutils-all/common-1a.d: Likewise.
441 * testsuite/binutils-all/common-1b.d: Likewise.
442 * testsuite/binutils-all/common-1c.d: Likewise.
443 * testsuite/binutils-all/common-1d.d: Likewise.
444 * testsuite/binutils-all/common-1e.d: Likewise.
445 * testsuite/binutils-all/common-1f.d: Likewise.
446 * testsuite/binutils-all/common-2.s: Likewise.
447 * testsuite/binutils-all/common-2a.d: Likewise.
448 * testsuite/binutils-all/common-2b.d: Likewise.
449 * testsuite/binutils-all/common-2c.d: Likewise.
450 * testsuite/binutils-all/common-2d.d: Likewise.
451 * testsuite/binutils-all/common-2e.d: Likewise.
452 * testsuite/binutils-all/common-2f.d: Likewise.
453 * testsuite/binutils-all/objcopy.exp
454 (objcopy_test_elf_common_symbols): New proc.
455 Run objcopy_test_elf_common_symbols for ELF targets
457 2016-02-16 H.J. Lu <hongjiu.lu@intel.com>
460 * readelf.c (get_section_type_name): Add a missing break.
462 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
464 * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
466 2016-02-15 Nick Clifton <nickc@redhat.com>
468 * readelf.c (get_section_type_name): Add hex prefix to offsets
469 printed for LOPROC and LOOS values. Ensure that a result is
470 always returned for the V850 target, even when an unrecognised
471 processor specific value is encountered.
472 (process_section_headers): Display key values in the order in
473 which they appear to the user. Add the "C (compressed)" value to
476 2016-02-12 H.J. Lu <hongjiu.lu@intel.com>
478 * doc/binutils.texi: Fix a typo.
480 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
482 * testsuite/binutils-all/objdump.exp: Update expected default
483 architecture value for ARC binaries.
485 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
488 * testsuite/binutils-all/objcopy.exp
489 (objcopy_test_without_global_symbol): New proc.
490 Run objcopy_test_without_global_symbol.
491 * testsuite/binutils-all/pr19547.c: New file.
493 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
496 * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
498 * Makefile.in: Regenerated.
499 * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
501 Run test_gnu_debuglink for native ELF build.
503 2016-01-20 Nick Clifton <nickc@redhat.com>
506 * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
507 do not support inserting leading underscores.
509 2016-01-20 Mickael Guene <mickael.guene@st.com>
511 * readelf.c (get_elf_section_flags): Display y letter for section
512 with SHF_ARM_NOREAD section flag in readelf section output.
513 (process_section_headers): Add y letter in readelf section output
514 key mapping for ARM architecture.
515 * objdump.c (dump_section_header): Display NOREAD attributes as
517 * doc/binutils.texi (objdump): Note that it is correct for
518 sections to have both the READONLY and NOREAD attributes.
520 2016-01-19 John Baldwin <jhb@FreeBSD.org>
522 * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
524 2016-01-19 John Baldwin <jhb@FreeBSD.org>
526 * readelf.c (get_freebsd_elfcore_note_type): New
527 (process_note): Add support for FreeBSD core notes.
529 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
530 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
532 * readelf.c (get_machine_flags): Add support for newer ARC ELF
535 2016-01-18 Alan Modra <amodra@gmail.com>
537 * configure: Regenerate.
539 2016-01-17 Alan Modra <amodra@gmail.com>
541 * configure: Regenerate.
543 2016-01-17 Alan Modra <amodra@gmail.com>
545 * testsuite/lib/binutils-common.exp (is_elf_format): Return true
546 for m68hc11/12 and xgate triples.
548 2016-01-17 Alan Modra <amodra@gmail.com>
550 * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
552 2016-01-01 Alan Modra <amodra@gmail.com>
554 Update year range in copyright notice of all files.
556 For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
558 Copyright (C) 2016 Free Software Foundation, Inc.
560 Copying and distribution of this file, with or without modification,
561 are permitted in any medium without royalty provided the copyright
562 notice and this notice are preserved.
568 version-control: never