On Wed, Dec 5, 2012 at 5:34 PM, Peter Bergner <berg...@vnet.ibm.com> wrote:
> Below are the port changes to enable building ASAN on powerpc*-linux.
> The libsanitizer changes required for powerpc*-linux have already been
> committed.  This passes bootstrap and regtesting with no regressions
> and we also pass the two ASAN test suite test cases.
>
> Ok for mainline?
>
> Peter
>
>
> libsanitizer/
>         * configure.tgt: Enable build on powerpc*-linux.
>
> gcc/
>         * config/rs6000/rs6000.c (TARGET_ASAN_SHADOW_OFFSET): Define.
>         (rs6000_asan_shadow_offset): New function.
>         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Define to
>         flag_stack_protect != 0 || flag_asan != 0.

The definition of TARGET_ASAN_SHADOW_OFFSET and
rs6000_asan_shadow_offset need to be limited to TARGET_ELF or !
TARGET_XCOFF (Does it work on PPC BSD or PPC Darwin?). That macro
determines if GCC thinks -fsanitze=address is supported, which it is
not on AIX.  The macro probably should be defined in sysv4.h, not
rs6000.c, and the function should not be defined appropriately.

Thanks, David

Reply via email to