<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;">
<p><span style="font-size: 12pt;">>> </span><span style="font-size: 12pt; color: rgb(33, 33, 33);">So I think the answer is that the GNU linker doesn't warn on text relocations at all.</span><br>
</p>
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div>
<p><span style="font-size:12pt; color:rgb(33,33,33)">> </span></p>
<p><span style="font-size:12pt; color:rgb(33,33,33)">>Yes, until I add -z text, which I belive exist exactly for that.</span></p>
<p><span style="font-size:12pt; color:rgb(33,33,33)">> </span></p>
<div>>ld.bfd test.o -shared -o out -z text</div>
<div>>ld.bfd: test.o: warning: relocation against `_start' in readonly section `.text'</div>
<div>>ld.bfd: read-only segment has dynamic relocations.</div>
<div>> </div>
<p><span style="font-size:12pt; color:rgb(33,33,33)">>George.</span></p>
<p><span style="font-size:12pt; color:rgb(33,33,33)"><br>
</span></p>
<p><span style="font-size:12pt; color:rgb(33,33,33)">In addition they have <span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">--warn-shared-textrel for emiting warnings</span>:</span></p>
<p><span style="font-size:12pt; color:rgb(33,33,33)"><br>
</span></p>
<div>ld.bfd test.o -shared -o out --warn-shared-textrel</div>
<div>ld.bfd: test.o: warning: relocation against `_start' in readonly section `.text'</div>
<div>ld.bfd: warning: creating a DT_TEXTREL in a shared object.</div>
<div><br>
George.<br>
</div>
</div>
</div>
</body>
</html>