View Single Post
Old 09-01-2012, 08:31 AM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
RPATHS - edit them by hand? a helpful tool

Buildroot has a tendency to embed unwanted rpaths.

so to fix this for now I have compiled this kindle tool.

Just dump the rpath somewhere on FAT to run it.

Code here:
http://gcc.gnu.org/ml/gcc/1999-04n/msg01105.html

root@kindle:root> rpath
Usage: rpath objectfile [newrpath]


Example of unwanted info:

Quote:
root@kindle:root> readelf -d /mnt/us/usr/bin/glib-compile-schemas

Dynamic section at offset 0x72b4 contains 28 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libglib-2.0.so.0]
0x00000001 (NEEDED) Shared library: [librt.so.1]
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000f (RPATH) Library rpath: [/home/you/GIT/buildroot/output/build/libglib2-2.30.2/glib/.libs]
root@kindle:root> rpath /mnt/us/usr/bin/glib-compile-schemas /mnt/us/usr/lib

Quote:
/mnt/us/usr/bin/glib-compile-schemas:existing RPATH: /home/you/GIT/buildroot/output/build/libglib2-2.30.2/glib/.libs
/mnt/us/usr/bin/glib-compile-schemas:new RPATH: /mnt/us/usr/lib

now it's fixed. Simples. : )

root@kindle:root> readelf -d /mnt/us/usr/bin/glib-compile-schemas

Quote:
Dynamic section at offset 0x72b4 contains 28 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libglib-2.0.so.0]
0x00000001 (NEEDED) Shared library: [librt.so.1]
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000f (RPATH) Library rpath: [/mnt/us/usr/lib]
Enjoy.
Attached Files
File Type: gz rpath.tar.gz (4.9 KB, 421 views)

Last edited by twobob; 09-01-2012 at 08:46 AM.
twobob is offline   Reply With Quote