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

KLIBCOPTFLAGS		 += -Os -m32 -mptr32
KLIBCBITSIZE		 = 32
KLIBCARCHREQFLAGS	+= -D__sparc32__

# Extra linkflags when building the shared version of the library
# This address needs to be reachable using normal inter-module
# calls, and work on the memory models for this architecture
# Normal binaries start at 64K; the linker wants 64K alignment,
# and call instructions have a 30-bit signed offset, << 2.
KLIBCSHAREDFLAGS	 = $(LD_IMAGE_BASE_OPT) 0x40000000

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