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).