remove dead code

The code being removed by this commit was once used to lookup
symbols in vmlinux, but that is now the job of a seperate
tool.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
fixup DEBUG messages

Signed-off-by: Seth Jennings <sjenning@redhat.com>
ignore symbol name is symbol points to a strings section

In some cases, the compiler generates symbols of NOTYPE
to point into strings sections.  However, the names
the compiler gives these sections can change.

This commit changes the rela comparison to disregard the
symbol name if the string to which the rela points to
is unchanged.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
check base->sym/secsym for NULL before setting status

Not all base (text) sections have a symbol sym or secsym
associated with them.  Check for NULL before assigning
status.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
rework comparison code to only assign changed status once

The code currently does a memcmp on each section to
set an initial status.  However, because rela sections
can be different on a memcmp basis but effectively
not be different upon closer insepection, the rela
sections might transition back from CHANGED to SAME.
This is confusing.

This commit refactors the code to look at the rela
and non-rela sections in two different passes so
that there is no need to make a second pass on
the rela sections that might transition CHANGED
to SAME.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
move debug statements so that NEW secs/syms are printed

Right now, only correlated secs/syms get their statuses
printed.  Change to include uncorrelated (i.e. NEW) as
well.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
mark rela sym dependencies in bundles for section syms

This reverts a little of 96edd86f, while adding NULL
checks.

Signed-off-by: Seth Jennings <sjenning@redhat.com>