gdb/
[binutils-gdb.git] / ld / scripttempl / mcorepe.sc
index 65f770cabfadded8855b57c083dbfb5b76655f2d..511fdb1f898ecd0485fde5f7753ad5d8471fa6a7 100644 (file)
@@ -40,14 +40,14 @@ if test "$RELOCATING"; then
   # because bash 2.x will lose the doublequotes.
   cat <<EOF
 OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
-                          "${LITTLE_OUTPUT_FORMAT}")}
+                          "${LITTLE_OUTPUT_FORMAT}")
 EOF
 fi
 
 cat <<EOF
 ${LIB_SEARCH_DIRS}
 
-ENTRY(_mainCRTStartup)
+${RELOCATING+ENTRY (_mainCRTStartup)}
 
 SECTIONS
 {
@@ -56,6 +56,7 @@ SECTIONS
     ${RELOCATING+ *(.init)}
     *(.text)
     ${R_TEXT}
+    ${RELOCATING+ *(.text.*)}
     *(.glue_7t)
     *(.glue_7)
     ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ;