]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
test: Fix nlist(3) unit test on IA64
authorJason Duerstock <jason.duerstock@gmail.com>
Sun, 3 Dec 2017 15:50:07 +0000 (16:50 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sat, 13 Jan 2018 15:17:28 +0000 (16:17 +0100)
On IA64 this is only the case in the ELF binary, but it gets normalized
when loaded at run-time.

Fixes: https://bugs.debian.org/881611
Signed-off-by: Guillem Jover <guillem@hadrons.org>
test/nlist.c

index 893176e24f372bf870101bcee767702882f2bb14..c76d9e73f069990c1336ba1928cfb1df69a4adbf 100644 (file)
@@ -69,8 +69,8 @@ main(int argc, char **argv)
        rc = nlist(argv[0], nl);
        assert(rc == 0);
 
-#if defined(__ia64__) || (defined(__powerpc64__) && _CALL_ELF == 1)
-       /* On IA64 and PowerPC 64-bit ELFv1, the functions are stored in
+#if defined(__powerpc64__) && _CALL_ELF == 1
+       /* On PowerPC 64-bit ELFv1, the functions are stored in
         * the .text sections but they are accessed through a function
         * descriptor stored in a data section, for example for PowerPC
         * 64-bit that section is called .opd. */