Skip to content

Commit 3660453

Browse files
committed
configure: check is -Ttext-segment is supported [#49]
1 parent 36c87c0 commit 3660453

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

configure.ac

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,13 @@ if ! $CROSS_LD --image-base=0x0 -v >/dev/null 2>&1; then
190190
else
191191
AC_MSG_RESULT([yes])
192192
XLD_IMB_OPT=--image-base
193-
XLD_IMB_OPT_ALIGN=-Ttext-segment=0
193+
AC_MSG_CHECKING([ld supports -Ttext-segment])
194+
if ! $CROSS_LD -Ttext-segment=0 -v >/dev/null 2>&1; then
195+
AC_MSG_RESULT([no])
196+
else
197+
AC_MSG_RESULT([yes])
198+
XLD_IMB_OPT_ALIGN=-Ttext-segment=0
199+
fi
194200
fi
195201
AC_SUBST(XLD_IMB_OPT)
196202
AC_SUBST(XLD_IMB_OPT_ALIGN)

0 commit comments

Comments
 (0)