History

ELF visibility defines

bellard committed 21 years ago

Commit bdd09701 parent fc72e411 file · +14 −0Browse files

Unified · Split

elf.h+14−0
@@ -402,6 +402,20 @@ typedef struct · 401 unmodified lines
402402 #define STN_UNDEF 0 /* End of a chain. */
403403
404404
405+/* How to extract and insert information held in the st_other field. */
406+
407+#define ELF32_ST_VISIBILITY(o) ((o) & 0x03)
408+
409+/* For ELF64 the definitions are the same. */
410+#define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o)
411+
412+/* Symbol visibility specification encoded in the st_other field. */
413+#define STV_DEFAULT 0 /* Default symbol visibility rules */
414+#define STV_INTERNAL 1 /* Processor specific hidden class */
415+#define STV_HIDDEN 2 /* Sym unavailable in other modules */
416+#define STV_PROTECTED 3 /* Not preemptible, not exported */
417+
418+
405419 /* Relocation table entry without addend (in section of type SHT_REL). */
406420
407421 typedef struct

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t