Re: CORE_ADDR representation

Daniel Jacobowitz
2010-02-18T13:41:50Z

On Thu, Feb 18, 2010 at 11:34:04AM +0100, Jan Kratochvil wrote:
> these "& mask" parts can be removed. This masking was there already before
> start of the PIE(+OSX) patches.

I don't understand. How can the masking possibly be removed? If you
don't mask, 0x50000000 + 0x40000000 == 0x90000000 and that's not going
to work on MIPS where we need 0xffffffff90000000.

> I thought about their removal only just as a simplification in future but it
> looks to be required for mips*. Downloading some mips .iso if it will run in
> qemu to test it.

This won't show the same problem, you'll need to use mips-elf instead.
MIPS Linux places application code below 0x80000000 exclusively; MIPS
ELF (at least some versions) starts applications in KSEG0, at
0x80000000.

--
Daniel Jacobowitz
CodeSourcery