[Ada] sigtramp: fix powerpc64 against -fPIC
authorFrederic Konrad <konrad@adacore.com>
Fri, 6 Nov 2020 18:59:51 +0000 (19:59 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 7 May 2021 09:28:53 +0000 (05:28 -0400)
gcc/ada/

* sigtramp-vxworks-target.inc: Use a local label for the TOC.

gcc/ada/sigtramp-vxworks-target.inc

index f42c872..13601c6 100644 (file)
@@ -319,9 +319,9 @@ TCR("blr")
 #else
 #define SIGTRAMP_BODY \
 CR("") \
-TCR("0:") \
-TCR("addis 2,12,.TOC.-0@ha") \
-TCR("addi 2,2,.TOC.-0@l") \
+TCR(".LOC_SIGTMP_COM_0:") \
+TCR("addis 2,12,.TOC.-.LOC_SIGTMP_COM_0@ha") \
+TCR("addi 2,2,.TOC.-.LOC_SIGTMP_COM_0@l") \
 TCR(".localentry       __gnat_sigtramp_common,.-__gnat_sigtramp_common") \
 TCR("# Allocate frame and save the non-volatile") \
 TCR("# registers we're going to modify") \