http://sourceware.org/bugzilla/show_bug.cgi?id=14525
Bug #: 14525 Summary: __executable_start isn't defined for PIE Product: binutils Version: 2.23 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sourceware.org ReportedBy: hjl.to...@gmail.com Classification: Unclassified [hjl@gnu-6 foo]$ cat x.c #include <stdio.h> extern void *__executable_start; int main() { printf("%p\n",__executable_start); return 0; } [hjl@gnu-6 foo]$ make gcc -B./ -pie -fPIE -c -o x.o x.c gcc -B./ -pie -fPIE -o x x.o x.o: In function `main': x.c:(.text+0x7): undefined reference to `__executable_start' collect2: error: ld returned 1 exit status make: *** [x] Error 1 [hjl@gnu-6 foo]$ It works with gold. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils