Skip to content

Instantly share code, notes, and snippets.

View 64's full-sized avatar
😎

Matt Taylor 64

😎
View GitHub Profile

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:
  • crti.o (glibc/musl)
  • crtbegin.o
  • crtbegin.o: -no-pie