Hi,
Since addr2line uses elf_getscn and gelf_getshdr it should link with
libelf explicitly. $(libelf) is defined differently depending on
makefile variables earlier. The other programs explicitly link against
it.
This just happens to work with GNU ld currently, since it will silently
try to resolve dependencies through other linked in libraries, but it is
an problem with other elf linkers, like GNU gold, that don't link
against libraries implicitly.
Cheers,
Mark