Introduce vxworks specific crtstuff support
authorJerome Lambourg <lambourg@adacore.com>
Thu, 14 Nov 2019 15:53:23 +0000 (15:53 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Thu, 14 Nov 2019 15:53:23 +0000 (15:53 +0000)
commit78e49fb1bc69592389a09ce5544b40fef634e893
tree6a4a42db11d921d3246820bf1f2cdc529af89bc2
parentebcdba9c9f71e548e7506ecc8cb13139614b392e
Introduce vxworks specific crtstuff support

2019-11-06  Jerome Lambourg  <lambourg@adacore.com>
            Olivier Hainque  <hainque@adacore.com>

libgcc/
* config/vxcrtstuff.c: New file.
* config/t-vxcrtstuff: New Makefile fragment.
* config.host: Append t-vxcrtstuff to the tmake_file list
on all VxWorks ports using dwarf for table based EH.

gcc/
* config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
definition, pointless with a VxWorks specific version
of crtstuff.
(DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
* config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
New local macros, controlling the addition of vxworks specific
crtstuff objects depending on the EH mechanism and kind of
module being linked.
(VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.

Co-Authored-By: Olivier Hainque <hainque@adacore.com>
From-SVN: r278248
gcc/ChangeLog
gcc/config/vx-common.h
gcc/config/vxworks.h
libgcc/ChangeLog
libgcc/config.host
libgcc/config/t-vxcrtstuff [new file with mode: 0644]
libgcc/config/vxcrtstuff.c [new file with mode: 0644]