Re: SuSE Linux 8.1 Alpha ... -m32 switch in gcc ?

Alan Young <[email protected]> Mon, 22 Nov 2004 20:45:32 +0000
Newsgroups gmane.linux.suse.axp
Message-ID <[email protected]>
Hi,

On Sat, 20 Nov 2004 19:23:26 -0800 "Jim McCarthy" <[email protected]> wrote:

> Hello --
> 
> I have recently tested both Debian GNU/Linux -and- Red Hat 7.2 (from HP) on
> my DEC Alpha(s).  In both cases, I encountered gcc compiler warnings on
> Alpha when trying to build C software written for PC Linux (Intel 32-bit),
> and indeed the resulting executables fail at run-time.  Just today I found
> again "alphalinux.org" and mention of the SuSE Linux 8.1 Alpha Edition, and
> some further investigation of SuSE Linux then led me to this page:
> 
> http://www.novell.com/documentation/suse91/suselinux-adminguide/html/ch10s04
> .html
> 
> which describes (at least for SuSE Linux 9.1 for AMD64) a gcc compiler
> switch "-m32" that I believe would solve my problem (by limiting address
> pointers to 32-bits), *IF* this feature is also part of SuSE Linux 8.1 for
> DEC Alpha.
> 
> Can anyone tell me if the SuSE Linux 8.1 Alpha Edition's gcc compiler also
> supports the -m32 switch, or if there is another (better/recommended)
> approach for building (on Alpha) C code written for 32-bit Intel PC Linux
> where addresses are assumed to be 32-bits ?
> 
> Thanks,
> 
>     -- Jim McCarthy
>        Los Angeles, CA
> 
>        [email protected]

I believe what you are looking for is the -taso option.  It was added to
the linker in binutils version 2.9.5.0.24.  I have not been able to
confiirm via net searches if/when it was added to GCC. (My alpha's
in pieces still following a move from Portland to Phoenix.)  I have
seen mention that it has been added to the gcc code, but not added
to the documentation.  You may want to try compiling with it and
see what happens.  I would not be surprised if the resulting
binary halts the box... ;-)

Alan