Searched refs:e_ident (Results 1 - 7 of 7) sorted by relevance

/gem5/ext/libelf/
H A Dgelf_ehdr.c65 (void) memcpy(d->e_ident, eh32->e_ident, sizeof(eh32->e_ident));
145 (void) memcpy(eh32->e_ident, s->e_ident, sizeof(eh32->e_ident));
H A Dlibelf_ehdr.c86 eh->e_ident[EI_MAG0] = ELFMAG0; \
87 eh->e_ident[EI_MAG1] = ELFMAG1; \
88 eh->e_ident[EI_MAG2] = ELFMAG2; \
89 eh->e_ident[EI_MAG3] = ELFMAG3; \
90 eh->e_ident[EI_CLASS] = ELFCLASS##SZ; \
91 eh->e_ident[EI_DATA] = ELFDATANONE; \
92 eh->e_ident[EI_VERSION] = LIBELF_PRIVATE(version); \
H A Delf_update.c348 eh_byteorder = eh32->e_ident[EI_DATA];
349 eh_class = eh32->e_ident[EI_CLASS];
355 eh_byteorder = eh64->e_ident[EI_DATA];
356 eh_class = eh64->e_ident[EI_CLASS];
387 (E)->e_ident[EI_MAG0] = ELFMAG0; \
388 (E)->e_ident[EI_MAG1] = ELFMAG1; \
389 (E)->e_ident[EI_MAG2] = ELFMAG2; \
390 (E)->e_ident[EI_MAG3] = ELFMAG3; \
391 (E)->e_ident[EI_CLASS] = (EC); \
392 (E)->e_ident[EI_VERSIO
[all...]
H A Delf32.h56 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member in struct:__anon14
H A Delf_common.h53 /* Indexes into the e_ident array. Keep synced with
66 #define EI_NIDENT 16 /* Size of e_ident array. */
76 /* Values for e_ident[EI_VERSION] and e_version. */
80 /* Values for e_ident[EI_CLASS]. */
85 /* Values for e_ident[EI_DATA]. */
90 /* Values for e_ident[EI_OSABI]. */
112 /* e_ident */
113 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \
114 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
115 (ehdr).e_ident[EI_MAG
[all...]
H A Delf64.h65 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member in struct:__anon30
/gem5/src/base/loader/
H A Delf_object.cc87 ehdr.e_ident[EI_CLASS] == ELFCLASS64) ||
92 ehdr.e_ident[EI_CLASS] == ELFCLASS32)) {
95 ehdr.e_ident[EI_CLASS] == ELFCLASS32) {
97 if (ehdr.e_ident[EI_DATA] != ELFDATA2LSB) {
103 ehdr.e_ident[EI_CLASS] == ELFCLASS64) {
106 ehdr.e_ident[EI_CLASS] == ELFCLASS32) {
109 ehdr.e_ident[EI_CLASS] == ELFCLASS32) {
112 ehdr.e_ident[EI_CLASS] == ELFCLASS64) {
115 arch = (ehdr.e_ident[EI_CLASS] == ELFCLASS64) ? Riscv64 : Riscv32;
117 ehdr.e_ident[EI_CLAS
[all...]

Completed in 18 milliseconds