about summary refs log tree commit diff
path: root/csu
diff options
context:
space:
mode:
Diffstat (limited to 'csu')
-rw-r--r--csu/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/csu/Makefile b/csu/Makefile
index 01a44cf22e..a50a44f676 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -30,11 +30,11 @@ subdir := csu
 routines = init-first libc-start $(libc-init) sysdep version check_fds
 csu-dummies = $(filter-out $(start-installed-name),crt1.o Mcrt1.o)
 extra-objs = start.o gmon-start.o \
-	     $(start-installed-name) g$(start-installed-name) \
+	     $(start-installed-name) g$(start-installed-name) b$(start-installed-name) \
 	     $(csu-dummies)
 omit-deps = $(patsubst %.o,%,$(start-installed-name) g$(start-installed-name) \
-		             $(csu-dummies))
-install-lib = $(start-installed-name) g$(start-installed-name) \
+			      b$(start-installed-name) $(csu-dummies))
+install-lib = $(start-installed-name) g$(start-installed-name) b$(start-installed-name) \
 	      $(csu-dummies)
 distribute = initfini.c gmon-start.c start.c defs.awk munch.awk \
 	     abi-note.S init.c munch-tmpl.c
@@ -130,6 +130,9 @@ ifeq (yes,$(elf))
 $(objpfx)$(start-installed-name): $(objpfx)start.o $(objpfx)abi-note.o \
 				  $(objpfx)init.o
 	$(link-relocatable)
+$(objpfx)b$(start-installed-name): $(objpfx)start.ob $(objpfx)abi-note.ob \
+				  $(objpfx)init.ob
+	$(link-relocatable)
 else
 # The startfile is installed under different names, so we just call our
 # source file `start.c' and copy to the installed name after compiling.