From: Mathieu Desnoyers Date: Tue, 26 Apr 2011 16:18:45 +0000 (-0400) Subject: Tracepoint: make tracepoint ptrs section rw X-Git-Tag: v0.13~13 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;ds=sidebyside;h=332b3a18ea9e3be7ec5d65a4d75c5cf2b6a59525;hp=332b3a18ea9e3be7ec5d65a4d75c5cf2b6a59525;p=ust.git Tracepoint: make tracepoint ptrs section rw The pointer section needs to be rw so that the linker can update the pointers at link-time, thus allowing the code to be compiled with -fPIC. The previous behavior would cause section flag mismatch, because TRACEPOINT_LIB declared the ptr with "= NULL", which is not a void * const, but rather a void *, which forces the element it is assigned to to become non-const. Signed-off-by: Mathieu Desnoyers ---