Greg Haerr writes:
>
>
> >
> > The problem with this is that depending on the size of the code segment,
> > the data segment may be in a different place. If the ds is going to be
> > hardcoded, this should be an option only used for putting the kernel in ROM
> > or other similar applications.
> >
>
> couldn't there be a post-link pass or something that determines how
> big the code segment is, and rebuild a .s file with the proper DS equate?
> I know this is not a priority now, but it would allow ELKS to run ROMable. I
> guess it's really not a big deal until someone actually wants to run ELKS in rom.
>
I am quite happy for a ROM version of ELKS to have a config option that
hardcodes the data segment, but I do not think it is the base way to do it
for standard PC ELKS.
Al