pret / pokediamond

Decompilation of Pokémon Diamond/Pearl
419 stars 77 forks source link

Fix asmproc: Produce a linkable object #330

Closed abaresk closed 3 years ago

abaresk commented 3 years ago

Before this change, asmproc failed on the first pass (file parsing) and did not produce an object file. This change:

As a result, asmproc no longer fails if used in src/text.c, and it successfully injects asm into the proper text section. However, asmproc is still broken: when linked, the binary checksum DOES NOT match. This is likely due to relocation issues in asmproc, which will be fixed later.