<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="color: rgb(33, 33, 33); font-size: 12pt;">Ah, going back over this - so gold and lld's behavior doesn't break consumers by creating a prematurely terminated range list, because the end of the segment is still >non-zero (as you say, using the
 addend, so I have range lists like "0 to 6" for a comdat function that wasn't selected).</span></p>
<div style="color: rgb(33, 33, 33);">
<div>
<div dir="ltr">><br>
>Why is that a problem/how does the 1:1 address that problem? (seems like it doesn't break consumers, doesn't need a special case in the linker, provides a pretty >good hint to consumers, etc)</div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_msg" style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="gmail_msg" style="color:rgb(33,33,33)">
<div class="gmail_msg">
<div dir="ltr" class="gmail_msg">​</div>
<div dir="ltr" class="gmail_msg">gold does not use relocated output to build .gdb_index. It scans relocations manually for these sections.<br>
</div>
<div dir="ltr" class="gmail_msg">So it able to filter out such ranges and not include them into .gdb_index.<br>
</div>
<div dir="ltr" class="gmail_msg"><br>
I think we can leave them in output, but make size of ranges to be zero (1:1 address solves that). That looks correct from spec side.</div>
<div dir="ltr" class="gmail_msg">And that gives a chance to <span style="font-size: 12pt;">use relocated output here and not scan relocations once again.</span></div>
<div dir="ltr" class="gmail_msg">Or we probably can ignore them, since we will know that ranges of size zero are stubs.<br>
<br>
</div>
<div dir="ltr" class="gmail_msg"><br>
</div>
<div dir="ltr" class="gmail_msg">George </div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>