nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gn...@apache.org
Subject [incubator-nuttx] 03/03: sim: Provide MODULESTRIP for macOS
Date Thu, 16 Apr 2020 22:04:21 GMT
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 <yamamoto@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.


Mime
View raw message