[PATCH] D22683: [ELF] Symbol assignment within input section list

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 14:54:45 PDT 2016


On 2 August 2016 at 06:00, Eugene Leviant <evgeny.leviant at gmail.com> wrote:
> evgeny777 added a comment.
>
> I think the main reason, we're using virtual input sections is that this the only way to calculate correct symbol offset. As you may know location counter is not incremented while we add input sections to output section, and the true size of input sections is known only after call to OutputSectionBase<ELFT>::assignOffsets().


I think we should stop using OutputSection<ELFT>::assignOffsets for
linker scripts. We can assign offsets ourselves and avoid having the
special input section.


Cheers,
Rafael


More information about the llvm-commits mailing list