зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1500154 - Link with -Bsymbolic-functions whenever possible. r=glandium
This speeds up calls within libxul by avoiding PLT jumps. Differential Revision: https://phabricator.services.mozilla.com/D9686 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
88e52fc195
Коммит
2d25ef7957
|
@ -485,6 +485,13 @@ if test "$GNU_CC"; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
LDFLAGS=$_SAVE_LDFLAGS)
|
LDFLAGS=$_SAVE_LDFLAGS)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for -Bsymbolic-functions option to ld])
|
||||||
|
_SAVE_LDFLAGS=$LDFLAGS
|
||||||
|
LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions"
|
||||||
|
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
LDFLAGS=$_SAVE_LDFLAGS)
|
||||||
|
|
||||||
AC_MSG_CHECKING([for --build-id=sha1 option to ld])
|
AC_MSG_CHECKING([for --build-id=sha1 option to ld])
|
||||||
_SAVE_LDFLAGS=$LDFLAGS
|
_SAVE_LDFLAGS=$LDFLAGS
|
||||||
LDFLAGS="$LDFLAGS -Wl,--build-id=sha1"
|
LDFLAGS="$LDFLAGS -Wl,--build-id=sha1"
|
||||||
|
|
|
@ -518,6 +518,13 @@ if test "$GNU_CC"; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
LDFLAGS=$_SAVE_LDFLAGS)
|
LDFLAGS=$_SAVE_LDFLAGS)
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for -Bsymbolic-functions option to ld])
|
||||||
|
_SAVE_LDFLAGS=$LDFLAGS
|
||||||
|
LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions"
|
||||||
|
AC_TRY_LINK(,,AC_MSG_RESULT([yes]),
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
LDFLAGS=$_SAVE_LDFLAGS)
|
||||||
|
|
||||||
AC_MSG_CHECKING([for --build-id=sha1 option to ld])
|
AC_MSG_CHECKING([for --build-id=sha1 option to ld])
|
||||||
_SAVE_LDFLAGS=$LDFLAGS
|
_SAVE_LDFLAGS=$LDFLAGS
|
||||||
LDFLAGS="$LDFLAGS -Wl,--build-id=sha1"
|
LDFLAGS="$LDFLAGS -Wl,--build-id=sha1"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче