1 2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * dwarf.h (enum dwarf_section_display_enum): Add loclists and rnglists.
5 2017-03-01 Nick Clifton <nickc@redhat.com>
7 * readelf.c (get_note_type): Add support for GNU_BUILD_NOTEs.
8 (get_gnu_elf_note_type): Add support for GNU_PROPERTY_NOTEs.
9 (decode_x86_isa): New function.
10 (print_gnu_property_note): New function.
11 (print_gnu_note): Handle GNU_PROPERTY_NOTEs.
12 (print_gnu_build_attribute_description): New function.
13 (print_gnu_build_attribute_name): New function.
14 (process_note): Add support for GNU_BUILD_NOTEs.
15 * objcopy.c (--merge-notes): New command line option.
16 (copy_options): Add merge-notes.
17 (copy_usage): Likewise.
18 (is_merge_note_section): New function.
19 (merge_gnu_build_notes): New function.
20 (copy_object): Merge note sections if asked to do so.
21 (skip_section): Add skip_copy parameter. Add support for skipping
23 (copy_relocations_in_section): Update call to skip_section.
24 (copy_section): Likewise.
25 (copy_main): Add support for merge-notes option.
26 * doc/binutils.texi: Document the new option to objcopy.
27 * NEWS: Mention the new feature.
28 * testsuite/binutils-all/note-2-32.d: New test. Checks note
29 merging on 32-bit targets.
30 * testsuite/binutils-all/note-2-32.s: New test source file.
31 * testsuite/binutils-all/note-2-64.d: New test. Like note-2-32.d
32 but for 64-bit targets.
33 * testsuite/binutils-all/note-2-64.s: New test source file.
34 * testsuite/binutils-all/objcopy.exp: Run the new test.
36 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
38 * objdump.c (main): Use remove_whitespace_and_extra_commas.
40 2017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
42 Fix compilation with GCC 4.4.7.
43 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
44 Initialize begin and end.
46 2017-02-25 Alan Modra <amodra@gmail.com>
48 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
49 Support hpux .comm variant.
50 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
51 dw5 test for hppa64-hpux.
53 2017-02-24 Nick Clifton <nickc@redhat.com>
55 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
56 (do_reloc, do_sections, do_section_groups, do_section_details,
57 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
58 (do_version, do_histogram, do_debugging, do_arch, do_notes,
59 (do_archive_index, is_32bit_elf, decompress_dumps): Use
61 (parse_args): Treat the do_* variables as booleans.
62 (print_vma): Return an unsigned int.
63 (print_symbol): Change width parameter to signed int.
64 (is_ia64_vms): Change return type to bfd_boolean.
65 (guess_is_rela): Likewise.
66 (slurp_rela_relocs): Likewise.
67 (slurp_rel_relocs): Likewise.
68 (dump_relocations): Likewise.
69 (process_file_header): Likewise.
70 (get_program_headers): Likewise.
71 (process_program_headers): Likewise.
72 (process_section_headers): Likewise.
73 (process_section_groups): Likewise.
74 (dump_ia64_vms_dynamic_fixups): Likewise.
75 (dump_ia64_vms_dynamic_relocs): Likewise.
76 (process_ia64_vms_dynamic_relocs): Likewise.
77 (process_relocs): Likewise.
78 (dump_ia64_unwind): Likewise.
79 (ia64_process_unwind): Likewise.
80 (dump_hppa_unwind): Likewise.
81 (slurp_hppa_unwind_table): Likewise.
82 (hppa_process_unwind): Likewise.
83 (decode_arm_unwind_bytecode): Likewise.
84 (decode_tic6x_unwind_bytecode): Likewise.
85 (decode_arm_unwind): Likewise.
86 (dump_arm_unwind): Likewise.
87 (arm_process_unwind): Likewise.
88 (process_unwind): Likewise.
89 (get_32bit_dynamic_section): Likewise.
90 (get_64bit_dynamic_section): Likewise.
91 (process_dynamic_section): Likewise.
92 (process_version_sections): Likewise.
93 (process_symbol_table): Likewise.
94 (process_syminfo): Likewise.
95 (apply_relocations): Likewise.
96 (disassemble_section): Likewise.
97 (dump_section_as_strings): Likewise.
98 (dump_section_as_bytes): Likewise.
99 (load_specific_debug_section): Likewise.
100 (load_debug_section): Likewise.
101 (display_debug_section): Likewise.
102 (process_section_contents): Likewise.
103 (process_attributes): Likewise.
104 (process_nds32_specific): Likewise.
105 (process_gnu_liblist): Likewise.
106 (print_core_note): Likewise.
107 (print_gnu_note): Likewise.
108 (print_v850_note): Likewise.
109 (process_netbsd_elf_note): Likewise.
110 (print_stapsdt_note): Likewise.
111 (print_ia64_vms_note): Likewise.
112 (process_note): Likewise.
113 (process_notes_at): Likewise.
114 (process_corefile_note_segments): Likewise.
115 (process_v850_notes): Likewise.
116 (process_note_sections): Likewise.
117 (process_notes): Likewise.
118 (process_arch_specific): Likewise.
119 (get_file_header): Likewise.
120 (process_object): Likewise.
121 (process_archive): Likewise.
122 (process_file): Likewise.
123 (section_subset): Make static.
124 (get_mips_reg_size): Return a signed integer.
125 (process_object): Reverse the logic of the return value.
126 (process_archive): Likewise.
127 (process_file): Likewise.
128 (process_program_headers): Fix snafu - if the program headers are
129 not available then this is not a cause to fail.
130 (process_corefile_note_segments): Likewise.
132 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
134 * readelf.c (get_ver_flags): Tidy the formatting of the string
137 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
139 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
141 <SHT_GNU_verneed>: Likewise.
143 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
145 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
146 the number of entries processed by the section size. Don't
147 break out of the loop if `ent.vd_next' is 0.
149 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
151 * testsuite/binutils-all/dw5.S: New file.
152 * testsuite/binutils-all/dw5.W: New file.
153 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
155 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
157 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
159 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
161 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
164 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
166 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
167 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
168 and DW_OP_reinterpret.
169 (read_and_display_attr_value): Support DW_AT_call_value,
170 DW_AT_call_data_value, DW_AT_call_target and
171 DW_AT_call_target_clobbered.
173 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
175 * dwarf.c (fetch_indirect_line_string): New function.
176 (abbrev_attr): New field implicit_const.
177 (add_abbrev_attr): New parameter implicit_const.
178 (process_abbrev_section): Support DW_FORM_implicit_const.
179 (decode_location_expression): Support DW_OP_entry_value.
180 (read_and_display_attr_value): Add parameter implicit_const. Support
181 DW_FORM_line_strp and DW_FORM_implicit_const.
182 (read_and_display_attr): Add parameter implicit_const.
183 (process_debug_info): Support line_str and DWARF-5.
184 (read_debug_line_header): Support DWARF-5.
185 (display_formatted_table): New function.
186 (display_debug_lines_raw): New parameter file. Support DWARF-5.
187 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
188 (display_debug_lines): Pass file parameter.
189 (display_debug_macro): Update read_and_display_attr_value caller.
190 (display_debug_abbrev): Support DW_FORM_implicit_const.
191 (display_loclists_list): New function.
192 (display_loc_list): Support .debug_loclists.
193 (display_debug_ranges_list): New function from display_debug_ranges.
194 (display_debug_rnglists_list): New function.
195 (display_debug_ranges): Support .debug_rnglists.
196 (debug_displays): Add .debug_line_str, .debug_loclists and
198 * dwarf.h: Include dwarf2.h
199 (DWARF2_Internal_LineInfo): Add li_offset_size.
200 (DWARF2_Internal_CompUnit): Add cu_unit_type.
201 (enum dwarf_section_display_enum): Add line_str.
202 * readelf.c (process_section_headers): Add rnglists and loclists.
204 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
206 * dwarf.c (display_block): Add parameter delimiter.
207 (decode_location_expression): Update display_block callers.
208 (read_and_display_attr_value): Add parameter delimiter.
209 (read_and_display_attr, display_debug_macro): Update
210 read_and_display_attr_value caller.
212 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
214 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
216 (display_loc_list_dwo): Use dwarf_vma for offset.
217 (display_debug_loc): Use dwarf_vma for offset, base_address.
218 (struct range_entry, range_entry_compar): Use dwarf_vma for
220 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
223 2017-02-23 Nick Clifton <nickc@redhat.com>
225 * readelf.c (display_tag_value): Use an explicit signed type for
227 (display_gnu_attributes): Use an unsigned integer type for
229 (display_power_gnu_attribute): Likewise.
230 (display_s390_gnu_attribute): Likewise.
231 (display_sparc_hwcaps): Likewise.
232 (display_sparc_hwcaps2): Likewise.
233 (display_sparc_gnu_attribute): Likewise.
234 (display_mips_gnu_attribute): Likewise.
235 (display_tic6x_attribute): Likewise.
236 (display_raw_attribute): Likewise.
237 (process_attributes): Likewise.
238 (process_arm_specific): Delete redundant function.
239 (process_power_specific): Likewise.
240 (process_s390_specific): Likewise.
241 (process_sparc_specific): Likewise.
242 (process_tic6x_specific): Likewise.
243 (process_msp430x_specific): Likewise.
244 (display_public_gnu_attributes): New function. Displays known
245 information about an unknown gnu attribute.
246 (display_generic_attribute): New function. Calls
247 display_tag_value for non-nul tags.
248 (process_arch_specific): Call process_attributes even for
249 architectures not known to specifically support gnu attributes.
251 2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
253 * dwarf.c (decode_location_expression): Display also OP.
255 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
257 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
258 new line between the heading and the first version definition
261 2017-02-20 Nick Clifton <nickc@redhat.com>
264 * dwarf.c (cu_tu_indexes_read): Move into...
265 (load_cu_tu_indexes): ... here. Change the variable into
266 tri-state. Change the function into boolean, returning
267 false if the indicies could not be loaded.
268 (find_cu_tu_set): Return NULL if the indicies could not be
271 2017-02-17 Nick Clifton <nickc@redhat.com>
274 * readelf.c (find_section_in_set): Test for invalid section
277 2017-02-17 Nick Clifton <nickc@redhat.com>
279 * readelf.c (get_section_type_name): Add decoding of GNU section
282 2017-02-15 Nick Clifton <nickc@redhat.com>
284 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
287 2017-02-14 Nick Clifton <nickc@redhat.com>
290 * readelf.c (dump_section_as_strings): Reset the start address if
291 no decompression is perfromed.
292 (dump_section_as_bytes): Likewise.
294 2017-02-14 Nick Clifton <nickc@redhat.com>
297 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
300 2017-02-14 Nick Clifton <nickc@redhat.com>
303 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
305 (parse_number): Exit early if passed an empty string.
307 2017-02-14 Nick Clifton <nickc@redhat.com>
310 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
311 being within a given range.
312 (target_specific_reloc_handling): Use macro to test for underflow
313 as well as overflow of reloc offset.
315 2017-02-13 Nick Clifton <nickc@redhat.com>
318 * nm.c (file_symbol): Add test of string length before testing
321 2017-02-13 Nick Clifton <nickc@redhat.com>
324 * readelf.c (dump_section_as_bytes): Handle the case where
325 uncompress_section_contents returns false.
326 (dump_section_as_bytes, load_specific_debug_section): Likewise.
328 2017-02-13 Nick Clifton <nickc@redhat.com>
331 * readelf.c (get_compression_header): Add size parameter. Check
332 size against sizeof compression header before attempting to
334 (process_section_headers): Pass size to get_compression_header.
335 (dump_section_as_strings): Likewise.
336 (dump_section_as_bytes): Likewise.
337 (load_specific_debug_section): Likewise.
339 2017-02-13 Nick Clifton <nickc@redhat.com>
342 * readelf.c (process_version_sections): Include size of auxillary
343 version information when checking for buffer overflow.
345 2017-02-13 Nick Clifton <nickc@redhat.com>
348 * readelf.c (process_section_contents): Fix off by one error
349 reporting un-dumped sections.
351 2017-02-13 Nick Clifton <nickc@redhat.com>
354 * readelf.c (target_specific_reloc_handling): Add num_syms
355 parameter. Check for symbol table overflow before accessing
356 symbol value. If reloc pointer is NULL, discard all saved state.
357 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
358 Call target_specific_reloc_handling with a NULL reloc pointer
359 after processing all of the relocs.
361 2017-02-13 Nick Clifton <nickc@redhat.com>
364 * readelf.c (target_specific_reloc_handling): Add end parameter.
365 Check for buffer overflow before writing relocated values.
366 (apply_relocations): Pass end to target_specific_reloc_handling.
368 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
369 Nick Clifton <nickc@redhat.com>
372 * doc/binutils.texi (ar): Extend documentation of the --plugin
373 option. Include a description of where the plugins should be
377 2017-01-23 Nick Clifton <nickc@redhat.com>
379 * MAINTAINERS: Add Bernd to Past Maintainers section.
380 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
383 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
385 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
387 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
389 * objdump.c (dump_section_header): Extract max section name length
390 from data parameter, use this when formatting output.
391 (find_longest_section_name): New function.
392 (dump_headers): Calculate longest section name when in wide mode,
393 reformat to unify printing of header line.
395 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
398 * arlex.l: Support processing with flex 2.6.3.
399 * deflex.l: Likewise.
401 2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
403 * resbin.c: Optional dialog control data immediately follows
404 the control description without alignment.
405 * testsuite/binutils-all/windres/controldata.rc: New test.
407 * testsuite/binutils-all/windres/controldata.rsd: New test.
409 2017-01-12 Nick Clifton <nickc@redhat.com>
412 * NEWS: Mention the new feature.
413 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
414 New proc to test the location of separate debug info files using
417 2017-01-10 Nick Clifton <nickc@redhat.com>
420 * stabs.c (parse_stab_members): Fix thinko checking for g++
421 version 1 stabs information.
423 2017-01-09 Nick Clifton <nickc@redhat.com>
425 * objdump.c (display_file): Add new parameter 'last_file'. If
426 last_file is true, do not call bfd_close at the end of the
428 (main): Set the value of the last_file parameter when calling
431 2017-01-09 Alan Modra <amodra@gmail.com>
433 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
436 2017-01-06 Nick Clifton <nickc@redhat.com>
438 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
440 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
443 * syslex.l (option): Add noyywrap
446 2017-01-02 Alan Modra <amodra@gmail.com>
448 Update year range in copyright notice of all files.
450 For older changes see ChangeLog-2016
452 Copyright (C) 2017 Free Software Foundation, Inc.
454 Copying and distribution of this file, with or without modification,
455 are permitted in any medium without royalty provided the copyright
456 notice and this notice are preserved.
462 version-control: never