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