PATH:
usr
/
lib
/
rpm
/
redhat
#! /bin/bash IFS=$'\n' for module in $(grep -E '/lib/modules/.+\.ko(\.gz|\.bz2|\.xz)?$'); do tmpfile="" if [ "x${module%.ko}" = "x${module}" ]; then tmpfile=$(mktemp -t ${0##*/}.XXXXXX.ko) proc_bin= case "${module##*.}" in xz) proc_bin=xz ;; bz2) proc_bin=bzip2 ;; gz) proc_bin=gzip ;; esac [ -n "$proc_bin" ] || continue "$proc_bin" -d -c - < "$module" > "$tmpfile" module="$tmpfile" fi if [[ -n $(nm $module | sed -r -ne 's:^0*([0-9a-f]+) A __crc_(.+):0x\1 \2:p') ]]; then nm $module \ | sed -r -ne 's:^0*([0-9a-f]+) A __crc_(.+):0x\1 \2:p' \ | awk --non-decimal-data '{printf("ksym(%s) = 0x%08x\n", $2, $1)}' \ | LC_ALL=C sort -u else ELFRODATA=$(readelf -R .rodata $module | awk '/0x/{printf $2$3$4$5}') if [[ -n $(readelf -h $module | grep "little endian") ]]; then RODATA=$(echo $ELFRODATA | sed 's/\(..\)\(..\)\(..\)\(..\)/\4\3\2\1/g') else RODATA=$ELFRODATA fi for sym in $(nm $module | sed -r -ne 's:^0*([0-9a-f]+) R __crc_(.+):0x\1 \2:p'); do echo $sym $RODATA done \ | awk --non-decimal-data '{printf("ksym(%s) = 0x%08s\n", $2, substr($3,($1*2)+1,8))}' \ | LC_ALL=C sort -u fi [ -z "$tmpfile" ] || rm -f -- "$tmpfile" done
[-] find-provides.libtool
[edit]
[-] find-provides.pkgconfig
[edit]
[-] brp-java-repack-jars
[edit]
[-] brp-strip
[edit]
[-] config.guess
[edit]
[-] find-provides.ksyms
[edit]
[+]
..
[-] brp-compress
[edit]
[-] brp-implant-ident-static
[edit]
[-] rpmsort
[edit]
[-] find-requires.libtool
[edit]
[-] find-requires.ksyms
[edit]
[-] redhat-hardened-cc1
[edit]
[-] config.sub
[edit]
[-] libtool-handle-ppc64le.sh
[edit]
[-] find-requires.pkgconfig
[edit]
[-] find-requires
[edit]
[-] rpmrc
[edit]
[-] dist.sh
[edit]
[-] macros
[edit]
[-] redhat-hardened-ld
[edit]
[-] brp-strip-shared
[edit]
[-] brp-strip-static-archive
[edit]
[-] find-provides
[edit]
[-] brp-strip-comment-note
[edit]
[+]
find-provides.d
[-] kmodtool
[edit]
[-] brp-python-hardlink
[edit]
[-] symset-table
[edit]