https://bugs.llvm.org/show_bug.cgi?id=43622

            Bug ID: 43622
           Summary: clang creates debug_loc.dwo section even in split
                    mode.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedb...@nondot.org
          Reporter: sourav0...@gmail.com
                CC: jdevliegh...@apple.com, jini.susan.geo...@gmail.com,
                    keith.wal...@arm.com, llvm-bugs@lists.llvm.org,
                    paul_robin...@playstation.sony.com

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to