]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - opcodes/or1k-asm.c
or1k: Implement relocation R_OR1K_GOT_AHI16 for gotha()
[thirdparty/binutils-gdb.git] / opcodes / or1k-asm.c
index 045ab6230b6c173da3db5dfbf206e2c982546ddb..fdccf67f9e1861260354491f14f3ce5c2a2ac7ca 100644 (file)
@@ -177,7 +177,7 @@ static const bfd_reloc_code_real_type or1k_imm16_relocs[][6] = {
     BFD_RELOC_OR1K_GOT_LO13,
     BFD_RELOC_UNUSED,
     BFD_RELOC_UNUSED,
-    BFD_RELOC_UNUSED },
+    BFD_RELOC_OR1K_GOT_AHI16 },
   { BFD_RELOC_OR1K_GOTPC_LO16,
     BFD_RELOC_UNUSED,
     BFD_RELOC_UNUSED,
@@ -280,6 +280,11 @@ parse_reloc (const char **strp)
        str += 5;
        cls = RCLASS_TPOFF;
       }
+    else if (strncasecmp (str, "got", 3) == 0)
+      {
+       str += 3;
+       cls = RCLASS_GOT;
+      }
 
     if (strncasecmp (str, "hi(", 3) == 0)
       {