This patch helps make yaml2obj emit an error message when we try to assign an invalid offset to the entry of the 'debug_ranges' section.
Do you need the new cast? If I've followed it correctly, Offset is a Hex64, so is already a 64-bit number.
I think this should be " must be greater than or equal to the number of bytes written already (0x"
invalid offset to the -> invalid offset to an
Let's make this 0x1A to test the edge case (i.e. no off-by-one error).