Re: [PATCH] sparc/sparc64: use PIE_SPEC to select crtendS.o [PR96190]

2020-07-14 Thread Eric Botcazou
> In --enable-default-pie mode compiler should switch from > using crtend.o to crtendS.o. On sparc it is especially visible > because crtend.o contains PIC-unfriendly code. Let's use GNU_USER_TARGET_ENDFILE_SPEC in ENDFILE_SPEC since we presumably use GNU_USER_TARGET_STARTFILE_SPEC for STARTFILE_

[PATCH] sparc/sparc64: use PIE_SPEC to select crtendS.o [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 visible because crtend.o contains PIC-unfriendly code. gcc: 2020-07-14 Sergei Trofimovich PR driver/96190 * config/sparc/linux.h: Use PIE_