]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - elf/neededtest2.c
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[thirdparty/glibc.git] / elf / neededtest2.c
index 17c75f2ba3f2bc442c5c61dc8c8c502260fa257d..cf111bc303d94a3de4f21a3745423dc6f9b99009 100644 (file)
@@ -5,8 +5,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#define MAPS ((struct link_map *) _r_debug.r_map)
-
 static int
 check_loaded_objects (const char **loaded)
 {
@@ -26,10 +24,10 @@ check_loaded_objects (const char **loaded)
 
   printf("   Name\n");
   printf(" --------------------------------------------------------\n");
-  for (lm = MAPS; lm; lm = lm->l_next)
+  for (lm = _r_debug.r_map; lm; lm = lm->l_next)
     {
       if (lm->l_name && lm->l_name[0])
-       printf(" %s, count = %d\n", lm->l_name, (int) lm->l_direct_opencount);
+       printf(" %s, count = %d\n", lm->l_name, (int) lm->l_opencount);
       if (lm->l_type == lt_loaded && lm->l_name)
        {
          int match = 0;