This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Honor 32-bit linux personality in gas
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Gwenole Beauchesne <gbeauchesne at mandriva dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 6 May 2005 06:32:18 -0700
- Subject: Re: [PATCH] Honor 32-bit linux personality in gas
- References: <Pine.LNX.4.58.0505061222050.13659@thalys.mandrakesoft.com>
On Fri, May 06, 2005 at 12:35:07PM +0200, Gwenole Beauchesne wrote:
> Hi,
>
> I had this patch around for some time now. The purpose, combined with a
> similar patch to gcc, is to honour 32-bit running personality and default
> to 32-bit code generation on x86-64 in that case.
>
> e.g. if you are running a shell as linux32 bash, or implicitly through
> linux32 rpm --rebuild package.src.rpm, this helps to set a default
> behaviour compatible to what you would have in a full 32-bit environment.
>
> The patch still applies to 2.16.90.*
>
> 2005-01-19 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>
>
> * gas/config/tc-i386.c (is_linux32): New.
> (get_default_arch): Handle detection of 32-bit personality on
> Linux for x86-64 so that 32-bit code can be generated.
> (set_default_arch): New.
> (md_parse_option): Use it.
> (i386_mach): Use new default_arch accessors.
> (i386_target_format): Likewise.
>
It is not my taste. But I have no strong objections. I will leave it
to other people.
H.J.