Link with -pie (position independent executable)

This commit is contained in:
fincs 2017-09-20 19:52:28 +02:00
parent e31c140ca8
commit fe79be4a1d

View File

@ -1,7 +1,7 @@
%rename link old_link %rename link old_link
*link: *link:
%(old_link) -T switch.ld%s -d --gc-sections %(old_link) -T switch.ld%s -pie --gc-sections
*startfile: *startfile:
switch_crt0%O%s crti%O%s crtbegin%O%s switch_crt0%O%s crti%O%s crtbegin%O%s