1 2017-02-25 Alan Modra <amodra@gmail.com>
3 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
4 Support hpux .comm variant.
5 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
6 dw5 test for hppa64-hpux.
8 2017-02-24 Nick Clifton <nickc@redhat.com>
10 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
11 (do_reloc, do_sections, do_section_groups, do_section_details,
12 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
13 (do_version, do_histogram, do_debugging, do_arch, do_notes,
14 (do_archive_index, is_32bit_elf, decompress_dumps): Use
16 (parse_args): Treat the do_* variables as booleans.
17 (print_vma): Return an unsigned int.
18 (print_symbol): Change width parameter to signed int.
19 (is_ia64_vms): Change return type to bfd_boolean.
20 (guess_is_rela): Likewise.
21 (slurp_rela_relocs): Likewise.
22 (slurp_rel_relocs): Likewise.
23 (dump_relocations): Likewise.
24 (process_file_header): Likewise.
25 (get_program_headers): Likewise.
26 (process_program_headers): Likewise.
27 (process_section_headers): Likewise.
28 (process_section_groups): Likewise.
29 (dump_ia64_vms_dynamic_fixups): Likewise.
30 (dump_ia64_vms_dynamic_relocs): Likewise.
31 (process_ia64_vms_dynamic_relocs): Likewise.
32 (process_relocs): Likewise.
33 (dump_ia64_unwind): Likewise.
34 (ia64_process_unwind): Likewise.
35 (dump_hppa_unwind): Likewise.
36 (slurp_hppa_unwind_table): Likewise.
37 (hppa_process_unwind): Likewise.
38 (decode_arm_unwind_bytecode): Likewise.
39 (decode_tic6x_unwind_bytecode): Likewise.
40 (decode_arm_unwind): Likewise.
41 (dump_arm_unwind): Likewise.
42 (arm_process_unwind): Likewise.
43 (process_unwind): Likewise.
44 (get_32bit_dynamic_section): Likewise.
45 (get_64bit_dynamic_section): Likewise.
46 (process_dynamic_section): Likewise.
47 (process_version_sections): Likewise.
48 (process_symbol_table): Likewise.
49 (process_syminfo): Likewise.
50 (apply_relocations): Likewise.
51 (disassemble_section): Likewise.
52 (dump_section_as_strings): Likewise.
53 (dump_section_as_bytes): Likewise.
54 (load_specific_debug_section): Likewise.
55 (load_debug_section): Likewise.
56 (display_debug_section): Likewise.
57 (process_section_contents): Likewise.
58 (process_attributes): Likewise.
59 (process_nds32_specific): Likewise.
60 (process_gnu_liblist): Likewise.
61 (print_core_note): Likewise.
62 (print_gnu_note): Likewise.
63 (print_v850_note): Likewise.
64 (process_netbsd_elf_note): Likewise.
65 (print_stapsdt_note): Likewise.
66 (print_ia64_vms_note): Likewise.
67 (process_note): Likewise.
68 (process_notes_at): Likewise.
69 (process_corefile_note_segments): Likewise.
70 (process_v850_notes): Likewise.
71 (process_note_sections): Likewise.
72 (process_notes): Likewise.
73 (process_arch_specific): Likewise.
74 (get_file_header): Likewise.
75 (process_object): Likewise.
76 (process_archive): Likewise.
77 (process_file): Likewise.
78 (section_subset): Make static.
79 (get_mips_reg_size): Return a signed integer.
80 (process_object): Reverse the logic of the return value.
81 (process_archive): Likewise.
82 (process_file): Likewise.
83 (process_program_headers): Fix snafu - if the program headers are
84 not available then this is not a cause to fail.
85 (process_corefile_note_segments): Likewise.
87 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
89 * readelf.c (get_ver_flags): Tidy the formatting of the string
92 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
94 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
96 <SHT_GNU_verneed>: Likewise.
98 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
100 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
101 the number of entries processed by the section size. Don't
102 break out of the loop if `ent.vd_next' is 0.
104 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
106 * testsuite/binutils-all/dw5.S: New file.
107 * testsuite/binutils-all/dw5.W: New file.
108 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
110 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
112 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
114 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
116 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
119 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
121 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
122 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
123 and DW_OP_reinterpret.
124 (read_and_display_attr_value): Support DW_AT_call_value,
125 DW_AT_call_data_value, DW_AT_call_target and
126 DW_AT_call_target_clobbered.
128 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
130 * dwarf.c (fetch_indirect_line_string): New function.
131 (abbrev_attr): New field implicit_const.
132 (add_abbrev_attr): New parameter implicit_const.
133 (process_abbrev_section): Support DW_FORM_implicit_const.
134 (decode_location_expression): Support DW_OP_entry_value.
135 (read_and_display_attr_value): Add parameter implicit_const. Support
136 DW_FORM_line_strp and DW_FORM_implicit_const.
137 (read_and_display_attr): Add parameter implicit_const.
138 (process_debug_info): Support line_str and DWARF-5.
139 (read_debug_line_header): Support DWARF-5.
140 (display_formatted_table): New function.
141 (display_debug_lines_raw): New parameter file. Support DWARF-5.
142 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
143 (display_debug_lines): Pass file parameter.
144 (display_debug_macro): Update read_and_display_attr_value caller.
145 (display_debug_abbrev): Support DW_FORM_implicit_const.
146 (display_loclists_list): New function.
147 (display_loc_list): Support .debug_loclists.
148 (display_debug_ranges_list): New function from display_debug_ranges.
149 (display_debug_rnglists_list): New function.
150 (display_debug_ranges): Support .debug_rnglists.
151 (debug_displays): Add .debug_line_str, .debug_loclists and
153 * dwarf.h: Include dwarf2.h
154 (DWARF2_Internal_LineInfo): Add li_offset_size.
155 (DWARF2_Internal_CompUnit): Add cu_unit_type.
156 (enum dwarf_section_display_enum): Add line_str.
157 * readelf.c (process_section_headers): Add rnglists and loclists.
159 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
161 * dwarf.c (display_block): Add parameter delimiter.
162 (decode_location_expression): Update display_block callers.
163 (read_and_display_attr_value): Add parameter delimiter.
164 (read_and_display_attr, display_debug_macro): Update
165 read_and_display_attr_value caller.
167 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
169 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
171 (display_loc_list_dwo): Use dwarf_vma for offset.
172 (display_debug_loc): Use dwarf_vma for offset, base_address.
173 (struct range_entry, range_entry_compar): Use dwarf_vma for
175 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
178 2017-02-23 Nick Clifton <nickc@redhat.com>
180 * readelf.c (display_tag_value): Use an explicit signed type for
182 (display_gnu_attributes): Use an unsigned integer type for
184 (display_power_gnu_attribute): Likewise.
185 (display_s390_gnu_attribute): Likewise.
186 (display_sparc_hwcaps): Likewise.
187 (display_sparc_hwcaps2): Likewise.
188 (display_sparc_gnu_attribute): Likewise.
189 (display_mips_gnu_attribute): Likewise.
190 (display_tic6x_attribute): Likewise.
191 (display_raw_attribute): Likewise.
192 (process_attributes): Likewise.
193 (process_arm_specific): Delete redundant function.
194 (process_power_specific): Likewise.
195 (process_s390_specific): Likewise.
196 (process_sparc_specific): Likewise.
197 (process_tic6x_specific): Likewise.
198 (process_msp430x_specific): Likewise.
199 (display_public_gnu_attributes): New function. Displays known
200 information about an unknown gnu attribute.
201 (display_generic_attribute): New function. Calls
202 display_tag_value for non-nul tags.
203 (process_arch_specific): Call process_attributes even for
204 architectures not known to specifically support gnu attributes.
206 2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
208 * dwarf.c (decode_location_expression): Display also OP.
210 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
212 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
213 new line between the heading and the first version definition
216 2017-02-20 Nick Clifton <nickc@redhat.com>
219 * dwarf.c (cu_tu_indexes_read): Move into...
220 (load_cu_tu_indexes): ... here. Change the variable into
221 tri-state. Change the function into boolean, returning
222 false if the indicies could not be loaded.
223 (find_cu_tu_set): Return NULL if the indicies could not be
226 2017-02-17 Nick Clifton <nickc@redhat.com>
229 * readelf.c (find_section_in_set): Test for invalid section
232 2017-02-17 Nick Clifton <nickc@redhat.com>
234 * readelf.c (get_section_type_name): Add decoding of GNU section
237 2017-02-15 Nick Clifton <nickc@redhat.com>
239 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
242 2017-02-14 Nick Clifton <nickc@redhat.com>
245 * readelf.c (dump_section_as_strings): Reset the start address if
246 no decompression is perfromed.
247 (dump_section_as_bytes): Likewise.
249 2017-02-14 Nick Clifton <nickc@redhat.com>
252 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
255 2017-02-14 Nick Clifton <nickc@redhat.com>
258 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
260 (parse_number): Exit early if passed an empty string.
262 2017-02-14 Nick Clifton <nickc@redhat.com>
265 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
266 being within a given range.
267 (target_specific_reloc_handling): Use macro to test for underflow
268 as well as overflow of reloc offset.
270 2017-02-13 Nick Clifton <nickc@redhat.com>
273 * nm.c (file_symbol): Add test of string length before testing
276 2017-02-13 Nick Clifton <nickc@redhat.com>
279 * readelf.c (dump_section_as_bytes): Handle the case where
280 uncompress_section_contents returns false.
281 (dump_section_as_bytes, load_specific_debug_section): Likewise.
283 2017-02-13 Nick Clifton <nickc@redhat.com>
286 * readelf.c (get_compression_header): Add size parameter. Check
287 size against sizeof compression header before attempting to
289 (process_section_headers): Pass size to get_compression_header.
290 (dump_section_as_strings): Likewise.
291 (dump_section_as_bytes): Likewise.
292 (load_specific_debug_section): Likewise.
294 2017-02-13 Nick Clifton <nickc@redhat.com>
297 * readelf.c (process_version_sections): Include size of auxillary
298 version information when checking for buffer overflow.
300 2017-02-13 Nick Clifton <nickc@redhat.com>
303 * readelf.c (process_section_contents): Fix off by one error
304 reporting un-dumped sections.
306 2017-02-13 Nick Clifton <nickc@redhat.com>
309 * readelf.c (target_specific_reloc_handling): Add num_syms
310 parameter. Check for symbol table overflow before accessing
311 symbol value. If reloc pointer is NULL, discard all saved state.
312 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
313 Call target_specific_reloc_handling with a NULL reloc pointer
314 after processing all of the relocs.
316 2017-02-13 Nick Clifton <nickc@redhat.com>
319 * readelf.c (target_specific_reloc_handling): Add end parameter.
320 Check for buffer overflow before writing relocated values.
321 (apply_relocations): Pass end to target_specific_reloc_handling.
323 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
324 Nick Clifton <nickc@redhat.com>
327 * doc/binutils.texi (ar): Extend documentation of the --plugin
328 option. Include a description of where the plugins should be
332 2017-01-23 Nick Clifton <nickc@redhat.com>
334 * MAINTAINERS: Add Bernd to Past Maintainers section.
335 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
338 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
340 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
342 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
344 * objdump.c (dump_section_header): Extract max section name length
345 from data parameter, use this when formatting output.
346 (find_longest_section_name): New function.
347 (dump_headers): Calculate longest section name when in wide mode,
348 reformat to unify printing of header line.
350 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
353 * arlex.l: Support processing with flex 2.6.3.
354 * deflex.l: Likewise.
356 2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
358 * resbin.c: Optional dialog control data immediately follows
359 the control description without alignment.
360 * testsuite/binutils-all/windres/controldata.rc: New test.
362 * testsuite/binutils-all/windres/controldata.rsd: New test.
364 2017-01-12 Nick Clifton <nickc@redhat.com>
367 * NEWS: Mention the new feature.
368 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
369 New proc to test the location of separate debug info files using
372 2017-01-10 Nick Clifton <nickc@redhat.com>
375 * stabs.c (parse_stab_members): Fix thinko checking for g++
376 version 1 stabs information.
378 2017-01-09 Nick Clifton <nickc@redhat.com>
380 * objdump.c (display_file): Add new parameter 'last_file'. If
381 last_file is true, do not call bfd_close at the end of the
383 (main): Set the value of the last_file parameter when calling
386 2017-01-09 Alan Modra <amodra@gmail.com>
388 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
391 2017-01-06 Nick Clifton <nickc@redhat.com>
393 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
395 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
398 * syslex.l (option): Add noyywrap
401 2017-01-02 Alan Modra <amodra@gmail.com>
403 Update year range in copyright notice of all files.
405 For older changes see ChangeLog-2016
407 Copyright (C) 2017 Free Software Foundation, Inc.
409 Copying and distribution of this file, with or without modification,
410 are permitted in any medium without royalty provided the copyright
411 notice and this notice are preserved.
417 version-control: never