mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Save location information of symbol definitions
Now, object files save the file name and line number where each global symbol is defined. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
@@ -126,7 +126,12 @@ obj_ReadSymbol(FILE * f)
|
||||
}
|
||||
|
||||
readasciiz(&pSym->pzName, f);
|
||||
if ((pSym->Type = (enum eSymbolType) fgetc(f)) != SYM_IMPORT) {
|
||||
pSym->Type = (enum eSymbolType)fgetc(f);
|
||||
|
||||
if (pSym->Type != SYM_IMPORT) {
|
||||
readasciiz(&pSym->pzFileName, f);
|
||||
pSym->nFileLine = readlong(f);
|
||||
|
||||
pSym->nSectionID = readlong(f);
|
||||
pSym->nOffset = readlong(f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user