Skip to content

Commit

Permalink
riscv64/Makefile: disable gp relaxations
Browse files Browse the repository at this point in the history
JIRA: RTOS-912
  • Loading branch information
badochov committed Sep 24, 2024
1 parent 81985ac commit 1932c0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hal/riscv64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ include hal/$(TARGET_SUFF)/$(TARGET_SUBFAMILY)/Makefile

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

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

0 comments on commit 1932c0f

Please sign in to comment.