From: David Daney <ddaney@caviumnetworks.com>
To: Heiher <admin@heiher.info>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] Fixup personality in different ABI.
Date: Fri, 18 Mar 2011 09:17:46 -0700 [thread overview]
Message-ID: <4D8385AA.605@caviumnetworks.com> (raw)
In-Reply-To: <AANLkTimsVcPtJHrV+UMcXAMcqDRpm3ZbbXqSuupx0Uq5@mail.gmail.com>
On 03/17/2011 09:59 PM, Heiher wrote:
> Hello,
Why, hello to you too.
Can you explain what problem you are trying to solve?
Presumably if someone has set the personality, they had a reason for
doing so. On what grounds do you think it is a good idea to override
the explicit desires of the user and restore a default personality?
This patch would break many software build systems.
Unless you can explain why this is needed, I have to say:
NAK to this patch.
Thanks,
David Daney
>
>> From bf3637153bc5e3d0e3f1c2982c323057a8e04801 Mon Sep 17 00:00:00 2001
> From: Heiher<admin@heiher.info>
> Date: Fri, 18 Mar 2011 12:51:08 +0800
> Subject: [PATCH] Fixup personality in different ABI.
>
> * '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) \
next prev parent reply other threads:[~2011-03-18 16:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2011-03-18 16:34 ` Heiher
2011-03-18 16:57 ` David Daney
2011-03-18 18:18 ` Ralf Baechle
-- strict thread matches above, loose matches on Subject: below --
2011-03-18 4:58 Heiher
2011-03-24 12:03 ` Ralf Baechle
2011-03-18 4:51 Heiher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D8385AA.605@caviumnetworks.com \
--to=ddaney@caviumnetworks.com \
--cc=admin@heiher.info \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.