<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 8, 2016 at 12:01 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 8 July 2016 at 14:33, Petr Hosek via llvm-commits<br>
<span class=""><<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br>
> phosek added a comment.<br>
><br>
> There are two issues here. The first is correctness, and you're right that for lld `-Trodata-segment` as an option for setting the start address would be better since lld puts rodata segment at the beginning. The other is compatibility, as large number of existing build scripts use `-Ttext-segment` as an option for setting the start address, irrespective of which linker is being used.<br>
<br>
</span>I see, so what you base is an option to set the smallest used virtual address.<br>
<span class=""><br>
<br>
> In our use case, we would like to have an option to set the start address in lld. Would it be fine with you if I rename the option to `-image-base`? This option is already supported by BFD ld, even though it's only used for PE targets, and OS X ld also has a similar option `-image_base`. Alternatively we could use a completely different name.<br>
<br>
</span>Rui, is there something like that for COFF? image-base is a COFF term, no?<br>
<br>
Another option name would be -Tbase, or -Tfirst_segment since the<br>
other options are -Txyz.<br></blockquote><div><br></div><div>On Windows, it is /base option.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Taking a look a the patch itself.<br>
<br>
Cheers,<br>
Rafael<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div></div>