Improve cake allocator's memory utilisation (#43)
[lunaix-os.git] / lunaix-os / scripts / gen_ksymtable.sh
index 1f974bdf0ebb48c455b30160180a4a67238e064e..748678e5e09a1b82207f3273386693bcc76a7400 100755 (executable)
@@ -4,13 +4,13 @@ sym_types=$1
 bin=$2
 
 nm_out=$(nm -nfbsd "$bin")
 bin=$2
 
 nm_out=$(nm -nfbsd "$bin")
-class_info=$(readelf -h "$bin" | grep 'Class:' | awk '{print $2}')
+class_info=$(readelf -h "$bin" | grep 'Class:' | awk '{print $2}')
 
 allsyms=($nm_out)
 allsyms_len=${#allsyms[@]}
 
 dtype="4byte"
 
 allsyms=($nm_out)
 allsyms_len=${#allsyms[@]}
 
 dtype="4byte"
-if [ "$class_info" == 'ELF64' ]; then
+if [ "$ARCH" == 'x86_64' ]; then
     dtype="8byte"
 fi
 
     dtype="8byte"
 fi