* gas/all/assign.s: New.
[deliverable/binutils-gdb.git] / ld / scripttempl / tic80coff.sc
index 0d52aaa7487cd287da179bbb5453e34f8b1c9b8a..2b6f6534aaba3d0411f27891e54284ee0c501d21 100644 (file)
@@ -31,19 +31,26 @@ SECTIONS
     *(.init)
     *(.fini)
     *(.text)
+  }
+  .const ALIGN(4) : {
+    *(.const)
+  }
+  .ctors ALIGN(4) : {
     ${CONSTRUCTING+ . = ALIGN(4);}
     ${CONSTRUCTING+ ___CTOR_LIST__ = .;}
-    ${CONSTRUCTING+ LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2)}
-    ${CONSTRUCTING+ *(.ctors)}
-    ${CONSTRUCTING+ LONG(0)}
+    ${CONSTRUCTING+ LONG(-1)}
+    *(.ctors)
     ${CONSTRUCTING+ ___CTOR_END__ = .;}
+    ${CONSTRUCTING+ LONG(0)}
+  }
+  .dtors ALIGN(4) : {
     ${CONSTRUCTING+ ___DTOR_LIST__ = .;}
-    ${CONSTRUCTING+ LONG((___DTOR_END__ - ___DTOR_LIST__) / 4 - 2)}
+    ${CONSTRUCTING+ LONG(-1)}
     ${CONSTRUCTING+ *(.dtors)}
-    ${CONSTRUCTING+ LONG(0)}
     ${CONSTRUCTING+ ___DTOR_END__ = .;}
-    ${RELOCATING+ etext  =  .;}
+    ${CONSTRUCTING+ LONG(0)}
   }
+  ${RELOCATING+ etext  =  .;}
   .data : {
     *(.data)
     ${RELOCATING+ __edata  =  .};
This page took 0.022875 seconds and 4 git commands to generate.