[Lldb-commits] [lldb] ebee131 - [lldb][test] Fix sh_type of .debug_cu_index and .debug_tu_index

Fangrui Song via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 21 17:39:41 PST 2020


Author: Fangrui Song
Date: 2020-02-21T17:38:39-08:00
New Revision: ebee131259719fa9c06cd346e21ace3fa8ac0888

URL: https://github.com/llvm/llvm-project/commit/ebee131259719fa9c06cd346e21ace3fa8ac0888
DIFF: https://github.com/llvm/llvm-project/commit/ebee131259719fa9c06cd346e21ace3fa8ac0888.diff

LOG: [lldb][test] Fix sh_type of .debug_cu_index and .debug_tu_index

They do not have the SHF_EXCLUDE flag.
After D73999, MC errors `changed section type for .debug_cu_index, expected: 0x0`

Added: 
    

Modified: 
    lldb/test/Shell/SymbolFile/DWARF/dwp-debug-types.s
    lldb/test/Shell/SymbolFile/DWARF/dwp.s

Removed: 
    


################################################################################
diff  --git a/lldb/test/Shell/SymbolFile/DWARF/dwp-debug-types.s b/lldb/test/Shell/SymbolFile/DWARF/dwp-debug-types.s
index fd009381b452..8680d27a3b42 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/dwp-debug-types.s
+++ b/lldb/test/Shell/SymbolFile/DWARF/dwp-debug-types.s
@@ -203,9 +203,9 @@ A\I:
 .endr
 .endmacro
 
-        .section        .debug_cu_index,"e", at progbits
+        .section        .debug_cu_index,"", at progbits
         index 1, .debug_info.dwo, .Lcu_begin, .Ldebug_info_end
 
-        .section        .debug_tu_index,"e", at progbits
+        .section        .debug_tu_index,"", at progbits
         index 2, .debug_types.dwo, .Ltu_begin, .Ltype_info_end
 .endif

diff  --git a/lldb/test/Shell/SymbolFile/DWARF/dwp.s b/lldb/test/Shell/SymbolFile/DWARF/dwp.s
index 730609412c36..659d7703daa9 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/dwp.s
+++ b/lldb/test/Shell/SymbolFile/DWARF/dwp.s
@@ -232,7 +232,7 @@ F\I:
 .Ldebug_info_end\I:
 .endr
 
-        .section        .debug_cu_index,"e", at progbits
+        .section        .debug_cu_index,"", at progbits
         .short  2                       # DWARF version number
         .short  0                       # Reserved
         .long   4                       # Section count


        


More information about the lldb-commits mailing list