* Problem using gdbserver on ARM target
@ 2006-05-04 12:05 Chetan Kapoor
2006-05-04 14:03 ` Daniel Jacobowitz
2006-05-04 15:37 ` Marc Singer
0 siblings, 2 replies; 4+ messages in thread
From: Chetan Kapoor @ 2006-05-04 12:05 UTC (permalink / raw)
To: linux-omap-open-source, linux-arm-toolchain, linux-arm-kernel
Hello
I am trying bring up gdbserver on my ARM target (OMAP P2 730).
I downloaded a prebuilt toolchain which contains gcc 3.3.2-glibc-2.3.2 +
binutils-head. We have used this to build Kernel version 2.6.16-omap1 &
Busybox-1.0.0.
I have now compiled gdb 6.4 pack, and crosscompiled the gdb with
--target=arm-linux
For gdbserver in the gbb/gdbserver directory I configured using
--host=arm-linux
A make is successful but the dynamically linked ARM executable gives the
following error when I execute it on the target,
~ # ./gdbserver
-sh: ./gdbserver: No such file or directory
I have noted that the gdbserver executable has been loaded successfully to
the target yet I am not able to execute it.
On the host I verified,
# file gdbserver
ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3,
dynamically linked (uses shared libs), not stripped
Any clues as to what is going wrong here ?
It seems that the gdbserver dynamically linked executable is looking for a
few shared libraries to be in place in the target's rootfs. I tried
keeping the required libraries (libc-2.3.2.so, libthread_db-1.0.so,
libcrypt-2.3.2.so and related symlinks)at path /usr/local/arm/3.3.2/lib on
the target's rootfs to relsove the issue. This time the gdbserver launches
but gives a segmentation fault.
Someone suggested that first I should get libthread_db compiled as a
static library (i.e. libthread_db.a), and then build a statically linked
gdbserver executable which includes libthread_db.a.
I have a prebuilt toolchain for which I do not have the source code, and
libthread_db.a is not present in the toolchain's lib folder, rather
libthread_db.so is present. Any pointers, where can I get the toolchain's
source and use it to build static librares?, which will in turn be useful
in building statically linked gdbserver.
Thanks
Chetan
*********************** FSS-Unclassified ***********************
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem using gdbserver on ARM target
2006-05-04 12:05 Problem using gdbserver on ARM target Chetan Kapoor
@ 2006-05-04 14:03 ` Daniel Jacobowitz
2006-05-04 14:41 ` Chetan Kapoor
2006-05-04 15:37 ` Marc Singer
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2006-05-04 14:03 UTC (permalink / raw)
To: Chetan Kapoor
Cc: linux-omap-open-source, linux-arm-kernel, linux-arm-toolchain
On Thu, May 04, 2006 at 05:35:23PM +0530, Chetan Kapoor wrote:
> A make is successful but the dynamically linked ARM executable gives the
> following error when I execute it on the target,
>
> ~ # ./gdbserver
> -sh: ./gdbserver: No such file or directory
Then your toolchain does not match your root file system. Take a look
with readelf -d and readelf -l to see where this binary is searching
for libraries and for the dynamic loader.
> I have a prebuilt toolchain for which I do not have the source code, and
> libthread_db.a is not present in the toolchain's lib folder, rather
> libthread_db.so is present. Any pointers, where can I get the toolchain's
> source and use it to build static librares?, which will in turn be useful
> in building statically linked gdbserver.
It should be obvious that you haven't given us enough information to
answer this question.
The toolchain is all covered by the GPL. It is (roughly speaking) the
responsibility of whoever you got it from to provide you the source
code. Ask them.
--
Daniel Jacobowitz
CodeSourcery
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem using gdbserver on ARM target
2006-05-04 14:03 ` Daniel Jacobowitz
@ 2006-05-04 14:41 ` Chetan Kapoor
0 siblings, 0 replies; 4+ messages in thread
From: Chetan Kapoor @ 2006-05-04 14:41 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: linux-omap-open-source, linux-arm-kernel
[-- Attachment #1.1: graycol.gif --]
[-- Type: image/gif, Size: 848 bytes --]
[-- Attachment #2: Type: text/plain, Size: 271 bytes --]
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem using gdbserver on ARM target
2006-05-04 12:05 Problem using gdbserver on ARM target Chetan Kapoor
2006-05-04 14:03 ` Daniel Jacobowitz
@ 2006-05-04 15:37 ` Marc Singer
1 sibling, 0 replies; 4+ messages in thread
From: Marc Singer @ 2006-05-04 15:37 UTC (permalink / raw)
To: Chetan Kapoor
Cc: linux-omap-open-source, linux-arm-kernel, linux-arm-toolchain
On Thu, May 04, 2006 at 05:35:23PM +0530, Chetan Kapoor wrote:
> Hello
>
> I am trying bring up gdbserver on my ARM target (OMAP P2 730).
>
> I downloaded a prebuilt toolchain which contains gcc 3.3.2-glibc-2.3.2 +
> binutils-head. We have used this to build Kernel version 2.6.16-omap1 &
> Busybox-1.0.0.
>
> I have now compiled gdb 6.4 pack, and crosscompiled the gdb with
> --target=arm-linux
> For gdbserver in the gbb/gdbserver directory I configured using
> --host=arm-linux
>
> A make is successful but the dynamically linked ARM executable gives the
> following error when I execute it on the target,
>
> ~ # ./gdbserver
> -sh: ./gdbserver: No such file or directory
Try
# ldd gdbserver
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-05-04 15:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-04 12:05 Problem using gdbserver on ARM target Chetan Kapoor
2006-05-04 14:03 ` Daniel Jacobowitz
2006-05-04 14:41 ` Chetan Kapoor
2006-05-04 15:37 ` Marc Singer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox