Closed hoit closed 3 years ago
Hi!
It seems that WLALINK also created automatically some _sizeof_ definitions, not just WLA. So I added a flag (-D) to WLALINK to disable that... Give -s to WLA and -D to fully disable _sizeof_ definition creation...
That symbol file corruption I couldn't find in your test case... Please open a new issue for it if you manage to isolate the problem...
Thanks!
Hi,
I just tried it and i confirm that it works :)
just to understand all details correctly with the error : "TRY_PUT_LABEL: Definition "_sizeof_tccs_L.6" was defined more than once"
if this label was created with wlalink, i think if the same variable is declared in 2 different files, this is the reason that produce this error. My case is solved and i do not use sizeof variable but it can still produce duplicate. Maybe this name should be unique (by using the source file in the name for example?)
For the second issue, i am still at the same point and i did not find a way to reproduce it (seems to be random). I will open a new issue if i find it.
Thank you for this correction
Hello,
From the documentation, the -s flag used with WLA do not create sizeof* definitions.
It seems to be ignored by wla-56816: all objects files have been built with the command line :
F:\pvsneslib\devkitsnes\bin\wla-65816.exe -s -o myFile.obj myFile.asm
Then after using wlalink with parameter to get the .sym file :
F:\pvsneslib\devkitsnes\bin\wlalink -d -s -v linkfile test.sfc
the .sym file still contains a lot of _sizeof__xxx inside.
I joined a sample here to reproduce the case, but some files has provided directly as .obj files for convenience reasons. tmp.zip
Is it a bug ?
Also, i saw that in some cases, test.sym file become "corrupted"
the last line contains 1 zero more but for now i did not find a way to reproduce the code with a minimal sample. I can open a new issue for this one when i will have a sample to provide.
Thank you in advance