diff options
author | 2017-06-15 12:29:30 -0700 | |
---|---|---|
committer | 2017-06-15 12:29:30 -0700 | |
commit | 84a37099782733d84289982ffc431f3d5369dc4c (patch) | |
tree | e10f8161056b497a809196118f8f8f92706c68ac /www-client/firefox/files/fix_hardened_pie_detection.patch | |
parent | dev-qt/qt*: clean up older/crufty versions of qt5 (diff) | |
download | arm-84a37099782733d84289982ffc431f3d5369dc4c.tar.gz arm-84a37099782733d84289982ffc431f3d5369dc4c.tar.bz2 arm-84a37099782733d84289982ffc431f3d5369dc4c.zip |
Playing with firefox on arm - 52 works (use -skia) but 53 does not :/
* note this needs custom mozconfig eclass
Signed-off-by: Steve Arnold <nerdboy@gentoo.org>
Diffstat (limited to 'www-client/firefox/files/fix_hardened_pie_detection.patch')
-rw-r--r-- | www-client/firefox/files/fix_hardened_pie_detection.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/www-client/firefox/files/fix_hardened_pie_detection.patch b/www-client/firefox/files/fix_hardened_pie_detection.patch new file mode 100644 index 0000000..7cc74cd --- /dev/null +++ b/www-client/firefox/files/fix_hardened_pie_detection.patch @@ -0,0 +1,36 @@ +From: Jory A. Pratt <anarchy@gentoo.org> + +CFLAGS must contain -fPIC when checking the linker + +https://bugs.gentoo.org/show_bug.cgi?id=607350 + +diff --git a/build/autoconf/compiler-opts.m4 b/build/autoconf/compiler-opts.m4 +--- a/build/autoconf/compiler-opts.m4 ++++ b/build/autoconf/compiler-opts.m4 +@@ -263,23 +263,26 @@ fi + + MOZ_ARG_ENABLE_BOOL(pie, + [ --enable-pie Enable Position Independent Executables], + MOZ_PIE=1, + MOZ_PIE= ) + + if test "$GNU_CC" -a -n "$MOZ_PIE"; then + AC_MSG_CHECKING([for PIE support]) ++ _SAVE_CFLAGS=$CFLAGS ++ CFLAGS="$CFLAGS -fPIC" + _SAVE_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -pie" + AC_TRY_LINK(,,AC_MSG_RESULT([yes]) + [MOZ_PROGRAM_LDFLAGS="$MOZ_PROGRAM_LDFLAGS -pie"], + AC_MSG_RESULT([no]) + AC_MSG_ERROR([--enable-pie requires PIE support from the linker.])) + LDFLAGS=$_SAVE_LDFLAGS ++ CFLAGS=$_SAVE_CFLAGS + fi + + AC_SUBST(MOZ_PROGRAM_LDFLAGS) + + dnl ASan assumes no symbols are being interposed, and when that happens, + dnl it's not happy with it. Unconveniently, since Firefox is exporting + dnl libffi symbols and Gtk+3 pulls system libffi via libwayland-client, + dnl system libffi interposes libffi symbols that ASan assumes are in |