On 05/25/16 11:49, Alexander Monakov wrote:
On Wed, 25 May 2016, Nathan Sidwell wrote:
With today's trunk and newlib, if I run unresolved symbol __exitval_ptr
Is should work now, just pushed a patch to newlib. PTX appears to accept '.extern .weak ...', but that has the same semantics as '.extern ...', which IMHO is a bug. '.extern .weak' doesn't mean anything special. Working on a GCC patch to stop us emitting it.
It is possible, but it seems it's enough to set up soft stacks under #ifdef __nvptx_softstack__ in __main. Is that fine?
That's fine -- I'd forgotten there was a #define to check. The whole point of reimplementing crt0 in C was to make that kind of thing easier!
nathan