Skip to content

Commit

Permalink
fix ld error with out-of-range 32-bit relocations
Browse files Browse the repository at this point in the history
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
  • Loading branch information
cuiziweizw committed Dec 25, 2024
1 parent 3c1086a commit 1144b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boards/sim/sim/sim/scripts/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ CELFFLAGS += -fno-pic
CXXELFFLAGS += -fno-pic
ifeq ($(CONFIG_LIBC_ARCH_ELF_64BIT),y)
# See the comment on CMODULEFLAGS above.
CELFFLAGS += -mcmodel=large
CXXELFFLAGS += -mcmodel=large
CELFFLAGS += -mcmodel=medium
CXXELFFLAGS += -mcmodel=medium
endif

LDELFFLAGS = -r -e main --gc-sections
Expand Down

0 comments on commit 1144b10

Please sign in to comment.