Hi johnsa, some new bugs
Bug#5: Structures corruption while writing symbolic debug info (/Fs)
void WriteSymbols()
{
...
ld = fopen(pName, "w");
So each linefeed is replaced with a carriage-return – linefeed pair, after that all structures corrupted.
Fix:
void WriteSymbols()
{
...
ld = fopen(pName, "wb");
Also need to check all othesrs functions with fopen (name,"w").
Bug#6 Skipped first procedure while writing symbolic debug info (/Fs)
First procedure has sym->offset==0, so it skipped by this code:
void WriteSymbols()
{
...
if ((sym->state == SYM_INTERNAL && sym->offset==0) || sym->state == SYM_MACRO || sym->state == SYM_TMACRO || sym->state == SYM_GRP) continue;
Bug#4,Bug#5,Bug#6- also present in HJWASM 2.18.