Move the loader a bit higher in memory to leave more space for ntdll
and kernel32.
This commit is contained in:
parent
03cc8c4181
commit
5729f58b68
|
@ -13867,13 +13867,13 @@ echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
|
|||
|
||||
case $host_cpu in
|
||||
*i[3456789]86*)
|
||||
echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
|
||||
echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
|
||||
echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
|
||||
echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6
|
||||
if test "${ac_cv_ld_reloc_exec+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
ac_wine_try_cflags_saved=$CFLAGS
|
||||
CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
|
||||
CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
|
@ -13925,7 +13925,7 @@ echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
|
|||
echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
|
||||
if test "$ac_cv_ld_reloc_exec" = "yes"
|
||||
then
|
||||
LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
|
||||
LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -991,12 +991,12 @@ case $host_os in
|
|||
|
||||
case $host_cpu in
|
||||
*i[[3456789]]86*)
|
||||
AC_CACHE_CHECK([whether we can relocate the executable to 0x77f00000], ac_cv_ld_reloc_exec,
|
||||
[WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x77f00400],
|
||||
AC_CACHE_CHECK([whether we can relocate the executable to 0x7bf00000], ac_cv_ld_reloc_exec,
|
||||
[WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7bf00400],
|
||||
ac_cv_ld_reloc_exec="yes", ac_cv_ld_reloc_exec="no")])
|
||||
if test "$ac_cv_ld_reloc_exec" = "yes"
|
||||
then
|
||||
LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
|
||||
LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -30,7 +30,7 @@ wine-glibc: glibc.o Makefile.in
|
|||
$(CC) -o $@ glibc.o $(LIBWINE) $(LIBPORT) $(LIBPTHREAD) $(EXTRALIBS) $(LDFLAGS)
|
||||
|
||||
wine-preloader: preloader.o Makefile.in
|
||||
$(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x78000000 preloader.o $(LIBPORT) $(LDFLAGS)
|
||||
$(CC) -o $@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c000000 preloader.o $(LIBPORT) $(LDFLAGS)
|
||||
|
||||
wine-kthread: $(KTHREAD_OBJS) Makefile.in
|
||||
$(CC) -o $@ $(LDEXECFLAGS) $(KTHREAD_OBJS) $(LIBWINE) $(LIBPORT) $(EXTRALIBS) $(LDFLAGS)
|
||||
|
|
Loading…
Reference in New Issue