execve("libm.so") -> SIGSEGV instead of ELIBEXEC

Tigran Aivazian (tigran@sco.COM)
Mon, 3 Aug 1998 17:05:24 +0100 (BST)


Hello,

Sorry - I meant ELIBEXEC, not ENOEXEC. I thought I should keep quiet about
ELIBEXEC because Unix98 does not mention it but since it is in
<asm/errno.h> on Linux then we might as well use it?

Regards,
------ -------- --------- -------- -- - -- ---- --
Tigran A. Aivazian | http://www.sco.com
Escalations Research Group | tel: +44-(0)1923-813796
Santa Cruz Operation Ltd | Email: tigran@sco.com

---------- Forwarded message ----------
Date: Mon, 3 Aug 1998 16:56:00 +0100 (BST)
From: Tigran Aivazian <tigran@sco.com>
To: linux-kernel@vger.rutgers.edu
Subject: execve("libm.so") -> SIGSEGV instead of ENOEXEC.

Hello guys,

An attempt to exec() a shared library causes SIGSEGV. I thought the only
two things you can do to a shared library is to dlopen() it or link with
it dynamically. So, I assume trying to execve(2) it is illegal and hence
it should return an error, perhaps ENOEXEC.

Regards,
------ -------- --------- -------- -- - -- ---- --
Tigran A. Aivazian | http://www.sco.com
Escalations Research Group | tel: +44-(0)1923-813796
Santa Cruz Operation Ltd | Email: tigran@sco.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html