If you link a program with a compiler driver (clang/gcc) in a standard way (not -nostdlib
), the following components are usually on the linker command line.
- crt1.o (glibc/musl):
-no-pie
/-pie
/-static-pie
- crt1.o:
-no-pie
- Scrt1.o:
-pie
,-shared
- rcrt1.o:
-static-pie
- gcrt1.o:
- crt1.o:
- crti.o (glibc/musl)
- crtbegin.o
- crtbegin.o:
-no-pie