aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-08-07 12:56:17 +0100
committerSam James <sam@gentoo.org>2024-08-07 12:56:17 +0100
commit1ea8bb30da1ca9a47fd795d2fa1c829fda95bfec (patch)
tree3607b3d3905cb4a54b224be2928a81a947b137e1 /lib
parentNEWS: Fix FETCHCOMMAND spelling (diff)
downloadportage-1ea8bb30da1ca9a47fd795d2fa1c829fda95bfec.tar.gz
portage-1ea8bb30da1ca9a47fd795d2fa1c829fda95bfec.tar.bz2
portage-1ea8bb30da1ca9a47fd795d2fa1c829fda95bfec.zip
ELF: add entries for BPF
Bug: https://bugs.gentoo.org/937485 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/portage/dep/soname/multilib_category.py4
-rw-r--r--lib/portage/util/elf/constants.py3
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 baca439fd..e85191968 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 9216a3535..e389d1292 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