finixbit / elf-parser

Lightweight elf binary parser with no external dependencies - Sections, Symbols, Relocations, Segments
MIT License
250 stars 44 forks source link

SHT_REL processing #7

Open nnewram opened 3 years ago

nnewram commented 3 years ago

https://github.com/finixbit/elf-parser/blob/f6a7853dedf83eea98c3e47ffce83e9f99c7c952/elf_parser.cpp#L151

Should this not also check for SHT_REL as it is simply the type without an addend? Further, shouldn't the relocation_t also store this addend?