Skip to content

Commit

Permalink
Revert "sim/m64:Fix ld error with .rodata can not be used when making…
Browse files Browse the repository at this point in the history
… a PIE o…"

This reverts commit 4253001.
  • Loading branch information
cuiziwei1 authored Nov 17, 2024
1 parent 707f0ce commit b632aa6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions boards/sim/sim/sim/scripts/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,6 @@ ifeq ($(CONFIG_SIM_M32),y)
LDMODULEFLAGS += -melf_i386
SHMODULEFLAGS += -melf_i386
LDELFFLAGS += -melf_i386
else ifeq ($(CONFIG_HOST_MACOS),)
# To compile 64-bit Sim, adding no-pie is necessary to prevent linking errors
# but this may cause other issues on Ubuntu 20.
ARCHCFLAGS += -no-pie
ARCHPICFLAGS += -no-pie
LDFLAGS += -Wl,-no-pie
endif

ifeq ($(CONFIG_HOST_LINUX),y)
Expand Down

0 comments on commit b632aa6

Please sign in to comment.