aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf32crx.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/elf32crx.sc')
-rw-r--r--ld/scripttempl/elf32crx.sc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ld/scripttempl/elf32crx.sc b/ld/scripttempl/elf32crx.sc
index 94b8644..c320bda 100644
--- a/ld/scripttempl/elf32crx.sc
+++ b/ld/scripttempl/elf32crx.sc
@@ -1,5 +1,4 @@
# Linker Script for National Semiconductor's CRX-ELF32.
-test -z "$RELOCATING" && exit 0
# The next line should be uncommented if it is desired to link
# without libstart.o and directly enter main.
@@ -13,7 +12,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
-ENTRY(${ENTRY})
+${RELOCATING+ENTRY(${ENTRY})}
/* Define memory regions. */
MEMORY