public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] elf.h: add PT_GNU_SFRAME
@ 2023-01-18  6:41 Indu Bhagat
  2023-01-18 13:09 ` Florian Weimer
  2023-04-28  9:15 ` Florian Weimer
  0 siblings, 2 replies; 4+ messages in thread
From: Indu Bhagat @ 2023-01-18  6:41 UTC (permalink / raw)
  To: libc-alpha; +Cc: Indu Bhagat

Support for SFrame format is available in Binutils 2.40.  The GNU ld merges
the input .sframe sections and creates an output .sframe section in a
segment PT_GNU_SFRAME.
---
 elf/elf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elf/elf.h b/elf/elf.h
index b6a75c13a8..9692200f6f 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -728,6 +728,7 @@ typedef struct
 #define PT_GNU_STACK	0x6474e551	/* Indicates stack executability */
 #define PT_GNU_RELRO	0x6474e552	/* Read-only after relocation */
 #define PT_GNU_PROPERTY	0x6474e553	/* GNU property */
+#define PT_GNU_SFRAME	0x6474e554	/* SFrame segment.  */
 #define PT_LOSUNW	0x6ffffffa
 #define PT_SUNWBSS	0x6ffffffa	/* Sun Specific segment */
 #define PT_SUNWSTACK	0x6ffffffb	/* Stack segment */
-- 
2.37.2


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

* Re: [PATCH] elf.h: add PT_GNU_SFRAME
  2023-01-18  6:41 [PATCH] elf.h: add PT_GNU_SFRAME Indu Bhagat
@ 2023-01-18 13:09 ` Florian Weimer
  2023-02-22 22:21   ` Indu Bhagat
  2023-04-28  9:15 ` Florian Weimer
  1 sibling, 1 reply; 4+ messages in thread
From: Florian Weimer @ 2023-01-18 13:09 UTC (permalink / raw)
  To: Indu Bhagat via Libc-alpha; +Cc: Indu Bhagat

* Indu Bhagat via Libc-alpha:

> Support for SFrame format is available in Binutils 2.40.  The GNU ld merges
> the input .sframe sections and creates an output .sframe section in a
> segment PT_GNU_SFRAME.
> ---
>  elf/elf.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/elf/elf.h b/elf/elf.h
> index b6a75c13a8..9692200f6f 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -728,6 +728,7 @@ typedef struct
>  #define PT_GNU_STACK	0x6474e551	/* Indicates stack executability */
>  #define PT_GNU_RELRO	0x6474e552	/* Read-only after relocation */
>  #define PT_GNU_PROPERTY	0x6474e553	/* GNU property */
> +#define PT_GNU_SFRAME	0x6474e554	/* SFrame segment.  */
>  #define PT_LOSUNW	0x6ffffffa
>  #define PT_SUNWBSS	0x6ffffffa	/* Sun Specific segment */
>  #define PT_SUNWSTACK	0x6ffffffb	/* Stack segment */

Please submit this to the gnu-gabi list as well, preferably with a
documentation patch.

Thanks,
Florian


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

* Re: [PATCH] elf.h: add PT_GNU_SFRAME
  2023-01-18 13:09 ` Florian Weimer
@ 2023-02-22 22:21   ` Indu Bhagat
  0 siblings, 0 replies; 4+ messages in thread
From: Indu Bhagat @ 2023-02-22 22:21 UTC (permalink / raw)
  To: Florian Weimer, Indu Bhagat via Libc-alpha

On 1/18/23 05:09, Florian Weimer wrote:
> * Indu Bhagat via Libc-alpha:
> 
>> Support for SFrame format is available in Binutils 2.40.  The GNU ld merges
>> the input .sframe sections and creates an output .sframe section in a
>> segment PT_GNU_SFRAME.
>> ---
>>   elf/elf.h | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/elf/elf.h b/elf/elf.h
>> index b6a75c13a8..9692200f6f 100644
>> --- a/elf/elf.h
>> +++ b/elf/elf.h
>> @@ -728,6 +728,7 @@ typedef struct
>>   #define PT_GNU_STACK	0x6474e551	/* Indicates stack executability */
>>   #define PT_GNU_RELRO	0x6474e552	/* Read-only after relocation */
>>   #define PT_GNU_PROPERTY	0x6474e553	/* GNU property */
>> +#define PT_GNU_SFRAME	0x6474e554	/* SFrame segment.  */
>>   #define PT_LOSUNW	0x6ffffffa
>>   #define PT_SUNWBSS	0x6ffffffa	/* Sun Specific segment */
>>   #define PT_SUNWSTACK	0x6ffffffb	/* Stack segment */
> 
> Please submit this to the gnu-gabi list as well, preferably with a
> documentation patch.
> 

Thanks. A patch was posted to gnu-gabi 
https://sourceware.org/pipermail/gnu-gabi/2023q1/000522.html

(BTW, on the Binutils side, the patch to update documentation to use 
"stack trace" instead of "unwind" for SFrame, has been committed).

Thanks
Indu

> Thanks,
> Florian
> 


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

* Re: [PATCH] elf.h: add PT_GNU_SFRAME
  2023-01-18  6:41 [PATCH] elf.h: add PT_GNU_SFRAME Indu Bhagat
  2023-01-18 13:09 ` Florian Weimer
@ 2023-04-28  9:15 ` Florian Weimer
  1 sibling, 0 replies; 4+ messages in thread
From: Florian Weimer @ 2023-04-28  9:15 UTC (permalink / raw)
  To: Indu Bhagat via Libc-alpha; +Cc: Indu Bhagat

* Indu Bhagat via Libc-alpha:

> Support for SFrame format is available in Binutils 2.40.  The GNU ld merges
> the input .sframe sections and creates an output .sframe section in a
> segment PT_GNU_SFRAME.
> ---
>  elf/elf.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/elf/elf.h b/elf/elf.h
> index b6a75c13a8..9692200f6f 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -728,6 +728,7 @@ typedef struct
>  #define PT_GNU_STACK	0x6474e551	/* Indicates stack executability */
>  #define PT_GNU_RELRO	0x6474e552	/* Read-only after relocation */
>  #define PT_GNU_PROPERTY	0x6474e553	/* GNU property */
> +#define PT_GNU_SFRAME	0x6474e554	/* SFrame segment.  */
>  #define PT_LOSUNW	0x6ffffffa
>  #define PT_SUNWBSS	0x6ffffffa	/* Sun Specific segment */
>  #define PT_SUNWSTACK	0x6ffffffb	/* Stack segment */

Thanks, re-tested and applied.

Florian


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

end of thread, other threads:[~2023-04-28  9:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-18  6:41 [PATCH] elf.h: add PT_GNU_SFRAME Indu Bhagat
2023-01-18 13:09 ` Florian Weimer
2023-02-22 22:21   ` Indu Bhagat
2023-04-28  9:15 ` Florian Weimer

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).