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