diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 13:42:09 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 13:42:09 +0200 |
commit | 1ecb3fb821f49450ba4b08ad7d7a23d3acb75c47 (patch) | |
tree | cd7f14d2659809286e59c929e91fe5c02c138002 /src/kernel/linker/elf.cpp | |
parent | f56aa2f7e4b8e6430e123f714507032a33955a09 (diff) | |
download | TCE-1ecb3fb821f49450ba4b08ad7d7a23d3acb75c47.tar.gz TCE-1ecb3fb821f49450ba4b08ad7d7a23d3acb75c47.zip |
Improvements. Next: initrd.
Diffstat (limited to 'src/kernel/linker/elf.cpp')
-rw-r--r-- | src/kernel/linker/elf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/linker/elf.cpp b/src/kernel/linker/elf.cpp index c6aebaa..0375e40 100644 --- a/src/kernel/linker/elf.cpp +++ b/src/kernel/linker/elf.cpp @@ -7,7 +7,7 @@ int elf_check(uint8_t *data) { elf_ehdr *h = (elf_ehdr*)data; if (h->e_ident[0] == 0x7F && h->e_ident[1] == 'E' && h->e_ident[2] == 'L' && h->e_ident[3] == 'F') return 0; - return 1; + return -1; } thread_entry elf_load(uint8_t *data, process* process) { |