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