Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basm: duplicate relocs in hunk #59

Closed
wepl opened this issue Nov 25, 2016 · 5 comments
Closed

basm: duplicate relocs in hunk #59

wepl opened this issue Nov 25, 2016 · 5 comments

Comments

@wepl
Copy link

wepl commented Nov 25, 2016

hi, basm from http://aminet.net/dev/asm/BarflyDisk2_00.lha cannot be load due 'duplicate relocs in hunk'.
what does this mean?
I tried to understand HunkLoadSegFile.py but failed.
Is there maybe a problem with HUNK_RELOC32SHORT?

@cnvogelg
Copy link
Owner

fixed in 11cda67. as you already mentioned: the loader was not aware of multiple relocs for a single hunk

@cnvogelg
Copy link
Owner

hmmm... strange tool... needs at least a 68020 but tests for bit 2 in AttnFlags?!

@wepl
Copy link
Author

wepl commented Nov 27, 2016

Thanks :)
It's bug that it tests for 68030 I think. Will try to patch it.
Have changed the btst #2,(129,a6) to btst #1.
Now vamos segfaults. It seems somewhere in the barfly.library.
Is there a way I can further debug?

@cnvogelg
Copy link
Owner

cnvogelg commented Dec 1, 2016

Watch out for trace messages that report missing functions in vamos, e.g. ? CALL ....
If the missing function is essential the program will most likely quit early or simply crash.
In the case of basm some tag functions in utility.library are required. I added them in 2be4155.
Now basm runs and seem to assemble some source but there are still functions missing and the clean up leaves some orphaned resource. Either because of bad coding or caused by missing functions.

@wepl
Copy link
Author

wepl commented Dec 4, 2016

Thanks a lot, it works. :)
Will now check if results are correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants