summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-11-21 06:33:19 -0800
committerH.J. Lu <hjl.tools@gmail.com>2012-11-21 06:33:19 -0800
commit7e1be741255c40a2d71ea7c888eff39a3aaa32e9 (patch)
treec78a665d15bb6a1f22b63063f1f64545f351536d /include
parent86fe56bbdece927de2b0c6f122493e97ad12937a (diff)
downloadglibc-7e1be741255c40a2d71ea7c888eff39a3aaa32e9.tar.gz
glibc-7e1be741255c40a2d71ea7c888eff39a3aaa32e9.tar.xz
glibc-7e1be741255c40a2d71ea7c888eff39a3aaa32e9.zip
Check supported DF_1_XXX bits
Diffstat (limited to 'include')
-rw-r--r--include/elf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h
index cdedd8598e..60658c617c 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -3,4 +3,10 @@
 /* Some information which is not meant for the public and therefore not
    in <elf.h>.  */
 # include <dl-dtprocnum.h>
+# ifdef DT_1_SUPPORTED_MASK
+#  error DT_1_SUPPORTED_MASK is defined!
+# endif
+# define DT_1_SUPPORTED_MASK \
+   (DF_1_NOW | DF_1_NODELETE | DF_1_INITFIRST | DF_1_NOOPEN \
+    | DF_1_ORIGIN | DF_1_NODEFLIB)
 #endif