Initialize Tizen 2.3
[external/prelink.git] / testsuite / shuffle9.c
1 #include "reloc1.h"
2 #include <stdlib.h>
3
4 extern char testzero[16384];
5
6 int main()
7 {
8   int i;
9   if (foo.a != 1 || foo.b != &foo || foo.c != &bar || bar != 26)
10     abort ();
11   if (f1 () != 11 || f2 () != 12)
12     abort ();
13   for (i = 0; i < 16384; ++i)
14     if (testzero[i])
15       abort ();
16   exit (0);
17 }
18
19 asm (".section nonalloced,\"aw\",@nobits\n\t"
20      ".globl testzero\n\t"
21      "testzero: .skip 16384\n\t"
22      ".previous\n");
23
24 asm (".section \".note.PRELINK.1\", \"a\"\n\t"
25      ".balign 4\n\t"
26      ".long 1f - 0f\n\t"
27      ".long 3f - 2f\n\t"
28      ".long 1\n"
29  "0:\t.asciz \"PRELINK\"\n"
30  "1:\t.balign 4\n"
31  "2:\t.long 12\n\t"
32      ".long 17\n"
33  "3:\t.balign 4\n\t"
34      ".previous\n");
35
36 asm (".section \".note.PRELINK.2\", \"a\"\n\t"
37      ".balign 4\n\t"
38      ".long 1f - 0f\n\t"
39      ".long 3f - 2f\n\t"
40      ".long 2\n"
41  "0:\t.asciz \"PRELINK\"\n"
42  "1:\t.balign 4\n"
43  "2:\t.long 12\n\t"
44      ".long 17\n"
45  "3:\t.balign 4\n\t"
46      ".previous\n");
47
48 asm (".section \".note.PRELINK.3\", \"a\"\n\t"
49      ".balign 4\n\t"
50      ".long 1f - 0f\n\t"
51      ".long 3f - 2f\n\t"
52      ".long 3\n"
53  "0:\t.asciz \"PRELINK\"\n"
54  "1:\t.balign 4\n"
55  "2:\t.long 12\n\t"
56      ".long 17\n"
57  "3:\t.balign 4\n\t"
58      ".previous\n");