aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/ip2k.sc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/scripttempl/ip2k.sc')
-rw-r--r--ld/scripttempl/ip2k.sc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/scripttempl/ip2k.sc b/ld/scripttempl/ip2k.sc
index 53ec829..6aa1f42 100644
--- a/ld/scripttempl/ip2k.sc
+++ b/ld/scripttempl/ip2k.sc
@@ -4,6 +4,9 @@
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
+# Using an empty script for ld -r is better than mashing together
+# sections. This hack likely leaves ld -Ur broken.
+test -n "${RELOCATING}" || exit 0
cat << EOF
/* Copyright (C) 2014-2018 Free Software Foundation, Inc.