summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm32f4discovery/scripts/gnu-elf.ld
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-29 19:32:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-29 19:32:05 +0000
commit9e45144d3ad1420908cfdf84306c76f637829023 (patch)
tree63a4ac04f182a282aac2d649973c99285b12cad5 /nuttx/configs/stm32f4discovery/scripts/gnu-elf.ld
parentade5fb42679b7e890f29487ca850c65f9944fa1e (diff)
downloadpx4-nuttx-9e45144d3ad1420908cfdf84306c76f637829023.tar.gz
px4-nuttx-9e45144d3ad1420908cfdf84306c76f637829023.tar.bz2
px4-nuttx-9e45144d3ad1420908cfdf84306c76f637829023.zip
C++ constructors work with ELF load now
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5273 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm32f4discovery/scripts/gnu-elf.ld')
-rw-r--r--nuttx/configs/stm32f4discovery/scripts/gnu-elf.ld14
1 files changed, 8 insertions, 6 deletions
diff --git a/nuttx/configs/stm32f4discovery/scripts/gnu-elf.ld b/nuttx/configs/stm32f4discovery/scripts/gnu-elf.ld
index 0153cf5fa..1f29f02f5 100644
--- a/nuttx/configs/stm32f4discovery/scripts/gnu-elf.ld
+++ b/nuttx/configs/stm32f4discovery/scripts/gnu-elf.ld
@@ -51,8 +51,8 @@ SECTIONS
*/
*(.gnu.linkonce.t.*)
- *(.init)
- *(.fini)
+ *(.init) /* Old ABI */
+ *(.fini) /* Old ABI */
_etext = . ;
}
@@ -86,15 +86,17 @@ SECTIONS
.ctors :
{
- _sctros = . ;
- *(.ctors)
+ _sctors = . ;
+ *(.ctors) /* Old ABI: Unallocated */
+ *(.init_array) /* New ABI: Allocated */
_edtors = . ;
}
- .ctors :
+ .dtors :
{
_sdtors = . ;
- *(.dtors)
+ *(.dtors) /* Old ABI: Unallocated */
+ *(.fini_array) /* New ABI: Allocated */
_edtors = . ;
}