|
Re: libsocket in QNX 6.5.0
|
05/10/2011 3:12 PM
post85562
|
Re: libsocket in QNX 6.5.0
My fault, I wasn't clear. That directory did contain all the libraries from my test. The test is just a one-liner that
calls socket(). But now I think the issue is at least partially how we are looking for dependencies (by parsing the
output of ntoppc-strings).
objdump the test executable and I see
...
Dynamic Section:
NEEDED libsocket.so.3
NEEDED libc.so.3
INIT 0x480404d0
FINI 0x48040888
HASH 0x48040128
STRTAB 0x480402f0
SYMTAB 0x480401c0
STRSZ 0x000000e5
SYMENT 0x00000010
DEBUG 0x00000000
PLTGOT 0x480419d8
PLTRELSZ 0x00000078
PLTREL 0x00000007
JMPREL 0x48040458
RELA 0x4804041c
RELASZ 0x000000b4
RELAENT 0x0000000c
VERNEED 0x480403fc
VERNEEDNUM 0x00000001
VERSYM 0x480403d6
Version References:
required from libsocket.so.3:
0x040fdf22 0x00 02 libsocket.so.2
...
So libsocket.so.3 somehow still points back to .2. objdump libsocket.so.3 and I see
...
Dynamic Section:
NEEDED libc.so.3
SONAME libsocket.so.3
INIT 0x00006fb8
FINI 0x00029618
HASH 0x000000f4
STRTAB 0x000027c8
SYMTAB 0x00000c08
STRSZ 0x00000f76
SYMENT 0x00000010
PLTGOT 0x0002e780
PLTRELSZ 0x00000984
PLTREL 0x00000007
JMPREL 0x00006634
RELA 0x00003af0
RELASZ 0x000034c8
RELAENT 0x0000000c
VERDEF 0x00003ab8
VERDEFNUM 0x00000002
VERSYM 0x0000373e
RELACOUNT 0x0000038d
Version definitions:
1 0x01 0x040fdf23 libsocket.so.3
2 0x00 0x040fdf22 libsocket.so.2
...
I don't have enough ELF knowledge to know if this is a problem, how to fix it, etc. But from the previous post it
sounds like the libsocket.so.2 pointer here can be safely ignored.
|
|
|