This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Honor 32-bit linux personality in gas


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.

No way that binutils should know about this.  If you want this
behavior, ship wrapper scripts for the assembler instead.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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