Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37697092
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-0.9.1-alt-e2k.patch
Download


From a8cf7482540791aa23a821210ccb37834fc8bee6 Mon Sep 17 00:00:00 2001
From: Michael Shigorin <mike@altlinux.org>
Date: Thu, 20 Jun 2019 12:03:59 +0300
Subject: [PATCH] local-elf.h: added e2k support
It's a Russian 64-bit LE VLIW architecture named Elbrus
(formerly Elbrus 2000).
---
 src/local-elf.h | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/src/local-elf.h b/src/local-elf.h
index 83ca253..376e232 100644
--- a/src/local-elf.h
+++ b/src/local-elf.h
@@ -233,6 +233,12 @@
 #define ELF_TARG_CLASS	ELFCLASS32
 #define ELF_TARG_DATA	ELFDATA2MSB
 
+#elif defined(__e2k__)
+
+#define ELF_TARG_MACH	EM_MCST_ELBRUS
+#define ELF_TARG_CLASS	ELFCLASS64
+#define ELF_TARG_DATA	ELFDATA2LSB
+
 #else
 
 #error Unknown ELF machine type
-- 
2.10.4
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin