[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [BusyBox] can only execute from root directory
From: Brendan J Simon <brendan.simon () ctam ! com ! au>
Date: 2002-07-29 21:09:07
[Download RAW message or body]
Fixed. I stuffed around with the build system sometime ago so that it
would build in a directory different to the source directoy. I managed
to solve this particular problem by adding the / to DYNAMIC_LINKER in
Rules.mak. The reason for this is my setting for SHARED_LIB_LOADER is
not absolute.
Changing build systems can be fraught with much danger. My new method
is to create a symlink tree to the sources via a simple script or maybe
even "cp -s". This is a lot quicker than rewriting someone else's build
system and probably much safer.
Cheers,
Brendan Simon.
Brendan J Simon wrote:
>
> I previously posted a message saying that I can't execute programs
> that are copied to tmpfs filesystem on /tmp. This message is
> erroneous. I found that I can not execute any executable that is not
> in the root directory. Well not 100% true. It seems that busybox
> (and symlinked friends) work OK from any directory but my apps do
> not. I used readelf to try and find some differences. It seems that
> the requesting program interpreter is different.
>
> My apps have: [Requesting program interpreter: lib/ld-uClibc.so.0]
> Busybox has: [Requesting program interpreter: /lib/ld-uClibc.so.0]
>
> Note the missing slash before "lib" which makes it an absolute path
> rather than a relative path. I think this is the problem as the error
> message I get when trying to run my apps from somewhere other than /
> is "/usr/local/bin/myprog: No such file or directory"
>
> I don't know why the / is missing. It must have something to do with
> the install directory not being absolute when I built uClibc.
> Any ideas ???
>
> I can get around it with "-Wl,--dynamic-linker,/lib/ld-uClibc.so.0"
> but it shouldn't really be necessary.
>
> Cheers,
> Bendan Simon.
>
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic