Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37513102
en ru br
ALT Linux repos
S:0.11.3-alt2

Group :: System/Libraries
RPM: libbsd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libbsd-loongarch.patch
Download


From 15200ec7ac97e3f169b6c2f378f0ec2f94663c9f Mon Sep 17 00:00:00 2001
From: WANG Xuerui <git@xen0n.name>
Date: Sat, 11 Sep 2021 12:54:28 +0800
Subject: Add LoongArch support to nlist()
Closes: !13
Signed-off-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Guillem Jover <guillem@hadrons.org>
---
 src/local-elf.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff --git a/src/local-elf.h b/src/local-elf.h
index 98a2962..1dd3b42 100644
--- a/src/local-elf.h
+++ b/src/local-elf.h
@@ -124,6 +124,16 @@
 #define ELF_TARG_CLASS	ELFCLASS64
 #define ELF_TARG_DATA	ELFDATA2LSB
 
+#elif defined(__loongarch__)
+
+#define ELF_TARG_MACH	EM_LOONGARCH
+#if defined(__loongarch64)
+#define ELF_TARG_CLASS	ELFCLASS64
+#else
+#error Unsupported ELF class
+#endif
+#define ELF_TARG_DATA	ELFDATA2LSB
+
 #elif defined(__m32r__)
 
 #define ELF_TARG_MACH	EM_M32R
-- 
cgit v1.2.1
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin