Re: [Statifier-general] Re: doesn"t work. - work again
Tool for creating portable self-containing Linux executable
Brought to you by:
valery_reznic
From: Valery R. <val...@ya...> - 2005-03-15 11:47:05
|
> Hello, Valery. Finally I ran statifier > without problems, i.e. without > runtime errors. > > I found an error in src/dumps.sh. You must > replace sh by bash in the > first line, as you use bashisms (in-line > evaluations) Please fix in the CVS. Done, thanks. > > The problem is that the binaries I get give > SIGSEGV: > > ender@debian:~$ ls -l /bin/ls > -rwxr-xr-x 1 root root 79568 jul 16 2004 /bin/ls > ender@debian:~$ statifier /bin/ls /tmp/ls.static > ender@debian:~$ ls -l /tmp/ls.static > -rwxrwxr-x 1 ender ender 1581056 Mar 15 11:25 > /tmp/ls.static > ender@debian:~$ /tmp/ls.static > Segmentation fault > > But this is a paradox: > > ender@debian:~$ file /tmp/ls.static > /tmp/ls.static: ELF 32-bit LSB executable, Intel > 80386, version 1 (SYSV), > dynamically linked, stripped > ender@debian:~$ ldd /tmp/ls.static > not a dynamic executable It's not a paradox: 'file' think that executable is dynamically linked if it has 'PT_DYNAMIC' segment, but ldd think it's dynamic if executable has PT_INTERP. Usually dynamically linked executables have both of them, so file's and ldd's output are match. But in the statified exe there is PT_DYNAMIC segment, but there is no PT_INTERP, so file and ldd show different things. > > If you want, I can send you the generated > static binary. Yes, please. Can you run statifier again with -k option and send me .statifier directory too ? and also kernel, libc and gdb version you use. > > I must generate some valid output binaries Binary is pretty valid, just not run :((. > in order to enter Debian, Valery __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |