mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
That is not present on some libelf implementations, such as the one used in Alpine Linux: libelf-0.8.13. This ends up disabling the SDT code, that relies on this function. One alternative would be to provide an weak fallback implementation or the open coded variant used by the buildid sysfs notes reading code. Cc: Adrian Hunter <[email protected]> Cc: Ananth N Mavinakayanahalli <[email protected]> Cc: Brendan Gregg <[email protected]> Cc: David Ahern <[email protected]> Cc: Hemant Kumar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
8 lines
107 B
C
8 lines
107 B
C
#include <stdlib.h>
|
|
#include <gelf.h>
|
|
|
|
int main(void)
|
|
{
|
|
return gelf_getnote(NULL, 0, NULL, NULL, NULL);
|
|
}
|