diff mbox

[1/2] ARM: ELF: Define new core note type for VFP registers

Message ID 1301674888-16842-2-git-send-email-dave.martin@linaro.org
State Superseded
Headers show

Commit Message

Dave Martin April 1, 2011, 4:21 p.m. UTC
The VFP registers are not currently included in coredumps,
and there's no existing note type where they can sensibly be
included, so this patch defines a dedicated note type for them.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Will Deacon <Will.Deacon@arm.com>
---
 arch/arm/include/asm/elf.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Ulrich Weigand April 1, 2011, 5:02 p.m. UTC | #1
Dave Martin <dave.martin@linaro.org> wrote:

> diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h
> index c3cd875..0b4872d 100644
> --- a/arch/arm/include/asm/elf.h
> +++ b/arch/arm/include/asm/elf.h
> @@ -62,6 +62,8 @@ typedef struct user_fp elf_fpregset_t;
>  #define R_ARM_THM_MOVW_ABS_NC   47
>  #define R_ARM_THM_MOVT_ABS   48
>
> +#define NT_ARM_VFP      0x400

This probably ought to go in include/elf.h, where all the
other NT_ types are defined ...


Mit freundlichen Gruessen / Best Regards

Ulrich Weigand

--
  Dr. Ulrich Weigand | Phone: +49-7031/16-3727
  STSM, GNU compiler and toolchain for Linux on System z and Cell/B.E.
  IBM Deutschland Research & Development GmbH
  Vorsitzender des Aufsichtsrats: Martin Jetter | Geschäftsführung: Dirk
Wittkopp
  Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht
Stuttgart, HRB 243294
Dave Martin April 1, 2011, 5:04 p.m. UTC | #2
On Fri, Apr 1, 2011 at 6:02 PM, Ulrich Weigand
<Ulrich.Weigand@de.ibm.com> wrote:
> Dave Martin <dave.martin@linaro.org> wrote:
>
>> diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h
>> index c3cd875..0b4872d 100644
>> --- a/arch/arm/include/asm/elf.h
>> +++ b/arch/arm/include/asm/elf.h
>> @@ -62,6 +62,8 @@ typedef struct user_fp elf_fpregset_t;
>>  #define R_ARM_THM_MOVW_ABS_NC   47
>>  #define R_ARM_THM_MOVT_ABS   48
>>
>> +#define NT_ARM_VFP      0x400
>
> This probably ought to go in include/elf.h, where all the
> other NT_ types are defined ...

OK ... I was wondering since it's arch-specific.

But I can easily move it.

Cheers
---Dave
diff mbox

Patch

diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h
index c3cd875..0b4872d 100644
--- a/arch/arm/include/asm/elf.h
+++ b/arch/arm/include/asm/elf.h
@@ -62,6 +62,8 @@  typedef struct user_fp elf_fpregset_t;
 #define R_ARM_THM_MOVW_ABS_NC	47
 #define R_ARM_THM_MOVT_ABS	48
 
+#define NT_ARM_VFP		0x400
+
 /*
  * These are used to set parameters in the core dumps.
  */