[PATCH v6 8/9] Implement kernel live patching for ppc64le (ABIv2)

Jiri Kosina jikos at kernel.org
Wed Feb 3 07:39:21 AEDT 2016


On Tue, 2 Feb 2016, Petr Mladek wrote:

> Note that TOC is not set only when the problematic functions are 
> compiled with --mprofile-kernel. I still see the TOC stuff when 
> compiling only with -pg.

I don't see how this wouldn't be a gcc bug.

No matter whether it's plain profiling call (-pg) or kernel profiling call 
(-mprofile-kernel), gcc must always assume that global function (that will 
typically have just one instance for the whole address space) will be 
called.

-- 
Jiri Kosina
SUSE Labs



More information about the Linuxppc-dev mailing list