Enable linaro-gcc bootstrap with asan config. 23/214623/1
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Thu, 1 Aug 2019 13:34:10 +0000 (16:34 +0300)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Tue, 24 Sep 2019 18:18:55 +0000 (21:18 +0300)
commit482bd1c27dd35ee055a741692a2f6e886404eb21
treec296f86bb705c30407562f3d9fe656a4f850399b
parentc9ed59365186313ff15044062222d58cdab484c1
Enable linaro-gcc bootstrap with asan config.

We couldn't verify linaro-gcc bootstrap with dynmaic ASan as we don't update
library pathes while running executables, so the compilation is performed with
the new instrumentations and the old external runtime from the build environment
is used during run.

And we'll also get runtime conflicts with 2 libasan.so version inside sanitized
environment, so it doesn't make sense to define 'asanbootstrap' with 'asan'.

If we really do want to test dynamic ASan, we could add the following to the
POSTSTAGE1_LDFLAGS:

  "-rpath$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs"

and keep additional rpathes for final binaries or use patchelf tool.

Change-Id: I8783f0395521126f8e01125e24bc40ed457bc008
config/bootstrap-asan.mk
packaging/gcc-aarch64.spec
packaging/gcc-armv7hl.spec
packaging/gcc-armv7l.spec
packaging/linaro-gcc.spec