[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
Fri Dec 15 08:05:15 PST 2023
================
@@ -1,19 +1,64 @@
+# This function merges multiple objects into a single relocatable object
+# cc -r obj1.o obj2.o -o obj.o
+# A relocatable object is an object file that is not fully linked into an
+# executable or a shared library. It is an intermediate file format that can
+# be passed into the linker.
+# A crt object has arch-specific code and arch-agnostic code. To reduce code
+# cohesion, the implementation is splitted into multiple units. As a result,
----------------
SchrodingerZhu wrote:
It should have been "duplication" 😄
https://github.com/llvm/llvm-project/pull/75413
More information about the libc-commits
mailing list