find-provides.ksyms, find-requires.ksyms: filter local __crc_* symbols as well
Apparently, these are local in the recent kernels. * find-provides.ksyms (all_provides): Filter local __crc_* symbols in additional to global in the objdump -t call output. * find-requires.ksyms: Likewise. Resolves: #2178935 Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
This commit is contained in:
parent
3770b4674a
commit
25b14c8700
@ -47,7 +47,7 @@ for module in $(grep -E '/lib/modules/.+\.ko(\.gz|\.bz2|\.xz|\.zst)?$') "$@"; do
|
|||||||
| sort -u
|
| sort -u
|
||||||
else
|
else
|
||||||
objdump -t "$module" \
|
objdump -t "$module" \
|
||||||
| sed -n 's/^[0-9a-f][0-9a-f]* g...... \(.*\) [0-9a-f][0-9a-f]* __crc_.*$/\1/p' \
|
| sed -n 's/^[0-9a-f][0-9a-f]* [gl]...... \(.*\) [0-9a-f][0-9a-f]* __crc_.*$/\1/p' \
|
||||||
| sort -u \
|
| sort -u \
|
||||||
| while read sectname; do
|
| while read sectname; do
|
||||||
[ -n "$sectname" ] || continue
|
[ -n "$sectname" ] || continue
|
||||||
@ -64,7 +64,7 @@ for module in $(grep -E '/lib/modules/.+\.ko(\.gz|\.bz2|\.xz|\.zst)?$') "$@"; do
|
|||||||
-v 'dep_pfx='"$dep_pfx" \
|
-v 'dep_pfx='"$dep_pfx" \
|
||||||
-v 'sectdata='"$SECTDATA" \
|
-v 'sectdata='"$SECTDATA" \
|
||||||
--non-decimal-data \
|
--non-decimal-data \
|
||||||
'match($0, /^([0-9a-f]+) g...... .* [0-9a-f]+ __crc_(.*)$/, a) { printf("%s(%s) = 0x%08s\n", dep_pfx, a[2], substr(sectdata, (strtonum("0x" a[1]) * 2) + 1, 8)) }'
|
'match($0, /^([0-9a-f]+) [gl]...... .* [0-9a-f]+ __crc_(.*)$/, a) { printf("%s(%s) = 0x%08s\n", dep_pfx, a[2], substr(sectdata, (strtonum("0x" a[1]) * 2) + 1, 8)) }'
|
||||||
done \
|
done \
|
||||||
| sort -u
|
| sort -u
|
||||||
fi
|
fi
|
||||||
|
@ -47,7 +47,7 @@ all_provides() {
|
|||||||
'match($0, /^([0-9a-f]+) A __crc_(.+)/, a) { printf("%s(%s) = 0x%08x\n", dep_pfx, a[2], strtonum("0x" a[1])) }'
|
'match($0, /^([0-9a-f]+) A __crc_(.+)/, a) { printf("%s(%s) = 0x%08x\n", dep_pfx, a[2], strtonum("0x" a[1])) }'
|
||||||
else
|
else
|
||||||
objdump -t "$module" \
|
objdump -t "$module" \
|
||||||
| sed -n 's/^[0-9a-f][0-9a-f]* g...... \(.*\) [0-9a-f][0-9a-f]* __crc_.*$/\1/p' \
|
| sed -n 's/^[0-9a-f][0-9a-f]* [gl]...... \(.*\) [0-9a-f][0-9a-f]* __crc_.*$/\1/p' \
|
||||||
| sort -u \
|
| sort -u \
|
||||||
| while read sectname; do
|
| while read sectname; do
|
||||||
[ -n "$sectname" ] || continue
|
[ -n "$sectname" ] || continue
|
||||||
@ -64,7 +64,7 @@ all_provides() {
|
|||||||
-v 'dep_pfx='"$dep_pfx" \
|
-v 'dep_pfx='"$dep_pfx" \
|
||||||
-v 'sectdata='"$SECTDATA" \
|
-v 'sectdata='"$SECTDATA" \
|
||||||
--non-decimal-data \
|
--non-decimal-data \
|
||||||
'match($0, /^([0-9a-f]+) g...... .* [0-9a-f]+ __crc_(.*)$/, a) { printf("%s(%s) = 0x%08s\n", dep_pfx, a[2], substr(sectdata, (strtonum("0x" a[1]) * 2) + 1, 8)) }'
|
'match($0, /^([0-9a-f]+) [gl]...... .* [0-9a-f]+ __crc_(.*)$/, a) { printf("%s(%s) = 0x%08s\n", dep_pfx, a[2], substr(sectdata, (strtonum("0x" a[1]) * 2) + 1, 8)) }'
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user