From cbe421bd45d1994524b7312ab521dcc8b51cbfc6 Mon Sep 17 00:00:00 2001 From: Johannes Kliemann Date: Mon, 25 Oct 2021 13:53:59 +0000 Subject: [PATCH] [Ada] Add gcc specs with vxworks7 base addresses for cert gcc/ada/ * vxworks7-cert-rtp-link.spec: Replace the definition of __wrs_rtp_base with the base_link spec. * vxworks7-cert-rtp-base-link.spec: Add base_link spec with __wrs_rtp_base definition for all architectures. * vxworks7-cert-rtp-base-link__ppc64.spec: Add base_link spec with __wrs_rtp_base definition for ppc64. * vxworks7-cert-rtp-base-link__x86.spec: Add base_link spec with __wrs_rtp_base definition for x86. * vxworks7-cert-rtp-base-link__x86_64.spec: Add base_link spec with __wrs_rtp_base definition for x86_64. --- gcc/ada/vxworks7-cert-rtp-base-link.spec | 2 ++ gcc/ada/vxworks7-cert-rtp-base-link__ppc64.spec | 2 ++ gcc/ada/vxworks7-cert-rtp-base-link__x86.spec | 2 ++ gcc/ada/vxworks7-cert-rtp-base-link__x86_64.spec | 2 ++ gcc/ada/vxworks7-cert-rtp-link.spec | 2 +- 5 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 gcc/ada/vxworks7-cert-rtp-base-link.spec create mode 100644 gcc/ada/vxworks7-cert-rtp-base-link__ppc64.spec create mode 100644 gcc/ada/vxworks7-cert-rtp-base-link__x86.spec create mode 100644 gcc/ada/vxworks7-cert-rtp-base-link__x86_64.spec diff --git a/gcc/ada/vxworks7-cert-rtp-base-link.spec b/gcc/ada/vxworks7-cert-rtp-base-link.spec new file mode 100644 index 000000000000..1d6ee49b1282 --- /dev/null +++ b/gcc/ada/vxworks7-cert-rtp-base-link.spec @@ -0,0 +1,2 @@ +*base_link: +--defsym=__wrs_rtp_base=0x80000000 diff --git a/gcc/ada/vxworks7-cert-rtp-base-link__ppc64.spec b/gcc/ada/vxworks7-cert-rtp-base-link__ppc64.spec new file mode 100644 index 000000000000..97332b85440a --- /dev/null +++ b/gcc/ada/vxworks7-cert-rtp-base-link__ppc64.spec @@ -0,0 +1,2 @@ +*base_link: +--defsym=__wrs_rtp_base=0x40000000 diff --git a/gcc/ada/vxworks7-cert-rtp-base-link__x86.spec b/gcc/ada/vxworks7-cert-rtp-base-link__x86.spec new file mode 100644 index 000000000000..eafb5828b377 --- /dev/null +++ b/gcc/ada/vxworks7-cert-rtp-base-link__x86.spec @@ -0,0 +1,2 @@ +*base_link: +--defsym=__wrs_rtp_base=0x400000 diff --git a/gcc/ada/vxworks7-cert-rtp-base-link__x86_64.spec b/gcc/ada/vxworks7-cert-rtp-base-link__x86_64.spec new file mode 100644 index 000000000000..dd288690ab9f --- /dev/null +++ b/gcc/ada/vxworks7-cert-rtp-base-link__x86_64.spec @@ -0,0 +1,2 @@ +*base_link: +--defsym=__wrs_rtp_base=0x200000 diff --git a/gcc/ada/vxworks7-cert-rtp-link.spec b/gcc/ada/vxworks7-cert-rtp-link.spec index 4bbf3762cc7c..9923c58defa5 100644 --- a/gcc/ada/vxworks7-cert-rtp-link.spec +++ b/gcc/ada/vxworks7-cert-rtp-link.spec @@ -3,8 +3,8 @@ *link: + %{!nostdlib:%{mrtp:%{!shared: \ + %(base_link) \ -l:certRtp.o \ -L%:getenv(VSB_DIR /usr/lib/common/objcert) \ - --defsym=__wrs_rtp_base=0x80000000 \ -T%:getenv(VSB_DIR /usr/ldscripts/rtp.ld) \ }}} -- 2.47.2