xtensa: gcc: add static PIE support

gcc/
	* config/xtensa/linux.h (LINK_SPEC): Add static-pie.
This commit is contained in:
Max Filippov 2022-08-12 21:02:15 -07:00
parent f5dc9da0a9
commit 9e0c269672

View File

@ -54,9 +54,10 @@ along with GCC; see the file COPYING3. If not see
#define LINK_SPEC \
"%{shared:-shared} \
%{!shared: \
%{!static: \
%{!static:%{!static-pie: \
%{rdynamic:-export-dynamic} \
-dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \
%{static-pie:-static -pie --no-dynamic-linker -z text} \
%{static:-static}} \
%{mabi=windowed:--abi-windowed} \
%{mabi=call0:--abi-call0}"