Files
clang-p2996/libc/loader/linux/x86_64/CMakeLists.txt
Siva Chandra Reddy 5d59385ba6 [libc] Setup TLS in x86_64 loader.
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
2020-08-07 23:19:03 -07:00

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.
)