This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new f03da09122 Revert "sim/m64:Fix ld error with .rodata can not be used 
when making a PIE o…"
f03da09122 is described below

commit f03da0912267fae1545ee0be6b605db7a3e58996
Author: ska <62007561+cuiziw...@users.noreply.github.com>
AuthorDate: Sun Nov 17 10:29:41 2024 +0800

    Revert "sim/m64:Fix ld error with .rodata can not be used when making a PIE 
o…"
    
    This reverts commit 4253001656c07da4372317680baa77d52b249cf1.
---
 boards/sim/sim/sim/scripts/Make.defs | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/boards/sim/sim/sim/scripts/Make.defs 
b/boards/sim/sim/sim/scripts/Make.defs
index 98eced7bd5..db49e7da2c 100644
--- a/boards/sim/sim/sim/scripts/Make.defs
+++ b/boards/sim/sim/sim/scripts/Make.defs
@@ -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)

Reply via email to