Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5619dbec authored by Dan Albert's avatar Dan Albert
Browse files

Don't pack ASAN executables.

The relocation packer is causing the kernel to load the executable
overlapping ASAN's shadow space.

Bug: http://b/20665974
Change-Id: Ifc5914f4fbed5f4f00ed1c795d01cf2fcb849cfe
parent 5a54a468
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -87,6 +87,13 @@ ifneq ($(filter address,$(my_sanitize)),)
                           $(ADDRESS_SANITIZER_CONFIG_EXTRA_SHARED_LIBRARIES)
    my_static_libraries += $(ADDRESS_SANITIZER_CONFIG_EXTRA_STATIC_LIBRARIES)
    my_ldflags += -Wl,-rpath,$($(LOCAL_2ND_ARCH_VAR_PREFIX)ADDRESS_SANITIZER_RPATH)

    # http://b/20665974
    # The relocation packer is causing the kernel to load the executable
    # overlapping ASAN's shadow space.
    ifeq ($(LOCAL_MODULE_CLASS),EXECUTABLES)
        LOCAL_PACK_MODULE_RELOCATIONS := false
    endif
  endif
endif