|
Packit |
6c4009 |
# Powerpc64 specific build options.
|
|
Packit |
6c4009 |
# this is ./sysdeps/powerpc/powerpc64/Makefile
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# Each TOC entry takes 8 bytes and the TOC holds up to 2^16 bytes,
|
|
Packit |
6c4009 |
# or 8192 entries.
|
|
Packit |
6c4009 |
# If -fpic is not specified, the latest gcc-3.2.1 now generates
|
|
Packit |
6c4009 |
# different code for call stubs (without the TOC reload).
|
|
Packit |
6c4009 |
# Shared objects need the TOC reload so specify -fpic.
|
|
Packit |
6c4009 |
ifeq (yes,$(build-shared))
|
|
Packit |
6c4009 |
pic-ccflag = -fpic
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# These flags prevent FPU or Altivec registers from being used,
|
|
Packit |
6c4009 |
# for code called in contexts that is not allowed to touch those registers.
|
|
Packit |
6c4009 |
# Stupid GCC requires us to pass all these ridiculous switches. We need to
|
|
Packit |
6c4009 |
# pass the -mno-* switches as well to prevent the compiler from attempting
|
|
Packit |
6c4009 |
# to emit altivec or vsx instructions, especially when the registers aren't
|
|
Packit |
6c4009 |
# available.
|
|
Packit |
6c4009 |
no-special-regs := $(sort $(foreach n,40 41 50 51 60 61 62 63 \
|
|
Packit |
6c4009 |
$(foreach m,2 3 4 5 6 7 8 9, \
|
|
Packit |
6c4009 |
3$m 4$m 5$m),\
|
|
Packit |
6c4009 |
-ffixed-$n)) \
|
|
Packit |
6c4009 |
$(sort $(foreach n,$(foreach m,0 1 2 3 4 5 6 7 8 9,\
|
|
Packit |
6c4009 |
$m 1$m 2$m) 30 31,\
|
|
Packit |
6c4009 |
-ffixed-v$n)) \
|
|
Packit |
6c4009 |
-ffixed-vrsave -ffixed-vscr -mno-altivec -mno-vsx
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# Need to prevent gcc from using fprs in code used during dynamic linking.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
CFLAGS-dl-runtime.os = $(no-special-regs)
|
|
Packit |
6c4009 |
CFLAGS-dl-lookup.os = $(no-special-regs)
|
|
Packit |
6c4009 |
CFLAGS-dl-misc.os = $(no-special-regs)
|
|
Packit |
6c4009 |
CFLAGS-rtld-mempcpy.os = $(no-special-regs)
|
|
Packit |
6c4009 |
CFLAGS-rtld-memmove.os = $(no-special-regs)
|
|
Packit |
6c4009 |
CFLAGS-rtld-memchr.os = $(no-special-regs)
|
|
Packit |
6c4009 |
CFLAGS-rtld-strnlen.os = $(no-special-regs)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),elf)
|
|
Packit |
6c4009 |
# help gcc inline asm code from dl-machine.h
|
|
Packit |
6c4009 |
+cflags += -finline-limit=2000
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),gmon)
|
|
Packit |
6c4009 |
# The assembly functions assume that fp arg regs are not trashed.
|
|
Packit |
6c4009 |
# Compiling with -msoft-float ensures that fp regs are not used
|
|
Packit |
6c4009 |
# for moving memory around.
|
|
Packit |
6c4009 |
CFLAGS-mcount.c += $(no-special-regs)
|
|
Packit |
6c4009 |
sysdep_routines += ppc-mcount
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),setjmp)
|
|
Packit |
6c4009 |
tests += tst-setjmp-bug21895-static
|
|
Packit |
6c4009 |
tests-static += tst-setjmp-bug21895-static
|
|
Packit |
6c4009 |
modules-names += setjmp-bug21895
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
$(objpfx)tst-setjmp-bug21895-static: $(common-objpfx)dlfcn/libdl.a
|
|
Packit |
6c4009 |
$(objpfx)tst-setjmp-bug21895-static.out: $(objpfx)setjmp-bug21895.so
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tst-setjmp-bug21895-static-ENV = \
|
|
Packit |
6c4009 |
LD_LIBRARY_PATH=$(objpfx):$(common-objpfx):$(common-objpfx)setjmp:$(common-objpfx)elf
|
|
Packit |
6c4009 |
endif
|