openbmc / linux

OpenBMC Linux kernel source tree
Other
49 stars 131 forks source link

perf: Make perf able to build with latest libbfd #192

Closed geissonator closed 4 years ago

geissonator commented 4 years ago

This is a backport from upstream. It is currently only in the v5.6 branch. Latest yocto (dunfell) brings in this new libbfd package so this kernel fix is required to be able to compile the perf package.

Original Commit Msg:

libbfd has changed the bfdsection* macros to inline functions bfdsection since 2019-09-18. See below two commits: o http://www.sourceware.org/ml/gdb-cvs/2019-09/msg00064.html o https://www.sourceware.org/ml/gdb-cvs/2019-09/msg00072.html

This fix make perf able to build with both old and new libbfd.

Signed-off-by: Changbin Du changbin.du@gmail.com Acked-by: Jiri Olsa jolsa@redhat.com Cc: Peter Zijlstra peterz@infradead.org Link: http://lore.kernel.org/lkml/20200128152938.31413-1-changbin.du@gmail.com Signed-off-by: Arnaldo Carvalho de Melo acme@redhat.com

shenki commented 4 years ago

Merged in 7dc9442bbe7d0d1512c64a97b7cc58fed2b38ba4, thanks