Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 3eedfa3

Browse files
authored
Merge pull request #148 from nathanchance/readelf-comment
driver: Dump the comment section of vmlinux
2 parents 28e1d3d + 05c20eb commit 3eedfa3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

driver.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ check_dependencies() {
141141
command -v timeout
142142
command -v unbuffer
143143

144+
for readelf in llvm-readelf-9 llvm-readelf-8 llvm-readelf-7 llvm-readelf; do
145+
command -v ${readelf} &>/dev/null && break
146+
done
147+
144148
# Check for LD, CC, and AR environmental variables
145149
# and print the version string of each. If CC and AR
146150
# don't exist, try to find them.
@@ -259,6 +263,7 @@ build_linux() {
259263
mako_reactor olddefconfig &>/dev/null
260264
mako_reactor ${image_name}
261265
[[ $ARCH =~ arm ]] && mako_reactor dtbs
266+
${readelf} --string-dump=.comment vmlinux
262267

263268
cd "${OLDPWD}"
264269
}

0 commit comments

Comments
 (0)