diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:29:09 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:29:09 -0800 |
commit | 55a2c71f27d3e0b8344597c7f281e687cb7aeb1b (patch) | |
tree | ecd18b995aea8eeeb8b3823266280d41245bf0f7 /emulator/qtools/read_elf.h | |
parent | 82ea7a177797b844b252effea5c7c7c5d63ea4ac (diff) | |
download | sdk-55a2c71f27d3e0b8344597c7f281e687cb7aeb1b.zip sdk-55a2c71f27d3e0b8344597c7f281e687cb7aeb1b.tar.gz sdk-55a2c71f27d3e0b8344597c7f281e687cb7aeb1b.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'emulator/qtools/read_elf.h')
-rw-r--r-- | emulator/qtools/read_elf.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/emulator/qtools/read_elf.h b/emulator/qtools/read_elf.h new file mode 100644 index 0000000..72266c3 --- /dev/null +++ b/emulator/qtools/read_elf.h @@ -0,0 +1,20 @@ +#ifndef READ_ELF_H +#define READ_ELF_H + +#include <stdio.h> +#include <elf.h> + +Elf32_Ehdr *ReadElfHeader(FILE *fobj); +Elf32_Shdr *ReadSectionHeaders(Elf32_Ehdr *hdr, FILE *fobj); +char *ReadStringTable(Elf32_Ehdr *hdr, Elf32_Shdr *shdr, FILE *fobj); +Elf32_Shdr *FindSymbolTableSection(Elf32_Ehdr *hdr, + Elf32_Shdr *shdr, + char *string_table); +Elf32_Shdr *FindSymbolStringTableSection(Elf32_Ehdr *hdr, + Elf32_Shdr *shdr, + char *string_table); +int ReadSection(Elf32_Shdr *shdr, void *buffer, FILE *f); +void AdjustElfSymbols(Elf32_Ehdr *hdr, Elf32_Sym *elf_symbols, + int num_entries); + +#endif /* READ_ELF_H */ |