Re: Other Linux stuff...

2000-12-06 Thread Trevor Johnson
For trivial cases, the simplest solution would be to just remove /compat/linux/usr/bin/ldd and have our native ldd do the work. If something depends on the switches, this won't work. At http://huizen.dds.nl/~frodol/glibc/problems.html it says: * ldd gives real strange output,

Re: Other Linux stuff...

2000-11-29 Thread Marc van Kempen
"Bruce A. Mah" wrote: If memory serves me right, Marcel Moolenaar wrote: So, from a pure ELF layout point of view, both shared objects and executables are the same. But a shared library is not guaranteed to be executable. Allowing shared objects to be executed is in violation

Re: Other Linux stuff...

2000-11-29 Thread Marcel Moolenaar
Marc van Kempen wrote: The only gain I see, if you can call it a gain, is that you can get non-trivial information out of a shared object from within scripts, but I don't know if this has been the reason. If you don't allow execution of shared objects, you have to use dlopen(3) and call

Other Linux stuff...

2000-11-28 Thread Donald J . Maddox
Huh... I was sure it did... Oh, well, guess my memory ain't what it used to be :-/ But... Since you are the Linux Guru, and it seems I momentarily have your attention, let me ask you about another Linux emulation matter. :) The Linux 'ldd' program is, as I'm sure you know, just a shell

Re: Other Linux stuff...

2000-11-28 Thread Marcel Moolenaar
"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

Re: Other Linux stuff...

2000-11-28 Thread janb
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 Could you elaborate on this, please. I am interested in what is meant with

Re: Other Linux stuff...

2000-11-28 Thread Marcel Moolenaar
[EMAIL PROTECTED] wrote: 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 Could you elaborate on this, please. I am

Re: Other Linux stuff...

2000-11-28 Thread Bruce A. Mah
If memory serves me right, Marcel Moolenaar wrote: So, from a pure ELF layout point of view, both shared objects and executables are the same. But a shared library is not guaranteed to be executable. Allowing shared objects to be executed is in violation with the specs: This may be a really

Re: Other Linux stuff...

2000-11-28 Thread Marcel Moolenaar
"Bruce A. Mah" wrote: If memory serves me right, Marcel Moolenaar wrote: So, from a pure ELF layout point of view, both shared objects and executables are the same. But a shared library is not guaranteed to be executable. Allowing shared objects to be executed is in violation with