PowerPC64 ELFv2 ABI: structure passing / return
[deliverable/binutils-gdb.git] / ld / scripttempl / tic80coff.sc
index 0d52aaa7487cd287da179bbb5453e34f8b1c9b8a..f28e90490969e51c79cb9f3ab8e59993f30b9971 100644 (file)
@@ -23,7 +23,7 @@ cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 ${LIB_SEARCH_DIRS}
 
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY (${ENTRY})}
 
 SECTIONS
 {
@@ -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.040668 seconds and 4 git commands to generate.