[PATCH] Honor 32-bit linux personality in gas

H. J. Lu hjl@lucon.org
Fri May 6 13:35:00 GMT 2005


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.



More information about the Binutils mailing list