[PATCH v3 29/32] bootm: Add a function to check overlap