yuziyu
2008-Apr-05 00:52 UTC
[syslinux] How&Why to factor a com32 module into suitable for dynamic linking?
It seems that the com32 module is a raw binary file without any control infomation. To factor it into suitable for dynamic linking, we need add some control sections, but can we still tell that file a com32 file ? why we use the elf file format directly? Thank you -- Ziyu Yu
H. Peter Anvin
2008-Apr-05 01:25 UTC
[syslinux] How&Why to factor a com32 module into suitable for dynamic linking?
yuziyu wrote:> It seems that the com32 module is a raw binary file without any control > infomation. To factor it into suitable for dynamic linking, we need add > some control sections, but can we still tell that file a com32 file ? > why we use the elf file format directly? > Thank youI'd like to use the ELF format directly, because the all the toolchains support it, and it makes it easier to use linker code from elsewhere. If we want to, we could use the OS or ABI fields in the ELF header to mark it distinct. -hpa