1 /* Check that GOTPCREL is used to access glob_a. */
2 /* { dg-do compile { target *-*-linux* } } */
3 /* { dg-require-effective-target pie_copyreloc } */
4 /* { dg-options "-O2 -fpie" } */
6 extern int glob_a
__attribute__((weak
));
16 /* weak glob_a should be accessed with a GOTPCREL. */
17 /* { dg-final { scan-assembler "glob_a@GOTPCREL" { target { ! ia32 } } } } */