x86 tests: address test failures caused by Text Relocations

Starting with API level 23, binaries must not contain text relocations.
(see https://android.googlesource.com/platform/bionic/+/master/
             android-changes-for-ndk-developers.md
             #Text-Relocations-Enforced-for-API-level-23)

Soong creates build rules in a way that non-static binaries are linked
with -pie (see cs/android/build/soong/cc/binary.go?l=278). That causes
the toolchain to generate text relocations, which violate the above
requirement.

Hence, marking the test executables as static and removing all occurrences
of `-Wl,-z,notext` as they are now obsolete.

Tests might still fail with this patch applied, but for a different reason.

Bug: 123864125
Test: run vts-kernel -m VtsKernelLinuxKselftest
Change-Id: If2e44691223685cb1059f656a2499a74deb1e496
Signed-off-by: Matthias Maennich <maennich@google.com>
1 file changed