diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-04 12:37:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-05-04 12:37:35 +0000 |
commit | 5ee559acd24a4684e862d39c39e904360a79f1a3 (patch) | |
tree | da1a19d41be4f89d60512170e34183e35eab803b /c/src/lib | |
parent | fixed swap of unsigned16 (diff) | |
download | rtems-5ee559acd24a4684e862d39c39e904360a79f1a3.tar.bz2 |
Corrected and added sections to link cleanly under i386-rtemself.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/i386/force386/startup/linkcmds | 79 |
1 files changed, 44 insertions, 35 deletions
diff --git a/c/src/lib/libbsp/i386/force386/startup/linkcmds b/c/src/lib/libbsp/i386/force386/startup/linkcmds index 0165935df3..17756dd5bd 100644 --- a/c/src/lib/libbsp/i386/force386/startup/linkcmds +++ b/c/src/lib/libbsp/i386/force386/startup/linkcmds @@ -22,41 +22,50 @@ SECTIONS { .text 0x0 : { - _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 ) ; - } - .data ADDR( .text ) + SIZEOF( .text ): + _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 ) ; + + + } >RAM + + .init : { *(.init) } >RAM + .fini : { *(.fini) } >RAM + .rodata : { *(.rodata) } >RAM + + .data : { - _data_start = . ; - *(.data) - _edata = ALIGN( 0x10 ) ; - } - .bss ADDR( .data ) + SIZEOF( .data ): + _data_start = . ; + *(.data) + _edata = ALIGN( 0x10 ) ; + } >RAM + + .bss : { - _bss_start = . ; - *(.bss) - *(COMMON) - end = . ; - _end = . ; - __end = . ; - } + _bss_start = . ; + *(.bss) + *(COMMON) + end = . ; + _end = . ; + __end = . ; + } >RAM } |