Re: Unresolved symbol __multi3
David Mosberger <[email protected]> Wed, 14 Aug 2002 11:07:58 -0700
| Newsgroups | gmane.linux.redhat.ia64.general |
|---|---|
| Message-ID | <[email protected]> |
>>>>> On 14 Aug 2002 13:58:35 -0400, Jim Wilson <[email protected]> said: Jim> libgcc is not used by the kernel. There are various problems Jim> with linking libgcc with the kernel. I am not a kernel hacker, Jim> so I can't really explain them. If the kernel really needs a Jim> multi3 function, then you add one to the kernel. There is a Jim> place in the kernel for support functions like this. I don't Jim> have a copy of the kernel sources handy, and don't remember Jim> offhand where the functions are put. For one thing, the register usage conventions are different inside the kernel, so you can't just use the libgcc version. >From Jim's explanation, it sounds like the module needs to be fixed not to do dynamically-sized array (if you want to do that explicitly, you can use alloca instead, but beware of overflowing the kernel stack) or the alternative is to use gcc3.1. I don't want to add divti3 in the kernel for no good reason (and a broken compiler/module is not a good reason). --david