Skip to content
Snippets Groups Projects
Commit d678a840 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

ZS-86 issue in parsing dynsym section.

The dynsym section is parsed by objdump/grep.  It's terrible and
needs to be implemented in C++ to reduce dependence on external tools
knowing what they are doing.

In this case, the terrible pattern matching with grep caused a symbol
defined in the binary to be missed, because `grep -v UND` was used
to determine whether a symbol "mattered".  1) symbol names might have
UND and get eliminated accidentally, but 2) (what really happened)
was that the symbol was defined in a section without a "link" field
in the dynsym section, thus objdump displayed the section name as UND
and thus the code skipped the symbol.  Don't use objdump to parse ELF
files!
parent 8546a654
No related branches found
No related tags found
1 merge request!12ZS-86 issue in parsing dynsym section.
Pipeline #13428 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment