Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3763ace7 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Alistair Delva
Browse files

ANDROID: arm64: vdso: Fix removing SCS flags



Commit 6545d64a ("BACKPORT: arm64: vdso: Substitute gettimeofday()
with C implementation") added an assignment to
CFLAGS_REMOVE_vgettimeofday.o without adjusting the existing one for the
removal of the shadow call stack flags.

Without this patch, the SCS flags do not get filtered:

clang ... -g -fsanitize=shadow-call-stack -Wdeclaration-after-statement
... -c -o arch/arm64/kernel/vdso/.tmp_vgettimeofday.o ...

After this, everything works as it should:

clang ... -g -Wdeclaration-after-statement -Wno-pointer-sign ... -c
-o arch/arm64/kernel/vdso/.tmp_vgettimeofday.o ...

This is an Android specific issue to the backport of the above patch,
this issue will not be present in the mainline version of SCS.

Change-Id: I2ff00e1b407155501ada4c36a961db0b720b80bf
Fixes: 6545d64a ("BACKPORT: arm64: vdso: Substitute gettimeofday() with C implementation")
Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
parent 7502b09f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment