Thread: Tools DIY - KeK
View Single Post
Old 07-15-2012, 04:13 PM   #87
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,519
Karma: 5840130
Join Date: Feb 2012
Device: Too many.
Strace 4.7 static

This one is the current release of strace.
I did not patch in the Amazon/lab126 syscalls.
I did not build it to decode the new AIO calls.
Other than that, it should "just work".

First, install the just created xz in the emulator's /home/bin directory and put the new bin directory on the path:
Spoiler:

(armv6l:1) /home # mkdir bin
(armv6l:1) /home # cd xz504/mnt/us/bin
(armv6l:1) /home/xz504/mnt/us/bin # cp -a xz /home/bin
(armv6l:1) /home/xz504/mnt/us/bin # cd
(armv6l:1) /home # export PATH=/home/bin:$PATH


The build notes:
Spoiler:

(armv6l:1) /home # wget http://superb-sea2.dl.sourceforge.ne...ace-4.7.tar.xz
(armv6l:1) /home # xz -d strace-4.7.tar.xz
(armv6l:1) /home # tar -xf strace-4.7.tar
(this one does not recognize --disable-shared but seems otherwise well behaved)
(armv6l:1) /home/strace-4.7 # LDFLAGS='-static -static-libgcc' ./configure --prefix=/mnt/us
(armv6l:1) /home/strace-4.7 # grep DESTDIR Makefile
(yup, it recognizes DESTDIR)
(armv6l:1) /home/strace-4.7 # make
(armv6l:1) /home/strace-4.7 # ldd strace
not a dynamic executable
(armv6l:1) /home/strace-4.7 # mkdir ../strace47
(armv6l:1) /home/strace-4.7 # DESTDIR=/home/strace47 make install
(armv6l:1) /home/strace-4.7 # cd /home/strace47
(armv6l:1) /home/strace47 # tar -czf strace-4.7-static-arm.tar.gz mnt


The complete tar-ball contents:
Code:
(armv6l:1) /home/strace47 # tar -tf strace-4.7-static-arm.tar.gz
mnt/
mnt/us/
mnt/us/share/
mnt/us/share/man/
mnt/us/share/man/man1/
mnt/us/share/man/man1/strace.1
mnt/us/bin/
mnt/us/bin/strace-log-merge
mnt/us/bin/strace
mnt/us/bin/strace-graph
Attached, the complete tar-ball plus a copy of strace gzip'd, just gunzip it.

Edit:
The applications inside of the complete tar-ball do not have their symbols stripped.
The individual .gz'd file does have the excess symbols stripped.
Four or five people got copies of the "too big" staticly linked executables.
Attached Files
File Type: gz strace-4.7-static-arm.tar.gz (286.8 KB, 34 views)
File Type: gz strace.gz (134.2 KB, 32 views)

Last edited by knc1; 07-15-2012 at 08:54 PM.
knc1 is offline   Reply With Quote