diff options
author | Aaron Durbin <adurbin@chromium.org> | 2014-03-05 16:41:27 -0600 |
---|---|---|
committer | Aaron Durbin <adurbin@google.com> | 2014-03-14 21:51:38 +0100 |
commit | c078094f39d8683b9a1087dc7f60e8605733ed99 (patch) | |
tree | 78b79dee26d91d16e514c45b789fb1fa296e76fe /util/cbfstool/elfparsing.h | |
parent | c3e6e14a1227421c3e520a2a62f279bc4408ee3a (diff) |
cbfstool: add symbol table parsing to the ELF parser
Optionally parse the symbol table contained within an ELF
file. It currently assumes there is only one symbol table present,
and it errors out if more than one is found.
Change-Id: I4ac4ad03184a319562576d8ab24fa620e701672a
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/5376
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'util/cbfstool/elfparsing.h')
-rw-r--r-- | util/cbfstool/elfparsing.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/cbfstool/elfparsing.h b/util/cbfstool/elfparsing.h index 9107c21007..113301aae2 100644 --- a/util/cbfstool/elfparsing.h +++ b/util/cbfstool/elfparsing.h @@ -41,12 +41,15 @@ struct parsed_elf { * entry. */ struct buffer **strtabs; + /* Parsed symbols. */ + Elf64_Sym *syms; }; #define ELF_PARSE_PHDR (1 << 0) #define ELF_PARSE_SHDR (1 << 1) #define ELF_PARSE_RELOC (1 << 2) #define ELF_PARSE_STRTAB (1 << 3) +#define ELF_PARSE_SYMTAB (1 << 4) #define ELF_PARSE_ALL (-1) |