<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<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="color: rgb(33, 33, 33); font-size: 12pt;">>I</span><span style="color: rgb(33, 33, 33); font-size: 12pt;"> think you can also get DSO with -pie I think, but I don't see that either. This is quite mysterious. I also did a quick look at the >linker
 script and didn't see anything at first glance that would cause DSO output (can linker scripts even control EType?). The >bootloader might not even look at the EType though.</span><br>
</p>
<div style="color: rgb(33, 33, 33);">
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>> </div>
<div>>-- Sean Silva</div>
<div><br>
</div>
<div>Place is:<br>
</div>
<div><a href="https://github.com/torvalds/linux/blob/master/arch/x86/boot/compressed/Makefile#L51">https://github.com/torvalds/linux/blob/master/arch/x86/boot/compressed/Makefile#L51</a><br>
</div>
<div><br>
</div>
<div>It checks if -z noreloc-overflow is available and adds -pie and other flags in that case.<br>
<br>
</div>
<div>If I comment out this lines:<br>
</div>
<div>
<div>#LDFLAGS += $(shell $(LD) --help 2>&1 | grep -q "\-z noreloc-overflow" \</div>
<div>#<span class="Apple-tab-span" style="white-space:pre"> </span>&& echo "-z noreloc-overflow -pie --no-dynamic-linker")​<br>
</div>
<div><br>
</div>
<div>Then as expected bfd linked vmlinux also becomes executable. And it is even still boots for me.<br>
</div>
</div>
<div><br>
</div>
<div>George.<br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>