what executable format is using in your own os?
what executable format is using in your own os?
what executable format is using in your own os? ELF? exe? coff? aout?
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
I think that you should add the question of "why are you using that executable?"
As for me, it's ELF. And I don't know why.
I may be asked why I don't know later, but for now I don't care much.
(I'm watching a movie)
As for me, it's ELF. And I don't know why.
I may be asked why I don't know later, but for now I don't care much.
(I'm watching a movie)
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
Also ELF, because I have an ELF cross compiler on cygwin.
When I used DJGPP, I used COFF and when I experimented with MinGW, I used PE, just because they were the standard output formats. My second-stage boot loader relocates ELF and will soon relocate COFF and PE too, so it won't really matter. I will never go back to flat binary again!
Cheers,
Adam
When I used DJGPP, I used COFF and when I experimented with MinGW, I used PE, just because they were the standard output formats. My second-stage boot loader relocates ELF and will soon relocate COFF and PE too, so it won't really matter. I will never go back to flat binary again!
Cheers,
Adam
- AndrewAPrice
- Member
- Posts: 2309
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
ELF.. It's so simple to use, just scan the program headers and copy into memory!
My OS is Perception.
- jerryleecooper
- Member
- Posts: 233
- Joined: Mon Aug 06, 2007 6:32 pm
- Location: Canada
I'm sure lots of people are using plain binary. I was converted after misjudging the bss size kept causing my kernel to crash. Don't be put off by the docs - ELF and COFF are only marginally more difficult to get working than flat binaries.Lprogster wrote:Am I the only one using plain binary? I would like to include ELF support in the future.
Cheers,
Adam
Plain binary (wow I'm the second one ) for applications, MZ EXE for the kernel, as for upcoming PortixOS 0.4. I'm planning to implement PE EXE, COFF and ELF in the future (versions 0.5 and up )
Regards
inflater
MZ EXE is the same. You just read the exe relocation table, set DS, SS, ES and "future" values of CS and IP and you can load the kernel. This applies to real mode. In protected mode you can skip the whole relocation section. (Is that format relocatable then?)MessiahAndrw wrote:ELF.. It's so simple to use, just scan the program headers and copy into memory!
Regards
inflater
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English )
Derrick operating system: http://derrick.xf.cz (Slovak and English )
For MZ EXE ? Thats just old. Or for binary? You do not need docs for binary format I think. For ELF, COFF, ... etc, hmm, maybe the wikipedia does help (sorry for "RTFM-ish answer" but dunno, I do not implement these things now in my OS)
My web site: http://inflater.wz.cz (Slovak)
Derrick operating system: http://derrick.xf.cz (Slovak and English )
Derrick operating system: http://derrick.xf.cz (Slovak and English )