[fpc-devel] .long values in DWARF Symbols

Florian Klämpfl florian at freepascal.org
Tue May 24 20:58:56 CEST 2016


Am 23.05.2016 um 17:51 schrieb Michael Ring:
> I have started again to work on pic32 (mipsel-embedded) target and found an issue in the Dwarf Debug
> Info:
> 
> 
> (Please also refer to this old discussion on the problem:
> http://lists.freepascal.org/fpc-devel/2013-July/032447.html )
> 
> The problem is that .long should be replaced with .4byte for debug symbols to be correctly
> interpreted on mips. I manually replaced all .long with .4bytes in system.s and can now do symbolic
> debugging of the startup code
> 
> There wrong entries always follow the pattern that they include an offset the the varname:
> 
> Example:
> 
> # Symbol THREADID
> 
>         .long   U_$SYSTEM_$$_THREADID+4
> 
> --> wrong, offset is "+4"
> 
> 
> # Symbol UTF8COMPARELOCALE
>         .4byte  U_$SYSTEM_$$_UTF8COMPARELOCALE
> 
> --> no offset, correct
> 
> 
> Can anybody help?

Please try with r33782.




More information about the fpc-devel mailing list