diff options
Diffstat (limited to 'sys-utils/setarch.c')
| -rw-r--r-- | sys-utils/setarch.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index 051cbefcd..957bb2b03 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -53,37 +53,37 @@ enum { } while(0) -#if !HAVE_DECL_UNAME26 +#ifndef UNAME26 # define UNAME26 0x0020000 #endif -#if !HAVE_DECL_ADDR_NO_RANDOMIZE +#ifndef ADDR_NO_RANDOMIZE # define ADDR_NO_RANDOMIZE 0x0040000 #endif -#if !HAVE_DECL_FDPIC_FUNCPTRS +#ifndef FDPIC_FUNCPTRS # define FDPIC_FUNCPTRS 0x0080000 #endif -#if !HAVE_DECL_MMAP_PAGE_ZERO +#ifndef MMAP_PAGE_ZERO # define MMAP_PAGE_ZERO 0x0100000 #endif -#if !HAVE_DECL_ADDR_COMPAT_LAYOUT +#ifndef ADDR_COMPAT_LAYOUT # define ADDR_COMPAT_LAYOUT 0x0200000 #endif -#if !HAVE_DECL_READ_IMPLIES_EXEC +#ifndef READ_IMPLIES_EXEC # define READ_IMPLIES_EXEC 0x0400000 #endif -#if !HAVE_DECL_ADDR_LIMIT_32BIT +#ifndef ADDR_LIMIT_32BIT # define ADDR_LIMIT_32BIT 0x0800000 #endif -#if !HAVE_DECL_SHORT_INODE +#ifndef SHORT_INODE # define SHORT_INODE 0x1000000 #endif -#if !HAVE_DECL_WHOLE_SECONDS +#ifndef WHOLE_SECONDS # define WHOLE_SECONDS 0x2000000 #endif -#if !HAVE_DECL_STICKY_TIMEOUTS +#ifndef STICKY_TIMEOUTS # define STICKY_TIMEOUTS 0x4000000 #endif -#if !HAVE_DECL_ADDR_LIMIT_3GB +#ifndef ADDR_LIMIT_3GB # define ADDR_LIMIT_3GB 0x8000000 #endif @@ -149,11 +149,17 @@ set_arch(const char *pers, unsigned long options, int list) {PER_LINUX32, "linux32", NULL}, {PER_LINUX, "linux64", NULL}, #if defined(__powerpc__) || defined(__powerpc64__) +#ifdef __BIG_ENDIAN__ {PER_LINUX32, "ppc32", "ppc"}, {PER_LINUX32, "ppc", "ppc"}, {PER_LINUX, "ppc64", "ppc64"}, {PER_LINUX, "ppc64pseries", "ppc64"}, {PER_LINUX, "ppc64iseries", "ppc64"}, +#else + {PER_LINUX32, "ppc32le", "ppcle"}, + {PER_LINUX32, "ppcle", "ppcle"}, + {PER_LINUX, "ppc64le", "ppc64le"}, +#endif #endif #if defined(__x86_64__) || defined(__i386__) || defined(__ia64__) {PER_LINUX32, "i386", "i386"}, |
