Source: gcc-7
Version: 7.1.0-6
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Hi Matthias,

the symbols for libasan and libubsan are still wrong for a couple of
architectures including sparc, sparc64, x32 and a few more. The build
doesn't fail, because errors from dh_makeshlibs are still being
ignored[1]. Maybe it is time to change that?

After consulting gcc's source code I believe that the following
statements correct the symbols:

sed -i -e 
'/__sanitizer_print_memory_profile/s/([^)]*)/(arch=base-any-linux-amd64 
base-any-linux-arm64 any-linux-mips64 any-linux-mips64el)/' 
debian/libasan.symbols.64
sed -i -e '/internal_sigreturn/s/([^)]*)/(arch=base-any-any-amd64 any-mips 
any-mipsel)/' debian/libasan4.symbols
sed -i -e '/internal_sigreturn/s/([^)]*)/(arch=base-any-any-amd64 any-mips 
any-mipsel)/' debian/libubsan0.symbols

It fixes at least x32. It may not be completely correct. I'll put it to
wider testing and see what happens.

Helmut

[1] http://sources.debian.net/src/gcc-7/7.1.0-6/debian/rules.defs/#L280

Reply via email to