summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/force386
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-04 12:37:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-04 12:37:35 +0000
commit5ee559acd24a4684e862d39c39e904360a79f1a3 (patch)
treeda1a19d41be4f89d60512170e34183e35eab803b /c/src/lib/libbsp/i386/force386
parentfixed swap of unsigned16 (diff)
downloadrtems-5ee559acd24a4684e862d39c39e904360a79f1a3.tar.bz2
Corrected and added sections to link cleanly under i386-rtemself.
Diffstat (limited to 'c/src/lib/libbsp/i386/force386')
-rw-r--r--c/src/lib/libbsp/i386/force386/startup/linkcmds79
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
}