|
RE: GDB pre-built binaries require libpthread
|
08/27/2014 2:59 AM
post111567
|
RE: GDB pre-built binaries require libpthread
I absolutely downloaded the right one. Just for clarity sake I downloaded it again.
Nto-gdb-7.6.tar.gz
Extracts to :
host/qnx6/x86/usr/bin/ntox86-gdb
To make it executable I had to chmod +x it.
Then:
qnx:/root/gdb_build/host/qnx6/x86/usr/bin# ./ntox86-gdb
ldd:FATAL: Could not load library libpthread.so.1
I also did this on it:
qnx:/root/gdb_build/host/qnx6/x86/usr/bin# ntox86-readelf -d ntox86-gdb | grep NEEDED
0x00000001 (NEEDED) Shared library: [libz.so.2]
0x00000001 (NEEDED) Shared library: [libsocket.so.3]
0x00000001 (NEEDED) Shared library: [libm.so.2]
0x00000001 (NEEDED) Shared library: [libiconv.so.1]
0x00000001 (NEEDED) Shared library: [liblzma.so.5]
0x00000001 (NEEDED) Shared library: [libc.so.3]
And your right it doesn't say that it needs it but when I run it, it fails.
Here is readelf -l
--------------------------------------------------------
qnx:/root/gdb_build/host/qnx6/x86/usr/bin# readelf -l ntox86-gdb
Elf file type is EXEC (Executable file)
Entry point 0x804bc48
There are 6 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x08048034 0x00000000 0x000c0 0x000c0 R E 0x4
INTERP 0x0000f4 0x080480f4 0x00000000 0x00014 0x00014 R 0x1
[Requesting program interpreter: /usr/lib/ldqnx.so.2]
LOAD 0x000000 0x08048000 0x08048000 0x3a3d2c 0x3a3d2c R E 0x1000
LOAD 0x3a4000 0x083ec000 0x083ec000 0x08598 0x21b28 RW 0x1000
DYNAMIC 0x3a4014 0x083ec014 0x00000000 0x000f0 0x000f0 RW 0x4
NOTE 0x000108 0x08048108 0x00000000 0x00018 0x00018 R 0x1
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .note .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .
rodata .eh_frame
03 .ctors .dtors .jcr .dynamic .data .got .bss
04 .dynamic
05 .note
Let me know what you think
Ben
-----Original Message-----
From: Ryan Mansfield [mailto:community-noreply@qnx.com]
Sent: Wednesday, 27 August 2014 4:43 PM
To: general-toolchain
Subject: Re: GDB pre-built binaries require libpthread
Are you sure you copied over the right ntox86-gdb? And not a Linux host gdb?
From the nto-gdb-7.6.tar.gz:
$ ntox86-readelf -d ntox86-gdb | grep NEEDED
0x00000001 (NEEDED) Shared library: [libz.so.2]
0x00000001 (NEEDED) Shared library: [libsocket.so.3]
0x00000001 (NEEDED) Shared library: [libm.so.2]
0x00000001 (NEEDED) Shared library: [libiconv.so.1]
0x00000001 (NEEDED) Shared library: [liblzma.so.5]
0x00000001 (NEEDED) Shared library: [libc.so.3]
No dependency on libpthread in the ntox86-gdb. Can you provide the output from readelf -l on the gdb binary?
Regards,
Ryan Mansfield
_______________________________________________
General
http://community.qnx.com/sf/go/post111566
To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com
|
|
|