diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1999-09-18 15:43:34 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1999-09-18 15:43:34 +0000 |
commit | e329f26a5e44805dc1eb08694496a98e08210b22 (patch) | |
tree | e95644419019af325b122f5546cceb022475c5c7 /sys | |
parent | e160854e49c5c67ef76fd9e15e119defe42dc3d5 (diff) |
ELF64_ST_*() macros
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/exec_elf.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h index 2beab244950..a4ec19618c1 100644 --- a/sys/sys/exec_elf.h +++ b/sys/sys/exec_elf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.h,v 1.18 1999/09/10 20:47:13 kstailey Exp $ */ +/* $OpenBSD: exec_elf.h,v 1.19 1999/09/18 15:43:33 kstailey Exp $ */ /* * Copyright (c) 1995, 1996 Erik Theisen. All rights reserved. * @@ -277,6 +277,10 @@ typedef struct { #define ELF32_ST_TYPE(x) (((unsigned int) x) & 0xf) #define ELF32_ST_INFO(b,t) (((b) << 4) + ((t) & 0xf)) +#define ELF64_ST_BIND(x) ((x) >> 4) +#define ELF64_ST_TYPE(x) (((unsigned int) x) & 0xf) +#define ELF64_ST_INFO(b,t) (((b) << 4) + ((t) & 0xf)) + /* Symbol Binding - ELF32_ST_BIND - st_info */ #define STB_LOCAL 0 /* Local symbol */ #define STB_GLOBAL 1 /* Global symbol */ |