Do more proper boundary checking for relocs

@radare plz tst