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