diff options
Diffstat (limited to 'binutils/dwarf.h')
-rw-r--r-- | binutils/dwarf.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/binutils/dwarf.h b/binutils/dwarf.h index 0e661d4..e679320 100644 --- a/binutils/dwarf.h +++ b/binutils/dwarf.h @@ -124,6 +124,11 @@ struct dwarf_section dwarf_vma address; dwarf_size_type size; enum dwarf_section_display_enum abbrev_sec; + + /* Used by clients to help them implement the reloc_at callback. */ + void * reloc_info; + unsigned long num_relocs; + /* A spare field for random use. */ void *user_data; }; @@ -135,7 +140,7 @@ struct dwarf_section_display struct dwarf_section section; int (*display) (struct dwarf_section *, void *); int *enabled; - unsigned int relocate : 1; + bfd_boolean relocate; }; extern struct dwarf_section_display debug_displays []; @@ -217,3 +222,8 @@ extern void * xcmalloc (size_t, size_t); extern void * xcrealloc (void *, size_t, size_t); extern dwarf_vma read_leb128 (unsigned char *, unsigned int *, bfd_boolean, const unsigned char * const); + +/* A callback into the client. Retuns TRUE if there is a + relocation against the given debug section at the given + offset. */ +extern bfd_boolean reloc_at (struct dwarf_section *, dwarf_vma); |