This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gnu loader on Alpha
- To: "Steven M. Carr" <carr at mtu dot edu>
- Subject: Re: gnu loader on Alpha
- From: Richard Henderson <rth at cygnus dot com>
- Date: Sat, 12 Jun 1999 05:57:00 -0700
- Cc: egcs at egcs dot cygnus dot com
- References: <375FDA80.96722110@mtu.edu>
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~