]>
Commit | Line | Data |
---|---|---|
b0982c4a | 1 | #ifndef _ELF_H |
47755784 ZW |
2 | #include <elf/elf.h> |
3 | ||
8d81ce0c L |
4 | #ifndef _ISOMAC |
5 | ||
6 | # include <libc-pointer-arith.h> | |
7 | ||
8 | /* Compute the offset of the note descriptor from size of note entry's | |
9 | owner string and note alignment. */ | |
10 | # define ELF_NOTE_DESC_OFFSET(namesz, align) \ | |
11 | ALIGN_UP (sizeof (ElfW(Nhdr)) + (namesz), (align)) | |
12 | ||
13 | /* Compute the offset of the next note entry from size of note entry's | |
14 | owner string, size of the note descriptor and note alignment. */ | |
15 | # define ELF_NOTE_NEXT_OFFSET(namesz, descsz, align) \ | |
16 | ALIGN_UP (ELF_NOTE_DESC_OFFSET ((namesz), (align)) + (descsz), (align)) | |
47755784 | 17 | |
b0982c4a UD |
18 | /* Some information which is not meant for the public and therefore not |
19 | in <elf.h>. */ | |
20 | # include <dl-dtprocnum.h> | |
7e1be741 L |
21 | # ifdef DT_1_SUPPORTED_MASK |
22 | # error DT_1_SUPPORTED_MASK is defined! | |
23 | # endif | |
24 | # define DT_1_SUPPORTED_MASK \ | |
25 | (DF_1_NOW | DF_1_NODELETE | DF_1_INITFIRST | DF_1_NOOPEN \ | |
2c75b545 | 26 | | DF_1_ORIGIN | DF_1_NODEFLIB | DF_1_PIE) |
47755784 | 27 | |
8d81ce0c | 28 | #endif /* !_ISOMAC */ |
47755784 | 29 | #endif /* elf.h */ |