public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/2] elf: update NT_FDO_PACKAGING_METADATA spec URL
@ 2024-05-10 21:27 luca.boccassi
  2024-05-10 21:27 ` [PATCH 2/2] elf: add note identifier for dlopen metadata luca.boccassi
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: luca.boccassi @ 2024-05-10 21:27 UTC (permalink / raw)
  To: libc-alpha

From: Luca Boccassi <bluca@debian.org>

Page was renamed some time ago, there's a redirect but better
to point to the right one

Signed-off-by: Luca Boccassi <bluca@debian.org>
---
 elf/elf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elf/elf.h b/elf/elf.h
index 55b2e87860..1df9b59935 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -1337,7 +1337,7 @@ typedef struct
 #define NT_GNU_PROPERTY_TYPE_0 5
 
 /* Packaging metadata as defined on
-   https://systemd.io/COREDUMP_PACKAGE_METADATA/ */
+   https://systemd.io/ELF_PACKAGE_METADATA/ */
 #define NT_FDO_PACKAGING_METADATA 0xcafe1a7e
 
 /* Note section name of program property.   */
-- 
2.39.2


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

* [PATCH 2/2] elf: add note identifier for dlopen metadata
  2024-05-10 21:27 [PATCH 1/2] elf: update NT_FDO_PACKAGING_METADATA spec URL luca.boccassi
@ 2024-05-10 21:27 ` luca.boccassi
  2024-05-14 15:48   ` Arjun Shankar
  2024-05-14 15:38 ` [PATCH 1/2] elf: update NT_FDO_PACKAGING_METADATA spec URL Arjun Shankar
  2024-05-15  0:10 ` [PATCH v2 " luca.boccassi
  2 siblings, 1 reply; 10+ messages in thread
From: luca.boccassi @ 2024-05-10 21:27 UTC (permalink / raw)
  To: libc-alpha

From: Luca Boccassi <bluca@debian.org>

Note that the webpage in the comment is not published yet,
it will be next week when the next systemd RC is tagged.
The document can be viewed right now on github at:
https://github.com/systemd/systemd/blob/main/docs/ELF_DLOPEN_METADATA.md

But the note id is not going to change. By defining it we can then
update tools to be able to parse and display it in a user-friendly
manner.

Signed-off-by: Luca Boccassi <bluca@debian.org>
---
 elf/elf.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/elf/elf.h b/elf/elf.h
index 1df9b59935..f1b935382f 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -1340,6 +1340,10 @@ typedef struct
    https://systemd.io/ELF_PACKAGE_METADATA/ */
 #define NT_FDO_PACKAGING_METADATA 0xcafe1a7e
 
+/* dlopen metadata as defined on
+   https://systemd.io/ELF_DLOPEN_METADATA/ */
+#define NT_FDO_DLOPEN_METADATA 0x407c0c0a
+
 /* Note section name of program property.   */
 #define NOTE_GNU_PROPERTY_SECTION_NAME ".note.gnu.property"
 
-- 
2.39.2


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

* Re: [PATCH 1/2] elf: update NT_FDO_PACKAGING_METADATA spec URL
  2024-05-10 21:27 [PATCH 1/2] elf: update NT_FDO_PACKAGING_METADATA spec URL luca.boccassi
  2024-05-10 21:27 ` [PATCH 2/2] elf: add note identifier for dlopen metadata luca.boccassi
@ 2024-05-14 15:38 ` Arjun Shankar
  2024-05-15  0:10 ` [PATCH v2 " luca.boccassi
  2 siblings, 0 replies; 10+ messages in thread
From: Arjun Shankar @ 2024-05-14 15:38 UTC (permalink / raw)
  To: luca.boccassi; +Cc: libc-alpha

Hi Luca,

> Page was renamed some time ago, there's a redirect but better
> to point to the right one
>
> Signed-off-by: Luca Boccassi <bluca@debian.org>

Thanks! This looks good to me.
Reviewed-by: Arjun Shankar <arjun@redhat.com>

> ---
>  elf/elf.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/elf/elf.h b/elf/elf.h
> index 55b2e87860..1df9b59935 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -1337,7 +1337,7 @@ typedef struct
>  #define NT_GNU_PROPERTY_TYPE_0 5
>
>  /* Packaging metadata as defined on
> -   https://systemd.io/COREDUMP_PACKAGE_METADATA/ */
> +   https://systemd.io/ELF_PACKAGE_METADATA/ */
>  #define NT_FDO_PACKAGING_METADATA 0xcafe1a7e
>
>  /* Note section name of program property.   */
> --
> 2.39.2
>


-- 
Arjun Shankar
he/him/his


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

* Re: [PATCH 2/2] elf: add note identifier for dlopen metadata
  2024-05-10 21:27 ` [PATCH 2/2] elf: add note identifier for dlopen metadata luca.boccassi
@ 2024-05-14 15:48   ` Arjun Shankar
  2024-05-15  0:12     ` Luca Boccassi
  0 siblings, 1 reply; 10+ messages in thread
From: Arjun Shankar @ 2024-05-14 15:48 UTC (permalink / raw)
  To: luca.boccassi; +Cc: libc-alpha

Hi Luca,

> Note that the webpage in the comment is not published yet,
> it will be next week when the next systemd RC is tagged.
> The document can be viewed right now on github at:
> https://github.com/systemd/systemd/blob/main/docs/ELF_DLOPEN_METADATA.md
>
> But the note id is not going to change. By defining it we can then
> update tools to be able to parse and display it in a user-friendly
> manner.
>
> Signed-off-by: Luca Boccassi <bluca@debian.org>

May I suggest rewording the commit message to remove the tentative
bits? I'll check back for when the URL goes live and then push that,
but it would be nice to have a definitive commit message at that
point.

Thanks!

> ---
>  elf/elf.h | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/elf/elf.h b/elf/elf.h
> index 1df9b59935..f1b935382f 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -1340,6 +1340,10 @@ typedef struct
>     https://systemd.io/ELF_PACKAGE_METADATA/ */
>  #define NT_FDO_PACKAGING_METADATA 0xcafe1a7e
>
> +/* dlopen metadata as defined on
> +   https://systemd.io/ELF_DLOPEN_METADATA/ */
> +#define NT_FDO_DLOPEN_METADATA 0x407c0c0a
> +
>  /* Note section name of program property.   */
>  #define NOTE_GNU_PROPERTY_SECTION_NAME ".note.gnu.property"
>
> --
> 2.39.2
>


-- 
Arjun Shankar
he/him/his


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

* [PATCH v2 1/2] elf: update NT_FDO_PACKAGING_METADATA spec URL
  2024-05-10 21:27 [PATCH 1/2] elf: update NT_FDO_PACKAGING_METADATA spec URL luca.boccassi
  2024-05-10 21:27 ` [PATCH 2/2] elf: add note identifier for dlopen metadata luca.boccassi
  2024-05-14 15:38 ` [PATCH 1/2] elf: update NT_FDO_PACKAGING_METADATA spec URL Arjun Shankar
@ 2024-05-15  0:10 ` luca.boccassi
  2024-05-15  0:10   ` [PATCH v2 2/2] elf: add note identifier for dlopen metadata luca.boccassi
  2 siblings, 1 reply; 10+ messages in thread
From: luca.boccassi @ 2024-05-15  0:10 UTC (permalink / raw)
  To: libc-alpha

From: Luca Boccassi <bluca@debian.org>

Page was renamed some time ago, there's a redirect but better
to point to the right one

Signed-off-by: Luca Boccassi <bluca@debian.org>
---
 elf/elf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elf/elf.h b/elf/elf.h
index 55b2e87860..1df9b59935 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -1337,7 +1337,7 @@ typedef struct
 #define NT_GNU_PROPERTY_TYPE_0 5
 
 /* Packaging metadata as defined on
-   https://systemd.io/COREDUMP_PACKAGE_METADATA/ */
+   https://systemd.io/ELF_PACKAGE_METADATA/ */
 #define NT_FDO_PACKAGING_METADATA 0xcafe1a7e
 
 /* Note section name of program property.   */
-- 
2.39.2


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

* [PATCH v2 2/2] elf: add note identifier for dlopen metadata
  2024-05-15  0:10 ` [PATCH v2 " luca.boccassi
@ 2024-05-15  0:10   ` luca.boccassi
  0 siblings, 0 replies; 10+ messages in thread
From: luca.boccassi @ 2024-05-15  0:10 UTC (permalink / raw)
  To: libc-alpha

From: Luca Boccassi <bluca@debian.org>

This new note type is defined at https://systemd.io/ELF_DLOPEN_METADATA/
and is used to list shared library dependencies loaded via dlopen().
Distro packagers can use this, via tools like those available at
https://github.com/systemd/package-notes to automatically generate
dependencies when building projects that make use of this
specification.

By defining the note id here we can use it in other projects as a
stable identifier, for example in 'readelf' to pretty-print its
content.

Signed-off-by: Luca Boccassi <bluca@debian.org>
---
 elf/elf.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/elf/elf.h b/elf/elf.h
index 1df9b59935..f1b935382f 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -1340,6 +1340,10 @@ typedef struct
    https://systemd.io/ELF_PACKAGE_METADATA/ */
 #define NT_FDO_PACKAGING_METADATA 0xcafe1a7e
 
+/* dlopen metadata as defined on
+   https://systemd.io/ELF_DLOPEN_METADATA/ */
+#define NT_FDO_DLOPEN_METADATA 0x407c0c0a
+
 /* Note section name of program property.   */
 #define NOTE_GNU_PROPERTY_SECTION_NAME ".note.gnu.property"
 
-- 
2.39.2


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

* Re: [PATCH 2/2] elf: add note identifier for dlopen metadata
  2024-05-14 15:48   ` Arjun Shankar
@ 2024-05-15  0:12     ` Luca Boccassi
  2024-05-23 10:22       ` Luca Boccassi
  0 siblings, 1 reply; 10+ messages in thread
From: Luca Boccassi @ 2024-05-15  0:12 UTC (permalink / raw)
  To: Arjun Shankar; +Cc: libc-alpha

On Tue, 14 May 2024 at 16:48, Arjun Shankar <arjun@redhat.com> wrote:
>
> Hi Luca,
>
> > Note that the webpage in the comment is not published yet,
> > it will be next week when the next systemd RC is tagged.
> > The document can be viewed right now on github at:
> > https://github.com/systemd/systemd/blob/main/docs/ELF_DLOPEN_METADATA.md
> >
> > But the note id is not going to change. By defining it we can then
> > update tools to be able to parse and display it in a user-friendly
> > manner.
> >
> > Signed-off-by: Luca Boccassi <bluca@debian.org>
>
> May I suggest rewording the commit message to remove the tentative
> bits? I'll check back for when the URL goes live and then push that,
> but it would be nice to have a definitive commit message at that
> point.
>
> Thanks!

Sure no problem, done in v2. I actually just remembered that we update
systemd.io only on the final release, not on RCs, so it's still a
couple of weeks away. But the URL is not going to change, it's fixed
as it just generates from the github repository's content, so no need
to wait. Thanks!

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

* Re: [PATCH 2/2] elf: add note identifier for dlopen metadata
  2024-05-15  0:12     ` Luca Boccassi
@ 2024-05-23 10:22       ` Luca Boccassi
  2024-05-30 10:40         ` Arjun Shankar
  0 siblings, 1 reply; 10+ messages in thread
From: Luca Boccassi @ 2024-05-23 10:22 UTC (permalink / raw)
  To: Arjun Shankar; +Cc: libc-alpha

On Wed, 15 May 2024 at 01:12, Luca Boccassi <luca.boccassi@gmail.com> wrote:
>
> On Tue, 14 May 2024 at 16:48, Arjun Shankar <arjun@redhat.com> wrote:
> >
> > Hi Luca,
> >
> > > Note that the webpage in the comment is not published yet,
> > > it will be next week when the next systemd RC is tagged.
> > > The document can be viewed right now on github at:
> > > https://github.com/systemd/systemd/blob/main/docs/ELF_DLOPEN_METADATA.md
> > >
> > > But the note id is not going to change. By defining it we can then
> > > update tools to be able to parse and display it in a user-friendly
> > > manner.
> > >
> > > Signed-off-by: Luca Boccassi <bluca@debian.org>
> >
> > May I suggest rewording the commit message to remove the tentative
> > bits? I'll check back for when the URL goes live and then push that,
> > but it would be nice to have a definitive commit message at that
> > point.
> >
> > Thanks!
>
> Sure no problem, done in v2. I actually just remembered that we update
> systemd.io only on the final release, not on RCs, so it's still a
> couple of weeks away. But the URL is not going to change, it's fixed
> as it just generates from the github repository's content, so no need
> to wait. Thanks!

Hi Arjun,

The page has been published on https://systemd.io/ELF_DLOPEN_METADATA/
v2 has the updated commit message, could it be merged now please? Thanks!

https://sourceware.org/pipermail/libc-alpha/2024-May/156717.html

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

* Re: [PATCH 2/2] elf: add note identifier for dlopen metadata
  2024-05-23 10:22       ` Luca Boccassi
@ 2024-05-30 10:40         ` Arjun Shankar
  2024-05-30 10:43           ` Luca Boccassi
  0 siblings, 1 reply; 10+ messages in thread
From: Arjun Shankar @ 2024-05-30 10:40 UTC (permalink / raw)
  To: Luca Boccassi; +Cc: libc-alpha

> The page has been published on https://systemd.io/ELF_DLOPEN_METADATA/
> v2 has the updated commit message, could it be merged now please? Thanks!

Hi Luca, thanks for following up on this. I've pushed both patches now. Cheers!

-- 
Arjun Shankar
he/him/his


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

* Re: [PATCH 2/2] elf: add note identifier for dlopen metadata
  2024-05-30 10:40         ` Arjun Shankar
@ 2024-05-30 10:43           ` Luca Boccassi
  0 siblings, 0 replies; 10+ messages in thread
From: Luca Boccassi @ 2024-05-30 10:43 UTC (permalink / raw)
  To: Arjun Shankar; +Cc: libc-alpha

On Thu, 30 May 2024 at 11:41, Arjun Shankar <arjun@redhat.com> wrote:
>
> > The page has been published on https://systemd.io/ELF_DLOPEN_METADATA/
> > v2 has the updated commit message, could it be merged now please? Thanks!
>
> Hi Luca, thanks for following up on this. I've pushed both patches now. Cheers!

Thank you!

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

end of thread, other threads:[~2024-05-30 10:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 21:27 [PATCH 1/2] elf: update NT_FDO_PACKAGING_METADATA spec URL luca.boccassi
2024-05-10 21:27 ` [PATCH 2/2] elf: add note identifier for dlopen metadata luca.boccassi
2024-05-14 15:48   ` Arjun Shankar
2024-05-15  0:12     ` Luca Boccassi
2024-05-23 10:22       ` Luca Boccassi
2024-05-30 10:40         ` Arjun Shankar
2024-05-30 10:43           ` Luca Boccassi
2024-05-14 15:38 ` [PATCH 1/2] elf: update NT_FDO_PACKAGING_METADATA spec URL Arjun Shankar
2024-05-15  0:10 ` [PATCH v2 " luca.boccassi
2024-05-15  0:10   ` [PATCH v2 2/2] elf: add note identifier for dlopen metadata luca.boccassi

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