forked from Imagelibrary/rtems
Corrected and added sections to link cleanly under i386-rtemself.
This commit is contained in:
@@ -22,41 +22,50 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
.text 0x0 :
|
.text 0x0 :
|
||||||
{
|
{
|
||||||
_text_start = . ;
|
_text_start = . ;
|
||||||
*(.text)
|
*(.text)
|
||||||
. = ALIGN (16);
|
. = ALIGN (16);
|
||||||
|
|
||||||
*(.eh_fram)
|
*(.eh_fram)
|
||||||
. = ALIGN (16);
|
. = ALIGN (16);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* C++ constructors
|
* C++ constructors
|
||||||
*/
|
*/
|
||||||
__CTOR_LIST__ = .;
|
__CTOR_LIST__ = .;
|
||||||
LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
|
LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)
|
||||||
*(.ctors)
|
*(.ctors)
|
||||||
LONG(0)
|
LONG(0)
|
||||||
__CTOR_END__ = .;
|
__CTOR_END__ = .;
|
||||||
__DTOR_LIST__ = .;
|
|
||||||
LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
|
__DTOR_LIST__ = .;
|
||||||
*(.dtors)
|
LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)
|
||||||
LONG(0)
|
*(.dtors)
|
||||||
__DTOR_END__ = .;
|
LONG(0)
|
||||||
_etext = ALIGN( 0x10 ) ;
|
__DTOR_END__ = .;
|
||||||
}
|
_etext = ALIGN( 0x10 ) ;
|
||||||
.data ADDR( .text ) + SIZEOF( .text ):
|
|
||||||
|
|
||||||
|
} >RAM
|
||||||
|
|
||||||
|
.init : { *(.init) } >RAM
|
||||||
|
.fini : { *(.fini) } >RAM
|
||||||
|
.rodata : { *(.rodata) } >RAM
|
||||||
|
|
||||||
|
.data :
|
||||||
{
|
{
|
||||||
_data_start = . ;
|
_data_start = . ;
|
||||||
*(.data)
|
*(.data)
|
||||||
_edata = ALIGN( 0x10 ) ;
|
_edata = ALIGN( 0x10 ) ;
|
||||||
}
|
} >RAM
|
||||||
.bss ADDR( .data ) + SIZEOF( .data ):
|
|
||||||
|
.bss :
|
||||||
{
|
{
|
||||||
_bss_start = . ;
|
_bss_start = . ;
|
||||||
*(.bss)
|
*(.bss)
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
end = . ;
|
end = . ;
|
||||||
_end = . ;
|
_end = . ;
|
||||||
__end = . ;
|
__end = . ;
|
||||||
}
|
} >RAM
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user