linux-mips
[Top] [All Lists]

Re: ELF header kernel module wrong?

To: michaels@jungo.com
Subject: Re: ELF header kernel module wrong?
From: Keith Owens <kaos@melbourne.sgi.com>
Date: Tue, 27 Feb 2001 10:39:39 +1100
Cc: linux-mips@oss.sgi.com
In-reply-to: Your message of "Mon, 26 Feb 2001 13:17:42 +0200." <3A9A3B56.B0141D21@jungo.com>
Sender: owner-linux-mips@oss.sgi.com
On Mon, 26 Feb 2001 13:17:42 +0200, 
michaels@jungo.com wrote:
>If what you say is correct, then any module created by this toolchain
>would be impossible to 'insmod'

Not impossible, just silently corrupted if the symbol numbers were
wrong.  modutils 2.3.11 added a sanity check on the number of local
symbols, a version before 2.3.11 would accept any local symbol number
and overrun the allocated table if the number was out of bounds.

Sometimes the toolchain creates valid symbol numbers, sometimes an
invalid number will not cause any problems.  It is pure luck if it
works.


<Prev in Thread] Current Thread [Next in Thread>