<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 22, 2017 at 12:22 PM, George Rimar <span dir="ltr"><<a href="mailto:grimar@accesssoftek.com" target="_blank">grimar@accesssoftek.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(33,33,33)">
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><span style="font-size:12pt">>A</span><span style="font-size:12pt">llowing relocations against text segments when -no-dynamic-linker is given sounds too hacky and not OK. You cannot describe >why it makes sense, right? By making
 sense, I don't mean "because Linux kernel needs this" but something like "-no-dynamic->linker is an option to do blah blah and semantically it naturally implies it should allow text relocations".</span><br>
</div>
<div class="gmail_quote"><span style="font-size:12pt"><br>
</span></div>
<div class="gmail_quote"><span style="font-size:12pt">Well, may be I can.</span></div>
<div class="gmail_quote"><span style="font-size:12pt"><br>
</span></div>
<div class="gmail_quote"><span style="font-size:12pt">Lets start from simple.</span></div>
<div class="gmail_quote"><span style="font-size:12pt">Why do we restrict relocations against text segment ? I guess because we having such relocations</span></div>
<div class="gmail_quote"><span style="font-size:12pt">means that text segments will not be shared right ? (if we are talking about DSO).</span></div>
<div class="gmail_quote"><span style="font-size:12pt">That is not fine, but not a critical issue too.</span></div>
<div class="gmail_quote"><span style="font-size:12pt"><br>
</span></div>
<div class="gmail_quote"><span style="font-size:12pt">But why do we restrict relocations for PIE ?​</span></div></div></div></div></div></div></blockquote><div><br></div><div>It doesn't make sense to me. The definition of the option is this: -no-dynamic-linker is an option to not add .interp section, period. Essentially, you need to keep the semantics of each option as clear as possible instead of overloading multiple meanings to one option.</div><div><br></div><div>Maybe we should just allow text relocations.</div></div></div></div>