Messages in this thread | | | Date | Fri, 31 Aug 2007 10:28:58 -0700 | From | Arjan van de Ven <> | Subject | Re: [Bugme-new] [Bug 8957] New: Exported functions and variables |
| |
On Fri, 31 Aug 2007 10:14:27 -0700 (PDT) Matti Linnanvuori <mattilinnanvuori@yahoo.com> wrote:
> It seems to me that kernel/module.c allows the whole kernel to use > exported symbols during the execution of the init function if they > are weak: /* Ok if weak. */ if (ELF_ST_BIND(sym[i].st_info) == > STB_WEAK) break; > That seems a possible way to produce the scenario of this so-called > bug.
if you export weak symbols in your own module AND you have some piece of kernel that will start using the symbol (which means the kernel already needs to know about it) AND you don't know what you're doing you get shot in the foot... BFD
maybe if you have such a case you should publish the source code of that case so that we can suggest alternative approaches of what you're trying to do.. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |