From 366c4460034d89bbd4810f02145a31080d2ad0c4 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 16 Apr 2020 21:18:02 +0900 Subject: [PATCH] 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 de82281df0..ec87630c7f 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 02f3dec47e..04f5f97a8d 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 732d9d8df0..28e71128bd 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.