| 1 |
/* { dg-do compile { target *-*-linux* } } */ |
| 2 |
/* { dg-options "-O2 -fplt -fno-pic -mdirect-extern-access" } */ |
| 3 |
|
| 4 |
extern void foo (void) __attribute__ ((nodirect_extern_access)); |
| 5 |
|
| 6 |
int |
| 7 |
bar (void) |
| 8 |
{ |
| 9 |
foo (); |
| 10 |
return 0; |
| 11 |
} |
| 12 |
|
| 13 |
/* { dg-final { scan-assembler "call\[ \t\]*foo" } } */ |
| 14 |
/* { dg-final { scan-assembler-not "foo@GOTPCREL" { target { ! ia32 } } } } */ |
| 15 |
/* { dg-final { scan-assembler-not "foo@GOT" { target ia32 } } } */ |
| 16 |
/* { dg-final { scan-assembler "\.section\[ \t]+.note.gnu.property," } } */ |
| 17 |
/* { dg-final { scan-assembler "\.long\[ \t]+0xb0008000" } } */ |
| 18 |
|