From f86ec4236f27434b93f3a0d902ee34bdde963630 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 17 Feb 1998 23:35:54 +0000 Subject: Added .eh_frame, C++ constructor, and C++ destructor sections. --- c/src/lib/libbsp/m68k/mvme162/startup/linkcmds | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'c/src/lib/libbsp/m68k/mvme162/startup') diff --git a/c/src/lib/libbsp/m68k/mvme162/startup/linkcmds b/c/src/lib/libbsp/m68k/mvme162/startup/linkcmds index e754786917..d8fe8d9808 100644 --- a/c/src/lib/libbsp/m68k/mvme162/startup/linkcmds +++ b/c/src/lib/libbsp/m68k/mvme162/startup/linkcmds @@ -31,6 +31,24 @@ SECTIONS { text_start = . ; *(.text) + . = 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 ): -- cgit v1.2.3