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