arm-asm-testsuite.sh: Prefer cross-binutils' objdump

This commit is contained in:
Danny Milosavljevic 2021-01-06 02:11:56 +01:00
parent aeb8f427e2
commit f3912fafdd
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -89,12 +89,12 @@ do
cat "${err}" cat "${err}"
rm -f "${err}" rm -f "${err}"
total_count=`expr $total_count + 1` total_count=`expr $total_count + 1`
objdump -S "${as_object}" |grep "^[ ]*0:" >"${expected}" "${CROSS_COMPILE}objdump" -S "${as_object}" |grep "^[ ]*0:" >"${expected}"
#echo '__asm__("'"$s ${args}"'");' > "${csource}" #echo '__asm__("'"$s ${args}"'");' > "${csource}"
if echo '__asm__("'"$s ${args}"'");'| ./tcc -o "${tcc_object}" -c - if echo '__asm__("'"$s ${args}"'");'| ./tcc -o "${tcc_object}" -c -
then then
objdump -S "${tcc_object}" |grep "^[ ]*0:" >"${got}" "${CROSS_COMPILE}objdump" -S "${tcc_object}" |grep "^[ ]*0:" >"${got}"
if diff -u "${got}" "${expected}" if diff -u "${got}" "${expected}"
then then
touch "${state}/ok-$s $args" touch "${state}/ok-$s $args"