On Wednesday, 5 July 2000 at 0:17:46 +0900, FUJISHIMA Satsuki wrote:
> Hmm, all that I can tell about the matter is described in the PR:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=18489
>
> I'm not sure this is the case but it looks pretty similar for me.
Hmm.
$ brandelf -t Linux acroread
$ hd acroread|head -1
00000000 7f 45 4c 46 01 01 01 03 46 72 65 65 42 53 44 00 |.ELF....FreeBSD.|
On the other machine, I get:
$ hd acroread|head -1
00000000 7f 45 4c 46 01 01 01 03 4c 69 6e 75 78 00 00 00 |.ELF....Linux...|
$ brandelf -t FreeBSD acroread
$ hd acroread|head -1
00000000 7f 45 4c 46 01 01 01 09 4c 69 6e 75 78 00 00 00 |.ELF....Linux...|
Repeating this last brandelf invocation (-t FreeBSD) with ktrace, I see:
2586 brandelf NAMI "acroread"
2586 brandelf RET open 3
2586 brandelf CALL sigprocmask(0x1,0x28060040,0x28060050)
2586 brandelf RET sigprocmask 0
2586 brandelf CALL sigprocmask(0x3,0x28060050,0)
2586 brandelf RET sigprocmask 0
2586 brandelf CALL read(0x3,0xbfbfefe4,0x10)
2586 brandelf GIO fd 3 read 16 bytes
"\^?ELF\^A\^A\^A Linux\0\0\0"
2586 brandelf RET read 16/0x10
2586 brandelf CALL sigprocmask(0x1,0x28060040,0x28060050)
2586 brandelf RET sigprocmask 0
2586 brandelf CALL sigprocmask(0x3,0x28060050,0)
2586 brandelf RET sigprocmask 0
2586 brandelf CALL sigprocmask(0x1,0x28060040,0x28060050)
2586 brandelf RET sigprocmask 0
2586 brandelf CALL sigprocmask(0x3,0x28060050,0)
2586 brandelf RET sigprocmask 0
2586 brandelf CALL lseek(0x3,0,0,0,0)
2586 brandelf RET lseek 0
2586 brandelf CALL sigprocmask(0x1,0x28060040,0x28060050)
2586 brandelf RET sigprocmask 0
2586 brandelf CALL sigprocmask(0x3,0x28060050,0)
2586 brandelf RET sigprocmask 0
2586 brandelf CALL write(0x3,0xbfbfefe4,0x10)
2586 brandelf GIO fd 3 wrote 16 bytes
"\^?ELF\^A\^A\^A Linux\0\0\0"
2586 brandelf RET write 16/0x10
It looks as if brandelf is broke.
Greg
--
Finger [EMAIL PROTECTED] for PGP public key
See complete headers for address and phone numbers
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message