aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/csu/tests/fini_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csu/tests/fini_test.c b/lib/csu/tests/fini_test.c
index ea825e51acf9..c06e62e093f8 100644
--- a/lib/csu/tests/fini_test.c
+++ b/lib/csu/tests/fini_test.c
@@ -141,9 +141,9 @@ dso_handle_check(void)
{
void *dso = __dso_handle;
-#ifdef DSO_LIB
+#if defined(DSO_LIB) || defined(__PIE__)
ATF_REQUIRE_MSG(dso != NULL,
- "Null __dso_handle in DSO");
+ "Null __dso_handle in DSO/PIE");
#else
ATF_REQUIRE_MSG(dso == NULL,
"Invalid __dso_handle in non-DSO");