libbsd/0002-add-sw_64-support.patch
2025-05-13 15:04:12 +08:00

29 lines
643 B
Diff

From ff75bcb2259bee9a731f518a525b986ac3e6dfad Mon Sep 17 00:00:00 2001
From: Hailiang <mahailiang@uniontech.com>
Date: Tue, 13 May 2025 15:01:56 +0800
Subject: [PATCH] add sw_64 support
---
src/local-elf.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/local-elf.h b/src/local-elf.h
index c568727..79cb47f 100644
--- a/src/local-elf.h
+++ b/src/local-elf.h
@@ -242,6 +242,11 @@
#endif
#define ELF_TARG_DATA ELFDATA2MSB
+#elif defined(__sw_64__)
+#define ELF_TARG_MACH EM_SW_64
+#define ELF_TARG_DATA ELFDATA2LSB
+#define ELF_TARG_CLASS ELFCLASS64
+
#elif defined(__tilegx__)
#define ELF_TARG_MACH EM_TILEGX
--
2.20.1