From 0cd401e6c436adb4a3a1073c4092a57a907b1d24 Mon Sep 17 00:00:00 2001 From: Neale Ferguson Date: Tue, 26 Sep 2023 15:35:16 +1000 Subject: [PATCH] Add -shared flags to SHMODULEFLAGS * boards/sim/sim/sim/scripts/Make.defs - Add -shared flag. Doesn't seem to be required for most architectures but going with the documentation --- boards/sim/sim/sim/scripts/Make.defs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs index faf72f58e5..651600867c 100644 --- a/boards/sim/sim/sim/scripts/Make.defs +++ b/boards/sim/sim/sim/scripts/Make.defs @@ -246,7 +246,7 @@ CMODULEFLAGS += -fno-stack-protector LDMODULEFLAGS = -r -e module_initialize --gc-sections LDMODULEFLAGS += -T $(call CONVERT_PATH,$(TOPDIR)/libs/libc/modlib/gnu-elf.ld) -SHMODULEFLAGS = -Bsymbolic -G -Bdynamic +SHMODULEFLAGS = -shared -Bsymbolic -G -Bdynamic # NuttX modules are ELF binaries. # Non-ELF platforms like macOS need to use a separate ELF toolchain.