[ARC] Fix ld testsuite failures.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-scripts / crossref.exp
index 293b2a3b63028f1bbfff83e7f0491e7b16118d31..7244b90c5640f76154e78dcefbb7f28499dd85e7 100644 (file)
@@ -1,6 +1,6 @@
 # Test NOCROSSREFS in a linker script.
 # By Ian Lance Taylor, Cygnus Support.
-#   Copyright (C) 2000-2015 Free Software Foundation, Inc.
+#   Copyright (C) 2000-2016 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
@@ -79,6 +79,11 @@ if [istarget sh64*-*-elf] {
     set flags "-mshelf32"
 }
 
+# arc-elf32 requires the symbol __SDATA_BEGIN__ to always be present.
+if [istarget arc*-*-elf32] {
+    set flags "$flags --defsym=__SDATA_BEGIN__=0"
+}
+
 # IA64 has both ordered and unordered sections in an input file.
 setup_xfail ia64-*-*
 
This page took 0.03959 seconds and 4 git commands to generate.