Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 5e4dee1bb767614ac7a93e8454dde6f0 > files > 117

kernel-5.6.8-1.mga7.src.rpm


Binutils 2.34 dropped theese, so add them back here for now until
proper fix is done upstream.

Signed-off-by: Thomas Backlund <tmb@mageia.org>

--- ./tools/perf/util/srcline.c.orig	2020-02-11 19:05:00.752180443 +0200
+++ ./tools/perf/util/srcline.c	2020-02-11 19:07:11.588237074 +0200
@@ -126,6 +126,13 @@ static struct symbol *new_inline_sym(str
  */
 #define PACKAGE "perf"
 #include <bfd.h>
+/*
+ * HACK: binutils 2.34 dropped theese, add them back here for now
+ */
+#define bfd_get_section_flags(bfd, ptr) ((void) bfd, (ptr)->flags)
+#define bfd_get_section_userdata(bfd, ptr) ((void) bfd, (ptr)->userdata)
+#define bfd_get_section_vma(bfd, ptr) ((void) bfd, (ptr)->vma)
+#define bfd_get_section_size(ptr) ((ptr)->size)
 
 struct a2l_data {
 	const char 	*input;