amule-adunanza/amule-11028-binutils-2.34.patch

23 lines
621 B
Diff
Raw Normal View History

--- amule-11028/src/libs/common/MuleDebug.cpp.orig 2020-02-29 12:08:47.140000000 +0100
+++ amule-11028/src/libs/common/MuleDebug.cpp 2020-02-29 12:08:53.000000000 +0100
@@ -178,6 +178,10 @@
#ifdef HAVE_BFD
+#ifndef bfd_get_section_vma
+#define bfd_get_section_vma(H, S) bfd_section_vma(S)
+#endif /* bfd_get_section_vma */
+
static bfd* s_abfd;
static asymbol** s_symbol_list;
static bool s_have_backtrace_symbols = false;
@@ -275,7 +279,7 @@
return;
}
- bfd_size_type size = bfd_section_size(abfd, section);
+ bfd_size_type size = bfd_section_size(section);
if (address > (vma + size)) {
return;
}