<br><br>среда, 3 августа 2016 г. пользователь Rafael Espíndola  написал:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2 August 2016 at 06:00, Eugene Leviant <<a href="javascript:;" onclick="_e(event, 'cvml', 'evgeny.leviant@gmail.com')">evgeny.leviant@gmail.com</a>> wrote:<br>
> evgeny777 added a comment.<br>
><br>
> 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().<br>
<br>
<br>
I think we should stop using OutputSection<ELFT>::assignOffsets for<br>
linker scripts. We can assign offsets ourselves and avoid having the<br>
special input section.<br></blockquote><div> </div><div><br></div>I guess createThunks should be called before assignOffsets (but strictly after createSections) so I wonder if createThunks should be moved to LinkerScript as well. I might not catch some architecture issues, but is virtual input section really that bad?<div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers,<br>
Rafael<br>
</blockquote></div>