This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=41a8cfc7080f2b4cb9104d3a44e5087d772dd920

commit 41a8cfc7080f2b4cb9104d3a44e5087d772dd920
Author: Guillem Jover <[email protected]>
AuthorDate: Wed Feb 22 01:28:56 2023 +0100

    Dpkg::Shlibs::Objdump: Remove unsupported ELF machine types
    
    We do not support the architectures that would make use of these
    ELF machine types, so there is no point in having that support here.
    
    These were preemptively added after having invested the time digging
    what old ELF machine types mapped to new ones, but this can be redone
    if these ever get added, which seems unlikely.
---
 scripts/Dpkg/Shlibs/Objdump.pm | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/scripts/Dpkg/Shlibs/Objdump.pm b/scripts/Dpkg/Shlibs/Objdump.pm
index adf31d9ea..af9f3bc85 100644
--- a/scripts/Dpkg/Shlibs/Objdump.pm
+++ b/scripts/Dpkg/Shlibs/Objdump.pm
@@ -110,20 +110,12 @@ use constant {
     EM_SH                   => 42,
     EM_SPARC64              => 43,
     EM_IA64                 => 50,
-    EM_MN10300              => 89,
-    EM_MN10200              => 90,
     EM_OR1K                 => 92,
-    EM_XTENSA               => 94,
-    EM_MICROBLAZE           => 189,
     EM_ARCV2                => 195,
     EM_LOONGARCH            => 258,
     EM_OR1K_OLD             => 0x8472,
     EM_ALPHA                => 0x9026,
     EM_S390_OLD             => 0xa390,
-    EM_XTENSA_OLD           => 0xabc7,
-    EM_MICROBLAZE_OLD       => 0xbaab,
-    EM_MN10300_CYGNUS       => 0xbeef,
-    EM_MN10200_CYGNUS       => 0xdead,
 
     # ELF Version.
     EV_NONE                 => 0,
@@ -159,14 +151,10 @@ use constant {
 # These map alternative or old machine IDs to their canonical form.
 my %elf_mach_map = (
     EM_ALPHA_OLD()          => EM_ALPHA,
-    EM_MICROBLAZE_OLD()     => EM_MICROBLAZE,
-    EM_MN10200_CYGNUS()     => EM_MN10200,
-    EM_MN10300_CYGNUS()     => EM_MN10300,
     EM_OR1K_OLD()           => EM_OR1K,
     EM_S390_OLD()           => EM_S390,
     EM_SPARC32PLUS()        => EM_SPARC,
     EM_SPARC64_OLD()        => EM_SPARC64,
-    EM_XTENSA_OLD()         => EM_XTENSA,
 );
 
 # These masks will try to expose processor flags that are ABI incompatible,

-- 
Dpkg.Org's dpkg

Reply via email to