The new code added is still very x86_64 specific. AArch64 support will be added very soon and refactoring of the loader code will be done as part of the patches adding it. Reviewed By: asteinhauser Differential Revision: https://reviews.llvm.org/D82700
15 lines
334 B
CMake
15 lines
334 B
CMake
add_loader_object(
|
|
crt1
|
|
SRC
|
|
start.cpp
|
|
DEPENDS
|
|
libc.config.linux.linux_syscall_h
|
|
libc.config.linux.app_h
|
|
libc.include.sys_syscall
|
|
libc.src.string.memcpy
|
|
libc.src.sys.mman.mmap
|
|
COMPILE_OPTIONS
|
|
-fno-omit-frame-pointer
|
|
-ffreestanding # To avoid compiler warnings about calling the main function.
|
|
)
|