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