[PATCH v2 5/5] T360-symbol-hiding: Use nm instead of objdump.

David Bremner david at tethera.net
Thu May 8 06:06:44 PDT 2014


Charles Celerier <cceleri at cs.stanford.edu> writes:
>  test_begin_subtest 'comparing existing to exported symbols'
> -objdump -t $TEST_DIRECTORY/../lib/*.o | awk '$4 == ".text" && $6 ~ "^notmuch" {print $6}' | sort | uniq > ACTUAL
> +nm -g $TEST_DIRECTORY/../lib/*.o | sed -n 's/.*\s\+T\s\+_\(notmuch_.*\)/\1/p' | sort | uniq > ACTUAL
>  sed -n 's/[[:blank:]]*\(notmuch_[^;]*\);/\1/p' $TEST_DIRECTORY/../notmuch.sym | sort | uniq > EXPORTED

Hmm. It seems like the _ there is wrong. It grabs all of the symbols
starting with _notmuch, which are symbols we _don't_ want exported.
It makes me wonder what ends up in "notmuch.sym" on MacOS, if that test
passes for you.

d


More information about the notmuch mailing list