Fix checks for R_386_8 and R_386_16.

Results created by these relocations are expected to be zero extended
at runtime.

llvm-svn: 294988
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index 0826f4b..023c948 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -517,11 +517,17 @@
   // we want to support them.
   switch (Type) {
   case R_386_8:
+    checkUInt<8>(Loc, Val, Type);
+    *Loc = Val;
+    break;
   case R_386_PC8:
     checkInt<8>(Loc, Val, Type);
     *Loc = Val;
     break;
   case R_386_16:
+    checkUInt<16>(Loc, Val, Type);
+    write16le(Loc, Val);
+    break;
   case R_386_PC16:
     checkInt<16>(Loc, Val, Type);
     write16le(Loc, Val);