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