forked from Imagelibrary/rtems
Update from Eric Norum to include C++ support.
This commit is contained in:
@@ -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 = .;
|
||||||
|
|||||||
@@ -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 = .;
|
||||||
|
|||||||
@@ -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 = .;
|
||||||
|
|||||||
Reference in New Issue
Block a user