Skip to content

Commit

Permalink
MDEV-21646: Failure to compile my_addr_resolve.c with binutils-2.34
Browse files Browse the repository at this point in the history
Emulate older API
  • Loading branch information
sanja-byelkin committed Feb 12, 2020
1 parent 4932ec8 commit be77fa9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mysys/my_addr_resolve.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit be77fa9

Please sign in to comment.