Include big endian and little endian formats in OUTPUT_FORMAT directive.
[deliverable/binutils-gdb.git] / ld / scripttempl / a29k.sc
index a43a5ebb7df281aad36b6482786358343d246cd1..2825b1e83ea5296df32e1e31d56f9778ae058a86 100644 (file)
@@ -1,38 +1,37 @@
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
-INPUT(/lab3/u3/sym1/tools/usr/lib/segments.o) /* Has .rstack/.mstack */ 
 ${LIB_SEARCH_DIRS}
 
-MEMORY {
-       text    : ORIGIN = 0x1000000, LENGTH = 0x1000000
-       talias  : ORIGIN = 0x2000000, LENGTH = 0x1000000
-       data    : ORIGIN = 0x3000000, LENGTH = 0x1000000
-       mstack  : ORIGIN = 0x4000000, LENGTH = 0x1000000
-       rstack  : ORIGIN = 0x5000000, LENGTH = 0x1000000
-}
 SECTIONS
 {
   .text : {
     *(.text)
     ${RELOCATING+ __etext  =  .};
+    ${CONSTRUCTING+ __CTOR_LIST__ = .;}
+    ${CONSTRUCTING+ LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)}
+    ${CONSTRUCTING+ *(.ctors)}
+    ${CONSTRUCTING+ LONG(0)}
+    ${CONSTRUCTING+ __CTOR_END__ = .;}
+    ${CONSTRUCTING+ __DTOR_LIST__ = .;}
+    ${CONSTRUCTING+ LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)}
+    ${CONSTRUCTING+ *(.dtors)}
+    ${CONSTRUCTING+ LONG(0)}
+    ${CONSTRUCTING+ __DTOR_END__ = .;}
     *(.lit)
     *(.shdata)
-  } ${RELOCATING+ > text}
+  }
   .shbss SIZEOF(.text) + ADDR(.text) : {
     *(.shbss)
   } 
-  .talias :     { } ${RELOCATING+ > talias}
   .data  : {
     *(.data)
     ${RELOCATING+ __edata  =  .};
-  } ${RELOCATING+ > data}
+  }
   .bss   SIZEOF(.data) + ADDR(.data) :
   {                                    
    *(.bss)
    *(COMMON)
      ${RELOCATING+ __end = ALIGN(0x8)};
   }
-  .mstack  : { } ${RELOCATING+ > mstack}
-  .rstack  : { } ${RELOCATING+ > rstack}
 }
 EOF
This page took 0.023798 seconds and 4 git commands to generate.