<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang creates debug_loc.dwo section even in split mode."
   href="https://bugs.llvm.org/show_bug.cgi?id=43622">43622</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang creates debug_loc.dwo section even in split mode.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sourav0311@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>jdevlieghere@apple.com, jini.susan.george@gmail.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>For a typical test case, following behavior is observed -- debug_loc.dwo
section creation instead of debug_loclists.dwo. 

clang -ggdb -O2 -gdwarf-5 -gsplit-dwarf test.c

llvm-readelf -S test.dwo
...
.strtab          
.debug_loc.dwo    
.debug_str_offsets.dwo 
.debug_str.dwo    
.debug_info.dwo   
.debug_abbrev.dwo 

llvm-dwarfdump -debug-loc test1.dwo
..
test1.dwo:      file format ELF64-x86-64
.debug_loc.dwo contents:

llvm-readelf -x.debug_loc.dwo  test1.dwo
Hex dump of section '.debug_loc.dwo':
0x00000000 03000400 00000155 03031400 00000153 .......U.......S
0x00000010 00030106 00000001 55000301 0b000000 ........U.......
0x00000020 015400                              .T.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>