public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "H. J. Lu" <hjl@lucon.org>
To: "Baker, Brian (ISS - Houston)" <Brian.B@hp.com>
Cc: ak@suse.de, torvalds@osdl.org, discuss@x86-64.org, akpm@osdl.org,
		"Altobelli, David" <david.altobelli@hp.com>,
		binutils@sources.redhat.com
Subject: Re: [discuss] RE: [PATCH] [1/2] x86_64: Pass -32 to the assembler when compiling  the 32bit vsyscall pages
Date: Fri, 21 Apr 2006 23:22:00 -0000	[thread overview]
Message-ID: <20060421145001.GA13830@lucon.org> (raw)
In-Reply-To: <6095103C4F0ACD4FAE3522E0F27ADF42022CEE33@cceexc13.americas.cpqcorp.net>

On Fri, Apr 21, 2006 at 09:25:33AM -0500, Baker, Brian (ISS - Houston) wrote:
> The credit for this should actually go to Dave Altobelli, not myself.
> 
> -----Original Message-----
> From: ak@suse.de [mailto:ak@suse.de] 
> Sent: Friday, April 21, 2006 2:42 AM
> To: torvalds@osdl.org
> Cc: discuss@x86-64.org; akpm@osdl.org; Baker, Brian (ISS - Houston)
> Subject: [PATCH] [1/2] x86_64: Pass -32 to the assembler when compiling
> the 32bit vsyscall pages
> 
> 
> This quietens warnings and actually fixes a bug. The unwind tables would
> come out wrong without -32, causing pthread cancellation during them 
> to crash in the gcc runtime.
> 
> The problem seems to only happen with newer binutils
> (it doesn't happen with 2.16.91.0.2 but happens wit 2.16.91.0.5) 

If you believe it is true, please open a bug report at

http://www.sourceware.org/bugzilla/

> 
> Thanks to Brian Baker @ HP for test case and initial analysis.
> 
> Cc: brian.b@hp.com
> 
> Signed-off-by: Andi Kleen <ak@suse.de>
> 
> ---
>  arch/x86_64/ia32/Makefile |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> Index: linux/arch/x86_64/ia32/Makefile
> ===================================================================
> --- linux.orig/arch/x86_64/ia32/Makefile
> +++ linux/arch/x86_64/ia32/Makefile
> @@ -27,5 +27,5 @@ $(obj)/vsyscall-sysenter.so $(obj)/vsysc
>  $(obj)/vsyscall-%.so: $(src)/vsyscall.lds $(obj)/vsyscall-%.o FORCE
>  	$(call if_changed,syscall)
>  
> -AFLAGS_vsyscall-sysenter.o = -m32
> -AFLAGS_vsyscall-syscall.o = -m32
> +AFLAGS_vsyscall-sysenter.o = -m32 -Wa,-32
> +AFLAGS_vsyscall-syscall.o = -m32 -Wa,-32

I can't reproduce it with binutils 2.16.91.0.5. Unless you have a bad
gcc driver, -m32 will pass --32 to assembler, which is the same as -32.


H.J.

       reply	other threads:[~2006-04-21 14:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6095103C4F0ACD4FAE3522E0F27ADF42022CEE33@cceexc13.americas.cpqcorp.net>
2006-04-21 23:22 ` H. J. Lu [this message]
2006-04-23 20:24   ` Andi Kleen
2006-04-24 10:13     ` H. J. Lu
2006-04-24 10:33       ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060421145001.GA13830@lucon.org \
    --to=hjl@lucon.org \
    --cc=Brian.B@hp.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=binutils@sources.redhat.com \
    --cc=david.altobelli@hp.com \
    --cc=discuss@x86-64.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).