Does it make sense to call __libc_start_main() for a static executable ?
Florian Weimer
fweimer@redhat.com
Mon Apr 6 15:20:46 GMT 2020
* William Tambe via Libc-help:
> On Mon, Apr 6, 2020 at 10:45 AM William Tambe <tambewilliam@gmail.com> wrote:
>>
>> Does it make sense to call __libc_start_main() for a static executable ?
>
> In other words, could an application work fine clearing bss area,
> calling _init() and calling main() itself ?
No, __libc_init_first (_init is no more) does not set up the TCB or
performs much of the other low-level initialization, so this cannot
work.
Thanks,
Florian
More information about the Libc-help
mailing list