[lld] r302107 - Fix accounting of tbss.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri May 5 12:56:25 PDT 2017


Yes, but I'm talking about .tbss section address in an executable. It is
not significant, so I think in theory it can be just zero. But we set some
value, no?

On Fri, May 5, 2017 at 6:04 AM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:

> Rui Ueyama <ruiu at google.com> writes:
>
> > Not directly related to this, but we have code that sets virtual
> addresses
> > to .tbss sections. Do you know why we are doing that? IIUC, virtual
> > addresses of .tbss sections are not significant, so we can just set them
> to
> > zero.
>
> The entire section table on a DSO is not really significant. The only
> part that is required is some way to get the symbol table, and only that
> just for static linking.
>
> The table is mostly a human friendly info showing where a section
> "is". The situation is fuzzy with NOBITS, but I think the customary is
> to use the location they would have been had they not been NOBITS.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170505/4fa0676b/attachment.html>


More information about the llvm-commits mailing list