Converting kernel image from ELF to PE
        Posted  
        
            by Frank Miller
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Frank Miller
        
        
        
        Published on 2009-04-04T19:21:15Z
        Indexed on 
            2010/05/11
            23:04 UTC
        
        
        Read the original article
        Hit count: 370
        
I am using Msys to build a home brew kernel that I wrote under Linux. Linux used ELF for its binary format and Msys uses PE. I have the source setup to allow it to be booted by Grub using the Multiboot spec. At the end of the build, I get some undefined symbols:
init.o:init.S:(.text+0x14): undefined reference to `edata'
main.o:main.c:(.text+0x121): undefined reference to `_alloca'
main.o:main.c:(.text+0x126): undefined reference to `__main'
../../lib\libkern.a(mem.o):mem.c:(.text+0x242): undefined reference to `_end'
../../lib\libkern.a(mem.o):mem.c:(.text+0x323): undefined reference to `_end'
These appear to be ELF oriented symbols. If anyone can advise me on how these should be dealt with in the PE world, e.g. if there are equivalents, it would help me out a lot!
© Stack Overflow or respective owner