Blame sysdeps/powerpc/powerpc32/Makefile

Packit 6c4009
# Powerpc32 specific build options.
Packit 6c4009
Packit 6c4009
# Some Powerpc32 variants assume soft-fp is the default even though there is
Packit 6c4009
# an fp variant so provide -mhard-float if --with-fp is explicitly passed.
Packit 6c4009
Packit 6c4009
ifeq ($(with-fp),yes)
Packit 6c4009
+cflags += -mhard-float
Packit 6c4009
ASFLAGS += -mhard-float
Packit 6c4009
sysdep-LDFLAGS += -mhard-float
Packit 6c4009
endif
Packit 6c4009
Packit 6c4009
ifeq ($(subdir),gmon)
Packit 6c4009
sysdep_routines += ppc-mcount compat-ppc-mcount
Packit 6c4009
static-only-routines += ppc-mcount
Packit 6c4009
shared-only-routines += compat-ppc-mcount
Packit 6c4009
endif
Packit 6c4009
Packit 6c4009
ifeq ($(subdir),misc)
Packit 6c4009
sysdep_routines += gprsave0 gprrest0 gprsave1 gprrest1
Packit 6c4009
endif
Packit 6c4009
Packit 6c4009
# On PPC, -fpic works until the GOT contains 32768 bytes, and possibly
Packit 6c4009
# more depending on how clever the linker is.  Each GOT entry takes 4 bytes,
Packit 6c4009
# so that's at least 8192 entries.  Since libc only uses about 2000 entries,
Packit 6c4009
# we want to use -fpic, because this generates fewer relocs.
Packit 6c4009
ifeq (yes,$(build-shared))
Packit 6c4009
pic-ccflag = -fpic
Packit 6c4009
endif
Packit 6c4009
Packit 6c4009
ifeq ($(subdir),csu)
Packit 6c4009
# There is no benefit to using sdata for these objects, and the user
Packit 6c4009
# of the library should be able to control what goes into sdata.
Packit 6c4009
CFLAGS-init.o = -G0
Packit 6c4009
CFLAGS-gmon-start.o = -G0
Packit 6c4009
Packit 6c4009
ifeq (yes,$(build-shared))
Packit 6c4009
# Compatibility
Packit 6c4009
ifeq (yes,$(have-protected))
Packit 6c4009
CPPFLAGS-libgcc-compat.S = -DHAVE_DOT_HIDDEN
Packit 6c4009
endif
Packit 6c4009
sysdep_routines += libgcc-compat
Packit 6c4009
shared-only-routines += libgcc-compat
Packit 6c4009
endif
Packit 6c4009
endif
Packit 6c4009
Packit 6c4009
ifeq ($(subdir),elf)
Packit 6c4009
# extra shared linker files to link only into dl-allobjs.so
Packit 6c4009
sysdep-rtld-routines += dl-start
Packit 6c4009
endif