Changeset 1b20da0 in mainline for uspace/lib/c/generic/elf/elf_mod.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/elf/elf_mod.c
rdf6ded8 r1b20da0 152 152 rc = vfs_read(elf->fd, &pos, header, sizeof(elf_header_t), &nr); 153 153 if (rc != EOK || nr != sizeof(elf_header_t)) { 154 DPRINTF("Read error.\n"); 154 DPRINTF("Read error.\n"); 155 155 return EE_IO; 156 156 } … … 160 160 /* Identify ELF */ 161 161 if (header->e_ident[EI_MAG0] != ELFMAG0 || 162 header->e_ident[EI_MAG1] != ELFMAG1 || 162 header->e_ident[EI_MAG1] != ELFMAG1 || 163 163 header->e_ident[EI_MAG2] != ELFMAG2 || 164 164 header->e_ident[EI_MAG3] != ELFMAG3) { … … 169 169 /* Identify ELF compatibility */ 170 170 if (header->e_ident[EI_DATA] != ELF_DATA_ENCODING || 171 header->e_machine != ELF_MACHINE || 171 header->e_machine != ELF_MACHINE || 172 172 header->e_ident[EI_VERSION] != EV_CURRENT || 173 173 header->e_version != EV_CURRENT ||
Note:
See TracChangeset
for help on using the changeset viewer.