AArch64: Add pauth core file section
authorAlan Hayward <alan.hayward@arm.com>
Wed, 20 Feb 2019 10:39:28 +0000 (10:39 +0000)
committerAlan Hayward <alan.hayward@arm.com>
Wed, 20 Feb 2019 10:39:28 +0000 (10:39 +0000)
commite6c3b5bfb449d1a02d26f3c4bae5b732951479fc
tree9fb625a78e11377adfcfdb56ae89ba67f74e4899
parent34d75fb5c419a23922174c520e124523e01114c4
AArch64: Add pauth core file section

Used for the AArch64 pointer authentication code mask registers in Arm v8.3-a.

NT_ARM_PAC_MASK matches the value in Linux include/uapi/linux/elf.h

include/ChangeLog:

* elf/common.h (NT_ARM_PAC_MASK): Add define.

bfd/ChangeLog:

* elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
* elf.c (elfcore_grok_aarch_pauth): New function.
(elfcore_grok_note): Check for NT_ARM_PAC_MASK.
(elfcore_write_aarch_pauth): New function.
(elfcore_write_register_note): Check for AArch64 pauth section.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf.c
include/ChangeLog
include/elf/common.h