espindola accepted this revision. espindola added a comment. This revision is now accepted and ready to land. test/ELF/i386-reloc8-reloc16-addend.s shows that we cannot just zero extend the addend. This patch is correct. https://reviews.llvm.org/D45051