summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/force386
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-17 23:35:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-17 23:35:54 +0000
commitf86ec4236f27434b93f3a0d902ee34bdde963630 (patch)
tree71094e41be1d85c77a3520fe97527b64e4c7df14 /c/src/lib/libbsp/i386/force386
parentRenamed init.o to exinit.o to avoid naming conflicts with tests. (diff)
downloadrtems-f86ec4236f27434b93f3a0d902ee34bdde963630.tar.bz2
Added .eh_frame, C++ constructor, and C++ destructor sections.
Diffstat (limited to 'c/src/lib/libbsp/i386/force386')
-rw-r--r--c/src/lib/libbsp/i386/force386/startup/linkcmds20
1 files changed, 19 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/i386/force386/startup/linkcmds b/c/src/lib/libbsp/i386/force386/startup/linkcmds
index 53a02ae699..1c15fe1cb8 100644
--- a/c/src/lib/libbsp/i386/force386/startup/linkcmds
+++ b/c/src/lib/libbsp/i386/force386/startup/linkcmds
@@ -24,7 +24,25 @@ SECTIONS
{
_text_start = . ;
*(.text)
- _etext = ALIGN( 0x10 ) ;
+ . = ALIGN (16);
+
+ *(.eh_fram)
+ . = ALIGN (16);
+
+ /*
+ * C++ constructors
+ */
+ __CTOR_LIST__ = .;
+ LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
+ *(.ctors)
+ LONG(0)
+ __CTOR_END__ = .;
+ __DTOR_LIST__ = .;
+ LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
+ *(.dtors)
+ LONG(0)
+ __DTOR_END__ = .;
+ _etext = ALIGN( 0x10 ) ;
}
.data ADDR( .text ) + SIZEOF( .text ):
{