From 5cb0dbd6b19ddc0d569c67fb4346405bf66dedaf Mon Sep 17 00:00:00 2001 From: Doug Rupp Date: Wed, 16 Sep 2020 08:05:10 -0700 Subject: [PATCH] [Ada] vx7r2cert: port ARM, PowerPC and x86 targets gcc/ada/ * Makefile.rtl: Add vx7r2cert spec file to ARM, PowerPC and x86 targets. * vxworks7-cert-rtp-link.spec: New spec file. --- gcc/ada/Makefile.rtl | 5 +++++ gcc/ada/vxworks7-cert-rtp-link.spec | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/ada/vxworks7-cert-rtp-link.spec diff --git a/gcc/ada/Makefile.rtl b/gcc/ada/Makefile.rtl index b7df078..bdaa805 100644 --- a/gcc/ada/Makefile.rtl +++ b/gcc/ada/Makefile.rtl @@ -1136,6 +1136,7 @@ ifeq ($(strip $(filter-out powerpc% wrs vxworks vxworksspe vxworks7% vxworks7spe else GCC_SPEC_FILES+=vxworks7-rtp-base-link.spec endif + GCC_SPEC_FILES+=vxworks7-cert-rtp-link.spec else GCC_SPEC_FILES+=vxworks-$(ARCH_STR)-link.spec GCC_SPEC_FILES+=vxworks-cert-$(ARCH_STR)-link.spec @@ -1411,6 +1412,7 @@ ifeq ($(strip $(filter-out %86 x86_64 wrs vxworks vxworks7%,$(target_cpu) $(targ ifeq ($(strip $(filter-out vxworks7%, $(target_os))),) GCC_SPEC_FILES+=vxworks7-$(X86CPU)-rtp-base-link.spec + GCC_SPEC_FILES+=vxworks7-cert-rtp-link.spec else GCC_SPEC_FILES+=vxworks-x86-link.spec GCC_SPEC_FILES+=vxworks-cert-x86-link.spec @@ -1534,6 +1536,9 @@ ifeq ($(strip $(filter-out aarch64 arm% coff wrs vx%,$(target_cpu) $(target_vend GCC_SPEC_FILES+=vxworks-smp-arm-link.spec endif endif + ifeq ($(strip $(filter-out vxworks7%, $(target_os))),) + GCC_SPEC_FILES+=vxworks7-cert-rtp-link.spec + endif endif # ARM android diff --git a/gcc/ada/vxworks7-cert-rtp-link.spec b/gcc/ada/vxworks7-cert-rtp-link.spec new file mode 100644 index 0000000..0e0440f --- /dev/null +++ b/gcc/ada/vxworks7-cert-rtp-link.spec @@ -0,0 +1,9 @@ +*self_spec: ++ %{!nostdlib:-nodefaultlibs -nostartfiles} + +*link: ++ %{!nostdlib:%{mrtp:%{!shared: \ + -l:certRtp.o \ + -L%:getenv(VSB_DIR /usr/lib/common/objcert) \ + -T%:getenv(VSB_DIR /usr/ldscripts/rtp.ld) \ + }}} -- 2.7.4