Use ${CONSTRUCTING...} to enclose constructors and destructors.
[deliverable/binutils-gdb.git] / ld / scripttempl / h8500b.sc
index ef5fa2c488ab54497cfbae04c803c3371664d27a..a64eebcfa5e5a8b2dfaf4df06376f4d4625972ec 100644 (file)
@@ -1,3 +1,11 @@
+TORS="
+    ___ctors = . ;
+    *(.ctors)
+    ___ctors_end = . ;
+    ___dtors = . ;
+    *(.dtors)
+    ___dtors_end = . ;"
+
 cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}")
 OUTPUT_ARCH(${ARCH})
@@ -24,13 +32,9 @@ SECTIONS
        {
        *(.rdata); 
          *(.strings)
-       ___ctors = . ;
-       *(.ctors)
-       ___ctors_end = . ;
-       ___dtors = . ;
-       *(.dtors)
-       ___dtors_end = . ;
-} 
+         
+       ${CONSTRUCTING+${TORS}}
+       } 
 
 .bss  ${RELOCATING+ 0x40000} :
        {
This page took 0.02271 seconds and 4 git commands to generate.