aboutsummaryrefslogtreecommitdiff
path: root/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'elf.h')
-rw-r--r--elf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf.h b/elf.h
index 2e05d34620..310e05a8e1 100644
--- a/elf.h
+++ b/elf.h
@@ -216,6 +216,7 @@ typedef int64_t Elf64_Sxword;
#define ELF_ST_BIND(x) ((x) >> 4)
#define ELF_ST_TYPE(x) (((unsigned int) x) & 0xf)
+#define ELF_ST_INFO(bind, type) (((bind) << 4) | ((type) & 0xf))
#define ELF32_ST_BIND(x) ELF_ST_BIND(x)
#define ELF32_ST_TYPE(x) ELF_ST_TYPE(x)
#define ELF64_ST_BIND(x) ELF_ST_BIND(x)