grive2/grive2-0.5.1-binutils-2.34.patch

27 lines
734 B
Diff

--- grive2-0.5.1/libgrive/src/bfd/SymbolInfo.cc.orig 2020-02-29 15:32:16.688000000 +0100
+++ grive2-0.5.1/libgrive/src/bfd/SymbolInfo.cc 2020-02-29 15:35:04.408000000 +0100
@@ -34,6 +34,14 @@
#include <iomanip>
#include <algorithm>
+#ifndef bfd_get_section_flags
+#define bfd_get_section_flags(H, S) bfd_section_flags(S)
+#endif /* bfd_get_section_flags */
+
+#ifndef bfd_get_section_vma
+#define bfd_get_section_vma(H, S) bfd_section_vma(S)
+#endif /* bfd_get_section_vma */
+
namespace gr {
struct SymbolInfo::Impl
@@ -124,7 +132,7 @@
if ( address < vma )
return;
- bfd_size_type size = bfd_section_size(abfd, section);
+ bfd_size_type size = bfd_section_size(section);
if ( address > (vma + size))
return ;