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