ANDROID: Use -fomit-frame-pointer for x86_ptrace_syscall_x86_64

do_full_int80() in ptrace_syscall.c uses bp register in inline
assembly. It doesn't work when frame pointer is not omitted.

After clang update, by default frame pointer isn't omitted
on x86_64. So explictly use -fomit-frame-pointer.

Bug: 352458178
Signed-off-by: Edward Liaw <edliaw@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:079ccd46c7db755ebb2399eddca864c43f535066)
Merged-In: I0b1f231d97e788c1597e3117d4a004be89fc8611
Change-Id: I0b1f231d97e788c1597e3117d4a004be89fc8611
This commit is contained in:
Edward Liaw 2024-07-12 20:34:29 +00:00 committed by Android Build Cherrypicker Worker
parent b7c3d209b4
commit 41bf0d8226

View File

@ -1902,7 +1902,7 @@ cc_binary_with_abi(
"x86_64",
"x86",
],
copts = _KSELFTEST_COPTS,
copts = _KSELFTEST_COPTS + ["-fomit-frame-pointer"],
includes = ["tools/testing/selftests"],
linkopts = ["-static"],
path_prefix = _KSELFTEST_DIR,