summaryrefslogtreecommitdiff
path: root/nuttx/binfmt/libelf
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/binfmt/libelf')
-rw-r--r--nuttx/binfmt/libelf/gnu-elf.ld16
1 files changed, 9 insertions, 7 deletions
diff --git a/nuttx/binfmt/libelf/gnu-elf.ld b/nuttx/binfmt/libelf/gnu-elf.ld
index bdf82836b..b2a3dc113 100644
--- a/nuttx/binfmt/libelf/gnu-elf.ld
+++ b/nuttx/binfmt/libelf/gnu-elf.ld
@@ -1,5 +1,5 @@
/****************************************************************************
- * examples/elf/gnu-elf.ld
+ * binfmt/libelf/gnu-elf.ld
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -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 = . ;
}