* Add NT_VMCOREDD, AT_MINSIGSTKSZ from Linux 4.18 to elf.h
@ 2018-08-15 16:52 Joseph Myers
2018-08-20 11:27 ` Ping " Joseph Myers
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Joseph Myers @ 2018-08-15 16:52 UTC (permalink / raw)
To: libc-alpha
This patch adds two new constants from Linux 4.18 to elf.h,
NT_VMCOREDD and AT_MINSIGSTKSZ.
Tested for x86_64.
2018-08-15 Joseph Myers <joseph@codesourcery.com>
* elf/elf.c (NT_VMCOREDD): New macro.
(AT_MINSIGSTKSZ): Likewise.
diff --git a/elf/elf.h b/elf/elf.h
index 7e2b072..226e538 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -808,6 +808,7 @@ typedef struct
#define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */
#define NT_ARM_SVE 0x405 /* ARM Scalable Vector Extension
registers */
+#define NT_VMCOREDD 0x700 /* Vmcore Device Dump Note. */
/* Legal values for the note segment descriptor types for object files. */
@@ -1214,6 +1215,9 @@ typedef struct
#define AT_L3_CACHESIZE 46
#define AT_L3_CACHEGEOMETRY 47
+#define AT_MINSIGSTKSZ 51 /* Stack needed for signal delivery
+ (AArch64). */
+
/* Note section contents. Each entry in the note section begins with
a header of a fixed form. */
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Ping Re: Add NT_VMCOREDD, AT_MINSIGSTKSZ from Linux 4.18 to elf.h
2018-08-15 16:52 Add NT_VMCOREDD, AT_MINSIGSTKSZ from Linux 4.18 to elf.h Joseph Myers
@ 2018-08-20 11:27 ` Joseph Myers
2018-08-20 11:39 ` Florian Weimer
2018-08-20 11:45 ` Adhemerval Zanella
2 siblings, 0 replies; 4+ messages in thread
From: Joseph Myers @ 2018-08-20 11:27 UTC (permalink / raw)
To: libc-alpha
Ping. This patch
<https://sourceware.org/ml/libc-alpha/2018-08/msg00315.html> is pending
review.
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Add NT_VMCOREDD, AT_MINSIGSTKSZ from Linux 4.18 to elf.h
2018-08-15 16:52 Add NT_VMCOREDD, AT_MINSIGSTKSZ from Linux 4.18 to elf.h Joseph Myers
2018-08-20 11:27 ` Ping " Joseph Myers
@ 2018-08-20 11:39 ` Florian Weimer
2018-08-20 11:45 ` Adhemerval Zanella
2 siblings, 0 replies; 4+ messages in thread
From: Florian Weimer @ 2018-08-20 11:39 UTC (permalink / raw)
To: Joseph Myers, libc-alpha
On 08/15/2018 06:52 PM, Joseph Myers wrote:
> 2018-08-15 Joseph Myers<joseph@codesourcery.com>
>
> * elf/elf.c (NT_VMCOREDD): New macro.
> (AT_MINSIGSTKSZ): Likewise.
I verified that the constants match the kernel settings. Looks good to me.
As an aside: AT_MINSIGSTKSZ should really be arch-independent because
x86 needs it as well (the signal stack usage varies wildly there as well).
Thanks,
Florian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Add NT_VMCOREDD, AT_MINSIGSTKSZ from Linux 4.18 to elf.h
2018-08-15 16:52 Add NT_VMCOREDD, AT_MINSIGSTKSZ from Linux 4.18 to elf.h Joseph Myers
2018-08-20 11:27 ` Ping " Joseph Myers
2018-08-20 11:39 ` Florian Weimer
@ 2018-08-20 11:45 ` Adhemerval Zanella
2 siblings, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2018-08-20 11:45 UTC (permalink / raw)
To: libc-alpha
On 15/08/2018 13:52, Joseph Myers wrote:
> This patch adds two new constants from Linux 4.18 to elf.h,
> NT_VMCOREDD and AT_MINSIGSTKSZ.
>
> Tested for x86_64.
>
> 2018-08-15 Joseph Myers <joseph@codesourcery.com>
>
> * elf/elf.c (NT_VMCOREDD): New macro.
> (AT_MINSIGSTKSZ): Likewise.
LGTM thanks.
>
> diff --git a/elf/elf.h b/elf/elf.h
> index 7e2b072..226e538 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -808,6 +808,7 @@ typedef struct
> #define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */
> #define NT_ARM_SVE 0x405 /* ARM Scalable Vector Extension
> registers */
> +#define NT_VMCOREDD 0x700 /* Vmcore Device Dump Note. */
>
> /* Legal values for the note segment descriptor types for object files. */
>
> @@ -1214,6 +1215,9 @@ typedef struct
> #define AT_L3_CACHESIZE 46
> #define AT_L3_CACHEGEOMETRY 47
>
> +#define AT_MINSIGSTKSZ 51 /* Stack needed for signal delivery
> + (AArch64). */
> +
> /* Note section contents. Each entry in the note section begins with
> a header of a fixed form. */
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-08-20 11:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-15 16:52 Add NT_VMCOREDD, AT_MINSIGSTKSZ from Linux 4.18 to elf.h Joseph Myers
2018-08-20 11:27 ` Ping " Joseph Myers
2018-08-20 11:39 ` Florian Weimer
2018-08-20 11:45 ` Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).