diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2020-02-12 14:30:31 +0100 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2020-02-12 15:39:36 +0100 |
commit | be77fa914c30e92e33e60feb5a3e098c765798af (patch) | |
tree | 03d9a1743f211810928ae34ce9db1335687c748c /mysys | |
parent | 4932ec871f6e8270fdbe50ef33631a4106edd198 (diff) | |
download | mariadb-git-be77fa914c30e92e33e60feb5a3e098c765798af.tar.gz |
MDEV-21646: Failure to compile my_addr_resolve.c with binutils-2.34bb-5.5-MDEV-21646
Emulate older API
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_addr_resolve.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysys/my_addr_resolve.c b/mysys/my_addr_resolve.c index 7b14a561ba5..d318f6bf965 100644 --- a/mysys/my_addr_resolve.c +++ b/mysys/my_addr_resolve.c @@ -49,6 +49,18 @@ static const char *strip_path(const char *s) static bfd *bfdh= 0; static asymbol **symtable= 0; +#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_size +#define bfd_get_section_size(S) bfd_section_size(S) +#endif /* bfd_get_section_size */ + +#ifndef bfd_get_section_vma +#define bfd_get_section_vma(H, S) bfd_section_vma(S) +#endif /* bfd_get_section_vma */ + /** finds a file name, a line number, and a function name corresponding to addr. |