From fe79be4a1d66a9fc035192484d395d83ef1c6fe0 Mon Sep 17 00:00:00 2001 From: fincs Date: Wed, 20 Sep 2017 19:52:28 +0200 Subject: [PATCH] Link with -pie (position independent executable) --- buildscripts/lib/switch.specs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/lib/switch.specs b/buildscripts/lib/switch.specs index 025f66fa..77d2670f 100644 --- a/buildscripts/lib/switch.specs +++ b/buildscripts/lib/switch.specs @@ -1,7 +1,7 @@ %rename link old_link *link: -%(old_link) -T switch.ld%s -d --gc-sections +%(old_link) -T switch.ld%s -pie --gc-sections *startfile: switch_crt0%O%s crti%O%s crtbegin%O%s