"Jeremy Jackson" <[EMAIL PROTECTED]> writes:
> I'd like to learn how you are doing this... perhaps I can have a
> peek at your program?
Look at ftp://download.lnxi.com:/pub/src/mkelfImage/reloc_test.tgz
> It's just a test case, a Linux usermode program, to be using brk()?
It is just a test case and brk is the guts of malloc.
> Have you also considered using segment registers on Intel?
I have. While that is less code is
(a) less portable.
(b) Much more intrusive, when you consider device drivers, and
other code that knows the physical layout of memory.
The downside of not using segment registers is that you loose the use
of a register. But generally that is much less intrusive.
So having a relocatable problem looks like a much less intrusive
change for some things, and the overhead is not too bad.
Eric