File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -606,7 +606,7 @@ function assert_objdump_contains() {
606606 local symbol_regexp=" $3 "
607607
608608 [[ -f " $path " ]] || fail " $path does not exist"
609- local contents=$( objdump -t --macho --arch=" $arch " " $path " | grep -v " *UND*" )
609+ local contents=$( objdump --syms --macho --arch=" $arch " " $path " | grep -v " *UND*" )
610610 echo " $contents " | grep -e " $symbol_regexp " >& /dev/null && return 0
611611 fail " Expected binary '$path ' to contain '$symbol_regexp ' but it did not." \
612612 " contents were: $contents "
@@ -622,7 +622,7 @@ function assert_objdump_not_contains() {
622622 local symbol_regexp=" $3 "
623623
624624 [[ -f " $path " ]] || fail " $path does not exist"
625- local contents=$( objdump -t --macho --arch=" $arch " " $path " | grep -v " *UND*" )
625+ local contents=$( objdump --syms --macho --arch=" $arch " " $path " | grep -v " *UND*" )
626626 echo " $contents " | grep -e " $symbol_regexp " >& /dev/null || return 0
627627 fail " Expected binary '$path ' to not contain '$symbol_regexp ' but it did." \
628628 " contents were: $contents "
You can’t perform that action at this time.
0 commit comments