"Pierre d'Herbemont" stegefin@free.fr writes:
+# define LD_SKIP(i)
This won't work, we need to reserve space for the PE header.
+# define PPC_SYM(sym_name) "_" #sym_name
This one should use __ASM_NAME.
Also it would be nice if you could use fewer macros, this makes the code quite ugly. It seems the main difference is in register names, you could simply have one macro for that and leave the rest alone.