diff options
author | 2009-03-03 18:28:14 -0800 | |
---|---|---|
committer | 2009-03-03 18:28:14 -0800 | |
commit | 05806d7af62e07c6225b2e7103a1b115ecf6c9ad (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /tools/apriori/source.c | |
parent | 094268cf8cb37b9d904c8a1e3559cdd46d73cf66 (diff) |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'tools/apriori/source.c')
-rw-r--r-- | tools/apriori/source.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tools/apriori/source.c b/tools/apriori/source.c deleted file mode 100644 index 69c57c7746..0000000000 --- a/tools/apriori/source.c +++ /dev/null @@ -1,18 +0,0 @@ -#include <source.h> - -void find_section(source_t *source, Elf64_Addr address, - Elf_Scn **scn, - GElf_Shdr *shdr, - Elf_Data **data) -{ - range_t *range = find_range(source->sorted_sections, address); - FAILIF(NULL == range, - "Cannot match address %lld to any range in [%s]!\n", - address, - source->name); - *scn = (Elf_Scn *)range->user; - ASSERT(*scn); - FAILIF_LIBELF(NULL == gelf_getshdr(*scn, shdr), gelf_getshdr); - *data = elf_getdata(*scn, NULL); - FAILIF_LIBELF(NULL == *data, elf_getdata); -} |