1 |
commit: 020e559e8a8f1b39c1553322ee6247a537e1e5e5 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 3 17:48:41 2020 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 3 17:48:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mysql-extras.git/commit/?id=020e559e |
7 |
|
8 |
mariadb: Add new patch for binutil-libs 2.34 API change |
9 |
|
10 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
11 |
|
12 |
20039_all_mariadb-binutil-libs-2.34.patch | 23 +++++++++++++++++++++++ |
13 |
1 file changed, 23 insertions(+) |
14 |
|
15 |
diff --git a/20039_all_mariadb-binutil-libs-2.34.patch b/20039_all_mariadb-binutil-libs-2.34.patch |
16 |
new file mode 100644 |
17 |
index 0000000..0e57b3e |
18 |
--- /dev/null |
19 |
+++ b/20039_all_mariadb-binutil-libs-2.34.patch |
20 |
@@ -0,0 +1,23 @@ |
21 |
+--- a/mysys/my_addr_resolve.c |
22 |
++++ b/mysys/my_addr_resolve.c |
23 |
+@@ -74,11 +74,20 @@ int my_addr_resolve(void *ptr, my_addr_loc *loc) |
24 |
+ { |
25 |
+ bfd_vma start; |
26 |
+ |
27 |
++#ifdef bfd_get_section_flags |
28 |
+ if ((bfd_get_section_flags(bfdh, sec) & SEC_ALLOC) == 0) |
29 |
++#else |
30 |
++ if ((bfd_section_flags(sec) & SEC_ALLOC) == 0) |
31 |
++#endif |
32 |
+ continue; |
33 |
+ |
34 |
++#ifdef bfd_get_section_vma |
35 |
+ start = bfd_get_section_vma(bfdh, sec); |
36 |
+ if (addr < start || addr >= start + bfd_get_section_size(sec)) |
37 |
++#else |
38 |
++ start = bfd_section_vma(sec); |
39 |
++ if (addr < start || addr >= start + bfd_section_size(sec)) |
40 |
++#endif |
41 |
+ continue; |
42 |
+ |
43 |
+ if (bfd_find_nearest_line(bfdh, sec, symtable, addr - start, |