summaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/s390/MCONFIG
blob: a704c5afad57ed7da8a727e5fbd40e95e054b85a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- makefile -*-
#
# arch/s390/MCONFIG
#
# Special rules for this architecture. Note that this is actually
# included from the main Makefile, and that pathnames should be
# accordingly.
#

KLIBCOPTFLAGS += -Os

ifneq ("$(KLIBCARCH)", "s390x")
	KLIBCBITSIZE	= 32
	KLIBCCFLAGS	+= -m31
	KLIBCLDFLAGS	+= -m elf_s390
else
	KLIBCBITSIZE	= 64
	KLIBCCFLAGS	+= -m64
	KLIBCLDFLAGS	+= -m elf64_s390
endif

KLIBCASMARCH		= s390
KLIBCSHAREDFLAGS	= $(LD_IMAGE_BASE_OPT) 0x40000000

# Kernel uses our sa_restorer for signal return
KLIBCEXECSTACK := n