debugedit: Add support for loongarch
authordaifan <daifan@uniontech.com>
Tue, 10 Jan 2023 04:04:39 +0000 (12:04 +0800)
committerMark Wielaard <mark@klomp.org>
Thu, 12 Jan 2023 14:43:45 +0000 (15:43 +0100)
* tools/debugedit.c (setup_relbuf): Handle EM_LOONGARCH

tools/debugedit.c

index 9cb57757e563940b24bc832bbd4c13eee6c8f8ab..b3422d72539b4fd8aa4a08ac2a215f29a803b109 100644 (file)
@@ -612,6 +612,12 @@ setup_relbuf (DSO *dso, debug_section *sec, int *reltype)
          if (rtype != R_E2K_32_ABS)
                  goto fail;
          break;
+#endif
+#if defined(EM_LOONGARCH) && defined(R_LARCH_32)
+  case EM_LOONGARCH:
+    if (rtype != R_LARCH_32)
+      goto fail;
+    break;
 #endif
        default:
        fail:
This page took 0.056264 seconds and 5 git commands to generate.