gnu loader on Alpha
Richard Henderson
rth@cygnus.com
Wed Jun 30 15:43:00 GMT 1999
On Thu, Jun 10, 1999 at 11:32:16AM -0400, Steven M. Carr wrote:
> Does anyone know if the gnu loader for an Alpha supports loading a
> program into the lower 32-bit address space?
Not directly, but it can be done. It's one of the things I should
really get around to doing something about, as it should be easy.
Right now, you have to use a custom link script for the executable,
to base it at 0x10000 instead of 0x120000000. Then, you have to
set EF_ALPHA_32BIT (1) in Elf64_Ehdr.e_flags (offset 48).
Then you have to have a kernel that supports the flag. Any 2.2
kernel will do; you need Jim Paradis' em86 patch for 2.0 though.
r~
More information about the Gcc
mailing list