Add checks for the NT_ARM_SVE section in a core file.
authorAlan Hayward <alan.hayward@arm.com>
Fri, 6 Jul 2018 15:25:21 +0000 (16:25 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 6 Jul 2018 15:25:21 +0000 (16:25 +0100)
commitad1cc4e492e51ff334df81b5e8610f91b50e373a
tree5dc97be258d2b436ef54da07169da413d25b2229
parentf311ba7ed84d66ae2cd77bd969747d7ab959d866
Add checks for the NT_ARM_SVE section in a core file.

The NT_ARM_SVE section is documented here:
  https://github.com/torvalds/linux/blob/master/Documentation/arm64/sve.txt
  * A NT_ARM_SVE note will be added to each coredump for each thread of the
   dumped process.  The contents will be equivalent to the data that would have
   been read if a PTRACE_GETREGSET of NT_ARM_SVE were executed for each thread
   when the coredump was generated.

* elf.c (elfcore_grok_aarch_sve): New function.
(elfcore_grok_note): Check for Aarch64 SVE.
(elfcore_write_aarch_sve): New function.
(elfcore_write_register_note): Check for Aarch64 SVE.
* elf-bfd.h(elfcore_grok_aarch_sve): New declaration.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf.c