All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: linux-kbuild <linux-kbuild@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: kbuild breaks um - fails to find util when linking
Date: Wed, 11 Jun 2008 11:23:18 -0400	[thread overview]
Message-ID: <20080611152318.GA8099@c2.user-mode-linux.org> (raw)
In-Reply-To: <20080610190307.GA15983@uranus.ravnborg.org>

On Tue, Jun 10, 2008 at 09:03:07PM +0200, Sam Ravnborg wrote:
> Hi Jeff.
> 
> In an attempt to make the final link of vmlinux
> readable/hackable I have broken um build.
> 
> um used a special rule so it could use gcc as linker.
> With my changes we need to use ld to link vmlinux and
> ld now fails to locate util.
> 
> I hope you have a clue why. I tried various things but
> did not find out why ld cannot locate util.

This little patch fixes the -lutil problem linking vmlinux.o, but on
the final link, I get what appears to be every libc symbol
undefined...

Index: linux-2.6-git/arch/um/Makefile
===================================================================
--- linux-2.6-git.orig/arch/um/Makefile	2008-06-11 10:46:03.000000000 -0400
+++ linux-2.6-git/arch/um/Makefile	2008-06-11 11:19:05.000000000 -0400
@@ -104,7 +104,7 @@ archprepare: $(ARCH_SYMLINKS) $(ARCH_DIR
 prepare: $(ARCH_DIR)/include/kern_constants.h
 
 LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
-LINK-$(CONFIG_LD_SCRIPT_DYN) += -rpath /lib -rpath /usr/lib
+LINK-$(CONFIG_LD_SCRIPT_DYN) += -L/lib -L/usr/lib
 
 CFLAGS_NO_HARDENING := $(call cc-option, -fno-PIC,) $(call cc-option, -fno-pic,) \
 	$(call cc-option, -fno-stack-protector,) \

	       		  	Jeff

-- 
Work email - jdike at linux dot intel dot com

  parent reply	other threads:[~2008-06-11 15:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-10 19:03 kbuild breaks um - fails to find util when linking Sam Ravnborg
2008-06-11 15:11 ` Jeff Dike
2008-06-11 15:23 ` Jeff Dike [this message]
2008-06-11 15:48 ` Jeff Dike
2008-06-11 19:49   ` Sam Ravnborg
2008-06-12 18:08   ` Sam Ravnborg
2008-06-12 20:13     ` Jeff Dike
2008-06-12 21:06       ` Sam Ravnborg
2008-06-13 23:08         ` Gabriel C
2008-06-18 16:51           ` Jeff Dike
2008-06-18 16:59             ` Sam Ravnborg

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=20080611152318.GA8099@c2.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=linux-kbuild@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.