[PATCH] D28791: [compiler-rt][crt] Simple crtbegin and crtend implementation

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 27 03:41:52 PST 2019


MaskRay added a comment.

Another thing worth mentioning, either in this patch or in a follow-up, `crtbegin.o`



================
Comment at: compiler-rt/lib/crt/CMakeLists.txt:81
+    SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/crtbegin.c
+    CFLAGS ${CRT_CFLAGS}
+    PARENT_TARGET crt)
----------------
Just to ask if my understanding is correct.

clang_rt.crtbegin.o: replacement of crtbegin.o
(-fno-PIC can be used here as some toolchains default to -fPIC or -fPIE, but it doesn't matter much here)

clang_rt.crtbegin_shared.o: replacement of crtbeginS.o crtbeginT.o



CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D28791/new/

https://reviews.llvm.org/D28791





More information about the llvm-commits mailing list