Tracepoint: make tracepoint ptrs section rw
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Apr 2011 16:18:45 +0000 (12:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Apr 2011 16:18:45 +0000 (12:18 -0400)
commit332b3a18ea9e3be7ec5d65a4d75c5cf2b6a59525
treeae06bcaf6d6412afef5a41a82ce2d88d74d69036
parent1c330d13895139a60bb47a0efba1f50af080cf59
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 <mathieu.desnoyers@efficios.com>
include/ust/tracepoint.h
This page took 0.024092 seconds and 4 git commands to generate.