1 2016-07-16 Alan Modra <amodra@gmail.com>
3 * elfcomm.h (HOST_WIDEST_INT): Move to..
5 * od-macho.c: Don't include libbfd.h. Do include dwarf.h
6 (dump_dyld_info_rebase): Use read_leb128 rather than
8 (dump_dyld_info_bind, dump_dyld_info_export_1): Likewise.
9 (dump_segment_split_info): Likewise.
10 (dump_dyld_info): Rename vars to avoid shadowing dwarf.h enums.
11 (dump_load_command): Likewise.
13 2016-07-16 Alan Modra <amodra@gmail.com>
15 * ar.c: Don't include libbfd.h.
16 * objcopy.c: Likewise.
17 * bucomm.c (bfd_get_archive_filename): Use xmalloc rather than
20 2016-07-15 Alan Modra <amodra@gmail.com>
22 * testsuite/binutils-all/remove-relocs-01.s: Use .dc.a, not .word.
24 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
26 * doc/binutils.texi (objcopy): Document 'remove-relocations'.
28 * objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
29 (enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
30 (struct option strip_options): Add 'remove-relocations'.
31 (struct option copy_options): Likewise.
32 (copy_usage): Likewise.
33 (strip_usage): Likewise.
34 (handle_remove_relocations_option): New function.
35 (discard_relocations): New function.
36 (handle_remove_section_option): New function.
37 (copy_relocations_in_section): Use discard_relocations.
38 (strip_main): Use handle_remove_section_option for
39 'remove-section', and handle 'remove-relocations' option.
40 (copy_main): Likewise.
41 * testsuite/binutils-all/objcopy.exp: Run new tests.
42 * testsuite/binutils-all/remove-relocs-01.d: New file.
43 * testsuite/binutils-all/remove-relocs-01.s: New file.
44 * testsuite/binutils-all/remove-relocs-02.d: New file.
45 * testsuite/binutils-all/remove-relocs-03.d: New file.
46 * testsuite/binutils-all/remove-relocs-04.d: New file.
47 * testsuite/binutils-all/remove-relocs-05.d: New file.
48 * testsuite/binutils-all/remove-relocs-06.d: New file.
49 * NEWS: Mention new option.
51 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
53 * objcopy.c (find_section_list): Handle section patterns starting
54 with '!' being a non-matching pattern.
55 * doc/binutils.texi (objcopy): Give example of using '!' with
56 --remove-section and --only-section.
57 (strip): Give example of using '!' with --remove-section.
58 * testsuite/binutils-all/data-sections.s: New file.
59 * testsuite/binutils-all/only-section-01.d: New file.
60 * testsuite/binutils-all/remove-section-01.d: New file.
61 * testsuite/binutils-all/objcopy.exp: Run new tests.
62 * NEWS: Mention new feature.
64 2016-07-09 Alan Modra <amodra@gmail.com>
67 * objdump.c (compare_symbols): For ELF, sort same value/type
68 symbols according to size.
70 2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
72 * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
74 * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
75 ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
76 (process_section_headers): Rename noread to purecode.
78 * section.c (SEC_ELF_NOREAD): Rename to ...
79 (SEC_ELF_PURECODE): ... this.
81 2016-07-01 Nick Clifton <nickc@redhat.com>
83 * prdbg.c (pr_enum_type): Use a buffer big enough to hold an
84 extremely large decimal value.
85 (pr_range_type): Likewise.
86 (pr_array_type): Likewise.
87 (pr_struct_field): Likewise.
88 (pr_class_baseclass): Likewise.
89 (pr_class_method_variant): Likewise.
90 (pr_tag_type): Likewise.
91 (pr_int_constant): Likewise.
92 (pr_typed_constant): Likewise.
93 (pr_variable): Likewise.
94 (pr_function_parameter): Likewise.
95 (pr_start_block): Likewise.
96 (pr_lineno): Likewise.
97 (pr_end_block): Likewise.
98 (tg_enum_type): Likewise.
99 (tg_int_constant): Likewise.
100 (tg_typed_constant): Likewise.
101 (tg_start_block): Likewise.
103 2016-07-01 Nick Clifton <nickc@redhat.com>
105 * testsuite/binutils-all/objcopy.exp
106 (objcopy_test_without_global_symbol): Expect this test to fail on
107 the AArch64 and ARM targets, since they preserve their mapping
110 2016-07-01 Tristan Gingold <gingold@adacore.com>
112 * NEWS: Add marker for 2.27.
114 2016-07-30 Tristan Gingold <gingold@adacore.com>
116 * doc/binutils.texi (objdump): Fix mis-placement.
118 2016-06-28 Nick Clifton <nickc@redhat.com>
120 * testsuite/binutils-all/ar.exp: Relax previous restriction on
121 Alpha targets. Allow ELF based Alpha targets.
123 2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
125 * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
126 the `unique_symbol' test.
128 2016-06-28 Alan Modra <amodra@gmail.com>
131 * objdump.c (objdump_print_symname): Don't attempt to retrieve
132 version info from synthetic symbols.
134 2016-06-24 Alan Modra <amodra@gmail.com>
136 * objcopy.c (find_section_rename): Forward declare. Remove
137 ibfd and sec_ptr param. Add old_name param. Allow for NULL
138 returned_flags. Move read of section name and flags to..
139 (setup_section): ..here. Update find_section_rename call.
140 (filter_symbols): Rename section symbols for renamed sections.
141 (copy_object): Call filter_symbols when renamed sections.
142 * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
143 * testsuite/binutils-all/update-section.exp: Revert 96037eb0
145 * testsuite/binutils-all/objcopy.exp (copy_executable): Use
147 (localize-hidden-1): xfail if is_bad_symtab.
148 * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
151 2016-06-24 Alan Modra <amodra@gmail.com>
153 * objdump.c (struct print_file_list): Add "max_printed".
154 (try_print_file_open): Init new field.
155 (show_line): Don't show 5 context lines when redisplaying source.
157 2016-06-22 Nick Clifton <nickc@redhat.com>
159 * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
160 Skip bfdtest1 tests for tic30 target.
161 * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
163 * testsuite/binutils-all/compress.exp: Expect some tests to fail
165 * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
166 * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
168 * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
170 * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
171 if the bintest.o file was created. Use the
172 get_standard_section_names proc to get the name of the data
174 * testsuite/binutils-all/objdump.exp: Update regexps to allow for
176 * testsuite/binutils-all/readelf.exp: Use
177 get_standard_section_names proc to get the name of the data
179 * testsuite/binutils-all/readelf.r: Allow for non standard text
181 * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
182 * testsuite/binutils-all/size.exp: Allow for non standard section
184 * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
185 to fail on mips targets.
186 * testsuite/lib/utils-lib.exp (default_binutils_run): Use
187 get_standard_section_names proc.
188 (run_dump_test): Likewise.
189 (proc get_standard_section_names): New proc.
191 2016-06-22 Nick Clifton <nickc@redhat.com>
193 * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
194 (process_mips_specific): Likewise.
195 (process_gnu_liblist): Likewise.
197 2016-06-21 Graham Markall <graham.markall@embecosm.com>
199 * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
202 2016-06-15 Nick Clifton <nickc@redhat.com>
204 * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
207 2016-06-14 John Baldwin <jhb@FreeBSD.org>
209 * objcopy.c (do_elf_stt_common): Use correct type.
211 2016-06-14 Alan Modra <amodra@gmail.com>
213 * ar.c: Expand uses of bfd_my_archive.
216 2016-06-14 Alan Modra <amodra@gmail.com>
219 * bucomm.c (bfd_get_archive_filename): Return file name within thin
222 2016-06-02 Nick Clifton <nickc@redhat.com>
225 * objcopy.c (group_signature): Fail if the input symbol table has
226 not been loaded, or if the sh_info field of the group header is 0.
228 * dwarf.c (display_debug_frames): Do not display any
229 interpretation if the block consists solely of DW__CFA_NOPs.
231 2016-05-31 Alan Modra <amodra@gmail.com>
233 * objcopy.c: Formatting, whitespace throughout.
234 (copy_main): Init newsym->othersym.
235 (parse_symflags): Make len a size_t. Adjust uses.
237 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
240 * NEWS: Mention --enable-64-bit-archive.
242 2016-05-18 Nick Clifton <nickc@redhat.com>
245 * objcopy.c (copy_relocations_in_section): Also check for the
246 symbol pointed to by sym_ptr_ptr being NULL.
248 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
250 * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
251 * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
253 * testsuite/binutils-all/mips/mips.exp: Run the new test.
255 2016-05-18 Nick Clifton <nickc@redhat.com>
257 * po/sv.po: Updated Swedish translation.
259 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
261 * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
262 <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
263 <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
264 <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
265 <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
266 <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
267 `d_val' rather than `d_ptr' member of the dynamic entry.
269 2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
271 * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
273 * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
274 with the `strip-10' test.
276 2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
278 * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
281 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
283 * readelf.c (print_mips_ases): Add DSPR3.
285 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
287 * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
288 (arm_attr_public_tags): Define DSP_extension attribute.
290 2016-05-10 Andrew Burgess <andrew.burgess@embecosm.com>
292 * doc/binutils.texi (nm): Update description of --size-sort.
294 2016-05-09 Nick Clifton <nickc@redhat.com>
297 * readelf.c (get_32bit_section_headers): Warn if an out of range
298 sh_link or sh_info field is encountered.
299 (get_64bit_section_headers): Likewise.
301 2016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
303 * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
305 2016-05-03 Nick Clifton <nickc@redhat.com>
307 * po/sv.po: Updated Swedish translation.
309 2016-04-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
311 * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
312 PC relocation for AVR target.
313 (is_none_reloc): Return true if reloc is any of AVR diff
316 2016-04-29 Nick Clifton <nickc@redhat.com>
319 * readelf.c (get_solaris_segment_type): New function.
320 (get_segment_type): Call it.
322 2016-04-28 Nick Clifton <nickc@redhat.com>
324 * po/zh_CN.po: Updated Chinese (simplified) translation.
326 2016-04-28 Nick Clifton <nickc@redhat.com>
329 * testsuite/binutils-all/aarch64/illegal.s: New test.
330 * testsuite/binutils-all/aarch64/illegal.d: New test driver.
332 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
334 * resres.c: Likewise.
336 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
338 * Makefile.in: Regenerated with automake 1.11.6.
339 * aclocal.m4: Likewise.
340 * doc/Makefile.in: Likewise.
342 2016-04-14 Nick Clifton <nickc@redhat.com>
345 * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
346 string sections possibly having the SHF_STRINGS flag bit set.
347 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
348 * testsuite/binutils-all/readelf.s: Likewise.
349 * testsuite/binutils-all/readelf.s-64: Likewise.
350 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
351 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
353 2016-04-13 Nick Clifton <nickc@redhat.com>
356 * readelf.c (get_solaris_section_type): New function: Returns the
357 name of Solaris specific section types.
358 (get_solaris_dynamic_type): New function: Return the name of
359 Solaris specific dynamic types.
360 (get_dynamic_type): Use get_solaris_dynamic_type.
361 (get_section_type_name): Use get_solaris_section_type.
362 (get_solaris_symbol_visibility): New function: Returns Solaris
363 specific symbol visibilities.
364 (print_dynamic_symbol): Use get_solaris_symbol_visibility.
365 (process_symbol_table): Likewise.
367 2016-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
369 * dwarf.h (init_dwarf_regnames_s390): Declare.
370 * dwarf.c (dwarf_regnames_s390): New.
371 (init_dwarf_regnames_s390): New.
372 (init_dwarf_regnames): Call it.
373 * objdump.c (dump_dwarf): Likewise.
375 2016-04-11 Maciej W. Rozycki <macro@imgtec.com>
377 * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
378 * testsuite/binutils-all/mips/mips16-undecoded.s: New test
380 * testsuite/binutils-all/mips/mips.exp: Run the new test.
382 2016-04-04 Nick Clifton <nickc@redhat.com>
385 * dwarf.c (display_debug_aranges): Skip warning about unrecognised
386 version number if the version is zero.
388 2016-03-29 Alan Modra <amodra@gmail.com>
390 * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
391 (get_dynamic_data): Likewise.
393 2016-03-22 Nick Clifton <nickc@redhat.com>
396 * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
397 with run time size check.
399 * configure: Regenerate.
401 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
403 * readelf.c (decode_ARC_machine_flags): Handle nps400.
405 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
407 * readelf.c (get_machine_flags): Move arc processing into...
408 (decode_ARC_machine_flags): ... new function. Remove use of
409 EF_ARC_CPU_GENERIC, change default case from "generic arc" to
410 "unknown arc". Merged ABI printing between two machine types.
412 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
414 * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
415 to the architecture list.
417 2016-03-21 Nick Clifton <nickc@redhat.com>
419 * dlltool.c: Replace use of alloca with call to xmalloc.
420 * dllwrap.c: Likewise.
421 * nlmconv.c: Likewise.
422 * objdump.c: Likewise.
424 * winduni.c: Likewise.
425 * configure: Regenerate.
427 2016-03-07 Nick Clifton <nickc@redhat.com>
430 * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
432 * testsuite/binutils-all/empty: New, empty, file.
434 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
436 * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
438 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
441 * NEWS: Mention --elf-stt-common= for objcopy.
442 * doc/binutils.texi: Document --elf-stt-common= for objcopy.
443 * objcopy.c (do_elf_stt_common): New.
444 (command_line_switch): Add OPTION_ELF_STT_COMMON.
445 (copy_options): Add --elf-stt-common=.
446 (copy_usage): Add --elf-stt-common=.
447 (copy_object): Also check do_elf_stt_common for ELF targets.
448 (copy_file): Handle do_elf_stt_common.
449 (copy_main): Handle OPTION_ELF_STT_COMMON.
450 * readelf.c (apply_relocations): Support STT_COMMON.
451 * testsuite/binutils-all/common-1.s: New file.
452 * testsuite/binutils-all/common-1a.d: Likewise.
453 * testsuite/binutils-all/common-1b.d: Likewise.
454 * testsuite/binutils-all/common-1c.d: Likewise.
455 * testsuite/binutils-all/common-1d.d: Likewise.
456 * testsuite/binutils-all/common-1e.d: Likewise.
457 * testsuite/binutils-all/common-1f.d: Likewise.
458 * testsuite/binutils-all/common-2.s: Likewise.
459 * testsuite/binutils-all/common-2a.d: Likewise.
460 * testsuite/binutils-all/common-2b.d: Likewise.
461 * testsuite/binutils-all/common-2c.d: Likewise.
462 * testsuite/binutils-all/common-2d.d: Likewise.
463 * testsuite/binutils-all/common-2e.d: Likewise.
464 * testsuite/binutils-all/common-2f.d: Likewise.
465 * testsuite/binutils-all/objcopy.exp
466 (objcopy_test_elf_common_symbols): New proc.
467 Run objcopy_test_elf_common_symbols for ELF targets
469 2016-02-16 H.J. Lu <hongjiu.lu@intel.com>
472 * readelf.c (get_section_type_name): Add a missing break.
474 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
476 * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
478 2016-02-15 Nick Clifton <nickc@redhat.com>
480 * readelf.c (get_section_type_name): Add hex prefix to offsets
481 printed for LOPROC and LOOS values. Ensure that a result is
482 always returned for the V850 target, even when an unrecognised
483 processor specific value is encountered.
484 (process_section_headers): Display key values in the order in
485 which they appear to the user. Add the "C (compressed)" value to
488 2016-02-12 H.J. Lu <hongjiu.lu@intel.com>
490 * doc/binutils.texi: Fix a typo.
492 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
494 * testsuite/binutils-all/objdump.exp: Update expected default
495 architecture value for ARC binaries.
497 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
500 * testsuite/binutils-all/objcopy.exp
501 (objcopy_test_without_global_symbol): New proc.
502 Run objcopy_test_without_global_symbol.
503 * testsuite/binutils-all/pr19547.c: New file.
505 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
508 * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
510 * Makefile.in: Regenerated.
511 * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
513 Run test_gnu_debuglink for native ELF build.
515 2016-01-20 Nick Clifton <nickc@redhat.com>
518 * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
519 do not support inserting leading underscores.
521 2016-01-20 Mickael Guene <mickael.guene@st.com>
523 * readelf.c (get_elf_section_flags): Display y letter for section
524 with SHF_ARM_NOREAD section flag in readelf section output.
525 (process_section_headers): Add y letter in readelf section output
526 key mapping for ARM architecture.
527 * objdump.c (dump_section_header): Display NOREAD attributes as
529 * doc/binutils.texi (objdump): Note that it is correct for
530 sections to have both the READONLY and NOREAD attributes.
532 2016-01-19 John Baldwin <jhb@FreeBSD.org>
534 * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
536 2016-01-19 John Baldwin <jhb@FreeBSD.org>
538 * readelf.c (get_freebsd_elfcore_note_type): New
539 (process_note): Add support for FreeBSD core notes.
541 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
542 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
544 * readelf.c (get_machine_flags): Add support for newer ARC ELF
547 2016-01-18 Alan Modra <amodra@gmail.com>
549 * configure: Regenerate.
551 2016-01-17 Alan Modra <amodra@gmail.com>
553 * configure: Regenerate.
555 2016-01-17 Alan Modra <amodra@gmail.com>
557 * testsuite/lib/binutils-common.exp (is_elf_format): Return true
558 for m68hc11/12 and xgate triples.
560 2016-01-17 Alan Modra <amodra@gmail.com>
562 * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
564 2016-01-01 Alan Modra <amodra@gmail.com>
566 Update year range in copyright notice of all files.
568 For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
570 Copyright (C) 2016 Free Software Foundation, Inc.
572 Copying and distribution of this file, with or without modification,
573 are permitted in any medium without royalty provided the copyright
574 notice and this notice are preserved.
580 version-control: never