]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setarch: add another PER_LINUX32 aliases for ppcle
authorKarel Zak <kzak@redhat.com>
Thu, 14 Jun 2018 11:02:49 +0000 (13:02 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2018 14:10:57 +0000 (16:10 +0200)
The big-endian version maps generic "ppc" and "ppc32" aliases to
PER_LINUX32.  It seems that we can do the same for little-endian.

Note that SYS_personality does not care about LE/BE, it's 32 or 64 bit.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/setarch.c

index e7d6988d56404e50e59dc720ba9332d10eed690e..47bd3a01e1c92912460eeac182ba45f7e7f4f832 100644 (file)
@@ -140,6 +140,8 @@ static int set_arch(const char *pers, unsigned long options, int list)
                {PER_LINUX,     "ppc64pseries", "ppc64"},
                {PER_LINUX,     "ppc64iseries", "ppc64"},
 # else
+               {PER_LINUX32,   "ppc32",        "ppcle"},
+               {PER_LINUX32,   "ppc",          "ppcle"},
                {PER_LINUX32,   "ppc32le",      "ppcle"},
                {PER_LINUX32,   "ppcle",        "ppcle"},
                {PER_LINUX,     "ppc64le",      "ppc64le"},