summaryrefslogtreecommitdiff
path: root/Source/Kernel/Linker/ElfBinary.class.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/Linker/ElfBinary.class.cpp')
-rw-r--r--Source/Kernel/Linker/ElfBinary.class.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Kernel/Linker/ElfBinary.class.cpp b/Source/Kernel/Linker/ElfBinary.class.cpp
index 450053f..27e5474 100644
--- a/Source/Kernel/Linker/ElfBinary.class.cpp
+++ b/Source/Kernel/Linker/ElfBinary.class.cpp
@@ -26,7 +26,7 @@ Binary* ElfBinary::load(File& file) {
}
//Load data
for (SimpleList<phdr_t> *iter = b->m_phdr; iter != 0; iter = iter->next()) {
- iter->v().data = (u8int*)Mem::kalloc(iter->v().h.p_filesz);
+ iter->v().data = (u8int*)Mem::alloc(iter->v().h.p_filesz);
file.seek(iter->v().h.p_offset, SM_BEGINNING);
file.read(iter->v().h.p_filesz, iter->v().data);
}