逆向工程 - IDA Pro - v6.4 - Build NES Loader



參考資訊:
https://github.com/patois/nesldr

Debian x64

$ git clone https://github.com/patois/nesldr
$ mv nesldr/src ldr/nes
$ vim ldr/makefile +7
    bochsrc windmp snes script_ldrs $(ADDITIONAL_LOADERS) nes

$ vim ldr/nes/makefile
    PROC=nes
    include ../loader.mak

    # MAKEDEP dependency list ------------------
    $(F)nes$(O)     : $(I)area.hpp $(I)auto.hpp $(I)bytes.hpp $(I)diskio.hpp    \
        $(I)entry.hpp $(I)fixup.hpp $(I)fpro.h $(I)funcs.hpp      \
        $(I)ida.hpp $(I)idp.hpp $(I)kernwin.hpp $(I)lines.hpp     \
        $(I)llong.hpp $(I)loader.hpp $(I)nalt.hpp $(I)name.hpp    \
        $(I)netnode.hpp $(I)offset.hpp $(I)pro.h $(I)segment.hpp  \
        $(I)srarea.hpp $(I)ua.hpp $(I)xref.hpp ../idaldr.h ioregs.h mappers.h nes.cpp nes.h

$ export __LINUX__=1
$ make

完成