[PATCH] i386: Add _startup_sbrk and _startup_fatal [BZ #21913]

Zack Weinberg zackw@panix.com
Mon Aug 7 13:11:00 GMT 2017


On Mon, Aug 7, 2017 at 8:38 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Mon, Aug 7, 2017 at 4:47 AM, Zack Weinberg <zackw@panix.com> wrote:
>
> To initialize TLS, we need a single syscall, sbrk.

I presume this is to allocate memory for the TLS block.  But why can't
the TLS block - remember, this is for the main thread, in a statically
linked binary - be statically allocated data?

zw



More information about the Libc-alpha mailing list