From f015e33fc4cac3ee7f11aceb08f5d76b1b588111 Mon Sep 17 00:00:00 2001 From: Frederic Konrad Date: Fri, 6 Nov 2020 19:59:51 +0100 Subject: [PATCH] [Ada] sigtramp: fix powerpc64 against -fPIC gcc/ada/ * sigtramp-vxworks-target.inc: Use a local label for the TOC. --- gcc/ada/sigtramp-vxworks-target.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/ada/sigtramp-vxworks-target.inc b/gcc/ada/sigtramp-vxworks-target.inc index f42c872..13601c6 100644 --- a/gcc/ada/sigtramp-vxworks-target.inc +++ b/gcc/ada/sigtramp-vxworks-target.inc @@ -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") \ -- 2.7.4