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