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, 2 insertions, 1 deletions
diff --git a/ld/scripttempl/elf32cr16.sc b/ld/scripttempl/elf32cr16.sc
index 61351c5..683420f 100644
--- a/ld/scripttempl/elf32cr16.sc
+++ b/ld/scripttempl/elf32cr16.sc
@@ -1,4 +1,5 @@
# 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.
@@ -12,7 +13,7 @@ cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
-${RELOCATING+ENTRY(${ENTRY})}
+ENTRY(${ENTRY})
/* Define memory regions. */
MEMORY