Added .eh_frame, C++ constructor, and C++ destructor sections.

This commit is contained in:
Joel Sherrill
1998-02-17 23:35:54 +00:00
parent 818c361b94
commit f86ec4236f
17 changed files with 251 additions and 1 deletions

View File

@@ -80,6 +80,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 = .;
__CTOR_LIST__ = .;