From: "xchen" <xchen@sunrisetelecom.com.cn>
To: "'Daniel Jacobowitz'" <drow@false.org>
Cc: <gdb@sourceware.org>
Subject: Re: (Rising Spam Alert)Re: wrong lib address
Date: Mon, 03 Sep 2007 04:16:00 -0000 [thread overview]
Message-ID: <20070903041600.fbIArcX1006zlJ7mzxoJ-ufqHGptD52qDzrwtgr9yD0@z> (raw)
In-Reply-To: <20070830121433.GC25759@caradoc.them.org>
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-09-03 4:16 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070830102107.6A5A398153@nan.false.org>
2007-08-30 12:14 ` Daniel Jacobowitz
2007-09-03 4:16 ` (Rising Spam Alert)Re: " xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen [this message]
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
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=20070903041600.fbIArcX1006zlJ7mzxoJ-ufqHGptD52qDzrwtgr9yD0@z \
--to=xchen@sunrisetelecom.com.cn \
--cc=drow@false.org \
--cc=gdb@sourceware.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