x86: Add error checking to x86 relocation code