wfe example, and more nostartfiles stuff

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-12-12 00:00:02 +00:00
parent d5e453840b
commit a8ea7c81f1
11 changed files with 110 additions and 15 deletions

View File

@@ -0,0 +1,6 @@
/* https://cirosantilli.com/linux-kernel-module-cheat#arm-wfe-and-sev-instructions */
.global _start
_start:
wfe
mov x0, 0
bl exit

View File

@@ -0,0 +1 @@
https://cirosantilli.com/linux-kernel-module-cheat#nostartfiles-programs

View File

@@ -0,0 +1 @@
../build

View File

@@ -0,0 +1,4 @@
.global _start
_start:
mov $0, %rdi
call exit

View File

@@ -0,0 +1 @@
../test