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/mvme147s/startup/linkcmds | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'c/src/lib/libbsp/m68k/mvme147s') diff --git a/c/src/lib/libbsp/m68k/mvme147s/startup/linkcmds b/c/src/lib/libbsp/m68k/mvme147s/startup/linkcmds index 60d2c762ce..bf5b3a31ae 100644 --- a/c/src/lib/libbsp/m68k/mvme147s/startup/linkcmds +++ b/c/src/lib/libbsp/m68k/mvme147s/startup/linkcmds @@ -29,6 +29,24 @@ SECTIONS text_start = . ; _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 ) ; _etext = .; } -- cgit v1.2.3