summaryrefslogtreecommitdiffstats
path: root/testsuite/reloc5.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/reloc5.c')
-rw-r--r--testsuite/reloc5.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/reloc5.c b/testsuite/reloc5.c
index c1bc199..6c1b3c9 100644
--- a/testsuite/reloc5.c
+++ b/testsuite/reloc5.c
@@ -14,5 +14,9 @@ int main (void)
printf (" for (x = 0; x < 16384; ++x)\n");
printf (" if (testzero[x]) abort ();\n");
printf (" exit (0);\n}\n\n");
+ printf ("#ifdef __arm__\n");
+ printf ("asm (\".section nonalloced,\\\"aw\\\",%%nobits; testzero: .skip 16384\");\n");
+ printf ("#else\n");
printf ("asm (\".section nonalloced,\\\"aw\\\",@nobits; testzero: .skip 16384\");\n");
+ printf ("#endif\n");
}