[lld] r316848 - Reduce sizeof(Symbol) from 104 bytes to 88 bytes.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 30 12:48:35 PDT 2017


Yes, I think I made a wrong decision on this patch this time, and this
should've gone through code review. I'm sorry. Feel free to revert.

On Mon, Oct 30, 2017 at 10:34 AM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:

> Rui Ueyama via llvm-commits <llvm-commits at lists.llvm.org> writes:
>
> > Author: ruiu
> > Date: Sat Oct 28 15:18:17 2017
> > New Revision: 316848
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=316848&view=rev
> > Log:
> > Reduce sizeof(Symbol) from 104 bytes to 88 bytes.
> >
> > Finding aliases for shared symbols doesn't need st_shndx because
> > we can just compare st_value.
>
> This introduced a regression for abs symbols. Fixed in r316928.
>
> >    uint64_t Value; // st_value
> > -  uint64_t Size;  // st_size
> > -  uint64_t Shndx; // st_shndx
> > +  uint32_t Size;  // st_size
>
> This changes Size to be 32 bits inside an unrelated patch. *Please*
> don't do this. It should really be a independent patch. With this we
> also now silently produce the wrong result if a symbol has a size that
> doesn't fit in 32 bits.
>
> I will revert this for now. Please send a patch for review with error
> handling and testcase if we are to drop support for large symbols.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171030/0effe5bb/attachment.html>


More information about the llvm-commits mailing list