Message board for the users of flat assembler.
> Main > [Suggestion???] Fixups with a macro
Goto page Previous 1, 2
bitRAKE 28 Jul 2020, 14:12
I've got something working - quite hacky, but anyhow:
Less than 100 lines of code:
It maps a virtual address space to basically anywhere in memory - bypassing all checking. Since we want the relocation information, it's mapped to there. To say this implementation is fragile would be an understatement.
¯\(°_o)/¯ The hardcore cynic mistakes good for guile.
|28 Jul 2020, 14:12||
Furs 28 Jul 2020, 16:36
I know it's not what you ask for, but you could write a post-processing tool and parse the generated PE EXE file and dump/convert whatever you need from there. That's actually what I do in these situations (custom binary formats).
Parsing is not difficult, since you don't have to handle weird cases or other relocation types, just throw errors if it's not what you expect (since it should be known). Should be automatically done by a build system without issues.
|28 Jul 2020, 16:36||
|Goto page Previous 1, 2
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.