diff options
Diffstat (limited to 'trunk/testsuite/reloc2lib2.c')
-rw-r--r-- | trunk/testsuite/reloc2lib2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/trunk/testsuite/reloc2lib2.c b/trunk/testsuite/reloc2lib2.c new file mode 100644 index 0000000..094daad --- /dev/null +++ b/trunk/testsuite/reloc2lib2.c @@ -0,0 +1,15 @@ +extern int f1 (int dummy); + +int f2 (int add) +{ + if (add) + return f1 (0) + 26; + return f1 (0); +} + +/* Make sure conflict in f3 is not against read-only segment. */ +asm (".section trampoline, \"awx\"; .previous"); +void * __attribute__((section ("trampoline"))) f3 (void) +{ + return (void *) f3; +} |