diff --git a/b2g/config/mozconfigs/ics_armv7a_gecko/debug b/b2g/config/mozconfigs/ics_armv7a_gecko/debug index ac83fc37b1d..494df42c02b 100644 --- a/b2g/config/mozconfigs/ics_armv7a_gecko/debug +++ b/b2g/config/mozconfigs/ics_armv7a_gecko/debug @@ -10,7 +10,6 @@ ac_add_options --with-gonk="$topsrcdir/gonk-toolchain" export TOOLCHAIN_HOST=linux-x86 export GONK_PRODUCT=generic ac_add_options --with-gonk-toolchain-prefix="$topsrcdir/gonk-toolchain/prebuilt/$TOOLCHAIN_HOST/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-" -ac_add_options --disable-elf-hack ac_add_options --enable-debug-symbols ac_add_options --enable-debug #. "$topsrcdir/build/mozconfig.cache" diff --git a/b2g/config/mozconfigs/ics_armv7a_gecko/nightly b/b2g/config/mozconfigs/ics_armv7a_gecko/nightly index 748ed221bd3..ece18271d8a 100644 --- a/b2g/config/mozconfigs/ics_armv7a_gecko/nightly +++ b/b2g/config/mozconfigs/ics_armv7a_gecko/nightly @@ -11,7 +11,6 @@ ac_add_options --with-gonk="$topsrcdir/gonk-toolchain" export TOOLCHAIN_HOST=linux-x86 export GONK_PRODUCT=generic ac_add_options --with-gonk-toolchain-prefix="$topsrcdir/gonk-toolchain/prebuilt/$TOOLCHAIN_HOST/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-" -ac_add_options --disable-elf-hack ac_add_options --enable-debug-symbols # ac_add_options --enable-profiling #. "$topsrcdir/build/mozconfig.cache" diff --git a/b2g/config/mozconfigs/linux32_gecko/debug b/b2g/config/mozconfigs/linux32_gecko/debug index e5eca98cc95..c67c754fae9 100644 --- a/b2g/config/mozconfigs/linux32_gecko/debug +++ b/b2g/config/mozconfigs/linux32_gecko/debug @@ -29,7 +29,6 @@ no_sccache= #B2G options ac_add_options --enable-application=b2g ENABLE_MARIONETTE=1 -ac_add_options --disable-elf-hack export CXXFLAGS=-DMOZ_ENABLE_JS_DUMP GAIADIR=$topsrcdir/gaia diff --git a/b2g/config/mozconfigs/linux32_gecko/nightly b/b2g/config/mozconfigs/linux32_gecko/nightly index e31f3aefde4..da66055c8dd 100644 --- a/b2g/config/mozconfigs/linux32_gecko/nightly +++ b/b2g/config/mozconfigs/linux32_gecko/nightly @@ -27,7 +27,6 @@ no_sccache= #B2G options ac_add_options --enable-application=b2g -ac_add_options --disable-elf-hack export CXXFLAGS=-DMOZ_ENABLE_JS_DUMP GAIADIR=$topsrcdir/gaia diff --git a/b2g/config/mozconfigs/linux64_gecko/debug b/b2g/config/mozconfigs/linux64_gecko/debug index 433131ebc21..9eb0ec3dbbc 100644 --- a/b2g/config/mozconfigs/linux64_gecko/debug +++ b/b2g/config/mozconfigs/linux64_gecko/debug @@ -29,7 +29,6 @@ no_sccache= #B2G options ac_add_options --enable-application=b2g ENABLE_MARIONETTE=1 -ac_add_options --disable-elf-hack export CXXFLAGS=-DMOZ_ENABLE_JS_DUMP GAIADIR=$topsrcdir/gaia diff --git a/b2g/config/mozconfigs/linux64_gecko/nightly b/b2g/config/mozconfigs/linux64_gecko/nightly index 23925a54fbc..cb585b74edf 100644 --- a/b2g/config/mozconfigs/linux64_gecko/nightly +++ b/b2g/config/mozconfigs/linux64_gecko/nightly @@ -27,7 +27,6 @@ no_sccache= #B2G options ac_add_options --enable-application=b2g -ac_add_options --disable-elf-hack export CXXFLAGS=-DMOZ_ENABLE_JS_DUMP GAIADIR=$topsrcdir/gaia diff --git a/browser/config/mozconfigs/linux32/nightly b/browser/config/mozconfigs/linux32/nightly index faf8492cfa6..cd4cfcb8737 100644 --- a/browser/config/mozconfigs/linux32/nightly +++ b/browser/config/mozconfigs/linux32/nightly @@ -2,7 +2,6 @@ ac_add_options --enable-signmar ac_add_options --enable-profiling -ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling # Nightlies only since this has a cost in performance ac_add_options --enable-js-diagnostics diff --git a/browser/config/mozconfigs/linux32/valgrind b/browser/config/mozconfigs/linux32/valgrind index c98ecd79fcd..da46da93704 100644 --- a/browser/config/mozconfigs/linux32/valgrind +++ b/browser/config/mozconfigs/linux32/valgrind @@ -5,7 +5,6 @@ no_sccache=1 ac_add_options --enable-valgrind ac_add_options --disable-jemalloc -ac_add_options --disable-elf-hack ac_add_options --enable-optimize="-g -O -freorder-blocks" ac_add_options --disable-install-strip diff --git a/browser/config/mozconfigs/linux64/nightly b/browser/config/mozconfigs/linux64/nightly index 373b6551824..39e921be269 100644 --- a/browser/config/mozconfigs/linux64/nightly +++ b/browser/config/mozconfigs/linux64/nightly @@ -2,7 +2,6 @@ ac_add_options --enable-signmar ac_add_options --enable-profiling -ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling # Nightlies only since this has a cost in performance ac_add_options --enable-js-diagnostics diff --git a/browser/config/mozconfigs/linux64/valgrind b/browser/config/mozconfigs/linux64/valgrind index bff7ff7b0b1..467c60f2603 100644 --- a/browser/config/mozconfigs/linux64/valgrind +++ b/browser/config/mozconfigs/linux64/valgrind @@ -5,7 +5,6 @@ no_sccache=1 ac_add_options --enable-valgrind ac_add_options --disable-jemalloc -ac_add_options --disable-elf-hack ac_add_options --enable-optimize="-g -O -freorder-blocks" ac_add_options --disable-install-strip diff --git a/browser/config/mozconfigs/whitelist b/browser/config/mozconfigs/whitelist index 59d29bfd7b3..6c838683ec1 100644 --- a/browser/config/mozconfigs/whitelist +++ b/browser/config/mozconfigs/whitelist @@ -34,7 +34,6 @@ whitelist['nightly']['linux32'] += [ 'export MOZ_TELEMETRY_REPORTING=1', "mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10'", 'STRIP_FLAGS="--strip-debug"', - 'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling', ] whitelist['nightly']['linux64'] += [ @@ -44,7 +43,6 @@ whitelist['nightly']['linux64'] += [ 'STRIP_FLAGS="--strip-debug"', 'ac_add_options --with-ccache=/usr/bin/ccache', '. "$topsrcdir/build/mozconfig.cache"', - 'ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling', ] whitelist['nightly']['macosx-universal'] += [ diff --git a/configure.in b/configure.in index 033213f3cd7..809ddbf7062 100644 --- a/configure.in +++ b/configure.in @@ -7383,17 +7383,7 @@ USE_ELF_HACK=1 MOZ_ARG_DISABLE_BOOL(elf-hack, [ --disable-elf-hack Disable elf hacks], [USE_ELF_HACK=], - [USE_ELF_HACK=F # Force enable elf-hack]) - -# Disable elf hack for profiling because the built in profiler -# doesn't read the segments properly with elf hack. This is -# temporary and should be fixed soon in the profiler. -if test "$MOZ_PROFILING" = 1; then - if test "$USE_ELF_HACK" = F; then - AC_ERROR([--enable-elf-hack is not compatible with --enable-profiling]) - fi - USE_ELF_HACK= -fi + [USE_ELF_HACK=1]) # Only enable elfhack where supported if test "$USE_ELF_HACK" = 1; then diff --git a/mobile/android/config/mozconfigs/android-api-10/nightly b/mobile/android/config/mozconfigs/android-api-10/nightly index 73a52a655d7..f7c67e3a77c 100644 --- a/mobile/android/config/mozconfigs/android-api-10/nightly +++ b/mobile/android/config/mozconfigs/android-api-10/nightly @@ -1,7 +1,6 @@ . "$topsrcdir/mobile/android/config/mozconfigs/common" ac_add_options --enable-profiling -ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling # Android ac_add_options --with-android-min-sdk=10 diff --git a/mobile/android/config/mozconfigs/android-api-9-constrained/nightly b/mobile/android/config/mozconfigs/android-api-9-constrained/nightly index 7f5de27f30a..2c61cc15682 100644 --- a/mobile/android/config/mozconfigs/android-api-9-constrained/nightly +++ b/mobile/android/config/mozconfigs/android-api-9-constrained/nightly @@ -1,7 +1,6 @@ . "$topsrcdir/mobile/android/config/mozconfigs/common" ac_add_options --enable-profiling -ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling # Android ac_add_options --with-android-min-sdk=9 diff --git a/mobile/android/config/mozconfigs/android-x86/nightly b/mobile/android/config/mozconfigs/android-x86/nightly index c0f2407814d..840df7f23d6 100644 --- a/mobile/android/config/mozconfigs/android-x86/nightly +++ b/mobile/android/config/mozconfigs/android-x86/nightly @@ -3,7 +3,6 @@ ac_add_options --target=i386-linux-android ac_add_options --enable-profiling -ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling ac_add_options --with-branding=mobile/android/branding/nightly diff --git a/mobile/android/config/mozconfigs/android/nightly b/mobile/android/config/mozconfigs/android/nightly index 1bc2b08cfbe..5e8a0b15fdf 100644 --- a/mobile/android/config/mozconfigs/android/nightly +++ b/mobile/android/config/mozconfigs/android/nightly @@ -1,7 +1,6 @@ . "$topsrcdir/mobile/android/config/mozconfigs/common" ac_add_options --enable-profiling -ac_add_options --disable-elf-hack # --enable-elf-hack conflicts with --enable-profiling # Android ac_add_options --target=arm-linux-androideabi diff --git a/tools/profiler/platform.cpp b/tools/profiler/platform.cpp index 1543ee88487..6008177174b 100644 --- a/tools/profiler/platform.cpp +++ b/tools/profiler/platform.cpp @@ -238,11 +238,6 @@ bool sps_version2() bool req2 = PR_GetEnv("MOZ_PROFILER_NEW") != nullptr; // Has v2 been requested? - bool elfhackd = false; -# if defined(USE_ELF_HACK) - bool elfhackd = true; -# endif - if (req2 && allow2) { version = 2; LOG("------------------- MOZ_PROFILER_NEW set -------------------"); @@ -250,10 +245,6 @@ bool sps_version2() version = 1; LOG("--------------- MOZ_PROFILER_NEW requested, ----------------"); LOG("---------- but is not available on this platform -----------"); - } else if (req2 && elfhackd) { - version = 1; - LOG("--------------- MOZ_PROFILER_NEW requested, ----------------"); - LOG("--- but this build was not done with --disable-elf-hack ----"); } else { version = 1; LOG("----------------- MOZ_PROFILER_NEW not set -----------------");