<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; color: rgb(33, 33, 33);">So I think the answer is that the GNU linker doesn't warn on text relocations at all.</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);">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);"><br>
</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><br>
</div>
<p><span style="font-size: 12pt; color: rgb(33, 33, 33);">George.</span></p>
</body>
</html>