summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/elf.go
diff options
context:
space:
mode:
authorHaibo Xu <haibo.xu@arm.com>2019-08-09 13:16:46 -0700
committergVisor bot <gvisor-bot@google.com>2019-08-09 13:18:11 -0700
commit1c9da886e72aebc1c44c66715e3ec45f6d5eff5b (patch)
tree70505665f656e21e8c05182045ee5e5ffb4fde35 /pkg/abi/linux/elf.go
parentc8961a6cbde04603398d1db92b8a26147453f3a7 (diff)
Add initial ptrace stub and syscall support for arm64.
Signed-off-by: Haibo Xu <haibo.xu@arm.com> Change-Id: I1dbd23bb240cca71d0cc30fc75ca5be28cb4c37c PiperOrigin-RevId: 262619519
Diffstat (limited to 'pkg/abi/linux/elf.go')
-rw-r--r--pkg/abi/linux/elf.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/abi/linux/elf.go b/pkg/abi/linux/elf.go
index fb1c679d2..40f0459a0 100644
--- a/pkg/abi/linux/elf.go
+++ b/pkg/abi/linux/elf.go
@@ -89,3 +89,17 @@ const (
// AT_SYSINFO_EHDR is the address of the VDSO.
AT_SYSINFO_EHDR = 33
)
+
+// ELF ET_CORE and ptrace GETREGSET/SETREGSET register set types.
+//
+// See include/uapi/linux/elf.h.
+const (
+ // NT_PRSTATUS is for general purpose register.
+ NT_PRSTATUS = 0x1
+
+ // NT_PRFPREG is for float point register.
+ NT_PRFPREG = 0x2
+
+ // NT_X86_XSTATE is for x86 extended state using xsave.
+ NT_X86_XSTATE = 0x202
+)