commit:     1ea8bb30da1ca9a47fd795d2fa1c829fda95bfec
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug  7 11:56:17 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug  7 11:56:17 2024 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=1ea8bb30

ELF: add entries for BPF

Bug: https://bugs.gentoo.org/937485
Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/lib/portage/dep/soname/multilib_category.py 
b/lib/portage/dep/soname/multilib_category.py
index baca439fd2..e85191968d 100644
--- a/lib/portage/dep/soname/multilib_category.py
+++ b/lib/portage/dep/soname/multilib_category.py
@@ -1,4 +1,4 @@
-# Copyright 2015-2019 Gentoo Authors
+# Copyright 2015-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 #
 # Compute a multilib category, as discussed here:
@@ -59,6 +59,7 @@ from portage.util.elf.constants import (
     EM_ARC_COMPACT3_64,
     EM_ARM,
     EM_ALTERA_NIOS2,
+    EM_BPF,
     EM_IA_64,
     EM_LOONGARCH,
     EM_MIPS,
@@ -91,6 +92,7 @@ _machine_prefix_map = {
     EM_ARC_COMPACT3: "arc",
     EM_ARC_COMPACT3_64: "arc",
     EM_ARM: "arm",
+    EM_BPF: "bpf",
     EM_IA_64: "ia64",
     EM_LOONGARCH: "loong",
     EM_MIPS: "mips",

diff --git a/lib/portage/util/elf/constants.py 
b/lib/portage/util/elf/constants.py
index 9216a35353..e389d1292a 100644
--- a/lib/portage/util/elf/constants.py
+++ b/lib/portage/util/elf/constants.py
@@ -1,4 +1,4 @@
-# Copyright 2015-2019 Gentoo Authors
+# Copyright 2015-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 #
 # These constants are available from elfutils:
@@ -40,6 +40,7 @@ EM_AARCH64 = 183
 EM_ARC_COMPACT2 = 195
 EM_AMDGPU = 224
 EM_RISCV = 243
+EM_BPF = 247
 EM_ARC_COMPACT3_64 = 253
 EM_ARC_COMPACT3 = 255
 EM_LOONGARCH = 258

Reply via email to