From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754472Ab0CYT3T (ORCPT ); Thu, 25 Mar 2010 15:29:19 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:46367 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754440Ab0CYT3Q convert rfc822-to-8bit (ORCPT ); Thu, 25 Mar 2010 15:29:16 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=CwxajbJwdtJHk4ubJ/rNd52gUt3QZizHzBJCW8qAt6GDMn3hV11Cr0uoF75thyePU1 R2GdXNNHTMMXbBRxy/MM10lmB/uLCGBwgDJlIfoiReraosxdAoATjcaTEFHo6JbdT33X jNLWUQKACgB6ZKEO3jR4j/IMs8fE2GSiNhAjs= MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 25 Mar 2010 20:29:14 +0100 Message-ID: Subject: Re: execve() returns ENOENT when ld-linux.so isn't found From: Olaf van der Spek To: drepper@gmail.com Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 24, 2010 at 11:45 PM, wrote: > On Wed, Mar 24, 2010 at 15:37, Olaf van der Spek > wrote: >> >> Why not? >> It's an improvement IMO, although it could be better. > > It's blatantly wrong.  There is no dynamic linker.  ENOEXEC means the file > exists but is not of the right format. That sounds closer to the actual error than ENOENT. ENOENT: The file filename or a script or ELF interpreter does not exist, or a shared library needed for file or interpreter cannot be found. ENOEXEC: An executable is not in a recognized format, is for the wrong architecture, or has some other format error that means it cannot be executed. ENOENT shouldn't be overloaded like this, as it's common meaning is: file not found. So it shouldn't be returned if the argument to execve is actually found. Olaf