setarch: add another PER_LINUX32 aliases for ppcle

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>
This commit is contained in:
Karel Zak 2018-06-14 13:02:49 +02:00
parent 99ab05a6b4
commit e60b6df54e
1 changed files with 2 additions and 0 deletions

View 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"},