List Info

Thread: shared library symbols not loaded automatically




shared library symbols not loaded automatically
user name
2006-07-22 20:38:26
>>>>> "Daniel" == Daniel
Jacobowitz <drowfalse.org> writes:

 Daniel> On Fri, Jul 21, 2006 at 08:12:56PM +0530, Kunal
Parmar wrote:
 >> Hi Daniel, I am not clear how setting
solib-absolute-prefix will
 >> solve this problem.  The manual says that it is
used as a prefix
 >> for searching the libraries at runtime.  When I
use the command
 >> sharedlibrary at the gdb prompt, the libraries are
correctly
 >> loaded.  Doesn't this mean that I do not need to
set the
 >> solib-absolute-prefix??

 Daniel> Not if they're the wrong libraries.

 Daniel> You may be loading literally
"/lib/libc.so.6" on your host -
 Daniel> an i386 library.

It would be a good feature if GDB didn't do that for
crossbuilds,
because it can't possibly be correct...

	paul

shared library symbols not loaded automatically
user name
2006-07-22 21:07:41
On Sat, Jul 22, 2006 at 04:38:26PM -0400, Paul Koning wrote:
> >>>>> "Daniel" == Daniel
Jacobowitz <drowfalse.org> writes:
> 
>  Daniel> On Fri, Jul 21, 2006 at 08:12:56PM +0530,
Kunal Parmar wrote:
>  >> Hi Daniel, I am not clear how setting
solib-absolute-prefix will
>  >> solve this problem.  The manual says that it
is used as a prefix
>  >> for searching the libraries at runtime.  When
I use the command
>  >> sharedlibrary at the gdb prompt, the
libraries are correctly
>  >> loaded.  Doesn't this mean that I do not
need to set the
>  >> solib-absolute-prefix??
> 
>  Daniel> Not if they're the wrong libraries.
> 
>  Daniel> You may be loading literally
"/lib/libc.so.6" on your host -
>  Daniel> an i386 library.
> 
> It would be a good feature if GDB didn't do that for
crossbuilds,
> because it can't possibly be correct...

Yes, I agree.  I invite you to implement it before I get
around to it


-- 
Daniel Jacobowitz
CodeSourcery
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )