diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index 678f3e6ad9895af068b85ed46bcb34c809c09141..48ec4ac150ee677dd946f6ef52c368942642a657 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/elfload.c @@ -545,8 +545,6 @@ static inline void memcpy_fromfs(void * to, const void * from, unsigned long n) memcpy(to, from, n); } -extern unsigned long x86_stack_size; - static int load_aout_interp(void * exptr, int interp_fd); #ifdef BSWAP_NEEDED diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index 822a214451ef55825238847c53d340bdc06d81e5..d37561138350208c1646442f8a129afd4b5d72de 100644 --- a/bsd-user/qemu.h +++ b/bsd-user/qemu.h @@ -193,6 +193,9 @@ void mmap_fork_start(void); void mmap_fork_end(int child); #endif +/* main.c */ +extern unsigned long x86_stack_size; + /* user access */ #define VERIFY_READ 0