This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gnu loader on Alpha


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]