diff options
Diffstat (limited to 'libgcc/config/nvptx/t-nvptx')
-rw-r--r-- | libgcc/config/nvptx/t-nvptx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libgcc/config/nvptx/t-nvptx b/libgcc/config/nvptx/t-nvptx index 49fdb55..260ed63 100644 --- a/libgcc/config/nvptx/t-nvptx +++ b/libgcc/config/nvptx/t-nvptx @@ -6,8 +6,10 @@ LIB2ADD=$(srcdir)/config/nvptx/reduction.c \ LIB2ADD += $(srcdir)/c++-minimal/guard.c LIB2ADDEH= -LIB2FUNCS_EXCLUDE=__main +LIB2FUNCS_EXCLUDE= +# Wrapping of 'main'. +LIB2FUNCS_EXCLUDE += __main crt0.o: $(srcdir)/config/nvptx/crt0.c $(crt_compile) -c $< @@ -15,3 +17,8 @@ crt0.o: $(srcdir)/config/nvptx/crt0.c # support it, and it may cause the build to fail, because of alloca usage, for # example. INHIBIT_LIBC_CFLAGS = -Dinhibit_libc + +# Support for global constructors/destructors is implemented via the +# nvptx-tools 'ld' and the following helpers. +LIB2ADD += $(srcdir)/config/nvptx/gbl-ctors.c +LIB2FUNCS_EXCLUDE += _ctors |