[libc-commits] [libc] [libc] [startup] add cmake function to merge separated crt1 objects (PR #75413)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Sat Dec 16 14:04:48 PST 2023
================
@@ -27,18 +70,24 @@ function(add_startup_object name)
)
endfunction()
+check_cxx_compiler_flag("-r" LIBC_LINKER_SUPPORTS_RELOCATABLE)
+
+if(NOT LIBC_LINKER_SUPPORTS_RELOCATABLE)
+ message(STATUS "Skipping startup for target architecture ${LIBC_TARGET_ARCHITECTURE}: linker does not support -r")
----------------
SchrodingerZhu wrote:
If `crt1.o` is not available, then `_start` will be missing. I don't think `libc-startup` will be usable then.
https://github.com/llvm/llvm-project/pull/75413
More information about the libc-commits
mailing list