[PATCH] gcc: xtensa: enable address sanitizer
Max Filippov
jcmvbkbc@gmail.com
Mon Dec 4 21:34:00 GMT 2017
On Mon, Dec 4, 2017 at 1:31 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Mon, Dec 04, 2017 at 01:28:53PM -0800, Max Filippov wrote:
>> gcc/
>> 2017-12-04 Max Filippov <jcmvbkbc@gmail.com>
>>
>> * config/xtensa/xtensa.c (xtensa_asan_shadow_offset): New
>> function.
>> (TARGET_ASAN_SHADOW_OFFSET): New macro definition.
>> * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): Set to 1 if
>> ASAN is enabled.
>
> Is this just for -fsanitize=kernel-address ? Because I don't see any
> libsanitizer/ changes (and those would need to go upstream first anyway).
Yes, it's for the -fsanitize=kernel-address. I'll port libsanitizer later.
--
Thanks.
-- Max
More information about the Gcc-patches
mailing list