riscv: update riscv_asan_shadow_offset
gcc/ PR target/110036 * config/riscv/riscv.cc (riscv_asan_shadow_offset): Update to match libsanitizer.
This commit is contained in:
parent
8f1e18c75e
commit
acf4fac6c5
@ -6857,10 +6857,9 @@ riscv_asan_shadow_offset (void)
|
||||
{
|
||||
/* We only have libsanitizer support for RV64 at present.
|
||||
|
||||
This number must match kRiscv*_ShadowOffset* in the file
|
||||
libsanitizer/asan/asan_mapping.h which is currently 1<<29 for rv64,
|
||||
even though 1<<36 makes more sense. */
|
||||
return TARGET_64BIT ? (HOST_WIDE_INT_1 << 29) : 0;
|
||||
This number must match ASAN_SHADOW_OFFSET_CONST in the file
|
||||
libsanitizer/asan/asan_mapping.h. */
|
||||
return TARGET_64BIT ? HOST_WIDE_INT_UC (0xd55550000) : 0;
|
||||
}
|
||||
|
||||
/* Implement TARGET_MANGLE_TYPE. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user