Given that nvptx newlib currently restricts itself to ELIX level 1, this
is not already a problem. However, in the following we'd like to lift
that restriction, and then run into:
[...]/newlib/libc/ssp/stack_protector.c: In function ‘__stack_chk_init’:
[...]/newlib/libc/ssp/stack_protector.c:31:1: sorry, unimplemented: global constructors not supported on this target
31 | }
| ^
GCC patch "nvptx: Support global constructors/destructors via 'collect2'"
has been posted, but not yet accepted. Until that is resolved, use the
same manual SSP setup as for GCN.
|
||
|---|---|---|
| .. | ||
| Makefile.inc | ||
| chk_fail.c | ||
| gets_chk.c | ||
| memcpy_chk.c | ||
| memmove_chk.c | ||
| mempcpy_chk.c | ||
| memset_chk.c | ||
| snprintf_chk.c | ||
| sprintf_chk.c | ||
| ssp.tex | ||
| stack_protector.c | ||
| stpcpy_chk.c | ||
| stpncpy_chk.c | ||
| strcat_chk.c | ||
| strcpy_chk.c | ||
| strncat_chk.c | ||
| strncpy_chk.c | ||
| vsnprintf_chk.c | ||
| vsprintf_chk.c | ||