Re: [PTX] crt0

2016-05-26 Thread Nathan Sidwell
On 05/26/16 10:36, Nathan Sidwell wrote: Ib. 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. Pah, I'd misremembered what we

Re: [PTX] crt0

2016-05-26 Thread Nathan Sidwell
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

Re: [PTX] crt0

2016-05-25 Thread Alexander Monakov
On Wed, 25 May 2016, Nathan Sidwell wrote: > On 05/25/16 09:28, Alexander Monakov wrote: > > On Wed, 25 May 2016, Nathan Sidwell wrote: > > > > > This patch reimplements crt0 as C rather than assembly. That means > > > it;ll be > > > good with 32 bit addresses. I've also completely moved abort

Re: [PTX] crt0

2016-05-25 Thread Nathan Sidwell
On 05/25/16 09:28, Alexander Monakov wrote: On Wed, 25 May 2016, Nathan Sidwell wrote: This patch reimplements crt0 as C rather than assembly. That means it;ll be good with 32 bit addresses. I've also completely moved abort and exit into newlib (a fork on github), which had it's own copies

Re: [PTX] crt0

2016-05-25 Thread Alexander Monakov
On Wed, 25 May 2016, Nathan Sidwell wrote: > This patch reimplements crt0 as C rather than assembly. That means it;ll be > good with 32 bit addresses. I've also completely moved abort and exit into > newlib (a fork on github), which had it's own copies that failed to set the > exit code.

[PTX] crt0

2016-05-25 Thread Nathan Sidwell
This patch reimplements crt0 as C rather than assembly. That means it;ll be good with 32 bit addresses. I've also completely moved abort and exit into newlib (a fork on github), which had it's own copies that failed to set the exit code. Things happened to work because they were never