Fix handling of ports with *1* file.

Reported by:	glebius
Sponsored by:	DellEMC
This commit is contained in:
Bryan Drewery 2019-07-10 16:18:32 +00:00
parent 77fd7d3dc2
commit d64353f33f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=506358

View file

@ -18,7 +18,7 @@ msg "Finding symbols"
# Find all ELF files
ELF_FILES=$(mktemp -t elf_files)
find ${STAGEDIR} -type f \
-exec /usr/bin/readelf -S {} + 2>/dev/null | awk ' \
-exec /usr/bin/readelf -S /dev/null {} + 2>/dev/null | awk ' \
/File:/ {sub(/File: /, "", $0); file=$0}
/[[:space:]]\.debug_info[[:space:]]*PROGBITS/ {print file}' \
> ${ELF_FILES}