diff options
author | Schrodinger ZHU Yifan <yifanzhu@rochester.edu> | 2023-12-20 11:18:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 08:18:51 -0800 |
commit | 8bbeed05c4da832a2abf532fee8665c0d6576cbc (patch) | |
tree | 54ca161edf3fc736d29da437ff6cfc3c534a7b34 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | e4f4022b7044b135a950a5fdc033af13fee9f6fa (diff) | |
download | llvm-8bbeed05c4da832a2abf532fee8665c0d6576cbc.zip llvm-8bbeed05c4da832a2abf532fee8665c0d6576cbc.tar.gz llvm-8bbeed05c4da832a2abf532fee8665c0d6576cbc.tar.bz2 |
[libc] [startup] add cmake function to merge separated crt1 objects (#75413)
As part of startup refactoring, this patch adds a function to merge
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 can have arch-specific code and arch-agnostic code. To
reduce code cohesion, the implementation is splitted into multiple
units. As a result, we need to merge them into a single relocatable
object.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions