File tree 2 files changed +13
-3
lines changed
source/Plugins/ObjectFile/PECOFF
test/Shell/ObjectFile/PECOFF
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -830,6 +830,9 @@ void ObjectFilePECOFF::AppendFromCOFFSymbolTable(
830
830
symbol.SetType (exported->GetType ());
831
831
}
832
832
}
833
+ } else if (section_number == llvm::COFF::IMAGE_SYM_ABSOLUTE) {
834
+ symbol.GetAddressRef () = Address (coff_sym_ref.getValue ());
835
+ symbol.SetType (lldb::eSymbolTypeAbsolute);
833
836
}
834
837
symtab.AddSymbol (symbol);
835
838
}
Original file line number Diff line number Diff line change 4
4
# # The .file symbol isn't checked, but is included to test that the symbol
5
5
# # table iteration handles cases with a symbol with more than one aux symbol.
6
6
7
- # CHECK: Type File Address/Value {{.*}} Size Flags Name
8
- # CHECK: Code 0x0000000040001000 0x{{[0-9a-f]+}} 0x{{[0-9a-f]+}} entry
9
- # CHECK: 0x0000000040002000 0x{{[0-9a-f]+}} 0x{{[0-9a-f]+}} variable
7
+ # CHECK: Type File Address/Value {{.*}} Size Flags Name
8
+ # CHECK: Code 0x0000000040001000 0x{{[0-9a-f]+}} 0x{{[0-9a-f]+}} entry
9
+ # CHECK: 0x0000000040002000 0x{{[0-9a-f]+}} 0x{{[0-9a-f]+}} variable
10
+ # CHECK: Absolute 0x00000000deadbeef 0x{{[0-9a-f]+}} 0x{{[0-9a-f]+}} absolute_symbol
10
11
11
12
--- !COFF
12
13
OptionalHeader :
@@ -123,4 +124,10 @@ symbols:
123
124
SimpleType : IMAGE_SYM_TYPE_NULL
124
125
ComplexType : IMAGE_SYM_DTYPE_NULL
125
126
StorageClass : IMAGE_SYM_CLASS_EXTERNAL
127
+ - Name : absolute_symbol
128
+ Value : 0xdeadbeef
129
+ SectionNumber : -1
130
+ SimpleType : IMAGE_SYM_TYPE_NULL
131
+ ComplexType : IMAGE_SYM_DTYPE_NULL
132
+ StorageClass : IMAGE_SYM_CLASS_STATIC
126
133
...
You can’t perform that action at this time.
0 commit comments