<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;">
<div style="color: rgb(33, 33, 33);">
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><span style="font-size: 12pt;">>C</span><span style="font-size: 12pt;">an you test with ld.bfd? Gold's behavior seems almost like it could be an accident. If ld.bfd disagrees about this then we might need to pay extra attention here
 (and perhaps >want to follow ld.bfd's semantics since ld.bfd is much more prevalent).</span>
<div>> </div>
<div>>-- Sean Silva<br>
</div>
<div><br>
</div>
<div>ld.bfd behaves differently. For the script below<br>
</div>
<div><br>
</div>
<div>
<div>SECTIONS {</div>
<div> .temp : { *(.keep) }</div>
<div> .keep : { KEEP(*(.keep)) }</div>
<div>}<br>
</div>
<div><br>
</div>
<div>it creates .temp section like if *(.keep) would be specified to have KEEP flag.<br>
</div>
</div>
<div>But I wonder - does such scripts are really used in real life ? For me it seems to be a bug in script, am I mistaken ? </div>
<div>I guess if gold and bfd still have the different behavior then probably feature not commonly used. lld behavior is equal to gold now, it is natural, I mean we did nothing special to achieve that. I am not sure if we should really 'fix' that.<br>
</div>
<div><br>
</div>
<div>George.<br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>