Fix compilation with GCC 4.4.7.
[binutils-gdb.git] / binutils / ChangeLog
1 2017-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Fix compilation with GCC 4.4.7.
4 * dwarf.c (display_loclists_list, display_debug_rnglists_list):
5 Initialize begin and end.
6
7 2017-02-27 Rudy Y <rudyy.id@gmail.com>
8
9 PR 20881
10 * dlltool.c (secdata): Align .idata$6 on 2 byte boundary.
11 (make_one_lib_file): Export a symbol called __nm_<symbol> for use
12 with auto-importing.
13
14 2017-02-25 Alan Modra <amodra@gmail.com>
15
16 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
17 Support hpux .comm variant.
18 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
19 dw5 test for hppa64-hpux.
20
21 2017-02-24 Nick Clifton <nickc@redhat.com>
22
23 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
24 (do_reloc, do_sections, do_section_groups, do_section_details,
25 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
26 (do_version, do_histogram, do_debugging, do_arch, do_notes,
27 (do_archive_index, is_32bit_elf, decompress_dumps): Use
28 bfd_boolean type.
29 (parse_args): Treat the do_* variables as booleans.
30 (print_vma): Return an unsigned int.
31 (print_symbol): Change width parameter to signed int.
32 (is_ia64_vms): Change return type to bfd_boolean.
33 (guess_is_rela): Likewise.
34 (slurp_rela_relocs): Likewise.
35 (slurp_rel_relocs): Likewise.
36 (dump_relocations): Likewise.
37 (process_file_header): Likewise.
38 (get_program_headers): Likewise.
39 (process_program_headers): Likewise.
40 (process_section_headers): Likewise.
41 (process_section_groups): Likewise.
42 (dump_ia64_vms_dynamic_fixups): Likewise.
43 (dump_ia64_vms_dynamic_relocs): Likewise.
44 (process_ia64_vms_dynamic_relocs): Likewise.
45 (process_relocs): Likewise.
46 (dump_ia64_unwind): Likewise.
47 (ia64_process_unwind): Likewise.
48 (dump_hppa_unwind): Likewise.
49 (slurp_hppa_unwind_table): Likewise.
50 (hppa_process_unwind): Likewise.
51 (decode_arm_unwind_bytecode): Likewise.
52 (decode_tic6x_unwind_bytecode): Likewise.
53 (decode_arm_unwind): Likewise.
54 (dump_arm_unwind): Likewise.
55 (arm_process_unwind): Likewise.
56 (process_unwind): Likewise.
57 (get_32bit_dynamic_section): Likewise.
58 (get_64bit_dynamic_section): Likewise.
59 (process_dynamic_section): Likewise.
60 (process_version_sections): Likewise.
61 (process_symbol_table): Likewise.
62 (process_syminfo): Likewise.
63 (apply_relocations): Likewise.
64 (disassemble_section): Likewise.
65 (dump_section_as_strings): Likewise.
66 (dump_section_as_bytes): Likewise.
67 (load_specific_debug_section): Likewise.
68 (load_debug_section): Likewise.
69 (display_debug_section): Likewise.
70 (process_section_contents): Likewise.
71 (process_attributes): Likewise.
72 (process_nds32_specific): Likewise.
73 (process_gnu_liblist): Likewise.
74 (print_core_note): Likewise.
75 (print_gnu_note): Likewise.
76 (print_v850_note): Likewise.
77 (process_netbsd_elf_note): Likewise.
78 (print_stapsdt_note): Likewise.
79 (print_ia64_vms_note): Likewise.
80 (process_note): Likewise.
81 (process_notes_at): Likewise.
82 (process_corefile_note_segments): Likewise.
83 (process_v850_notes): Likewise.
84 (process_note_sections): Likewise.
85 (process_notes): Likewise.
86 (process_arch_specific): Likewise.
87 (get_file_header): Likewise.
88 (process_object): Likewise.
89 (process_archive): Likewise.
90 (process_file): Likewise.
91 (section_subset): Make static.
92 (get_mips_reg_size): Return a signed integer.
93 (process_object): Reverse the logic of the return value.
94 (process_archive): Likewise.
95 (process_file): Likewise.
96 (process_program_headers): Fix snafu - if the program headers are
97 not available then this is not a cause to fail.
98 (process_corefile_note_segments): Likewise.
99
100 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
101
102 * readelf.c (get_ver_flags): Tidy the formatting of the string
103 returned
104
105 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
106
107 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
108 `isum' unsigned.
109 <SHT_GNU_verneed>: Likewise.
110
111 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
112
113 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
114 the number of entries processed by the section size. Don't
115 break out of the loop if `ent.vd_next' is 0.
116
117 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
118
119 * testsuite/binutils-all/dw5.S: New file.
120 * testsuite/binutils-all/dw5.W: New file.
121 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
122
123 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
124
125 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
126
127 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
128
129 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
130 DW_MACRO_GNU_*.
131
132 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
133
134 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
135 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
136 and DW_OP_reinterpret.
137 (read_and_display_attr_value): Support DW_AT_call_value,
138 DW_AT_call_data_value, DW_AT_call_target and
139 DW_AT_call_target_clobbered.
140
141 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
142
143 * dwarf.c (fetch_indirect_line_string): New function.
144 (abbrev_attr): New field implicit_const.
145 (add_abbrev_attr): New parameter implicit_const.
146 (process_abbrev_section): Support DW_FORM_implicit_const.
147 (decode_location_expression): Support DW_OP_entry_value.
148 (read_and_display_attr_value): Add parameter implicit_const. Support
149 DW_FORM_line_strp and DW_FORM_implicit_const.
150 (read_and_display_attr): Add parameter implicit_const.
151 (process_debug_info): Support line_str and DWARF-5.
152 (read_debug_line_header): Support DWARF-5.
153 (display_formatted_table): New function.
154 (display_debug_lines_raw): New parameter file. Support DWARF-5.
155 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
156 (display_debug_lines): Pass file parameter.
157 (display_debug_macro): Update read_and_display_attr_value caller.
158 (display_debug_abbrev): Support DW_FORM_implicit_const.
159 (display_loclists_list): New function.
160 (display_loc_list): Support .debug_loclists.
161 (display_debug_ranges_list): New function from display_debug_ranges.
162 (display_debug_rnglists_list): New function.
163 (display_debug_ranges): Support .debug_rnglists.
164 (debug_displays): Add .debug_line_str, .debug_loclists and
165 .debug_rnglists.
166 * dwarf.h: Include dwarf2.h
167 (DWARF2_Internal_LineInfo): Add li_offset_size.
168 (DWARF2_Internal_CompUnit): Add cu_unit_type.
169 (enum dwarf_section_display_enum): Add line_str.
170 * readelf.c (process_section_headers): Add rnglists and loclists.
171
172 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
173
174 * dwarf.c (display_block): Add parameter delimiter.
175 (decode_location_expression): Update display_block callers.
176 (read_and_display_attr_value): Add parameter delimiter.
177 (read_and_display_attr, display_debug_macro): Update
178 read_and_display_attr_value caller.
179
180 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
181
182 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
183 and off.
184 (display_loc_list_dwo): Use dwarf_vma for offset.
185 (display_debug_loc): Use dwarf_vma for offset, base_address.
186 (struct range_entry, range_entry_compar): Use dwarf_vma for
187 ranges_offset.
188 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
189 base_address.
190
191 2017-02-23 Nick Clifton <nickc@redhat.com>
192
193 * readelf.c (display_tag_value): Use an explicit signed type for
194 the tag parameter.
195 (display_gnu_attributes): Use an unsigned integer type for
196 attribute tags.
197 (display_power_gnu_attribute): Likewise.
198 (display_s390_gnu_attribute): Likewise.
199 (display_sparc_hwcaps): Likewise.
200 (display_sparc_hwcaps2): Likewise.
201 (display_sparc_gnu_attribute): Likewise.
202 (display_mips_gnu_attribute): Likewise.
203 (display_tic6x_attribute): Likewise.
204 (display_raw_attribute): Likewise.
205 (process_attributes): Likewise.
206 (process_arm_specific): Delete redundant function.
207 (process_power_specific): Likewise.
208 (process_s390_specific): Likewise.
209 (process_sparc_specific): Likewise.
210 (process_tic6x_specific): Likewise.
211 (process_msp430x_specific): Likewise.
212 (display_public_gnu_attributes): New function. Displays known
213 information about an unknown gnu attribute.
214 (display_generic_attribute): New function. Calls
215 display_tag_value for non-nul tags.
216 (process_arch_specific): Call process_attributes even for
217 architectures not known to specifically support gnu attributes.
218
219 2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
220
221 * dwarf.c (decode_location_expression): Display also OP.
222
223 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
224
225 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
226 new line between the heading and the first version definition
227 entry.
228
229 2017-02-20 Nick Clifton <nickc@redhat.com>
230
231 PR binutils/21156
232 * dwarf.c (cu_tu_indexes_read): Move into...
233 (load_cu_tu_indexes): ... here. Change the variable into
234 tri-state. Change the function into boolean, returning
235 false if the indicies could not be loaded.
236 (find_cu_tu_set): Return NULL if the indicies could not be
237 loaded.
238
239 2017-02-17 Nick Clifton <nickc@redhat.com>
240
241 PR binutils/21156
242 * readelf.c (find_section_in_set): Test for invalid section
243 indicies.
244
245 2017-02-17 Nick Clifton <nickc@redhat.com>
246
247 * readelf.c (get_section_type_name): Add decoding of GNU section
248 types.
249
250 2017-02-15 Nick Clifton <nickc@redhat.com>
251
252 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
253 Maintainers section.
254
255 2017-02-14 Nick Clifton <nickc@redhat.com>
256
257 PR binutils/21159
258 * readelf.c (dump_section_as_strings): Reset the start address if
259 no decompression is perfromed.
260 (dump_section_as_bytes): Likewise.
261
262 2017-02-14 Nick Clifton <nickc@redhat.com>
263
264 PR binutils/21158
265 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
266 empty symbol name.
267
268 2017-02-14 Nick Clifton <nickc@redhat.com>
269
270 PR binutils/21157
271 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
272 pairs.
273 (parse_number): Exit early if passed an empty string.
274
275 2017-02-14 Nick Clifton <nickc@redhat.com>
276
277 PR binutils/21155
278 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
279 being within a given range.
280 (target_specific_reloc_handling): Use macro to test for underflow
281 as well as overflow of reloc offset.
282
283 2017-02-13 Nick Clifton <nickc@redhat.com>
284
285 PR binutils/21150
286 * nm.c (file_symbol): Add test of string length before testing
287 string characters.
288
289 2017-02-13 Nick Clifton <nickc@redhat.com>
290
291 PR binutils/21135
292 * readelf.c (dump_section_as_bytes): Handle the case where
293 uncompress_section_contents returns false.
294 (dump_section_as_bytes, load_specific_debug_section): Likewise.
295
296 2017-02-13 Nick Clifton <nickc@redhat.com>
297
298 PR binutils/21149
299 * readelf.c (get_compression_header): Add size parameter. Check
300 size against sizeof compression header before attempting to
301 extract the header.
302 (process_section_headers): Pass size to get_compression_header.
303 (dump_section_as_strings): Likewise.
304 (dump_section_as_bytes): Likewise.
305 (load_specific_debug_section): Likewise.
306
307 2017-02-13 Nick Clifton <nickc@redhat.com>
308
309 PR binutils/21148
310 * readelf.c (process_version_sections): Include size of auxillary
311 version information when checking for buffer overflow.
312
313 2017-02-13 Nick Clifton <nickc@redhat.com>
314
315 PR binutils/21147
316 * readelf.c (process_section_contents): Fix off by one error
317 reporting un-dumped sections.
318
319 2017-02-13 Nick Clifton <nickc@redhat.com>
320
321 PR binutils/21139
322 * readelf.c (target_specific_reloc_handling): Add num_syms
323 parameter. Check for symbol table overflow before accessing
324 symbol value. If reloc pointer is NULL, discard all saved state.
325 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
326 Call target_specific_reloc_handling with a NULL reloc pointer
327 after processing all of the relocs.
328
329 2017-02-13 Nick Clifton <nickc@redhat.com>
330
331 PR binutils/21137
332 * readelf.c (target_specific_reloc_handling): Add end parameter.
333 Check for buffer overflow before writing relocated values.
334 (apply_relocations): Pass end to target_specific_reloc_handling.
335
336 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
337 Nick Clifton <nickc@redhat.com>
338
339 PR 20343
340 * doc/binutils.texi (ar): Extend documentation of the --plugin
341 option. Include a description of where the plugins should be
342 located.
343 (nm): Likewise.
344
345 2017-01-23 Nick Clifton <nickc@redhat.com>
346
347 * MAINTAINERS: Add Bernd to Past Maintainers section.
348 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
349 section.
350
351 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
352
353 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
354
355 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * objdump.c (dump_section_header): Extract max section name length
358 from data parameter, use this when formatting output.
359 (find_longest_section_name): New function.
360 (dump_headers): Calculate longest section name when in wide mode,
361 reformat to unify printing of header line.
362
363 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
364
365 PR 21059
366 * arlex.l: Support processing with flex 2.6.3.
367 * deflex.l: Likewise.
368
369 2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
370
371 * resbin.c: Optional dialog control data immediately follows
372 the control description without alignment.
373 * testsuite/binutils-all/windres/controldata.rc: New test.
374 source.
375 * testsuite/binutils-all/windres/controldata.rsd: New test.
376
377 2017-01-12 Nick Clifton <nickc@redhat.com>
378
379 PR binutils/20876
380 * NEWS: Mention the new feature.
381 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
382 New proc to test the location of separate debug info files using
383 the build-id method.
384
385 2017-01-10 Nick Clifton <nickc@redhat.com>
386
387 PR 21034
388 * stabs.c (parse_stab_members): Fix thinko checking for g++
389 version 1 stabs information.
390
391 2017-01-09 Nick Clifton <nickc@redhat.com>
392
393 * objdump.c (display_file): Add new parameter 'last_file'. If
394 last_file is true, do not call bfd_close at the end of the
395 function.
396 (main): Set the value of the last_file parameter when calling
397 display_file.
398
399 2017-01-09 Alan Modra <amodra@gmail.com>
400
401 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
402 comment.
403
404 2017-01-06 Nick Clifton <nickc@redhat.com>
405
406 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
407
408 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
409
410 PR 20958
411 * syslex.l (option): Add noyywrap
412 (yywrap): Delete.
413
414 2017-01-02 Alan Modra <amodra@gmail.com>
415
416 Update year range in copyright notice of all files.
417
418 For older changes see ChangeLog-2016
419 \f
420 Copyright (C) 2017 Free Software Foundation, Inc.
421
422 Copying and distribution of this file, with or without modification,
423 are permitted in any medium without royalty provided the copyright
424 notice and this notice are preserved.
425
426 Local Variables:
427 mode: change-log
428 left-margin: 8
429 fill-column: 74
430 version-control: never
431 End: