From 5ee559acd24a4684e862d39c39e904360a79f1a3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 4 May 1998 12:37:35 +0000 Subject: Corrected and added sections to link cleanly under i386-rtemself. --- c/src/lib/libbsp/i386/force386/startup/linkcmds | 79 ++++++++++++++----------- 1 file changed, 44 insertions(+), 35 deletions(-) (limited to 'c/src/lib/libbsp/i386/force386') 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 } -- cgit v1.2.3