> 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_
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_