Unified · Split
| @@ -402,6 +402,20 @@ typedef struct · 401 unmodified lines | ||
| 402 | 402 | #define STN_UNDEF 0 /* End of a chain. */ |
| 403 | 403 | |
| 404 | 404 | |
| 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 | + | |
| 405 | 419 | /* Relocation table entry without addend (in section of type SHT_REL). */ |
| 406 | 420 | |
| 407 | 421 | typedef struct |