[PATCH] powerpc/misc: fix exported functions that reference the TOC

Michael Ellerman mpe at ellerman.id.au
Tue Apr 4 19:55:05 AEST 2017


Benjamin Herrenschmidt <benh at au1.ibm.com> writes:

> On Mon, 2017-04-03 at 23:29 +1000, Michael Ellerman wrote:
>> The other option would be just to make a rule that anything EXPORT'ed
>> must use _GLOBAL_TOC().
>
> Can we enforce that somewhat at build time ?

Yeah I had a quick look at doing that last night but didn't see anything
obvious.

So yes we could, but perhaps not easily - EXPORT_SYMBOL() is generic
code so changing that could be a pain.

cheers


More information about the Linuxppc-dev mailing list