Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
36cf2920
Commit
36cf2920
authored
Mar 28, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: When supported, use -Ttext-segment also for the main loader.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b06d3430
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
32 deletions
+37
-32
configure
configure
+27
-25
configure.ac
configure.ac
+10
-7
No files found.
configure
View file @
36cf2920
...
...
@@ -8550,61 +8550,63 @@ fi
case
$host_cpu
in
*
i[3456789]86
*
|
x86_64
)
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wl,-
-section-start,.interp=0x7bf004
00"
>
&5
$as_echo_n
"checking whether the compiler supports -Wl,-
-section-start,.interp=0x7bf004
00... "
>
&6
;
}
if
${
ac_cv_cflags__Wl__
_section_start__interp_0x7bf004
00
+
:
}
false
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wl,-
Ttext-segment=0x7bc000
00"
>
&5
$as_echo_n
"checking whether the compiler supports -Wl,-
Ttext-segment=0x7bc000
00... "
>
&6
;
}
if
${
ac_cv_cflags__Wl__
Ttext_segment_0x7bc000
00
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-Wl,-
-section-start,.interp=0x7bf004
00"
CFLAGS
=
"
$CFLAGS
-Wl,-
Ttext-segment=0x7bc000
00"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int main(int argc, char **argv) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_cflags__Wl__
_section_start__interp_0x7bf004
00
=
yes
ac_cv_cflags__Wl__
Ttext_segment_0x7bc000
00
=
yes
else
ac_cv_cflags__Wl__
_section_start__interp_0x7bf004
00
=
no
ac_cv_cflags__Wl__
Ttext_segment_0x7bc000
00
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__Wl__
_section_start__interp_0x7bf004
00
"
>
&5
$as_echo
"
$ac_cv_cflags__Wl__
_section_start__interp_0x7bf004
00
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__Wl__
_section_start__interp_0x7bf004
00
"
=
xyes
;
then
:
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__Wl__
Ttext_segment_0x7bc000
00
"
>
&5
$as_echo
"
$ac_cv_cflags__Wl__
Ttext_segment_0x7bc000
00
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__Wl__
Ttext_segment_0x7bc000
00
"
=
xyes
;
then
:
case
$host_os
in
freebsd
*
|
kfreebsd
*
-gnu
)
LDEXECFLAGS
=
"
$LDEXECFLAGS
-Wl,-
-section-start,.interp=0x600004
00"
;;
*
)
LDEXECFLAGS
=
"
$LDEXECFLAGS
-Wl,-
-section-start,.interp=0x7bf004
00"
;;
freebsd
*
|
kfreebsd
*
-gnu
)
LDEXECFLAGS
=
"
$LDEXECFLAGS
-Wl,-
Ttext-segment=0x600000
00"
;;
*
)
LDEXECFLAGS
=
"
$LDEXECFLAGS
-Wl,-
Ttext-segment=0x7bf000
00"
;;
esac
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wl,-Ttext-segment=0x7bc00000"
>
&5
$as_echo_n
"checking whether the compiler supports -Wl,-Ttext-segment=0x7bc00000... "
>
&6
;
}
if
${
ac_cv_cflags__Wl__Ttext_segment_0x7bc00000
+
:
}
false
;
then
:
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400"
>
&5
$as_echo_n
"checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... "
>
&6
;
}
if
${
ac_cv_cflags__Wl___section_start__interp_0x7bf00400
+
:
}
false
;
then
:
$as_echo_n
"(cached) "
>
&6
else
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-Wl,-
Ttext-segment=0x7bc000
00"
CFLAGS
=
"
$CFLAGS
-Wl,-
-section-start,.interp=0x7bf004
00"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int main(int argc, char **argv) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
;
then
:
ac_cv_cflags__Wl__
Ttext_segment_0x7bc000
00
=
yes
ac_cv_cflags__Wl__
_section_start__interp_0x7bf004
00
=
yes
else
ac_cv_cflags__Wl__
Ttext_segment_0x7bc000
00
=
no
ac_cv_cflags__Wl__
_section_start__interp_0x7bf004
00
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__Wl__Ttext_segment_0x7bc00000
"
>
&5
$as_echo
"
$ac_cv_cflags__Wl__Ttext_segment_0x7bc00000
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__Wl__Ttext_segment_0x7bc00000
"
=
xyes
;
then
:
:
else
# Extract the first word of "prelink", so it can be a program name with args.
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__Wl___section_start__interp_0x7bf00400
"
>
&5
$as_echo
"
$ac_cv_cflags__Wl___section_start__interp_0x7bf00400
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__Wl___section_start__interp_0x7bf00400
"
=
xyes
;
then
:
case
$host_os
in
freebsd
*
|
kfreebsd
*
-gnu
)
LDEXECFLAGS
=
"
$LDEXECFLAGS
-Wl,--section-start,.interp=0x60000400"
;;
*
)
LDEXECFLAGS
=
"
$LDEXECFLAGS
-Wl,--section-start,.interp=0x7bf00400"
;;
esac
fi
# Extract the first word of "prelink", so it can be a program name with args.
set
dummy prelink
;
ac_word
=
$2
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for
$ac_word
"
>
&5
$as_echo_n
"checking for
$ac_word
... "
>
&6
;
}
...
...
configure.ac
View file @
36cf2920
...
...
@@ -895,14 +895,17 @@ case $host_os in
case $host_cpu in
*i[[3456789]]86* | x86_64)
WINE_TRY_CFLAGS([-Wl,-
-section-start,.interp=0x7bf004
00],
WINE_TRY_CFLAGS([-Wl,-
Ttext-segment=0x7bc000
00],
[case $host_os in
freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
esac
])
WINE_TRY_CFLAGS([-Wl,-Ttext-segment=0x7bc00000],[:],
[AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,-Ttext-segment=0x60000000" ;;
*) LDEXECFLAGS="$LDEXECFLAGS -Wl,-Ttext-segment=0x7bf00000" ;;
esac],
[WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7bf00400],
[case $host_os in
freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
esac])
AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
if test "x$PRELINK" = xfalse
then
WINE_WARNING([prelink not found and linker does not support relocation, base address of core dlls won't be set correctly.])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment