This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81170] New: powerpc*-linux --enable-default-pie chooses incorrect startup files
- From: "amodra at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Jun 2017 09:15:57 +0000
- Subject: [Bug target/81170] New: powerpc*-linux --enable-default-pie chooses incorrect startup files
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81170
Bug ID: 81170
Summary: powerpc*-linux --enable-default-pie chooses incorrect
startup files
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: amodra at gmail dot com
Target Milestone: ---
Configuring any powerpc linux target with --enable-default-pie gives a broken
compiler that uses crt1.o, crtbegin.o and crtend.o to build a (default) PIE.
This results in binaries with text relocations, and the linker refusing to link
code with ifunc resolvers. The correct selection of startup files for PIEs is
Scrt1.o, crtbeginS.o and crtendS.o (as can be seen when explicitly passing
-pie).