binutils-gdb/ld/testsuite/ld-elfweak/weakref2.c

3 lines
82 B
C

extern int weaksym2;
int *psym2 __attribute__ ((section (".data1"))) = &weaksym2;