parent
6584f70d28
commit
086276b329
|
@ -7,7 +7,9 @@ cd testcases
|
|||
|
||||
# TODO: remove this workaround once https://bugs.debian.org/836723 is fixed
|
||||
# Found at https://llvm.org/bugs/show_bug.cgi?id=27310#c8:
|
||||
cat >fixasan.c <<EOT
|
||||
if [ "$CC" = "clang" ]
|
||||
then
|
||||
cat >fixasan.c <<EOT
|
||||
void __isoc99_printf() {}
|
||||
void __isoc99_sprintf() {}
|
||||
void __isoc99_snprintf() {}
|
||||
|
@ -18,8 +20,9 @@ void __isoc99_vsnprintf() {}
|
|||
void __isoc99_vfprintf() {}
|
||||
void __cxa_throw() {} // NEW
|
||||
EOT
|
||||
gcc fixasan.c -o fixasan.so -fPIC -shared -nostdlib
|
||||
export LD_PRELOAD=$PWD/fixasan.so
|
||||
gcc fixasan.c -o fixasan.so -fPIC -shared -nostdlib
|
||||
export LD_PRELOAD=$PWD/fixasan.so
|
||||
fi
|
||||
|
||||
# Try running the tests in parallel so that the common case (tests pass) is
|
||||
# quick, but fall back to running them in sequence to make debugging easier.
|
||||
|
|
Loading…
Reference in New Issue