This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/57409] PIE (-fPIE -pie) prevents any malloc on Solaris 10 sparc


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57409

--- Comment #2 from Christian Jullien <jullien at eligis dot com> ---
Thanks for your quick reply yet it is not totally satisfactory.

1) if gcc does not support pie on solaris 10 sparc (I can accept that), gcc
toolchain should detect this and protest (from ./configure) if PIE can't be
used on a given platform. Using PIE flag should make gcc return an error "PIE
no supported on this platform"

2) at the same time, Todd Miller (sudo developer) was able to use PIE on a very
similar machine (see
http://www.sudo.ws/pipermail/sudo-users/2013-May/005195.html) using gcc 4.8. It
looks there is a way to make gcc work with PIE. This is configure duty to find
this way and/or advice that a configure option is missing in order to support
PIE.

3) I also may have an incorrect ./configure options I'll be glad to fix and
test

Christian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]