[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/14525] New: __executable_start isn't defined for PIE
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/14525] New: __executable_start isn't defined for PIE |
Date: |
Tue, 28 Aug 2012 13:33:52 +0000 |
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: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
address@hidden foo]$ cat x.c
#include <stdio.h>
extern void *__executable_start;
int main() {
printf("%p\n",__executable_start);
return 0;
}
address@hidden 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
address@hidden 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 ld/14525] New: __executable_start isn't defined for PIE,
hjl.tools at gmail dot com <=