File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
source/Plugins/ObjectFile/PECOFF
test/Shell/ObjectFile/PECOFF Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ Symtab *ObjectFilePECOFF::GetSymtab() {
686
686
687
687
if (symbol.naux > 0 ) {
688
688
i += symbol.naux ;
689
- offset += symbol_size;
689
+ offset += symbol. naux * symbol_size;
690
690
}
691
691
}
692
692
}
Original file line number Diff line number Diff line change 1
1
# RUN: yaml2obj %s > %t
2
2
# RUN: lldb-test symbols %t | FileCheck %s
3
3
4
+ # # The .file symbol isn't checked, but is included to test that the symbol
5
+ # # table iteration handles cases with a symbol with more than one aux symbol.
6
+
4
7
# CHECK: Type File Address/Value {{.*}} Size Flags Name
5
8
# CHECK: Code 0x0000000040001000 0x{{[0-9a-f]+}} 0x{{[0-9a-f]+}} entry
6
9
# CHECK: 0x0000000040002000 0x{{[0-9a-f]+}} 0x{{[0-9a-f]+}} variable
@@ -101,6 +104,13 @@ symbols:
101
104
SimpleType : IMAGE_SYM_TYPE_NULL
102
105
ComplexType : IMAGE_SYM_DTYPE_NULL
103
106
StorageClass : IMAGE_SYM_CLASS_STATIC
107
+ - Name : .file
108
+ Value : 0
109
+ SectionNumber : -2
110
+ SimpleType : IMAGE_SYM_TYPE_NULL
111
+ ComplexType : IMAGE_SYM_DTYPE_NULL
112
+ StorageClass : IMAGE_SYM_CLASS_FILE
113
+ File : longfilenameusingtwoauxsymbols
104
114
- Name : entry
105
115
Value : 0
106
116
SectionNumber : 1
You can’t perform that action at this time.
0 commit comments