Page 2 of 2
Re: how to make your own "executable" files in your own OS
Posted: Tue Nov 03, 2009 1:03 pm
by Firestryke31
I don't know how easy it will be to "change the header," mainly because there are a lot of tools that work with the ELF format that you would need to change to get to work with your OS. It might just be easier to have a special section in the ELF file that stores data for your OS (things like minimum version required, program icons (if any), etc.). Then it would be much easier to port those tools.
Well, good luck (and nice avvy)!
Re: how to make your own "executable" files in your own OS
Posted: Tue Nov 03, 2009 2:42 pm
by jal
Firestryke31 wrote:I don't know how easy it will be to "change the header," mainly because there are a lot of tools that work with the ELF format that you would need to change to get to work with your OS.
I'm not sure, except for GRUB I don't think there are that many tools you'd actually need after changing the header. That could be the last step. And before the OS is self-hosting and you'd actually need tools to inspect a binary executable, that's lightyears ahead.
JAL
Re: how to make your own "executable" files in your own OS
Posted: Tue Nov 03, 2009 3:00 pm
by Combuster
Unless you just do what windows does - anything
can be interpreted as an executable - but only .exe
is interpreted like that by default. It would logically have to otherwise you could try and start DLLs since they share the file format.
(for the windows nerds, yes, you can change that behaviour)
so you can just have ELFs all over the place, and only treat filename.xso as an executable. (just like .mos is special cased for that purpose in my OS
)
Re: how to make your own "executable" files in your own OS
Posted: Wed Nov 04, 2009 10:13 pm
by Nekrose483
Firestryke31 wrote:Well, good luck (and nice avvy)!
thank you ^^ i like yours too.
and,
Combuster wrote:Unless you just do what windows does - anything
can be interpreted as an executable - but only .exe
is interpreted like that by default. It would logically have to otherwise you could try and start DLLs since they share the file format.
(for the windows nerds, yes, you can change that behaviour)
so you can just have ELFs all over the place, and only treat filename.xso as an executable. (just like .mos is special cased for that purpose in my OS
)
thank you ^^ i think i might do that. thanks