Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > 2ac6e70776adc083c0bc165c2ca2c3f7 > files > 118

kernel-5.6.14-2.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;