]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/scripttempl/epocpe.sc
Merge commit 'upstream/2.20'
[msp430-binutils.git] / ld / scripttempl / epocpe.sc
index eda6696b59ab43e0d8d207632e51d2061bb20553..0651c017008b18fe20efad8405e5ffb53b5f09c6 100644 (file)
@@ -41,7 +41,7 @@ ${RELOCATING-OUTPUT_FORMAT(${RELOCATEABLE_OUTPUT_FORMAT})}
 
 ${LIB_SEARCH_DIRS}
 
-ENTRY(_mainCRTStartup)
+${RELOCATING+ENTRY (_mainCRTStartup)}
 
 SECTIONS
 {
@@ -52,6 +52,7 @@ SECTIONS
     ${R_TEXT}
     *(.glue_7t)
     *(.glue_7)
+    ${RELOCATING+ *(.text.*)}
     ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; 
                        LONG (-1); *(.ctors); *(.ctor); LONG (0); }
     ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ;