[llvm-dev] [LLD] TLS tbss section discrepancy to gnu-ld

Noah Hütter via llvm-dev llvm-dev at lists.llvm.org
Thu Jul 29 23:20:22 PDT 2021



On 7/29/21 6:06 PM, Joerg Sonnenberger via llvm-dev wrote:
> On Thu, Jul 29, 2021 at 11:55:54AM +0200, Noah Hütter via llvm-dev wrote:
>> What is the proper way to determine the tbss section size in LLD?
> 
> Why don't you use the program header for that?

We have a bare-metal target and the ELF contains the crt0 that
initializes the tls region so we need to know the tbss size at link
time. Exactly as for a regular bss section, we need sbss and ebss at
link time for our loader to initialize this section

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210730/ef8da3e1/attachment.sig>


More information about the llvm-dev mailing list