<div dir="ltr">If this is something that GCC doesn't have, it would be nice if we put something in our own docs about it (something like docs/UsersManual.rst).</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 5, 2016 at 2:34 PM, Sriraman Tallam via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-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"><span class="">On Thu, May 5, 2016 at 2:31 PM, Rafael Espíndola<br>
<<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:<br>
> Is there a gcc option or they just assume they are targeting the<br>
> linker that was around when gcc was built?<br>
<br>
</span>It is done at configure time, the linker is checked for copy<br>
relocations support.  I recently saw a request to replace this with a<br>
flag like -mpiecopyrelocs.  I chatted off-line with Reid about this<br>
and a flag was suggested.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
>> +  if (Args.hasFlag(options::OPT_mpiecopyrelocs, options::OPT_mno_piecopyrelocs,<br>
>> +                   false)) {<br>
>> +    CmdArgs.push_back("-piecopyrelocs");<br>
>> +  }<br>
><br>
> you don't need the {}<br>
><br>
>> +def piecopyrelocs : Flag<["-"], "piecopyrelocs">,<br>
>> +  HelpText<"Linker copy relocations support when linking as PIE">;<br>
><br>
> I think you are missing a verb: Linker copy relocations *are* supported.<br>
><br>
> But how about just "Position independent executables can have copy relocations"?<br>
><br>
> Cheers,<br>
> Rafael<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div>