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