ANDROID: fix the --entry linker flag for kselftest

Use the correct way to pass linker flags. This fixes the build error
in kselftests after upgrading to clang-r522817:

  clang: error: unknown argument: '-ereal_start'

Suggested-by: Matthias Maennich <maennich@google.com>
Fixes: bb9d33b2a7 ("ANDROID: Add x86 specific self tests")
Signed-off-by: Carlos Llamas <cmllamas@google.com>
(cherry picked from https://android-review.googlesource.com/q/commit:12700c0d8ccfa498f3ea377f92e870df00edb8ef)
Merged-In: Ibbb61d62a4781f5be95faf655c3ad14775192541
Change-Id: Ibbb61d62a4781f5be95faf655c3ad14775192541
This commit is contained in:
Carlos Llamas 2024-06-18 16:59:52 +00:00 committed by Treehugger Robot
parent b8be0f74ab
commit ca917b1dd1

View File

@ -1945,8 +1945,7 @@ cc_binary_with_abi(
includes = ["tools/testing/selftests"],
linkopts = [
"-static",
"-Wl",
"-ereal_start",
"-Wl,-ereal_start",
],
path_prefix = _KSELFTEST_DIR,
target_compatible_with = ["@platforms//os:android"],