commit:     35cd7e1357a1d41cbac779782f8b0c82f05c4dc5
Author:     Alibek Omarov <a1ba.omarov <AT> gmail <DOT> com>
AuthorDate: Mon Feb 16 15:05:05 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 17 06:40:59 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=35cd7e13

ELF: Add entry for Elbrus

I wanted to package cross compiler but Portage was complaining about unknown
architecture in it's QA checks, so I'm adding the machine ELF ID here.

Based on similar patches that added entries for BPF 1ea8bb3, ARC da6607f and
AMDGPU bde2a89.

The number corresponds to one assigned in elf.h.

Signed-off-by: Alibek Omarov <a1ba.omarov <AT> gmail.com>
Part-of: https://github.com/gentoo/portage/pull/1554
Closes: https://github.com/gentoo/portage/pull/1554
Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/dep/soname/multilib_category.py | 2 ++
 lib/portage/util/elf/constants.py           | 1 +
 2 files changed, 3 insertions(+)

diff --git a/lib/portage/dep/soname/multilib_category.py 
b/lib/portage/dep/soname/multilib_category.py
index e85191968d..442927f939 100644
--- a/lib/portage/dep/soname/multilib_category.py
+++ b/lib/portage/dep/soname/multilib_category.py
@@ -62,6 +62,7 @@ from portage.util.elf.constants import (
     EM_BPF,
     EM_IA_64,
     EM_LOONGARCH,
+    EM_MCST_ELBRUS,
     EM_MIPS,
     EM_PARISC,
     EM_PPC,
@@ -95,6 +96,7 @@ _machine_prefix_map = {
     EM_BPF: "bpf",
     EM_IA_64: "ia64",
     EM_LOONGARCH: "loong",
+    EM_MCST_ELBRUS: "e2k",
     EM_MIPS: "mips",
     EM_PARISC: "hppa",
     EM_PPC: "ppc",

diff --git a/lib/portage/util/elf/constants.py 
b/lib/portage/util/elf/constants.py
index e389d1292a..ab4d589212 100644
--- a/lib/portage/util/elf/constants.py
+++ b/lib/portage/util/elf/constants.py
@@ -45,6 +45,7 @@ EM_ARC_COMPACT3_64 = 253
 EM_ARC_COMPACT3 = 255
 EM_LOONGARCH = 258
 EM_ALPHA = 0x9026
+EM_MCST_ELBRUS = 175
 
 E_ENTRY = 24
 EF_MIPS_ABI = 0x0000F000

Reply via email to