about summary refs log tree commit diff
path: root/csu
diff options
context:
space:
mode:
Diffstat (limited to 'csu')
-rw-r--r--csu/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/csu/Makefile b/csu/Makefile
index f3b099ee40..669e26c32d 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -139,6 +139,11 @@ define link-relocatable
 $(CC) -nostdlib -nostartfiles -r -o $@ $^
 endef
 
+# We don't want this compiled with PIC.  
+# It's never included in shared libraries, unlike the rest of libc_nonshared.a.
+$(objpfx)elf-init.oS: $(objpfx)elf-init.o
+	ln -f $< $@
+
 ifndef start-installed-name-rule
 ifeq (yes,$(elf))
 # We link the ELF startfile along with a SHT_NOTE section indicating