Re: [PATCH] selftests/size: rework to use main instead of _start

2018-03-07 Thread Shuah Khan
On 03/07/2018 08:11 AM, Shuah Khan wrote: > On 03/07/2018 06:07 AM, Anders Roxell wrote: >> In a -ffreestanding environment without glibc, we shouldn't be able to >> call either getenv or printf. It seems that printf() happens to work >> fine, but it ends up using the glibc getenv(), which doesn't

Re: [PATCH] selftests/size: rework to use main instead of _start

2018-03-07 Thread Shuah Khan
On 03/07/2018 06:07 AM, Anders Roxell wrote: > In a -ffreestanding environment without glibc, we shouldn't be able to > call either getenv or printf. It seems that printf() happens to work > fine, but it ends up using the glibc getenv(), which doesn't work unless > we call the glibc _start() functi

[PATCH] selftests/size: rework to use main instead of _start

2018-03-07 Thread Anders Roxell
In a -ffreestanding environment without glibc, we shouldn't be able to call either getenv or printf. It seems that printf() happens to work fine, but it ends up using the glibc getenv(), which doesn't work unless we call the glibc _start() function first. Using _start() was originally meant as an o