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