xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@eu.citrix.com>
To: Nathan March <nathan@gt.net>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: Xen 4.1.0 RC2 released,
Date: Mon, 31 Jan 2011 19:30:10 +0000	[thread overview]
Message-ID: <1296502210.20804.203.camel@localhost.localdomain> (raw)
In-Reply-To: <4D46FC0E.6060102@gt.net>

On Mon, 2011-01-31 at 18:14 +0000, Nathan March wrote: 
> 
> On 1/29/2011 2:45 AM, Ian Campbell wrote:
> > I just built Xen with the following patch and it didn't break on a
> > Debian system (i.e. without as-needed enabled by default). Can you try
> > it in your environment?
> 
> Initially failed with:
> 
> ld -Wl,--no-as-needed   -melf_x86_64 -r -o built_in.o head.o
> ld: unrecognized option '-Wl,--no-as-needed'
> ld: use the --help option for usage information

The -Wl,<foo> syntax is for gcc and says "pass <foo> to the linker". If
you are just calling the linker directly then you just need the <foo>
bit (i.e. --as-needed)

However I didn't notice any direct calls to ld when I tested this patch.

Oh, I think I see, the LDFLAGS where patched it effects both the
hypervisor and the tools builds but I only tested the tools.

Can you try the one below instead.

Ian.

diff -r c83acd6f343e tools/Rules.mk
--- a/tools/Rules.mk	Mon Jan 31 09:32:25 2011 +0000
+++ b/tools/Rules.mk	Mon Jan 31 19:29:10 2011 +0000
@@ -52,7 +52,7 @@ ifneq ($(XEN_OS),NetBSD)
 # Enable implicit LFS support *and* explicit LFS names.
 CFLAGS  += $(shell getconf LFS_CFLAGS)
 CFLAGS  += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-LDFLAGS += $(shell getconf LFS_LDFLAGS)
+LDFLAGS += $(shell getconf LFS_LDFLAGS) -Wl,--no-as-needed
 endif
 
 # 32-bit x86 does not perform well with -ve segment accesses on Xen.

  reply	other threads:[~2011-01-31 19:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27 23:05 Xen 4.1.0 RC2 released, Nathan March
2011-01-28  8:53 ` Ian Campbell
2011-01-28 19:09   ` Nathan March
2011-01-28 19:12     ` Ian Campbell
2011-01-28 19:22       ` Nathan March
2011-01-28 19:36         ` Ian Campbell
2011-01-28 21:19           ` Nathan March
2011-01-28 21:54             ` Ian Campbell
2011-01-28 22:24               ` Nathan March
2011-01-29 10:45                 ` Ian Campbell
2011-01-31 18:14                   ` Nathan March
2011-01-31 19:30                     ` Ian Campbell [this message]
2011-01-31 19:54                       ` Nathan March
2011-02-01 18:51                       ` Ian Jackson
2011-02-01 18:53                         ` Ian Campbell
2011-03-21 14:43                   ` Ian Campbell
2011-04-01 17:38                     ` Nathan March
2011-04-01 18:35                       ` Ian Campbell

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=1296502210.20804.203.camel@localhost.localdomain \
    --to=ian.campbell@eu.citrix.com \
    --cc=nathan@gt.net \
    --cc=xen-devel@lists.xensource.com \
    /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 NNTP newsgroup(s).