Fix dynamic linking with GNU gold linker
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 8 Dec 2011 13:28:42 +0000 (08:28 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 8 Dec 2011 13:28:42 +0000 (08:28 -0500)
commit40b2b5a43e4c2067849770b3379ca5360facacd5
treea2f908239e03f2e3abfd2e4f946e150ec8ea4cc2
parent662211514ff412d47eb3f3597cce7bb41f6a7019
Fix dynamic linking with GNU gold linker

Programs that were not linked explicitely with -lurcu-bp generated no
trace output when linked with GNU gold, because the urcu-bp library
symbols were not used to populate the weak urcu-bp symbols used by the
program. (even though they worked fine with the standard GNU ld).

Solve this by creating those wrapper symbols into tracepoint.c, and
explicitely get them with dlsym() in the constructor.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/Makefile.am
include/lttng/tracepoint-rcu.h [new file with mode: 0644]
include/lttng/tracepoint.h
liblttng-ust/tracepoint.c
tests/demo/demo.c
tests/hello.cxx/hello.cpp
tests/hello/hello.c
This page took 0.026361 seconds and 4 git commands to generate.