CORE_ADDR representation

Daniel Jacobowitz
Thu Feb 18 13:41:00 GMT 2010

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

Daniel Jacobowitz

More information about the Gdb mailing list