Error out if the executed command (dumpbin/objdump) hasn't been
successful.
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Fri Apr 3 15:42:17 2026
(Merged from https://github.com/openssl/openssl/pull/30635)
(cherry picked from commit
2753b08a6651cf80c9164aae32c2eeafee67a311)
}
}
}
+
+ close($OBJFH);
+ ($? >> 8 == 0) or die "Command '$cmd' has failed.";
+
foreach (@symlist) {
if (index($exps, $_) < 0) {
print "Symbol $_ not in the allowed platform symbols list\n";
}
}
close($OBJFH);
- exit 0;
+
+ exit $? >> 8;
}