[GHC] #11490: check architecture before attempting to load object files