xref: /openbmc/qemu/common-user/safe-syscall.S (revision 2bf40d0841b942e7ba12953d515e62a436f0af84)
1*bbf15aafSRichard Henderson/*
2*bbf15aafSRichard Henderson * safe-syscall.S : include the host-specific assembly fragment
3*bbf15aafSRichard Henderson * to handle signals occurring at the same time as system calls.
4*bbf15aafSRichard Henderson *
5*bbf15aafSRichard Henderson * Written by Peter Maydell <peter.maydell@linaro.org>
6*bbf15aafSRichard Henderson *
7*bbf15aafSRichard Henderson * Copyright (C) 2016 Linaro Limited
8*bbf15aafSRichard Henderson *
9*bbf15aafSRichard Henderson * This work is licensed under the terms of the GNU GPL, version 2 or later.
10*bbf15aafSRichard Henderson * See the COPYING file in the top-level directory.
11*bbf15aafSRichard Henderson */
12*bbf15aafSRichard Henderson
13*bbf15aafSRichard Henderson#include "special-errno.h"
14*bbf15aafSRichard Henderson
15*bbf15aafSRichard Henderson/* We have the correct host directory on our include path
16*bbf15aafSRichard Henderson * so that this will pull in the right fragment for the architecture.
17*bbf15aafSRichard Henderson */
18*bbf15aafSRichard Henderson#include "safe-syscall.inc.S"
19*bbf15aafSRichard Henderson
20*bbf15aafSRichard Henderson/* We must specifically say that we're happy for the stack to not be
21*bbf15aafSRichard Henderson * executable, otherwise the toolchain will default to assuming our
22*bbf15aafSRichard Henderson * assembly needs an executable stack and the whole QEMU binary will
23*bbf15aafSRichard Henderson * needlessly end up with one. This should be the last thing in this file.
24*bbf15aafSRichard Henderson */
25*bbf15aafSRichard Henderson#if defined(__linux__) && defined(__ELF__)
26*bbf15aafSRichard Henderson.section        .note.GNU-stack, "", %progbits
27*bbf15aafSRichard Henderson#endif
28