summaryrefslogtreecommitdiffstats
path: root/bsps/x86_64/amd64/config/amd64.cfg
blob: ad861cb867f48cf093adb0af1b355c832815e54b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include $(RTEMS_ROOT)/make/custom/default.cfg

RTEMS_CPU = x86_64

CFLAGS_OPTIMIZE_V += -O2 -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections

# We can't have the red zone because interrupts will not respect that area.
CPU_CFLAGS  = -mno-red-zone
# This flag tells GCC to not assume values will fit in 32-bit registers. This
# way we can avoid linker-time relocation errors spawning from values being
# larger than their optimized container sizes.
CPU_CFLAGS += -mcmodel=large
CPU_CFLAGS += -Werror=return-type

LDFLAGS = -Wl,--gc-sections