[PATCH v2 30/32] bootm: Add a function to check overlap