From: Rusty Russell <rusty@rustcorp•com.au>
To: Michael Ellerman <mpe@ellerman•id.au>, Anton Blanchard <anton@samba•org>
Cc: alistair@popple•id.au, paulus@samba•org,
linuxppc-dev@lists•ozlabs.org, Ulrich.Weigand@de•ibm.com
Subject: Re: [PATCH 3/9] powerpc: Add TIF_ELF2ABI flag.
Date: Sun, 01 Dec 2013 21:00:50 +1030 [thread overview]
Message-ID: <874n6s3lt1.fsf@rustcorp.com.au> (raw)
In-Reply-To: <20131121115503.GD15913@concordia>
Michael Ellerman <mpe@ellerman•id.au> writes:
> On Wed, Nov 20, 2013 at 10:15:00PM +1100, Anton Blanchard wrote:
>> From: Rusty Russell <rusty@rustcorp•com.au>
>>
>> Little endian ppc64 is getting an exciting new ABI. This is reflected
>> by the bottom two bits of e_flags in the ELF header:
>>
>> 0 == legacy binaries (v1 ABI)
>> 1 == binaries using the old ABI (compiled with a new toolchain)
>> 2 == binaries using the new ABI.
>
> Just to be ridiculously clear for stupid people like me, you refer here
> to the "v1 ABI" and "the old ABI" - they are the same thing - right?
Sorry for delay, was off for a week.
Yes, same thing.
>> diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/asm/thread_info.h
>> index ba7b197..05a3030 100644
>> --- a/arch/powerpc/include/asm/thread_info.h
>> +++ b/arch/powerpc/include/asm/thread_info.h
>> @@ -107,6 +107,9 @@ static inline struct thread_info *current_thread_info(void)
>> #define TIF_EMULATE_STACK_STORE 16 /* Is an instruction emulation
>> for stack store? */
>> #define TIF_MEMDIE 17 /* is terminating due to OOM killer */
>> +#if defined(CONFIG_PPC64)
>> +#define TIF_ELF2ABI 18 /* function descriptors must die! */
>> +#endif
>
> This is the first TIF flag we #ifdef for 32 vs 64, is that just because
> we don't want to waste a flag on 32 bit?
No, it's because I wanted to make damn sure that there wasn't anyone
testing this in 32-bit code, since ELF2 is currently a 64-bit only
option.
Cheers,
Rusty.
next prev parent reply other threads:[~2013-12-01 10:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 11:14 [PATCH 0/9] ppc64 little endian updates Anton Blanchard
2013-11-20 11:14 ` [PATCH 1/9] powerpc/pseries: Fix endian issues in pseries EEH code Anton Blanchard
2013-11-20 11:14 ` [PATCH 2/9] pseries: Add H_SET_MODE to change exception endianness Anton Blanchard
2013-11-21 11:51 ` Michael Ellerman
2013-11-20 11:15 ` [PATCH 3/9] powerpc: Add TIF_ELF2ABI flag Anton Blanchard
2013-11-21 11:55 ` Michael Ellerman
2013-12-01 10:30 ` Rusty Russell [this message]
2013-11-20 11:15 ` [PATCH 4/9] powerpc: Set eflags correctly for ELF ABIv2 core dumps Anton Blanchard
2013-11-21 11:58 ` Michael Ellerman
2013-11-20 11:15 ` [PATCH 5/9] powerpc: ELF2 binaries launched directly Anton Blanchard
2013-11-20 11:15 ` [PATCH 6/9] powerpc: ELF2 binaries signal handling Anton Blanchard
2013-11-20 11:15 ` [PATCH 7/9] powerpc: Don't use ELFv2 ABI to build the kernel Anton Blanchard
2013-11-20 11:15 ` [PATCH 8/9] powerpc: Add CONFIG_CPU_LITTLE_ENDIAN kernel config option Anton Blanchard
2013-11-21 12:05 ` Michael Ellerman
2013-11-20 11:15 ` [PATCH 9/9] powerpc: Add pseries_le_defconfig Anton Blanchard
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=874n6s3lt1.fsf@rustcorp.com.au \
--to=rusty@rustcorp$(echo .)com.au \
--cc=Ulrich.Weigand@de$(echo .)ibm.com \
--cc=alistair@popple$(echo .)id.au \
--cc=anton@samba$(echo .)org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=mpe@ellerman$(echo .)id.au \
--cc=paulus@samba$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox