Joerg Sonnenberger via llvm-dev
2021-Jul-29 16:06 UTC
[llvm-dev] [LLD] TLS tbss section discrepancy to gnu-ld
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? Joerg
Noah Hütter via llvm-dev
2021-Jul-30 06:20 UTC
[llvm-dev] [LLD] TLS tbss section discrepancy to gnu-ld
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>