aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/elf32cr16.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/elf32cr16.sc')
-rw-r--r--ld/scripttempl/elf32cr16.sc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ld/scripttempl/elf32cr16.sc b/ld/scripttempl/elf32cr16.sc
index 683420f..61351c5 100644
--- a/ld/scripttempl/elf32cr16.sc
+++ b/ld/scripttempl/elf32cr16.sc
@@ -1,5 +1,4 @@
# Linker Script for National Semiconductor's CR16-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