class/elfwrapper: Fix wrapper to also work when symlinked to

Signed-off-by: Esben Haabendal <esben.haabendal@prevas.dk>

(cherry picked from commit f03837a6abaabc1a690431697b5a110a49b177fd)
crosstool-ng: Fix gdb-cross static build

Signed-off-by: Esben Haabendal <eha@deif.com>
crosstool-ng: Fix gdb-cross static build (1.13.2)

Signed-off-by: Esben Haabendal <eha@deif.com>