[compiler-rt] r219827 - [compiler-rt] Enable ASAN for powerpc64le-linux
Ulrich Weigand
Ulrich.Weigand at de.ibm.com
Wed Oct 15 12:53:51 PDT 2014
Will Schmidt wrote:
> -#ifdef __powerpc64__
> - // On PowerPC64, the address of a function actually points to a
> +#if defined(__powerpc64__) and defined(__BIG_ENDIAN__)
> + // On PowerPC64 ELFv1, the address of a function actually points to a
It would be better to use a _CALL_ELF != 2 check instead of __BIG_ENDIAN__;
it is possible (though uncommon) to use ELFv2 on BE or ELFv1 on LE.
Bye,
Ulrich
More information about the llvm-commits
mailing list