Advertisement
Guest User

Untitled

a guest
Aug 19th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. bitbake@301261cefcd1:~$ ./conftest-uninative
  2. bitbake@301261cefcd1:~$ echo $?
  3. 1
  4. bitbake@301261cefcd1:~$ ./conftest-no-uninative
  5. bitbake@301261cefcd1:~$ echo $?
  6. 0
  7. bitbake@301261cefcd1:~$ file conftest-*
  8. conftest-no-uninative: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=a92f7af1023b1b9a74a118df8e2bdffbc263a493, for GNU/Linux 3.2.0, not stripped
  9. conftest-uninative: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /OE/nodistro/honister/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2, BuildID[sha1]=fac86a409239acabe529ee8f7dfe62cbdbacb10e, for GNU/Linux 3.2.0, not stripped
  10.  
  11. bitbake@301261cefcd1:~$ ldd conftest-*
  12. conftest-no-uninative:
  13. linux-vdso.so.1 (0x00007ffe6efaf000)
  14. libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0956f7d000)
  15. libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0956d8b000)
  16. /lib64/ld-linux-x86-64.so.2 (0x00007f0956fac000)
  17. conftest-uninative:
  18. linux-vdso.so.1 (0x00007ffc74dd4000)
  19. libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1e0f113000)
  20. libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1e0ef21000)
  21. /OE/nodistro/honister/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f1e0f142000)
  22.  
  23. bitbake@301261cefcd1:~$ cp conftest-uninative conftest-uninative-without-loader
  24. bitbake@301261cefcd1:~$ patchelf-uninative --set-interpreter /lib64/ld-linux-x86-64.so.2 conftest-uninative-without-loader
  25.  
  26. bitbake@301261cefcd1:~$ file conftest-*
  27. conftest-no-uninative: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=a92f7af1023b1b9a74a118df8e2bdffbc263a493, for GNU/Linux 3.2.0, not stripped
  28. conftest-uninative: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /OE/nodistro/honister/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2, BuildID[sha1]=fac86a409239acabe529ee8f7dfe62cbdbacb10e, for GNU/Linux 3.2.0, not stripped
  29. conftest-uninative-without-loader: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=fac86a409239acabe529ee8f7dfe62cbdbacb10e, not stripped
  30.  
  31. bitbake@301261cefcd1:~$ ./conftest-uninative-without-loader
  32. bitbake@301261cefcd1:~$ echo $?
  33. 0
  34. bitbake@301261cefcd1:~$ ls -lah /OE/nodistro/honister/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
  35. -rwxr-xr-x 1 bitbake bitbake 211K Aug 19 15:14 /OE/nodistro/honister/BUILD/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement