diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-25 06:09:09 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-25 06:09:09 -0600 |
commit | 1e99dad5062b59b68ab9d1750ba538e59c53c775 (patch) | |
tree | 701115c3405399ab53fba5211023306bdd5e3daa /nuttx/configs/sim/cxxtest | |
parent | 4179db2f63d8cd02b8e5dd844ed8fa66fd6b443e (diff) | |
download | px4-nuttx-1e99dad5062b59b68ab9d1750ba538e59c53c775.tar.gz px4-nuttx-1e99dad5062b59b68ab9d1750ba538e59c53c775.tar.bz2 px4-nuttx-1e99dad5062b59b68ab9d1750ba538e59c53c775.zip |
Add build support for ELF modules. Useless at the moment because there is no x86 relocation logic
Diffstat (limited to 'nuttx/configs/sim/cxxtest')
-rw-r--r-- | nuttx/configs/sim/cxxtest/Make.defs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nuttx/configs/sim/cxxtest/Make.defs b/nuttx/configs/sim/cxxtest/Make.defs index 6ef9cb83f..96b6351d7 100644 --- a/nuttx/configs/sim/cxxtest/Make.defs +++ b/nuttx/configs/sim/cxxtest/Make.defs @@ -82,6 +82,20 @@ CXXFLAGS = $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) \ CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) AFLAGS = $(CFLAGS) -D__ASSEMBLY__ + +# ELF module definitions + +CELFFLAGS = $(CFLAGS) +CXXELFFLAGS = $(CXXFLAGS) + +LDELFFLAGS = -r -e main +ifeq ($(WINTOOL),y) + LDELFFLAGS += -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/gnu-elf.ld}" +else + LDELFFLAGS += -T $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/gnu-elf.ld +endif + + OBJEXT = .o LIBEXT = .a |