You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2020/01/29 08:26:15 UTC

[incubator-nuttx] 07/12: Revert "sim: Prefix symbols with _ for non-ELF"

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

jerpelea pushed a commit to branch revert-179-osx-sim
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit f30a644c757bcf322c3a3fa435109d0bc4dee7f8
Author: Alin Jerpelea <al...@sony.com>
AuthorDate: Wed Jan 29 09:26:02 2020 +0100

    Revert "sim: Prefix symbols with _ for non-ELF"
    
    This reverts commit 39bd9ff670e552f33fc11e7513b63b86a75ee542.
---
 arch/sim/src/sim/up_setjmp32.S | 4 ----
 arch/sim/src/sim/up_setjmp64.S | 4 ----
 2 files changed, 8 deletions(-)

diff --git a/arch/sim/src/sim/up_setjmp32.S b/arch/sim/src/sim/up_setjmp32.S
index 13b202e..a1b7284 100644
--- a/arch/sim/src/sim/up_setjmp32.S
+++ b/arch/sim/src/sim/up_setjmp32.S
@@ -46,12 +46,8 @@
 #ifdef __CYGWIN__
 # define SYMBOL(s) _##s
 #else
-#ifdef __ELF__
-# define SYMBOL(s) _##s
-#else
 # define SYMBOL(s) s
 #endif
-#endif
 
 /**************************************************************************
  * Public Functions
diff --git a/arch/sim/src/sim/up_setjmp64.S b/arch/sim/src/sim/up_setjmp64.S
index 0e1063b..af7449a 100644
--- a/arch/sim/src/sim/up_setjmp64.S
+++ b/arch/sim/src/sim/up_setjmp64.S
@@ -81,11 +81,7 @@
 //# define SYMBOL(s) _##s
 # define SYMBOL(s) s
 #else
-#ifdef __ELF__
 # define SYMBOL(s) s
-#else
-# define SYMBOL(s) _##s
-#endif
 #endif
 
 /**************************************************************************