From: Eugene Syromyatnikov Date: Sun, 27 Aug 2017 16:49:01 +0000 (+0200) Subject: syscall.c: define personality names for all multi-personality architectures X-Git-Tag: v4.19~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39f5a9cd2da2aa667ce80590eefaccf026008e54;p=strace syscall.c: define personality names for all multi-personality architectures I see no reason for not having these definitions for SPARC64 and RISC-V. Also, borrow the check template from supported_personalities.h. * syscall.c (update_personality) [defined RISCV, defined SPARC64] : Define it for these architectures. Co-authored-by: Dmitry V. Levin --- diff --git a/syscall.c b/syscall.c index 87825e6b..1d3b1232 100644 --- a/syscall.c +++ b/syscall.c @@ -308,12 +308,12 @@ update_personality(struct tcb *tcp, unsigned int personality) tcp->currpers = personality; # undef PERSONALITY_NAMES -# if defined POWERPC64 || defined AARCH64 || defined TILE -# define PERSONALITY_NAMES {"64 bit", "32 bit"} -# elif defined X86_64 +# if defined X86_64 # define PERSONALITY_NAMES {"64 bit", "32 bit", "x32"} # elif defined X32 # define PERSONALITY_NAMES {"x32", "32 bit"} +# elif SUPPORTED_PERSONALITIES == 2 +# define PERSONALITY_NAMES {"64 bit", "32 bit"} # endif # ifdef PERSONALITY_NAMES if (!qflag) {