changeset 349:b6b265068016

[project @ 2005-04-10 21:43:10 by bellard] ELF visibility defines
author bellard
date Sun, 10 Apr 2005 21:43:10 +0000
parents 96ea19a25c55
children 4ebba89e2599
files elf.h
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/elf.h	Thu Dec 16 22:19:28 2004 +0000
+++ b/elf.h	Sun Apr 10 21:43:10 2005 +0000
@@ -402,6 +402,20 @@
 #define STN_UNDEF	0		/* End of a chain.  */
 
 
+/* How to extract and insert information held in the st_other field.  */
+
+#define ELF32_ST_VISIBILITY(o)	((o) & 0x03)
+
+/* For ELF64 the definitions are the same.  */
+#define ELF64_ST_VISIBILITY(o)	ELF32_ST_VISIBILITY (o)
+
+/* Symbol visibility specification encoded in the st_other field.  */
+#define STV_DEFAULT	0		/* Default symbol visibility rules */
+#define STV_INTERNAL	1		/* Processor specific hidden class */
+#define STV_HIDDEN	2		/* Sym unavailable in other modules */
+#define STV_PROTECTED	3		/* Not preemptible, not exported */
+
+
 /* Relocation table entry without addend (in section of type SHT_REL).  */
 
 typedef struct