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 target/81170] New: powerpc*-linux --enable-default-pie chooses incorrect startup files


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

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