about summary refs log tree commit diff
path: root/elf/circleload1.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/circleload1.c')
-rw-r--r--elf/circleload1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/circleload1.c b/elf/circleload1.c
index f5f886a1da..990ff84a84 100644
--- a/elf/circleload1.c
+++ b/elf/circleload1.c
@@ -5,6 +5,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define MAPS ((struct link_map *) _r_debug.r_map)
+
 static int
 check_loaded_objects (const char **loaded)
 {
@@ -24,7 +26,7 @@ check_loaded_objects (const char **loaded)
 
   printf("   Name\n");
   printf(" --------------------------------------------------------\n");
-  for (lm = _r_debug.r_map; lm; lm = lm->l_next)
+  for (lm = MAPS; 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);