Subject: Re: is building suse91 on a non-COMPAT_LINUX kernel supposed to die
To: Martin Husemann <martin@duskware.de>
From: Hisashi T Fujinaka <htodd@twofifty.com>
List: tech-pkg
Date: 07/15/2005 16:06:16
On Fri, 15 Jul 2005, Martin Husemann wrote:

> On Thu, Jul 14, 2005 at 09:46:05PM -0700, Hisashi T Fujinaka wrote:
>>   2557 ldconfig emul(netbsd)
>>   2557 ldconfig execve("/usr/pkg/emul/linux/sbin/ldconfig", 0xbfbfe754,
>>   0xbfbfe764) JUSTRETURN
>
> The question is why /usr/pkg/emul/linux/sbin/ldconfig is accepted as a netbsd
> ELF binary. What does file /usr/pkg/emul/linux/sbin/ldconfig say?

htodd@kerry:~ > file /usr/pkg/emul/linux/sbin/ldconfig
/usr/pkg/emul/linux/sbin/ldconfig: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, statically linked, not stripped

> Is there a .note* in the output of objdump -x?

Is this what you mean?

htodd@kerry:~ > objdump -x /usr/pkg/emul/linux/sbin/ldconfig | grep note
  18 .note.ABI-tag 00000020  080480d4  080480d4  000000d4  2**2
  19 .note.SuSE    00000018  080480f4  080480f4  000000f4  2**2
080bdc08 l     O .rodata        00000010 expected_note.3
080480d4 l    d  .note.ABI-tag  00000000
080480f4 l    d  .note.SuSE     00000000

-- 
Hisashi T Fujinaka - htodd@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte