about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--elf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/Makefile b/elf/Makefile
index ab44b29361..e0ae40b9fd 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -45,7 +45,7 @@ include ../Rules
 $(objpfx)ld.so: $(rtld-routines:%=$(objpfx)%.so) \
 		$(patsubst %,$(common-objpfx)lib%_pic.a,\
 			   elf c $(LDLIBS-c.so:-l%=%))
-	$(LINK.o) -nostdlib -shared -o $@ \
+	$(LINK.o) -nostdlib -nostartfiles -shared -o $@ \
 		  '-Wl,-(' $^ -lgcc '-Wl,-)'
 
 $(objpfx)libdl.so: $(objpfx)libdl_pic.a $(common-objpfx)libc.so $(objpfx)ld.so