You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/16 22:04:21 UTC

[incubator-nuttx] 03/03: sim: Provide MODULESTRIP for macOS

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

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

commit 366c4460034d89bbd4810f02145a31080d2ad0c4
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Apr 16 21:18:02 2020 +0900

    sim: Provide MODULESTRIP for macOS
---
 boards/sim/sim/sim/configs/cxxtest/Make.defs | 1 +
 boards/sim/sim/sim/configs/nsh2/Make.defs    | 1 +
 boards/sim/sim/sim/scripts/Make.defs         | 1 +
 3 files changed, 3 insertions(+)

diff --git a/boards/sim/sim/sim/configs/cxxtest/Make.defs b/boards/sim/sim/sim/configs/cxxtest/Make.defs
index de82281..ec87630 100644
--- a/boards/sim/sim/sim/configs/cxxtest/Make.defs
+++ b/boards/sim/sim/sim/configs/cxxtest/Make.defs
@@ -96,6 +96,7 @@ ifeq ($(CONFIG_HOST_MACOS),y)
   # eg. brew install x86_64-elf-gcc
   MODULECC = x86_64-elf-gcc
   MODULELD = x86_64-elf-ld
+  MODULESTRIP = x86_64-elf-strip --strip-unneeded
   # It seems macOS/x86_64 loads the program text around 00000001_xxxxxxxx.
   # The gcc default (-mcmodel=small) would produce out-of-range 32-bit
   # relocations.
diff --git a/boards/sim/sim/sim/configs/nsh2/Make.defs b/boards/sim/sim/sim/configs/nsh2/Make.defs
index 02f3dec..04f5f97 100644
--- a/boards/sim/sim/sim/configs/nsh2/Make.defs
+++ b/boards/sim/sim/sim/configs/nsh2/Make.defs
@@ -88,6 +88,7 @@ ifeq ($(CONFIG_HOST_MACOS),y)
   # eg. brew install x86_64-elf-gcc
   MODULECC = x86_64-elf-gcc
   MODULELD = x86_64-elf-ld
+  MODULESTRIP = x86_64-elf-strip --strip-unneeded
   # It seems macOS/x86_64 loads the program text around 00000001_xxxxxxxx.
   # The gcc default (-mcmodel=small) would produce out-of-range 32-bit
   # relocations.
diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs
index 732d9d8..28e7112 100644
--- a/boards/sim/sim/sim/scripts/Make.defs
+++ b/boards/sim/sim/sim/scripts/Make.defs
@@ -98,6 +98,7 @@ ifeq ($(CONFIG_HOST_MACOS),y)
   # eg. brew install x86_64-elf-gcc
   MODULECC = x86_64-elf-gcc
   MODULELD = x86_64-elf-ld
+  MODULESTRIP = x86_64-elf-strip --strip-unneeded
   # It seems macOS/x86_64 loads the program text around 00000001_xxxxxxxx.
   # The gcc default (-mcmodel=small) would produce out-of-range 32-bit
   # relocations.