From: Andi Kleen <andi@firstfloor.org>
To: sam@ravnborg.org, linux-kernel@vger.kernel.org
Subject: [PATCH] [2/2] kbuild: Check if linker supports the -X option
Date: Wed, 16 Sep 2009 22:36:55 +0200 (CEST) [thread overview]
Message-ID: <20090916203655.6DD73B1755@basil.firstfloor.org> (raw)
In-Reply-To: <200909161036.346507799@firstfloor.org>
The new alternative `gold' linker in recent binutils doesn't support
the -X option. This breaks allyesconfig builds that have
CONFIG_STRIP_ASM_SYMS enabled. Check if the linker really supports
the option using ld-option.
This requires fixes in earlier patches.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.31-rc3-ak/Makefile
===================================================================
--- linux-2.6.31-rc3-ak.orig/Makefile
+++ linux-2.6.31-rc3-ak/Makefile
@@ -600,7 +600,7 @@ LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID)
LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)
ifeq ($(CONFIG_STRIP_ASM_SYMS),y)
-LDFLAGS_vmlinux += -X
+LDFLAGS_vmlinux += $(call really-ld-option, -X,)
endif
# Default kernel image to build when no specific target is given.
next prev parent reply other threads:[~2009-09-16 20:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-16 20:36 [PATCH] [0/2] Updated patches for gold -X probing Andi Kleen
2009-09-16 20:36 ` [PATCH] [1/2] kbuild: Add a really-ld-option macro Andi Kleen
2009-09-19 8:07 ` Sam Ravnborg
2009-09-16 20:36 ` Andi Kleen [this message]
2009-09-18 2:31 ` [PATCH] [0/2] Updated patches for gold -X probing Américo Wang
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=20090916203655.6DD73B1755@basil.firstfloor.org \
--to=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.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
all inboxes | Powered by JetHome®