<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body 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 class="gmail_quote"><br>
</div>
<div class="gmail_quote"><span style="font-size: 12pt;">George.</span></div>
</div>
</div>
</div>
</div>
</body>
</html>