<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hello.<br>
<br>
I have been looking in to what relocs are emitted when --emit-relcos and --gc-sections flags are set.<br>
Seems like relocs sections for .debug_* are not emitted.  <br>
Looking into it the debug sections are marked live in MarkLive.cpp:MarkLive on first pass through all the inputSections, but their dependendSections are not marked as live.<br>
It then goes to rest of the algorithm that handles some special sections, but mainly deals with sections based on defined symbols in symtab. <br>
<br>
As the result when -gc-sections flag is set relocations for debug_* would not be in output. Is that intentional, or oversight?<br>
<br>
Thank You</div>
</body>
</html>