Merge pull request #704 from jpoimboe/eh_frame

elf: add .eh_frame* sections to debug section list
This commit is contained in:
Josh Poimboeuf 2017-05-13 08:03:52 -05:00 committed by GitHub
commit 8c558d367c
1 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,9 @@ int is_debug_section(struct section *sec)
name = sec->base->name;
else
name = sec->name;
return !strncmp(name, ".debug_", 7);
return !strncmp(name, ".debug_", 7) ||
!strncmp(name, ".eh_frame", 9);
}
struct section *find_section_by_index(struct list_head *list, unsigned int index)