DWARF-5: testcase
[binutils-gdb.git] / binutils / ChangeLog
1 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * testsuite/binutils-all/dw5.S: New file.
4 * testsuite/binutils-all/dw5.W: New file.
5 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
6
7 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8
9 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
10
11 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12
13 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
14 DW_MACRO_GNU_*.
15
16 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
17
18 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
19 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
20 and DW_OP_reinterpret.
21 (read_and_display_attr_value): Support DW_AT_call_value,
22 DW_AT_call_data_value, DW_AT_call_target and
23 DW_AT_call_target_clobbered.
24
25 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
26
27 * dwarf.c (fetch_indirect_line_string): New function.
28 (abbrev_attr): New field implicit_const.
29 (add_abbrev_attr): New parameter implicit_const.
30 (process_abbrev_section): Support DW_FORM_implicit_const.
31 (decode_location_expression): Support DW_OP_entry_value.
32 (read_and_display_attr_value): Add parameter implicit_const. Support
33 DW_FORM_line_strp and DW_FORM_implicit_const.
34 (read_and_display_attr): Add parameter implicit_const.
35 (process_debug_info): Support line_str and DWARF-5.
36 (read_debug_line_header): Support DWARF-5.
37 (display_formatted_table): New function.
38 (display_debug_lines_raw): New parameter file. Support DWARF-5.
39 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
40 (display_debug_lines): Pass file parameter.
41 (display_debug_macro): Update read_and_display_attr_value caller.
42 (display_debug_abbrev): Support DW_FORM_implicit_const.
43 (display_loclists_list): New function.
44 (display_loc_list): Support .debug_loclists.
45 (display_debug_ranges_list): New function from display_debug_ranges.
46 (display_debug_rnglists_list): New function.
47 (display_debug_ranges): Support .debug_rnglists.
48 (debug_displays): Add .debug_line_str, .debug_loclists and
49 .debug_rnglists.
50 * dwarf.h: Include dwarf2.h
51 (DWARF2_Internal_LineInfo): Add li_offset_size.
52 (DWARF2_Internal_CompUnit): Add cu_unit_type.
53 (enum dwarf_section_display_enum): Add line_str.
54 * readelf.c (process_section_headers): Add rnglists and loclists.
55
56 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
57
58 * dwarf.c (display_block): Add parameter delimiter.
59 (decode_location_expression): Update display_block callers.
60 (read_and_display_attr_value): Add parameter delimiter.
61 (read_and_display_attr, display_debug_macro): Update
62 read_and_display_attr_value caller.
63
64 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
65
66 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
67 and off.
68 (display_loc_list_dwo): Use dwarf_vma for offset.
69 (display_debug_loc): Use dwarf_vma for offset, base_address.
70 (struct range_entry, range_entry_compar): Use dwarf_vma for
71 ranges_offset.
72 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
73 base_address.
74
75 2017-02-23 Nick Clifton <nickc@redhat.com>
76
77 * readelf.c (display_tag_value): Use an explicit signed type for
78 the tag parameter.
79 (display_gnu_attributes): Use an unsigned integer type for
80 attribute tags.
81 (display_power_gnu_attribute): Likewise.
82 (display_s390_gnu_attribute): Likewise.
83 (display_sparc_hwcaps): Likewise.
84 (display_sparc_hwcaps2): Likewise.
85 (display_sparc_gnu_attribute): Likewise.
86 (display_mips_gnu_attribute): Likewise.
87 (display_tic6x_attribute): Likewise.
88 (display_raw_attribute): Likewise.
89 (process_attributes): Likewise.
90 (process_arm_specific): Delete redundant function.
91 (process_power_specific): Likewise.
92 (process_s390_specific): Likewise.
93 (process_sparc_specific): Likewise.
94 (process_tic6x_specific): Likewise.
95 (process_msp430x_specific): Likewise.
96 (display_public_gnu_attributes): New function. Displays known
97 information about an unknown gnu attribute.
98 (display_generic_attribute): New function. Calls
99 display_tag_value for non-nul tags.
100 (process_arch_specific): Call process_attributes even for
101 architectures not known to specifically support gnu attributes.
102
103 2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
104
105 * dwarf.c (decode_location_expression): Display also OP.
106
107 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
108
109 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
110 new line between the heading and the first version definition
111 entry.
112
113 2017-02-20 Nick Clifton <nickc@redhat.com>
114
115 PR binutils/21156
116 * dwarf.c (cu_tu_indexes_read): Move into...
117 (load_cu_tu_indexes): ... here. Change the variable into
118 tri-state. Change the function into boolean, returning
119 false if the indicies could not be loaded.
120 (find_cu_tu_set): Return NULL if the indicies could not be
121 loaded.
122
123 2017-02-17 Nick Clifton <nickc@redhat.com>
124
125 PR binutils/21156
126 * readelf.c (find_section_in_set): Test for invalid section
127 indicies.
128
129 2017-02-17 Nick Clifton <nickc@redhat.com>
130
131 * readelf.c (get_section_type_name): Add decoding of GNU section
132 types.
133
134 2017-02-15 Nick Clifton <nickc@redhat.com>
135
136 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
137 Maintainers section.
138
139 2017-02-14 Nick Clifton <nickc@redhat.com>
140
141 PR binutils/21159
142 * readelf.c (dump_section_as_strings): Reset the start address if
143 no decompression is perfromed.
144 (dump_section_as_bytes): Likewise.
145
146 2017-02-14 Nick Clifton <nickc@redhat.com>
147
148 PR binutils/21158
149 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
150 empty symbol name.
151
152 2017-02-14 Nick Clifton <nickc@redhat.com>
153
154 PR binutils/21157
155 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
156 pairs.
157 (parse_number): Exit early if passed an empty string.
158
159 2017-02-14 Nick Clifton <nickc@redhat.com>
160
161 PR binutils/21155
162 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
163 being within a given range.
164 (target_specific_reloc_handling): Use macro to test for underflow
165 as well as overflow of reloc offset.
166
167 2017-02-13 Nick Clifton <nickc@redhat.com>
168
169 PR binutils/21150
170 * nm.c (file_symbol): Add test of string length before testing
171 string characters.
172
173 2017-02-13 Nick Clifton <nickc@redhat.com>
174
175 PR binutils/21135
176 * readelf.c (dump_section_as_bytes): Handle the case where
177 uncompress_section_contents returns false.
178 (dump_section_as_bytes, load_specific_debug_section): Likewise.
179
180 2017-02-13 Nick Clifton <nickc@redhat.com>
181
182 PR binutils/21149
183 * readelf.c (get_compression_header): Add size parameter. Check
184 size against sizeof compression header before attempting to
185 extract the header.
186 (process_section_headers): Pass size to get_compression_header.
187 (dump_section_as_strings): Likewise.
188 (dump_section_as_bytes): Likewise.
189 (load_specific_debug_section): Likewise.
190
191 2017-02-13 Nick Clifton <nickc@redhat.com>
192
193 PR binutils/21148
194 * readelf.c (process_version_sections): Include size of auxillary
195 version information when checking for buffer overflow.
196
197 2017-02-13 Nick Clifton <nickc@redhat.com>
198
199 PR binutils/21147
200 * readelf.c (process_section_contents): Fix off by one error
201 reporting un-dumped sections.
202
203 2017-02-13 Nick Clifton <nickc@redhat.com>
204
205 PR binutils/21139
206 * readelf.c (target_specific_reloc_handling): Add num_syms
207 parameter. Check for symbol table overflow before accessing
208 symbol value. If reloc pointer is NULL, discard all saved state.
209 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
210 Call target_specific_reloc_handling with a NULL reloc pointer
211 after processing all of the relocs.
212
213 2017-02-13 Nick Clifton <nickc@redhat.com>
214
215 PR binutils/21137
216 * readelf.c (target_specific_reloc_handling): Add end parameter.
217 Check for buffer overflow before writing relocated values.
218 (apply_relocations): Pass end to target_specific_reloc_handling.
219
220 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
221 Nick Clifton <nickc@redhat.com>
222
223 PR 20343
224 * doc/binutils.texi (ar): Extend documentation of the --plugin
225 option. Include a description of where the plugins should be
226 located.
227 (nm): Likewise.
228
229 2017-01-23 Nick Clifton <nickc@redhat.com>
230
231 * MAINTAINERS: Add Bernd to Past Maintainers section.
232 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
233 section.
234
235 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
236
237 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
238
239 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
240
241 * objdump.c (dump_section_header): Extract max section name length
242 from data parameter, use this when formatting output.
243 (find_longest_section_name): New function.
244 (dump_headers): Calculate longest section name when in wide mode,
245 reformat to unify printing of header line.
246
247 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
248
249 PR 21059
250 * arlex.l: Support processing with flex 2.6.3.
251 * deflex.l: Likewise.
252
253 2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
254
255 * resbin.c: Optional dialog control data immediately follows
256 the control description without alignment.
257 * testsuite/binutils-all/windres/controldata.rc: New test.
258 source.
259 * testsuite/binutils-all/windres/controldata.rsd: New test.
260
261 2017-01-12 Nick Clifton <nickc@redhat.com>
262
263 PR binutils/20876
264 * NEWS: Mention the new feature.
265 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
266 New proc to test the location of separate debug info files using
267 the build-id method.
268
269 2017-01-10 Nick Clifton <nickc@redhat.com>
270
271 PR 21034
272 * stabs.c (parse_stab_members): Fix thinko checking for g++
273 version 1 stabs information.
274
275 2017-01-09 Nick Clifton <nickc@redhat.com>
276
277 * objdump.c (display_file): Add new parameter 'last_file'. If
278 last_file is true, do not call bfd_close at the end of the
279 function.
280 (main): Set the value of the last_file parameter when calling
281 display_file.
282
283 2017-01-09 Alan Modra <amodra@gmail.com>
284
285 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
286 comment.
287
288 2017-01-06 Nick Clifton <nickc@redhat.com>
289
290 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
291
292 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
293
294 PR 20958
295 * syslex.l (option): Add noyywrap
296 (yywrap): Delete.
297
298 2017-01-02 Alan Modra <amodra@gmail.com>
299
300 Update year range in copyright notice of all files.
301
302 For older changes see ChangeLog-2016
303 \f
304 Copyright (C) 2017 Free Software Foundation, Inc.
305
306 Copying and distribution of this file, with or without modification,
307 are permitted in any medium without royalty provided the copyright
308 notice and this notice are preserved.
309
310 Local Variables:
311 mode: change-log
312 left-margin: 8
313 fill-column: 74
314 version-control: never
315 End: