blob: 74f7e35694fc7312b0966984112f65ab014a265a [file] [log] [blame]
Timothy E Baldwin4d330ce2016-05-12 18:47:46 +01001/*
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 */
12
Richard Henderson5da40632021-11-17 15:46:05 +010013#include "special-errno.h"
Timothy E Baldwin4d330ce2016-05-12 18:47:46 +010014
15/* We have the correct host directory on our include path
16 * so that this will pull in the right fragment for the architecture.
17 */
Timothy E Baldwin4d330ce2016-05-12 18:47:46 +010018#include "safe-syscall.inc.S"
Timothy E Baldwin4d330ce2016-05-12 18:47:46 +010019
20/* We must specifically say that we're happy for the stack to not be
21 * executable, otherwise the toolchain will default to assuming our
22 * assembly needs an executable stack and the whole QEMU binary will
23 * needlessly end up with one. This should be the last thing in this file.
24 */
25#if defined(__linux__) && defined(__ELF__)
26.section .note.GNU-stack, "", %progbits
27#endif