Bug 31942 - -fPIE -pie executable SEGV before main()
Summary: -fPIE -pie executable SEGV before main()
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.1.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-15 19:27 UTC by lamont
Modified: 2007-06-02 00:13 UTC (History)
1 user (show)

See Also:
Host: hppa-linux-gnu
Target: hppa-linux-gnu
Build: hppa-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lamont 2007-05-15 19:27:18 UTC
On hppa, using either of the following gcc's (Debian sid and Ubuntu feisty):
  gcc version 4.1.3 20070429 (prerelease) (Debian 4.1.2-6)
  gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4hppa1)

results in the following:
  % cat xx.c; gcc -pie -fPIC -fPIE xx.c && ./a.out
  int main(int n,const**p) { ; return 0; }
  Segmentation fault

gcc version 4.1.2 20061115 seems ok
Comment 1 Andrew Pinski 2007-05-15 19:44:51 UTC
THis is more likely the dyanmic load's fault rather than GCC's.
Comment 3 John David Anglin 2007-06-02 00:13:24 UTC
After some discussion on the parisc-linux list, this bug was determined
to be in _start.  This is pure assembly code and part of glibc.  Therefore,
this is not a GCC bug.