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

Commit df682973 authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder_ndk: no min sdk version - avoid weak

'stability.o' is not included in the build from libbinder_ndk.a when
we statically include it into fuzzers because AIBinder_markVintfStability
is a weak symbol in this case. This is generally not a problem because
libbinder_ndk is built as a shared library. However, for host fuzzers,
we need this symbol to avoid the runtime trying to jump to 0x0.

Fixes: 230228062
Test: android.hardware.vibrator-service.example_fuzzer
Change-Id: Ie8452e2610f3046d9aa5be094ac1dfd1aec8be08
parent 97c1356a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -98,9 +98,9 @@ static inline void AIBinder_forceDowngradeToLocalStability(AIBinder* binder) {
 * This interface has system<->vendor stability
 */
// b/227835797 - can't use __INTRODUCED_IN(30) because old targets load this code
#if __ANDROID_MIN_SDK_VERSION__ < 30
#if defined(__ANDROID_MIN_SDK_VERSION__) && __ANDROID_MIN_SDK_VERSION__ < 30
__attribute__((weak))
#endif  // __ANDROID_MIN_SDK_VERSION__ < 30
#endif  // defined(__ANDROID_MIN_SDK_VERSION__) && __ANDROID_MIN_SDK_VERSION__ < 30
void AIBinder_markVintfStability(AIBinder* binder);

__END_DECLS