Remove dead DL_DST_REQ_STATIC code.
authorMaciej W. Rozycki <macro@codesourcery.com>
Fri, 21 Jun 2013 23:39:42 +0000 (00:39 +0100)
committerMaciej W. Rozycki <macro@codesourcery.com>
Fri, 21 Jun 2013 23:39:42 +0000 (00:39 +0100)
ChangeLog
elf/dl-dst.h

index 5a62155..4888b19 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
+       DL_DST_REQ_STATIC.
+       (DL_DST_REQ_STATIC): Remove macro.
+
 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #7006]
index 20b68d9..3ed95d0 100644 (file)
@@ -55,7 +55,6 @@
           First get the origin string if it is not available yet.            \
           This can only happen for the map of the executable or, when        \
           auditing, in ld.so.  */                                            \
-       DL_DST_REQ_STATIC (l)                                                 \
        if ((l)->l_origin == NULL)                                            \
          {                                                                   \
            assert ((l)->l_name[0] == '\0' || IS_RTLD (l));                   \
       }                                                                              \
                                                                              \
     __len; })
-
-#ifdef SHARED
-# define DL_DST_REQ_STATIC(l) /* nothing */
-#else
-# define DL_DST_REQ_STATIC(l) \
-  if ((l) == NULL)                                                           \
-    {                                                                        \
-      const char *origin = _dl_get_origin ();                                \
-      dst_len = (origin && origin != (char *) -1 ? strlen (origin) : 0);      \
-    }                                                                        \
-  else
-#endif