Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2000 08:48:20 +0930
From:      Greg Lehey <grog@lemis.com>
To:        FUJISHIMA Satsuki <k5@cheerful.com>
Cc:        imp@village.org, current@FreeBSD.ORG, ports@FreeBSD.ORG
Subject:   Re: Help with Linux interpreter
Message-ID:  <20000705084820.J94351@wantadilla.lemis.com>
In-Reply-To: <86lmzhgc11.wl@cheerful.com>
References:  <86hfa81m2f.wl@cheerful.com> <200007020325.VAA56324@harmony.village.org> <20000704110640.B94351@wantadilla.lemis.com> <86lmzhgc11.wl@cheerful.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 grog@lemis.com for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000705084820.J94351>