Make references to __{start,stop}___{markers,tracepoints} weak
authorJan Blunck <jblunck@suse.de>
Tue, 27 Oct 2009 10:07:39 +0000 (11:07 +0100)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 11 Nov 2009 21:48:00 +0000 (16:48 -0500)
commit55994a672106ec794f292d747206542067a27584
treec1dd726d07497e9ba0c6f76aa4fa4f5699287ccb
parent9727555f30daf958f4817b28069ad36e871d65e8
Make references to __{start,stop}___{markers,tracepoints} weak

When using the linker script approach for initialization of the libust
library we unconditionally call __markers_init()/__tracepoints_init().
If one is using only tracepoints or only markers the init call fails
because of undefined references to the linker generated symbols for the
__markers or __tracepoints section (__start___markers, ...). Since we use
the symbols just for the size and the start of the section it is safe to
use weak symbols in this case: if the size if zero nothing get read anyway.

Signed-off-by: Jan Blunck <jblunck@suse.de>
include/ust/marker.h
include/ust/tracepoint.h
This page took 0.025083 seconds and 4 git commands to generate.