Re: [PATCH v2] sparc/sparc64: use crtendS.o for default-pie executables [PR96190]

2020-07-20 Thread Sergei Trofimovich via Gcc-patches
On Fri, 17 Jul 2020 10:19:41 +0200 Eric Botcazou wrote: > > Oh! Sent out v3 with tweaked description as > > https://gcc.gnu.org/pipermail/gcc-patches/2020-July/550168.html > > Thanks. > > > I don't have a push access to gcc tree. Should I request one via > > https://sourceware.org/cgi

Re: [PATCH v2] sparc/sparc64: use crtendS.o for default-pie executables [PR96190]

2020-07-17 Thread Eric Botcazou
> Oh! Sent out v3 with tweaked description as > https://gcc.gnu.org/pipermail/gcc-patches/2020-July/550168.html Thanks. > I don't have a push access to gcc tree. Should I request one via > https://sourceware.org/cgi-bin/pdw/ps_form.cgi ? Sure, you can put me (ebotca...@libertysurf.fr) as

Re: [PATCH v2] sparc/sparc64: use crtendS.o for default-pie executables [PR96190]

2020-07-16 Thread Sergei Trofimovich via Gcc-patches
On Wed, 15 Jul 2020 13:46:12 +0200 Eric Botcazou wrote: > > This should be: > > > > PR target/96190 > > * config/sparc/linux.h (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC > > to get crtendS.o for !no-pie mode. > > * config/sparc/linux64.h(ENDFILE_SPEC): Ditto. > > *

Re: [PATCH v2] sparc/sparc64: use crtendS.o for default-pie executables [PR96190]

2020-07-15 Thread Eric Botcazou
> This should be: > > PR target/96190 > * config/sparc/linux.h (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC > to get crtendS.o for !no-pie mode. > * config/sparc/linux64.h(ENDFILE_SPEC): Ditto. * config/sparc/linux64.h (ENDFILE_SPEC): Ditto. > OK for mainline

Re: [PATCH v2] sparc/sparc64: use crtendS.o for default-pie executables [PR96190]

2020-07-15 Thread Eric Botcazou
> In --enable-default-pie mode compiler should switch from > using crtend.o to crtendS.o. On sparc it is especially important > because crtend.o contains PIC-unfriendly code. > > We use GNU_USER_TARGET_ENDFILE_SPEC as a baseline spec to get > crtendS.o instead of crtend.o in !no-pie mode. > > gcc

[PATCH v2] sparc/sparc64: use crtendS.o for default-pie executables [PR96190]

2020-07-14 Thread Sergei Trofimovich via Gcc-patches
From: Sergei Trofimovich In --enable-default-pie mode compiler should switch from using crtend.o to crtendS.o. On sparc it is especially important because crtend.o contains PIC-unfriendly code. We use GNU_USER_TARGET_ENDFILE_SPEC as a baseline spec to get crtendS.o instead of crtend.o in !no-pie