Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2000 20:17:35 -0500
From:      Marcel Moolenaar <marcel@cup.hp.com>
To:        dmaddox@sc.rr.com
Cc:        current@FreeBSD.ORG
Subject:   Re: Other Linux stuff...
Message-ID:  <3A24592F.2D84B19@cup.hp.com>
References:  <20001128145340.A562@cae88-102-101.sc.rr.com> <3A243E39.2812E74E@cup.hp.com> <20001128183556.A4091@cae88-102-101.sc.rr.com> <3A2447DA.B6AA3002@cup.hp.com> <20001128191835.A5268@cae88-102-101.sc.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Donald J . Maddox" wrote:
> 
> The Linux 'ldd' program is, as I'm sure you know, just a shell
> script that tries to directly execute 'ld-linux.so.2' on the
> filename passed in argv to the script.  This doesn't work with our
> Linux emulation.  Apparently, ld-linux.so.2 is simply (and not too
> surprisingly) not recognized as an executable file.  While I'm
> surprised that this works on Linux, shouldn't our emulator emulate
> this behavior too?

It's not a matter of our emulator. The problem is that Linux allows the
execution of shared objects. Technically speaking this is wrong and our
ELF loader doesn't do that. We can change our ELF loader, but that would
propagate the bug to FreeBSD at large. I don't think we should do that.

I did make patches once. They're probably outdated, but there's a change
they apply:

http://people.FreeBSD.org/~marcel/elf-2.2.8.diff
http://people.FreeBSD.org/~marcel/elf-stable.diff
http://people.FreeBSD.org/~marcel/elf-current.diff

WARNING: -stable probably represents 3.x (which makes -current represent
4.x)

-- 
Marcel Moolenaar
  mail: marcel@cup.hp.com / marcel@FreeBSD.org
  tel:  (408) 447-4222


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A24592F.2D84B19>