mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 03:03:31 +08:00
11cba4accf
ld/ PR ld/14525 * scripttempl/elf.sc: Also provide __executable_start for PIE. ld/testsuite/ PR ld/14525 * ld-elf/elf.exp: Run pr14525. * ld-elf/pr14525.c: New. * ld-elf/pr14525.out: Likewise.
12 lines
149 B
C
12 lines
149 B
C
#include <stdio.h>
|
|
|
|
extern void *__executable_start;
|
|
|
|
int
|
|
main()
|
|
{
|
|
if ((void **) &main >= &__executable_start)
|
|
printf ("OK\n");
|
|
return 0;
|
|
}
|