1999-06-13 10:03:11 +00:00
|
|
|
# We need special startup code for statically linked binaries.
|
|
|
|
static-start-installed-name = crt0.o
|
|
|
|
|
1998-06-25 19:44:22 +00:00
|
|
|
ifeq ($(subdir),csu)
|
|
|
|
extra-objs += crt0.o
|
|
|
|
install-lib += crt0.o
|
1998-09-05 15:00:54 +00:00
|
|
|
omit-deps += crt0
|
1998-06-25 19:44:22 +00:00
|
|
|
|
|
|
|
$(objpfx)crt0.o: $(objpfx)static-start.o $(objpfx)abi-note.o $(objpfx)init.o
|
|
|
|
$(link-relocatable)
|
1999-03-25 21:00:06 +00:00
|
|
|
|
|
|
|
# compat for libc.so.0.2 only
|
|
|
|
# This is needed to be backward-compatible with glibc-2.0.x startup code
|
|
|
|
# that was miscompiled so that it jumps to 0 if there is a nonzero
|
|
|
|
# __gmon_start__ symbol, but works if there is none.
|
|
|
|
CFLAGS-initfini.s += -DWEAK_GMON_START
|
|
|
|
|
1998-06-25 19:44:22 +00:00
|
|
|
endif
|