public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: "H. J. Lu" <hjl@lucon.org>
Cc: discuss@x86-64.org, 	"Baker,
	Brian (ISS - Houston)" <Brian.B@hp.com>,
	torvalds@osdl.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: Mon, 24 Apr 2006 10:33:00 -0000	[thread overview]
Message-ID: <200604220156.22114.ak@suse.de> (raw)
In-Reply-To: <20060421233244.GA16692@lucon.org>

On Saturday 22 April 2006 01:32, H. J. Lu wrote:

> > You have to recompile the file and either run the pthreads
> > cancellation test case with the right glibc version, or examine
> > the unwind tables in the .so by hand. Or just check if the warning
> > appears or not.
> 
> There is no need to do that. If you believe the problem is due to
> binutils 2.16.91.0.5, it is a binutils bug. Please open a bug report
> at

I'm not sure - it is reasonable for binutils to expect --32 to be passed
And the linker did warn about it after all - just I made the mistake
of ignoring it before.

The only reason I mentioned binutils is that it didn't happen with 
older binutils/gcc releases.

> 
> http://www.sourceware.org/bugzilla/
> 
> and assign it to me. I need the preprocessed .s file, the expected .o
> file and the expected .so file with procedures to reproduce the
> difference. Since they are assembly codes, I will expect -m32 and
> -m32 -Wa,-32 should generate the same output.

I don't have time to extract a test case out of this right now, sorry.
I guess you could though.

> 
> > 
> > > 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.
> > 
> > It definitely fixed the problem here and the warning went away.
> > gcc used was 4.1
> > 
> > But you're right it could have been the gcc - in the case where it worked
> > I was using gcc 4.0.
> > 
> 
> Since they are assembly codes, it sounds like a gcc driver issue to me.

Might be. The way the assembly is built is a bit funky because it's a 
shared library.

-Andi

      reply	other threads:[~2006-04-21 23:56 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
2006-04-23 20:24   ` Andi Kleen
2006-04-24 10:13     ` H. J. Lu
2006-04-24 10:33       ` Andi Kleen [this message]

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=200604220156.22114.ak@suse.de \
    --to=ak@suse.de \
    --cc=Brian.B@hp.com \
    --cc=akpm@osdl.org \
    --cc=binutils@sources.redhat.com \
    --cc=david.altobelli@hp.com \
    --cc=discuss@x86-64.org \
    --cc=hjl@lucon.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).