summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3240g-eval/dhcpd
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-28 21:58:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-28 21:58:24 +0000
commit0819616be7c980481cd570ce39448d84408d7859 (patch)
tree758d98e071ebf53438273bab0cdc776460d7db3a /nuttx/configs/stm3240g-eval/dhcpd
parent49afb62815da9b34b66a22e41c973504b194258f (diff)
downloadpx4-nuttx-0819616be7c980481cd570ce39448d84408d7859.tar.gz
px4-nuttx-0819616be7c980481cd570ce39448d84408d7859.tar.bz2
px4-nuttx-0819616be7c980481cd570ce39448d84408d7859.zip
Add support for C++ static constructors (at least to a few platforms)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4438 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3240g-eval/dhcpd')
-rw-r--r--nuttx/configs/stm3240g-eval/dhcpd/defconfig6
-rw-r--r--nuttx/configs/stm3240g-eval/dhcpd/ld.script6
2 files changed, 11 insertions, 1 deletions
diff --git a/nuttx/configs/stm3240g-eval/dhcpd/defconfig b/nuttx/configs/stm3240g-eval/dhcpd/defconfig
index 049b8f696..0b6b59ade 100644
--- a/nuttx/configs/stm3240g-eval/dhcpd/defconfig
+++ b/nuttx/configs/stm3240g-eval/dhcpd/defconfig
@@ -390,7 +390,10 @@ CONFIG_HAVE_LIBM=n
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
# debug symbols (needed for use with a debugger).
-# CONFIG_HAVE_CXX - Enable support for C++S
+# CONFIG_HAVE_CXX - Enable support for C++
+# CONFIG_HAVE_CXXINITIALIZE - The platform-specific logic includes support
+# for initialization of static C++ instances for this architecture
+# and for the selected toolchain (via up_cxxinitialize()).
# CONFIG_MM_REGIONS - If the architecture includes multiple
# regions of memory to allocate from, this specifies the
# number of memory regions that the memory manager must
@@ -479,6 +482,7 @@ CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
CONFIG_DEBUG_NET=n
CONFIG_HAVE_CXX=y
+CONFIG_HAVE_CXXINITIALIZE=y
CONFIG_MM_REGIONS=2
CONFIG_ARCH_LOWPUTC=y
CONFIG_RR_INTERVAL=200
diff --git a/nuttx/configs/stm3240g-eval/dhcpd/ld.script b/nuttx/configs/stm3240g-eval/dhcpd/ld.script
index 32aa79e39..48653f322 100644
--- a/nuttx/configs/stm3240g-eval/dhcpd/ld.script
+++ b/nuttx/configs/stm3240g-eval/dhcpd/ld.script
@@ -72,6 +72,12 @@ SECTIONS
_etext = ABSOLUTE(.);
} > flash
+ .init_section : {
+ _sinit = ABSOLUTE(.);
+ *(.init_array .init_array.*)
+ _einit = ABSOLUTE(.);
+ } > flash
+
__exidx_start = ABSOLUTE(.);
.ARM.exidx : {
*(.ARM.exidx*)