We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f58b027 commit 7fe40a6Copy full SHA for 7fe40a6
hal/riscv64/Makefile
@@ -11,3 +11,8 @@ include hal/$(TARGET_SUFF)/$(TARGET_SUBFAMILY)/Makefile
11
12
CFLAGS += -Ihal/$(TARGET_SUFF) -Ihal/$(TARGET_SUFF)/$(TARGET_SUBFAMILY)
13
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