Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] Fixup personality in different ABI.
@ 2011-03-18  4:59 Heiher
  2011-03-18 10:16 ` Sergei Shtylyov
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Heiher @ 2011-03-18  4:59 UTC (permalink / raw)
  To: linux-mips

Hello,

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <AANLkTikuBxnd0bFsO5NP2GQYDZmGFP9kLruWVpjZ7+UQ@mail.gmail.com>]
* [PATCH] Fixup personality in different ABI.
@ 2011-03-18  4:51 Heiher
  0 siblings, 0 replies; 8+ messages in thread
From: Heiher @ 2011-03-18  4:51 UTC (permalink / raw)


* 'arch' output:
	o32 : mips
	n32 : mips64
	64  : mips64
---
 arch/mips/include/asm/elf.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/mips/include/asm/elf.h b/arch/mips/include/asm/elf.h
index 455c0ac..01510d4 100644
--- a/arch/mips/include/asm/elf.h
+++ b/arch/mips/include/asm/elf.h
@@ -262,6 +262,7 @@ do {									\
 #ifdef CONFIG_MIPS32_N32
 #define __SET_PERSONALITY32_N32()					\
 	do {								\
+		set_personality(PER_LINUX);				\
 		set_thread_flag(TIF_32BIT_ADDR);			\
 		current->thread.abi = &mips_abi_n32;			\
 	} while (0)
@@ -273,6 +274,7 @@ do {									\
 #ifdef CONFIG_MIPS32_O32
 #define __SET_PERSONALITY32_O32()					\
 	do {								\
+		set_personality(PER_LINUX32);			\
 		set_thread_flag(TIF_32BIT_REGS);			\
 		set_thread_flag(TIF_32BIT_ADDR);			\
 		current->thread.abi = &mips_abi_32;			\
@@ -305,7 +307,10 @@ do {									\
 	if ((ex).e_ident[EI_CLASS] == ELFCLASS32)			\
 		__SET_PERSONALITY32(ex);				\
 	else								\
+	{								\
+		set_personality(PER_LINUX);				\
 		current->thread.abi = &mips_abi;			\
+	}								\
 									\
 	p = personality(current->personality);				\
 	if (p != PER_LINUX32 && p != PER_LINUX)				\
-- 
1.7.4.1.225.g83c3c

-- 
Best regards!
Heiher

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-24 12:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-18  4:59 [PATCH] Fixup personality in different ABI Heiher
2011-03-18 10:16 ` Sergei Shtylyov
2011-03-18 16:17 ` David Daney
2011-03-18 16:34   ` Heiher
2011-03-18 16:57     ` David Daney
2011-03-18 18:18 ` Ralf Baechle
     [not found] <AANLkTikuBxnd0bFsO5NP2GQYDZmGFP9kLruWVpjZ7+UQ@mail.gmail.com>
2011-03-24 12:03 ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2011-03-18  4:51 Heiher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox