This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix ppc32 -pie handling
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Alan Modra <amodra at bigpond dot net dot au>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Feb 2005 11:31:30 -0500
- Subject: Re: [PATCH] Fix ppc32 -pie handling
- References: <20050211155720.GH15935@devserv.devel.redhat.com>
>>>>> Jakub Jelinek writes:
Jakub> GCC on powerpc-*-linux* with -pie uses incorrectly crtend.o instead
Jakub> of crtendS.o and results in text relocations.
Jakub> The following fixes it and cleans it up. Bootstrapped/regtested
Jakub> on {ppc,ppc64}-redhat-linux.
Jakub> Ok for HEAD/3.4?
Jakub> 2005-02-11 Jakub Jelinek <jakub@redhat.com>
Jakub> * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
Jakub> crtend.o if -pie. Use %{x:a;:b} spec syntax.
Yes, this is okay everywhere. We already use this syntax and
rhythm elsewhere such as STARTFILE_LINUX_SPEC.
Thanks, David