]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-elfcomm/elfcomm.exp
2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-elfcomm / elfcomm.exp
index 572931b948943270b603536fa067305787ad2732..c5c75391877023924a35e27f02661b852ee8fcbf 100644 (file)
@@ -181,6 +181,10 @@ proc assembler_generates_commons {} {
     return 1
 }
 
+if [istarget nios2*-*-*] {
+    set CFLAGS "$CFLAGS -G0"
+}
+
 # Explicitly use "-fcommon" so that even if $CFLAGS includes
 # "-fno-common", these tests are compiled as expected.
 if {   ![ld_compile "$CC $CFLAGS -fcommon" $srcdir/$subdir/common1a.c tmpdir/common1a.o]