mirror of
https://github.com/frida/tinycc
synced 2025-01-11 22:29:18 +03:00
ELF visibility defines
This commit is contained in:
parent
fc72e41a55
commit
bdd09709d7
14
elf.h
14
elf.h
@ -402,6 +402,20 @@ typedef struct
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user