Merge remote-tracking branch 'remotes/armbru/tags/pull-build-2019-07-02-v2' into...
[qemu/ar7.git] / linux-user / safe-syscall.S
blobb5df6254aeab7c87fcba8e4900f756061ffd99d3
1 /*
2  * safe-syscall.S : include the host-specific assembly fragment
3  * to handle signals occurring at the same time as system calls.
4  *
5  * Written by Peter Maydell <peter.maydell@linaro.org>
6  *
7  * Copyright (C) 2016 Linaro Limited
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2 or later.
10  * See the COPYING file in the top-level directory.
11  */
13 #include "hostdep.h"
14 #include "errno_defs.h"
16 /* We have the correct host directory on our include path
17  * so that this will pull in the right fragment for the architecture.
18  */
19 #ifdef HAVE_SAFE_SYSCALL
20 #include "safe-syscall.inc.S"
21 #endif
23 /* We must specifically say that we're happy for the stack to not be
24  * executable, otherwise the toolchain will default to assuming our
25  * assembly needs an executable stack and the whole QEMU binary will
26  * needlessly end up with one. This should be the last thing in this file.
27  */
28 #if defined(__linux__) && defined(__ELF__)
29 .section        .note.GNU-stack, "", %progbits
30 #endif