[PATCH] Fix libbacktrace and libiberty tests fail on sanitized GCC due to wrong link options.

Maxim Ostapenko m.ostapenko@partner.samsung.com
Wed Jan 28 10:24:00 GMT 2015


Hi,

When I ran Asan tests under Asan-bootstrapped GCC 5.0, I've noted, that 
tests for libiberty and libbacktrace fail to link with sanitized 
libbacktrace.a and libiberty.a because of missing -static-libasan 
-fsanitize=address linker flags.

This patch adds necessary flags to provide a linkage of these tests in 
bootstrap-asan case.

I've checked that regression tests pass with disabled bootstrap, normal 
bootstrap (stage1, stage3) and Asan-bootstrap (stage 1, stage3) on 
x86_64-unknown-linux-gnu.

Does the patch look sane?

-Maxim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libbacktrace_libiberty.diff
Type: text/x-patch
Size: 16738 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150128/2be60e23/attachment.bin>


More information about the Gcc-patches mailing list