blob: 0ef5eae8def2e90b860ff4df9b1341d9c891121b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# -*- makefile -*-
#
# arch/loongarch64/MCONFIG
#
# Special rules for this architecture. Note that this is actually
# included from the main Makefile, and that pathnames should be
# accordingly.
#
KLIBCOPTFLAGS += -Os -fomit-frame-pointer
KLIBCBITSIZE = 64
# 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
# 4862 MB - normal binaries start at 4608 MB. Non-PIC jumps usually
# use the BL instruction which requires a destination between -128M
# to 128M. Since we can't put ourselves below the normal load
# address, use the very top of the 128M region (minus 2MB)
KLIBCSHAREDFLAGS = $(LD_IMAGE_BASE_OPT) 0x127E00000
# Kernel has never used stack trampolines
KLIBCEXECSTACK := n
|