Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2009 19:34:37 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        barney_cordoba@yahoo.com
Cc:        freebsd-current@freebsd.org, Christof Schulze <christof.schulze@gmx.net>
Subject:   Re: kldload exec format error on amd64 freebsd-7.1-rc2
Message-ID:  <864oztrflu.fsf@ds4.des.no>
In-Reply-To: <417204.17745.qm@web63906.mail.re1.yahoo.com> (Barney Cordoba's message of "Sun, 18 Jan 2009 12:30:37 -0800 (PST)")
References:  <417204.17745.qm@web63906.mail.re1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Barney Cordoba <barney_cordoba@yahoo.com> writes:
> Is there any interest in fixing this stupid and wrong error message to
> be something like "unresolved externals" at some point?

When the kernel fails to load a module, kldload(2) returns ENOEXEC,
which strerror(3) translates to "exec format error".  If you can think
of a better errno value to use, feel free to send patches.  The only
alternatives I can think of are ENOSYS (ambiguous) and EFTYPE (just as
vague as ENOEXEC).

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864oztrflu.fsf>