#3826: Code cleanup in libelfperf
#3826: code cleanup in ld