[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] BINFMT_FLAT: reloc outside program - killing SSH



I know I put this in another email, but I like to open new threads when the subject changes (is easier to search for it later).

Well then, if some one missed the other emails, I need SSH, which needs SSL. SSL is working (apparently) - it is opening, at least.

SSH, however, is been killed. When I type #ssh , it returns :

# ssh
BINFMT_FLAT: reloc outside program 0x157ee8 (0 - 0x157eb4/0x11c620), killing ssh
!
BINFMT_FLAT: reloc outside program 0x157ee8 (0 - 0x157eb4/0x11c620), killing ssh
!
SIGSEGV
#

In the mail archives, I've found one issue related, but it was about sh and data cache. As I am able to boot and only ssh is having this problem, I think data cache is ok. I've tryied mb-flthdr in romfs/bin/ssh, it is returning this :

-bash-3.00$ mb-flthdr ssh
ssh
    Magic:        bFLT
    Rev:          4
    Build Date:   Mon Apr 10 09:42:31 2006
    Entry:        0x50
    Data Start:   0x11c660
    Data End:     0x151bd0
    BSS End:      0x157ef0
    Stack Size:   0x10000
    Reloc Start:  0x151bd0
    Reloc Count:  0x3f92
    Flags:        0x5 ( Load-to-Ram Gzip-Compressed )
-bash-3.00$

Does someone know what it is ? I dont know if it have anything to do with ssl, but I asssume not, since ssl is opening. I dont think is something with configuration of ssh Makefile, because it is already in CVS tree. But I dont have a clue of what is going on ...


I've tryied 3 things. According to uClinux archives, including a '-z' in FLTFLAGS could help. But it didn't :

1st change :
-FLTFLAGS += -s 65536
+FLTFLAGS += -s 65536 -z
gives me :
ucfront-gcc mb-gcc  -Wl,-elf2flt -L. -Lopenbsd-compat -lcrypt -o sshd sshd.o auth.o auth1.o auth2.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o auth2-pubkey.o auth-chall.o auth2-chall.o auth-rhosts.o auth-options.o auth-krb5.o auth-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o auth-sia.o sshpty.o sshlogin.o loginrec.o servconf.o serverloop.o md5crypt.o session.o groupaccess.o auth-skey.o auth-bsdauth.o monitor_mm.o monitor.o -lssh -lopenbsd-compat -lutil -lcrypto -lcrypt -lz
Can't run cmd gzip -f -9 >> sshd
collect2: ld returned 4 exit status
make[2]: *** [sshd] Error 1
make[2]: Leaving directory `/home2/adi_mohr/uClinux-dist/user/ssh'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home2/adi_mohr/uClinux-dist/user'
make: *** [subdirs] Error 1
-bash-3.00$

----


2nd change:
-LIBS=$(LIBCRYPTO) -lcrypt -lz
+LIBS=$(LIBCRYPTO) -lcrypt -lz -z
give me :

ucfront-gcc mb-gcc  -Wl,-elf2flt -L. -Lopenbsd-compat -lcrypt -o sshd sshd.o auth.o auth1.o auth2.o auth2-hostbased.o auth2-kbdint.o auth2-none.o auth2-passwd.o auth2-pubkey.o auth-chall.o auth2-chall.o auth-rhosts.o auth-options.o auth-krb5.o auth-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o auth-sia.o sshpty.o sshlogin.o loginrec.o servconf.o serverloop.o md5crypt.o session.o groupaccess.o auth-skey.o auth-bsdauth.o monitor_mm.o monitor.o -lssh -lopenbsd-compat -lutil -z -lcrypto -lcrypt -lz
/home2/adi_mohr/uClinux-dist/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
make[2]: *** [sshd] Error 1
make[2]: Leaving directory `/home2/adi_mohr/uClinux-dist/user/ssh'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home2/adi_mohr/uClinux-dist/user'
make: *** [subdirs] Error 1
-bash-3.00$

-----

I've also tryied
-LIBS=$(LIBCRYPTO) -lcrypt -lz
+LIBS=$(LIBCRYPTO) -lcrypt
but that went worst.

I'm not sure if I am in the right track here ...


Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!