diff --git a/build_tools/download_externals b/build_tools/download_externals index 54a604e5ef6860015298ead757c5ff95b01934a6..0f82eff6515c7699f1e9fb9aabea9740dac871f4 100755 --- a/build_tools/download_externals +++ b/build_tools/download_externals @@ -160,7 +160,7 @@ if [[ -f ${DESTDIR}${ASTMODDIR}/${module_name}.manifest.xml ]] ; then break else if [[ "$executable" = "yes" ]] ; then - # There are easier ways of doing this (objcopy --dump-section) but not in older bunutils + # There are easier ways of doing this (objcopy --dump-section) but not in older binutils length_offset=$(objdump -h $f | sed -n -r -e "s/^\s+[0-9]+\s+.ast_manifest\s+([0-9a-fA-F]+)\s+[0-9a-fA-F]+\s+[0-9a-fA-F]+\s+([0-9a-fA-F]+)\s+.*$/0x\1 0x\2/p") tags=$($(eval 'printf "dd if=$f bs=1 count=%d skip=%d\n" $length_offset') 2>/dev/null) if [[ -n "${tags}" && "${tags}" != "${module_name},${variant},${rpv}" ]] ; then