Skip to content

Commit 7fe40a6

Browse files
author
Hubert Badocha
committed
riscv64/Makefile: disable gp relaxations
JIRA: RTOS-912
1 parent f58b027 commit 7fe40a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hal/riscv64/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ include hal/$(TARGET_SUFF)/$(TARGET_SUBFAMILY)/Makefile
1111

1212
CFLAGS += -Ihal/$(TARGET_SUFF) -Ihal/$(TARGET_SUFF)/$(TARGET_SUBFAMILY)
1313

14+
# binutils 2.41 silently introduced gp relaxations which for some reason make kernel impossible to build
15+
# TODO: investigate further
16+
ifeq ($(shell expr $(LD_VERSION_MINOR) ">=" 41), 1)
17+
LDFLAGS += $(LDFLAGS_PREFIX)--no-relax-gp
18+
endif

0 commit comments

Comments
 (0)