http://www.geocities.com/dborca/djgpp/elf/djelf.html ELF support in DJGPP This is an experimental patch. It is designed to bring ELF as optional target (C/C++), without affecting COFF functionality (your DJGPP will still produce COFF by default). Example: # create COFF just as before: gcc -o my_coff.exe my_app.c # create ELF from the same source: gcc -o my_elf.exe -B/dev/env/DJDIR/elf my_app.c Features include: ELF executables which run in True Flat mode compatible with Linux shared objects dynamically loadable libc.so, libm.so, libstdc++.so can still link against static libraries (libc.a, ...) requires no change to C/C++ code, only minor changes to Asm code Download: binaries+docs are here: http://www.geocities.com/b_ciobanu/djgpp/elf/bin/ sourcecode+docs are here: http://www.geocities.com/dborca/djgpp/elf/src/ experimental position independent executables framework is here: http://www.geocities.com/dborca/djgpp/elf/elfpie.zip