Update from Eric Norum to include C++ support.

This commit is contained in:
Joel Sherrill
1997-12-20 16:37:29 +00:00
parent f7fa7d76ce
commit 1587af614b
3 changed files with 281 additions and 239 deletions

View File

@@ -73,6 +73,20 @@ SECTIONS {
. = ALIGN (16); . = ALIGN (16);
etext = .; etext = .;
_etext = .; _etext = .;
/*
* 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__ = .;
} >ram } >ram
.data : { .data : {
copy_start = .; copy_start = .;

View File

@@ -78,6 +78,20 @@ SECTIONS {
. = ALIGN (16); . = ALIGN (16);
etext = .; etext = .;
_etext = .; _etext = .;
/*
* 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__ = .;
} >rom } >rom
.data : AT(SIZEOF(.text)) { .data : AT(SIZEOF(.text)) {
copy_start = .; copy_start = .;

View File

@@ -106,6 +106,20 @@ SECTIONS {
. = ALIGN (16); . = ALIGN (16);
etext = .; etext = .;
_etext = .; _etext = .;
/*
* 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__ = .;
} >rom } >rom
.data : { .data : {
copy_start = .; copy_start = .;