Problem with creating an SDK and host libraries
Hi All,
I'm creating a powerpc 405 based meta-toolchain-sdk and the resulting opkg-cl for x86_64 is linking to OpenSSL within my $BUILD/tmp/staging/x86_64-linux/usr/lib/lib{ssl,crypto}...
The resulting tar of the toolchain does not include openssl x86_64 binaries at all. Does anyone know why this happening and what a solution might be?
The goal is to get a toolchain that is standalone or relies on the host shared libraries. OpenMoko's pre-built toolchain seems to link correctly, although somehow it isn't including SSL at all in opkg-cl.
Regards,
Ryan Phillips
Quoted 5 lines · On Wednesday 07 April 2010 22:06:17 Ryan Phillips wrote:
Hi All,
I'm creating a powerpc 405 based meta-toolchain-sdk and the resulting opkg-cl for
x86_64is linking to OpenSSL within my $BUILD/tmp/staging/x86_64-linux/usr/lib/lib{ssl,crypto}...
Oh, i recently upgraded opkg-sdk/curl-sdk and might have broken that. Your quick hack could be to go back to an older version (revert my commit) or help me to find out what is going on.
One easy option would be to disable SSL. Could you help me to see who needs the SSL library? Is that curl?
Quoted 7 lines · Holger Hans Peter Freyther
Quoted 5 lines · On Wednesday 07 April 2010 22:06:17 Ryan Phillips wrote:
Hi All,
I'm creating a powerpc 405 based meta-toolchain-sdk and the resulting opkg-cl for
x86_64is linking to OpenSSL within my $BUILD/tmp/staging/x86_64-linux/usr/lib/lib{ssl,crypto}...
Quoted 6 lines
Oh, i recently upgraded opkg-sdk/curl-sdk and might have broken that. Your quick hack could be to go back to an older version (revert my commit) or help me to find out what is going on.
One easy option would be to disable SSL. Could you help me to see who needs the SSL library? Is that curl?
Thanks for the quick response.
ldd /home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib/libopkg.so.0
linux-vdso.so.1 => (0x00007fff2efff000) libcurl.so.4 => /home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib/libcurl.so.4 (0x00007f34932d1000) libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007f3493069000) librt.so.1 => /lib/librt.so.1 (0x00007f3492e60000) libz.so.1 => /home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib/libz.so.1 (0x00007f3492c4a000) libssl.so.0.9.8 => /home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib/libssl.so.0.9.8 (0x00007f34929e6000) libcrypto.so.0.9.8 => /home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib/libcrypto.so.0.9.8 (0x00007f349261e000) libc.so.6 => /lib/libc.so.6 (0x00007f34922af000) liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007f34920a1000) libresolv.so.2 => /lib/libresolv.so.2 (0x00007f3491e87000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00007f3491c6d000) libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007f34919cb000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f34917ae000) /lib64/ld-linux-x86-64.so.2 (0x00007f3493742000) libdl.so.2 => /lib/libdl.so.2 (0x00007f34915aa000) libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007f3491398000) libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x00007f3491120000) libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x00007f3490f1c000)
ldd /home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib/libcurl.so.4
linux-vdso.so.1 => (0x00007fff7d7cc000) libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007ff7af380000) librt.so.1 => /lib/librt.so.1 (0x00007ff7af178000) libz.so.1 => /home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib/libz.so.1 (0x00007ff7aef61000) libc.so.6 => /lib/libc.so.6 (0x00007ff7aebf2000) liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007ff7ae9e4000) libresolv.so.2 => /lib/libresolv.so.2 (0x00007ff7ae7ca000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00007ff7ae5b0000) libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007ff7ae30e000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff7ae0f1000) /lib64/ld-linux-x86-64.so.2 (0x00007ff7af829000) libdl.so.2 => /lib/libdl.so.2 (0x00007ff7adeed000) libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007ff7adcdc000) libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x00007ff7ada63000) libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x00007ff7ad85f000)
Quoted 5 lines · On Wednesday 07 April 2010 22:35:18 Ryan Phillips wrote:
Thanks for the quick response.
ldd
/home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib/libopkg.so.0 linux-vdso.so.1 => (0x00007fff2efff000)
Could you also provide the output of objdump -x libopkg.so and then list everything as part of SO_NEEEDED?
Quoted 11 lines · Holger Hans Peter Freyther
Quoted 5 lines · On Wednesday 07 April 2010 22:35:18 Ryan Phillips wrote:
Thanks for the quick response.
ldd
/home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib/libopkg.so.0 linux-vdso.so.1 => (0x00007fff2efff000)Could you also provide the output of objdump -x libopkg.so and then list everything as part of
SO_NEEEDED?
The objdump output is attached.
Dynamic Section:
NEEDED libcurl.so.4 NEEDED libldap_r-2.4.so.2 NEEDED librt.so.1 NEEDED libz.so.1 NEEDED libssl.so.0.9.8 NEEDED libcrypto.so.0.9.8 NEEDED libc.so.6 SONAME libopkg.so.0
RPATH/home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib
Regards,
Ryan
/usr/local/angstrom/powerpc/lib/libopkg.so: file format elf64-x86-64/usr/local/angstrom/powerpc/lib/libopkg.so
architecture: i386:x86-64, flags 0x00000150:HAS_SYMS, DYNAMIC, D_PAGED
start address 0x000000000000a1b0
Program Header:
LOAD off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**21
filesz 0x000000000002cc2c memsz 0x000000000002cc2c flags r-x
LOAD off 0x000000000002dbf8 vaddr 0x000000000022dbf8 paddr 0x000000000022dbf8 align 2**21
filesz 0x0000000000001628 memsz 0x00000000000018f0 flags rw-
DYNAMIC off 0x000000000002dd60 vaddr 0x000000000022dd60 paddr 0x000000000022dd60 align 2**3
filesz 0x0000000000000210 memsz 0x0000000000000210 flags rw-
NOTE off 0x00000000000001c8 vaddr 0x00000000000001c8 paddr 0x00000000000001c8 align 2**2
filesz 0x0000000000000024 memsz 0x0000000000000024 flags r--
EH_FRAME off 0x000000000002932c vaddr 0x000000000002932c paddr 0x000000000002932c align 2**2
filesz 0x0000000000000a8c memsz 0x0000000000000a8c flags r--
STACK off 0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**3
filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
RELRO off 0x000000000002dbf8 vaddr 0x000000000022dbf8 paddr 0x000000000022dbf8 align 2**0
filesz 0x0000000000000408 memsz 0x0000000000000408 flags r--Dynamic Section:
NEEDED libcurl.so.4 NEEDED libldap_r-2.4.so.2 NEEDED librt.so.1 NEEDED libz.so.1 NEEDED libssl.so.0.9.8 NEEDED libcrypto.so.0.9.8 NEEDED libc.so.6 SONAME libopkg.so.0 RPATH /home/rphillips/sdk/build-cmc-angstrom/tmp/staging/x86_64-linux/usr/lib INIT 0x0000000000008d40 FINI 0x0000000000024068 HASH 0x00000000000001f0 GNU_HASH 0x00000000000013f0 STRTAB 0x0000000000004530 SYMTAB 0x00000000000020d0 STRSZ 0x0000000000001751 SYMENT 0x0000000000000018 PLTGOT 0x000000000022dfe8 PLTRELSZ 0x0000000000001e60 PLTREL 0x0000000000000007 JMPREL 0x0000000000006ee0 RELA 0x0000000000006010 RELASZ 0x0000000000000ed0 RELAENT 0x0000000000000018 VERNEED 0x0000000000005f90 VERNEEDNUM 0x0000000000000002 VERSYM 0x0000000000005c82 RELACOUNT 0x0000000000000090
Version References:
required from libcrypto.so.0.9.8:
0x06692428 0x00 04 OPENSSL_0.9.8
required from libc.so.6:
0x0d696917 0x00 07 GLIBC_2.7
0x0d696914 0x00 06 GLIBC_2.4
0x0d696913 0x00 05 GLIBC_2.3
0x09691974 0x00 03 GLIBC_2.3.4
0x09691a75 0x00 02 GLIBC_2.2.5Sections:
Idx Name Size VMA LMA File off Algn
0 .note.gnu.build-id 00000024 00000000000001c8 00000000000001c8 000001c8 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .hash 00001200 00000000000001f0 00000000000001f0 000001f0 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .gnu.hash 00000ce0 00000000000013f0 00000000000013f0 000013f0 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .dynsym 00002460 00000000000020d0 00000000000020d0 000020d0 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA
4 .dynstr 00001751 0000000000004530 0000000000004530 00004530 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
5 .gnu.version 00000308 0000000000005c82 0000000000005c82 00005c82 2**1
CONTENTS, ALLOC, LOAD, READONLY, DATA
6 .gnu.version_r 00000080 0000000000005f90 0000000000005f90 00005f90 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA
7 .rela.dyn 00000ed0 0000000000006010 0000000000006010 00006010 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA
8 .rela.plt 00001e60 0000000000006ee0 0000000000006ee0 00006ee0 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA
9 .init 00000018 0000000000008d40 0000000000008d40 00008d40 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
10 .plt 00001450 0000000000008d58 0000000000008d58 00008d58 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
11 .text 00019eb8 000000000000a1b0 000000000000a1b0 0000a1b0 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
12 .fini 0000000e 0000000000024068 0000000000024068 00024068 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
13 .rodata 000052ac 0000000000024080 0000000000024080 00024080 2**5
CONTENTS, ALLOC, LOAD, READONLY, DATA
14 .eh_frame_hdr 00000a8c 000000000002932c 000000000002932c 0002932c 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
15 .eh_frame 00002e74 0000000000029db8 0000000000029db8 00029db8 2**3
CONTENTS, ALLOC, LOAD, READONLY, DATA
16 .ctors 00000010 000000000022dbf8 000000000022dbf8 0002dbf8 2**3
CONTENTS, ALLOC, LOAD, DATA
17 .dtors 00000010 000000000022dc08 000000000022dc08 0002dc08 2**3
CONTENTS, ALLOC, LOAD, DATA
18 .jcr 00000008 000000000022dc18 000000000022dc18 0002dc18 2**3
CONTENTS, ALLOC, LOAD, DATA
19 .data.rel.ro 00000140 000000000022dc20 000000000022dc20 0002dc20 2**5
CONTENTS, ALLOC, LOAD, DATA
20 .dynamic 00000210 000000000022dd60 000000000022dd60 0002dd60 2**3
CONTENTS, ALLOC, LOAD, DATA
21 .got 00000070 000000000022df70 000000000022df70 0002df70 2**3
CONTENTS, ALLOC, LOAD, DATA
22 .got.plt 00000a38 000000000022dfe8 000000000022dfe8 0002dfe8 2**3
CONTENTS, ALLOC, LOAD, DATA
23 .data 00000800 000000000022ea20 000000000022ea20 0002ea20 2**5
CONTENTS, ALLOC, LOAD, DATA
24 .bss 000002c8 000000000022f220 000000000022f220 0002f220 2**5
ALLOC
25 .gnu_debuglink 00000018 0000000000000000 0000000000000000 0002f220 2**0
CONTENTS, READONLY
SYMBOL TABLE:
no symbols