reverie/tests/disabled/openat2.S
facebook-github-bot 15d2f61411 Initial commit
fbshipit-source-id: c440d991296c92bdc5e109a11d269049e8840e94
2021-12-29 16:14:27 -08:00

29 lines
568 B
ArmAsm

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* openat2.S: create syscalls sequence that cannot be patchable
*/
.text
.global _start
.type _start, @function
_start:
sub $0x8, %rsp
movq $0x6d6f646e, %rax
push %rax
movabs $0x6172752f7665642f, %rax
push %rax
mov $0x101, %eax
mov $0xffffff9c, %rdi
mov %rsp, %rsi
mov $0x0, %rdx
syscall
mov $0xe7, %eax
mov $0, %rdi
syscall