Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
662 B

  1. #!/bin/bash
  2. inputModule=$1
  3. dependencies=$2
  4. objectFilesDir=$3
  5. if [ "$inputModule" == "" -o "$dependencies" == "" -o "$objectFilesDir" == "" ]; then
  6. echo "First arg is the module to search. Second arg is dependencies. Third is object files dir."
  7. echo "ex: missingsymbols server_tf_i486.so \"tier0_i486.so vstdlib_i486.so\" ~/linux/src/engine/obj"
  8. exit
  9. fi
  10. missingSymbols=`nm -o $inputModule | grep -i " U " | grep -o '[^[:space:]]*$' | grep -v '@@'`
  11. for missingSymbol in $missingSymbols; do
  12. modulesContaining=`nm -o $dependencies | grep $missingSymbol`
  13. if [ "$modulesContaining" == "" ]; then
  14. echo `c++filt "$missingSymbol"` "($missingSymbol)"
  15. fi
  16. done