This strengthens the VxWorks configuration files on the support
of shared objects, which encompasses a VxWorks specific "non-static"
mode for RTPs (in addition to -static and -shared).

I had good builds and test results with this in-house for gcc-11 based
toolchains for a variety of targets, with both static and dynamic links
(modulo other patches for the latter). I checked that a build for vx6.9
passes with mainline sources.

Olivier


2020-11-06  Fred Konrad  <kon...@adacore.com>
            Olivier Hainque  <hain...@adacore.com>

gcc/
        * config/vx-common.h: Define REAL_LIBGCC_SPEC since the
        '-non-static' option is not standard.
        * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Implement the LIBGCC_SPEC
        since REAL_LIBGCC_SPEC is used now.
        (STARTFILE_PREFIX_SPEC): Use the PIC VSB when building shared libraries
        or non-static binaries.


Attachment: 0005-VxWorks-config-fixes-for-shared-objects.patch
Description: Binary data

Reply via email to