This replaces some hand-rolled routines. libelftc uses a hash table to
speed up lookups, so this ends up being way faster.
The previous implementation does suffix matching, which libelftc does
not. However, I think this is fine; in general it is unlikely that one
section's name is a suffix of another. For .strtab we'd want to do
suffix matching.