All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] [PATCH] Ok, I build x86-64 -skas0, and it still segfaults.
Date: Fri, 18 Nov 2005 02:58:01 -0600	[thread overview]
Message-ID: <200511180258.02082.rob@landley.net> (raw)
In-Reply-To: <200511180858.02124.blaisorblade@yahoo.it>

On Friday 18 November 2005 01:58, Blaisorblade wrote:
> On Friday 18 November 2005 08:36, Rob Landley wrote:
> > On Friday 18 November 2005 01:43, Blaisorblade wrote:
> > > On Wednesday 16 November 2005 04:09, Rob Landley wrote:
> > > > On Monday 14 November 2005 13:40, Blaisorblade wrote:
> > >
> > > Ok, clearer: could you try removing altogether that -rlink? I'm trying
> > > here too right now... will follow up with results.
> >
> > I believe I tried that already and the error was the same as when it had
> > the wrong directory.
>
> Ok, right - can you try adding both rlink now (first lib64 and then lib)? I
> gathered some more insight and it should work.

Actually, since the rpath line appends arguments to whatever's already there
and Makefile-$ARCH gets included before that, I suspect the correct thing to
do is append 

LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64

to the end of "arch/um/Makefile-x86_64".  Order should work out ok, and the
path is only modified for x86-64...

The ld man page says:
      -rpath dir
           Add a directory to the runtime library search path.  This  is  used
           when  linking  an  ELF  executable with shared objects.  All -rpath
           arguments are concatenated and passed to the runtime linker,  which
           uses  them  to locate shared objects at runtime.  The -rpath option
           is also used when locating  shared  objects  which  are  needed  by
           shared objects explicitly included in the link; see the description
           of the -rpath-link option.

So that concatenates multiple arguments...

And it worked beautifully.  Here's your patch:

--- linux-2.6.14/arch/um/Makefile-x86_64 2005-10-28 02:02:08.000000000 +0200
+++ linux-2.6.15-rc1/arch/um/Makefile-x86_64 2005-11-18 09:55:39.984601688 +0100
@@ -12,3 +12,5 @@
 
 ELF_ARCH := i386:x86-64
 ELF_FORMAT := elf64-x86-64
+
+LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64

Rob


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2005-11-18  8:58 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-13  1:36 [uml-devel] [PATCH] Ok, I build x86-64 -skas0, and it still segfaults Rob Landley
2005-11-13 17:54 ` Blaisorblade
2005-11-13 23:26   ` Rob Landley
2005-11-14 19:40     ` Blaisorblade
2005-11-16  3:09       ` Rob Landley
2005-11-18  7:43         ` Blaisorblade
2005-11-18  7:36           ` Rob Landley
2005-11-18  7:58             ` Blaisorblade
2005-11-18  8:58               ` Rob Landley [this message]
2005-11-19  0:11               ` [uml-devel] [PATCH] UML x86-64 build fix Rob Landley
2005-11-13 19:32 ` [uml-devel] [PATCH] Ok, I build x86-64 -skas0, and it still segfaults Jeff Dike
2005-11-13 19:20   ` Blaisorblade
2005-11-13 23:32     ` Rob Landley
2005-11-14 15:33       ` Jeff Dike
2005-11-14 21:55       ` Jeff Dike
2005-11-14 23:24         ` Rob Landley
2005-11-14 23:45           ` Rob Landley
2005-11-15  1:38             ` Jeff Dike
2005-11-15  2:18               ` Rob Landley
2005-11-15 22:09         ` Paolo Giarrusso
2005-11-16  0:57           ` Jeff Dike

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=200511180258.02082.rob@landley.net \
    --to=rob@landley.net \
    --cc=blaisorblade@yahoo.it \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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.