From 323272db175204b951f119dae4bd99ef05e20f13 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 7 Jan 2014 22:43:34 +0100 Subject: import vanilla x86_64 code as x32 --- arch/x32/crt_arch.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 arch/x32/crt_arch.h (limited to 'arch/x32/crt_arch.h') diff --git a/arch/x32/crt_arch.h b/arch/x32/crt_arch.h new file mode 100644 index 00000000..db692950 --- /dev/null +++ b/arch/x32/crt_arch.h @@ -0,0 +1,9 @@ +__asm__("\ +.text \n\ +.global _start \n\ +_start: \n\ + xor %rbp,%rbp \n\ + mov %rsp,%rdi \n\ + andq $-16,%rsp \n\ + call __cstart \n\ +"); -- cgit v1.2.1