Simple Object and DLL Loader

This project demonstrates applying a PIC loader to a COFF or DLL capability.

Project Files

Notes

If you're OK with some added complexity, this project demonstrates how to support COFF and DLL loading within one .spec file and codebase.

Makefile.OBJ and Makefile.DLL build loaders specific to our COFF or DLL. Both use the same source code, but use a #define to enable the COFF or DLL loading code.

The loader.spec file is an important part of this project. Here we have x86.o, x64.o, x86.dll, and x86.o targets. These targets allow the .spec file to assemble the project based on the type of capability passed to it. This .spec file will generate PIC when passed a COFF or DLL capability.

License

This project is licensed under the GNU General Public License version 2 (GPLv2) or later..