<div dir="ltr"><div><div><div><div>Hi Rafael,<br><br></div>I changed the VAStart to 0x0 to have the memory layout from address zero (I don't know how to use the AT in the linkerscript with LLVM lld). But the result was that this time the .text section starts from 1000 instead of 11000.<br><br></div>Other problem, with linkerscript I would like to merge one custom section to the .text section, but what I get at the end is just my custom section renamed to .text without any merging.<br><br></div>Cheers,<br></div>ES<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 20, 2016 at 9:33 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Linker script support is still fairly incomplete.<br>
<br>
Can you open a bug explaining which feature you are trying to use and<br>
we are missing?<br>
<br>
In this particular case, can't you just list Boot.o first in the command line?<br>
<br>
Cheers,<br>
Rafael<br>
<div class="HOEnZb"><div class="h5"><br>
On 20 April 2016 at 15:13, Sky Flyer <<a href="mailto:skylake007@gmail.com">skylake007@gmail.com</a>> wrote:<br>
> For example something like STARTUP<br>
> (<a href="http://wiki.osdev.org/Linker_Scripts#STARTUP" rel="noreferrer" target="_blank">http://wiki.osdev.org/Linker_Scripts#STARTUP</a>) is not accepted by the LLVM<br>
> LLD. :-/<br>
><br>
> On Wed, Apr 20, 2016 at 9:08 PM, Sky Flyer <<a href="mailto:skylake007@gmail.com">skylake007@gmail.com</a>> wrote:<br>
>><br>
>> Yeah I found it, that's nice. Thanks a milion.<br>
>> Could you please tell me how can I specify my bootstrap (startup code) in<br>
>> the linking process?<br>
>><br>
>><br>
>> On Wed, Apr 20, 2016 at 8:38 PM, Rafael Espíndola<br>
>> <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:<br>
>>><br>
>>> search for VAStart.<br>
>>><br>
>>> Cheers,<br>
>>> Rafael<br>
>>><br>
>>><br>
>>> On 20 April 2016 at 14:18, Sky Flyer <<a href="mailto:skylake007@gmail.com">skylake007@gmail.com</a>> wrote:<br>
>>> > Hi Rafael,<br>
>>> ><br>
>>> > Thanks a lot.<br>
>>> > For example the start entry for me is 0x11000 by default which I don't<br>
>>> > know<br>
>>> > where it come from! I thought there should be a default thing that sets<br>
>>> > this<br>
>>> > entry address.<br>
>>> ><br>
>>> > On Wed, Apr 20, 2016 at 8:05 PM, Rafael Espíndola<br>
>>> > <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:<br>
>>> >><br>
>>> >> There is no default linker script.<br>
>>> >><br>
>>> >> Cheers,<br>
>>> >> Rafael<br>
>>> >><br>
>>> >><br>
>>> >> On 20 April 2016 at 11:23, Sky Flyer via llvm-dev<br>
>>> >> <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
>>> >> > for instance, where is the internal default linker script located?<br>
>>> >> > How<br>
>>> >> > can I<br>
>>> >> > change the default values, for example the star address...<br>
>>> >> ><br>
>>> >> > On Wed, Apr 20, 2016 at 5:17 PM, Sky Flyer <<a href="mailto:skylake007@gmail.com">skylake007@gmail.com</a>><br>
>>> >> > wrote:<br>
>>> >> >><br>
>>> >> >> Hi all,<br>
>>> >> >><br>
>>> >> >> How does the new lld implementation work with the "Linker Script"<br>
>>> >> >> for<br>
>>> >> >> the<br>
>>> >> >> object file adjustment?<br>
>>> >> >> I couldn't find enough resources on the web. Any help is highly<br>
>>> >> >> appreciated.<br>
>>> >> >><br>
>>> >> >> Cheers,<br>
>>> >> >> ES<br>
>>> >> ><br>
>>> >> ><br>
>>> >> ><br>
>>> >> > _______________________________________________<br>
>>> >> > LLVM Developers mailing list<br>
>>> >> > <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
>>> >> > <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
>>> >> ><br>
>>> ><br>
>>> ><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div>