Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] Some tweaks for ELF
In article <20130827072155.GA2592%mail.duskware.de@localhost>,
Martin Husemann <martin%duskware.de@localhost> wrote:
>On Tue, Aug 27, 2013 at 08:28:04AM +0900,
>tsugutomo.enami%jp.sony.com@localhost wrote:
>> Maxime Villard <max%M00nBSD.net@localhost> writes:
>> - How often is_dyn is true?
>
>Good point - I can't find any use for it. The code seems to agree:
>
> /*
> * XXX allow for executing shared objects. It seems silly
> * but other ELF-based systems allow it as well.
> */
> if (!is_dyn && elf_check_header(eh, ET_EXEC) != 0)
> return ENOEXEC;
>
>
>Are there any ET_DYN that are not shared libs? Maybe we should remove
>the is_dyn exec support completely.
Why, have you tried running libc.so on linux? :-)
christos
Home |
Main Index |
Thread Index |
Old Index