about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCarlos Eduardo Seo <carlos.seo@arm.com>2022-06-23 15:27:55 -0300
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-11-22 14:31:25 +0000
commita05a3def727285eb498f329b16baa3f52d26df79 (patch)
treee8e259147c7205c70633af15d2e9b3e4213d88b6
parent1eb01283ddc5da94bde495f326411eb0fcfba556 (diff)
downloadglibc-a05a3def727285eb498f329b16baa3f52d26df79.tar.gz
glibc-a05a3def727285eb498f329b16baa3f52d26df79.tar.xz
glibc-a05a3def727285eb498f329b16baa3f52d26df79.zip
cheri: elf: Fix tst-auxv for Morello
-rw-r--r--elf/tst-auxv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/tst-auxv.c b/elf/tst-auxv.c
index 602875b794..2e3cb6a54f 100644
--- a/elf/tst-auxv.c
+++ b/elf/tst-auxv.c
@@ -27,7 +27,11 @@ static int
 do_test (int argc, char *argv[])
 {
   errno = 0;
+#ifndef __CHERI_PURE_CAPABILITY__
   const char *execfn = (const char *) getauxval (AT_NULL);
+#else
+  const char *execfn = (const char *) getauxptr (AT_NULL);
+#endif
 
   if (errno != ENOENT)
     {
@@ -43,7 +47,11 @@ do_test (int argc, char *argv[])
     }
 
   errno = 0;
+#ifndef __CHERI_PURE_CAPABILITY__
   execfn = (const char *) getauxval (AT_EXECFN);
+#else
+  execfn = (const char *) getauxptr (AT_EXECFN);
+#endif
 
   if (execfn == NULL)
     {