Add Xtensa port
[deliverable/binutils-gdb.git] / ld / testsuite / ld-scripts / crossref.exp
index fbc315139912cf520fb7175171ec46c8eeeea8cd..4fd81b3de89e47ab87de90e3ede7c395ad3b8f30 100644 (file)
@@ -26,6 +26,13 @@ if { [which $CC] == 0 } {
     return
 }
 
+# Xtensa targets currently default to putting literal values in a separate
+# section and that requires linker script support, so put literals in text.
+global CFLAGS
+if [istarget xtensa*-*-*] {
+    set CFLAGS "$CFLAGS -mtext-section-literals"
+}
+
 if { ![ld_compile $CC "$srcdir/$subdir/cross1.c" tmpdir/cross1.o] \
      || ![ld_compile $CC "$srcdir/$subdir/cross2.c" tmpdir/cross2.o] } {
     unresolved $test1
This page took 0.022984 seconds and 4 git commands to generate.