@@ -250,6 +250,12 @@ static unsigned int SymbolDatabaseVerifyContext_VerifyEntry(SymbolDatabaseVerify
250
250
context -> main .revision_index = revision_index ;
251
251
252
252
error_count += SymbolDatabaseVerifyContext_VerifyXRefJmp (context , table , symbol_index , revision_index );
253
+
254
+ // For safety check purpose
255
+ if (internal_IsXRefUnset (table [symbol_index ].xref )) {
256
+ output_message_format (& context -> output , XB_OUTPUT_MESSAGE_ERROR , "%s cannot have unset xref." , table [symbol_index ].szFuncName );
257
+ error_count ++ ;
258
+ }
253
259
}
254
260
else {
255
261
context -> against .symbol_index = symbol_index ;
@@ -276,15 +282,6 @@ static unsigned int SymbolDatabaseVerifyContext_VerifyDatabase(SymbolDatabaseVer
276
282
277
283
// Verify each entry in data's symbol table.
278
284
for (uint32_t s = 0 ; s < data -> SymbolsTableCount ; s ++ ) {
279
- // We only need to check from main, not against.
280
- if (context -> against .data == NULL ) {
281
- // For safety check purpose
282
- if (internal_IsXRefUnset (data -> SymbolsTable [s ].xref )) {
283
- output_message_format (& context -> output , XB_OUTPUT_MESSAGE_ERROR , "%s cannot have unset xref." , data -> SymbolsTable [s ].szFuncName );
284
- error_count ++ ;
285
- }
286
- }
287
-
288
285
// Check each revision entry in a symbol.
289
286
for (uint32_t r = 0 ; r < data -> SymbolsTable [s ].count ; r ++ ) {
290
287
error_count += SymbolDatabaseVerifyContext_VerifyEntry (context , data -> SymbolsTable , s , r );
0 commit comments