extra-objs = start.o gmon-start.o \
$(start-installed-name) g$(start-installed-name) \
$(csu-dummies)
-before-compile = $(objpfx)abi-tag.h
omit-deps = $(patsubst %.o,%,$(start-installed-name) g$(start-installed-name) \
$(csu-dummies))
install-lib = $(start-installed-name) g$(start-installed-name) \
include ../Makeconfig
+ifeq ($(elf),yes)
+before-compile = $(objpfx)abi-tag.h
+endif
ifeq ($(have-initfini),yes)
install-lib += $(crtstuff:=.o)
extra-objs += $(crtstuff:=.o)
-generated += $(crtstuff:=.S) initfini.s align.h end.h
+generated += $(crtstuff:=.S) initfini.s defs.h
omit-deps += $(crtstuff)
# Special rules for the building of crti.o and crtn.o
$(objpfx)crt%.o: $(objpfx)crt%.S $(objpfx)defs.h
$(compile.S) -g0 $(ASFLAGS-.os) -o $@
+CFLAGS-initfini.s = -g0 -fPIC -fno-inline-functions
+
$(objpfx)initfini.s: initfini.c
- $(compile.c) -O0 -g0 -S -fPIC -finhibit-size-directive \
+ $(compile.c) -S $(CFLAGS-initfini.s) -finhibit-size-directive \
$(no-exceptions) -o $@
# We only have one kind of startup code files. Static binaries and
/ := $$/# bite me.
$(objpfx)abi-tag.h: $(..)abi-tags
+ $(make-target-directory)
rm -f $@.new
sed 's/#.*$//;/^[ ]*$$/d' $< | while read conf tag; do \
test `expr '$(config-machine)-$(config-vendor)-$(config-os)' \