summaryrefslogtreecommitdiff
path: root/tests/libs/segment_gap_outer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libs/segment_gap_outer.cpp')
-rw-r--r--tests/libs/segment_gap_outer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/libs/segment_gap_outer.cpp b/tests/libs/segment_gap_outer.cpp
index fb448e778..3ba90d01b 100644
--- a/tests/libs/segment_gap_outer.cpp
+++ b/tests/libs/segment_gap_outer.cpp
@@ -1,10 +1,9 @@
#include <android/dlext.h>
#include <dlfcn.h>
-#include <jni.h>
#include <stdlib.h>
-extern "C" void text_before_start_of_gap() {}
-char end_of_gap[0x1000];
+extern "C" void __attribute__((section(".custom_text"))) text_before_start_of_gap() {}
+char __attribute__((section(".custom_bss"))) end_of_gap[0x1000];
extern "C" void* get_inner() {
android_dlextinfo info = {};