Search notes:

gcc -nostdlib

-nostdlib: pass only files to the linker that are explicitly specified.
Without using -nostdlib, object files such as /usr/lib/crt1.o (which contains the _start entry point) are automatically linked.

See also

GCC options: compare -nostartfiles, -nodefaultlibs, -nolibc, -nostdlib
GCC options
The Standard C Library

Index