mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] elf.h: add ELFCOMPRESS_ZSTD
@ 2022-07-26  2:14 Fangrui Song
  2022-08-02 17:55 ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Fangrui Song @ 2022-07-26  2:14 UTC (permalink / raw)
  To: musl; +Cc: Fangrui Song

see

  https://groups.google.com/g/generic-abi/c/satyPkuMisk
  Add new ch_type value: ELFCOMPRESS_ZSTD
---
 include/elf.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/elf.h b/include/elf.h
index 86e2f0bb..d2231ba0 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -436,6 +436,7 @@ typedef struct {
 } Elf64_Chdr;
 
 #define ELFCOMPRESS_ZLIB	1
+#define ELFCOMPRESS_ZSTD	2
 #define ELFCOMPRESS_LOOS	0x60000000
 #define ELFCOMPRESS_HIOS	0x6fffffff
 #define ELFCOMPRESS_LOPROC	0x70000000
-- 
2.37.1


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

* Re: [musl] [PATCH] elf.h: add ELFCOMPRESS_ZSTD
  2022-07-26  2:14 [musl] [PATCH] elf.h: add ELFCOMPRESS_ZSTD Fangrui Song
@ 2022-08-02 17:55 ` Rich Felker
  2022-08-02 20:01   ` Fangrui Song
  0 siblings, 1 reply; 5+ messages in thread
From: Rich Felker @ 2022-08-02 17:55 UTC (permalink / raw)
  To: Fangrui Song; +Cc: musl

On Mon, Jul 25, 2022 at 07:14:33PM -0700, Fangrui Song wrote:
> see
> 
>   https://groups.google.com/g/generic-abi/c/satyPkuMisk
>   Add new ch_type value: ELFCOMPRESS_ZSTD
> ---
>  include/elf.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/elf.h b/include/elf.h
> index 86e2f0bb..d2231ba0 100644
> --- a/include/elf.h
> +++ b/include/elf.h
> @@ -436,6 +436,7 @@ typedef struct {
>  } Elf64_Chdr;
>  
>  #define ELFCOMPRESS_ZLIB	1
> +#define ELFCOMPRESS_ZSTD	2
>  #define ELFCOMPRESS_LOOS	0x60000000
>  #define ELFCOMPRESS_HIOS	0x6fffffff
>  #define ELFCOMPRESS_LOPROC	0x70000000
> -- 
> 2.37.1

Is this actually an adopted standard? It's not clear from the link
above whether there's anything authoritative going on or a proposal
that some people like.

Rich

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

* Re: [musl] [PATCH] elf.h: add ELFCOMPRESS_ZSTD
  2022-08-02 17:55 ` Rich Felker
@ 2022-08-02 20:01   ` Fangrui Song
  2022-08-02 23:09     ` Cary Coutant
  2022-08-03 10:00     ` Szabolcs Nagy
  0 siblings, 2 replies; 5+ messages in thread
From: Fangrui Song @ 2022-08-02 20:01 UTC (permalink / raw)
  To: musl; +Cc: Cary Coutant

On 2022-08-02, Rich Felker wrote:
>On Mon, Jul 25, 2022 at 07:14:33PM -0700, Fangrui Song wrote:
>> see
>>
>>   https://groups.google.com/g/generic-abi/c/satyPkuMisk
>>   Add new ch_type value: ELFCOMPRESS_ZSTD
>> ---
>>  include/elf.h | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/include/elf.h b/include/elf.h
>> index 86e2f0bb..d2231ba0 100644
>> --- a/include/elf.h
>> +++ b/include/elf.h
>> @@ -436,6 +436,7 @@ typedef struct {
>>  } Elf64_Chdr;
>>
>>  #define ELFCOMPRESS_ZLIB	1
>> +#define ELFCOMPRESS_ZSTD	2
>>  #define ELFCOMPRESS_LOOS	0x60000000
>>  #define ELFCOMPRESS_HIOS	0x6fffffff
>>  #define ELFCOMPRESS_LOPROC	0x70000000
>> --
>> 2.37.1
>
>Is this actually an adopted standard? It's not clear from the link
>above whether there's anything authoritative going on or a proposal
>that some people like.
>
>Rich

I think so, from Cary's https://groups.google.com/g/generic-abi/c/satyPkuMisk/m/KwTF_U8rBAAJ
"I will add this to the ELF spec, as proposed below:".

This question isn't alone. Carlos O'Donell asked on https://sourceware.org/pipermail/libc-alpha/2022-July/141130.html
"Is there a public repo that I can use to cross-check the glibc value with the accepted ELF gABI value?"


Let me summarize the history:

Roughly since 2015 https://groups.google.com/g/generic-abi/c/IakWYdGABjQ/m/7zTiAVveBAAJ
("Heads Up: John Wolfe no longer at Xinuos Inc"), the official generic ABI website
http://www.sco.com/developers/gabi/latest/contents.html no longer gets update. (I believe the last
change was https://groups.google.com/g/generic-abi/c/dBOS1H47Q64/m/jwc9xA9o0IsJ
"Proposed gABI addition: SHF_COMPRESS").

Since https://groups.google.com/g/generic-abi/c/9OO5vhxb00Y/m/Y0WthoOcCQAJ ("Ongoing Maintenance of the gABI"), 
Cary Coutant takes on the maintenance of the gABI spec.

At the moment there is no repository. If help is needed, I am happy to convert the
/developers/gabi/latest .html files to Markdown or reST.

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

* Re: [musl] [PATCH] elf.h: add ELFCOMPRESS_ZSTD
  2022-08-02 20:01   ` Fangrui Song
@ 2022-08-02 23:09     ` Cary Coutant
  2022-08-03 10:00     ` Szabolcs Nagy
  1 sibling, 0 replies; 5+ messages in thread
From: Cary Coutant @ 2022-08-02 23:09 UTC (permalink / raw)
  To: Fangrui Song; +Cc: musl

> >Is this actually an adopted standard? It's not clear from the link
> >above whether there's anything authoritative going on or a proposal
> >that some people like.
> >
> >Rich
>
> I think so, from Cary's https://groups.google.com/g/generic-abi/c/satyPkuMisk/m/KwTF_U8rBAAJ
> "I will add this to the ELF spec, as proposed below:".
>
> This question isn't alone. Carlos O'Donell asked on https://sourceware.org/pipermail/libc-alpha/2022-July/141130.html
> "Is there a public repo that I can use to cross-check the glibc value with the accepted ELF gABI value?"

Yes, this is officially approved. The gABI committee runs mostly on
consensus, but as a representative for Xinuos, I can offer the formal
stamp of approval.

I am under contract with Xinuos to maintain the ELF standard, and I
have converted it from raw HTML to ReStructuredText format, with the
goal of placing it into a github repository. That last part is not yet
done, but as soon as I can, I'll make an updated version of the spec
available. Until then, you'll need to reference the June 2013 version,
with various gABI discussions to serve as amendments. As another
quasi-authoritative source, the ELF include files in the binutils git
repository are kept up to date with the gABI changes, and I'm about to
commit a change there to reflect the new compression type.

-cary

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

* Re: [musl] [PATCH] elf.h: add ELFCOMPRESS_ZSTD
  2022-08-02 20:01   ` Fangrui Song
  2022-08-02 23:09     ` Cary Coutant
@ 2022-08-03 10:00     ` Szabolcs Nagy
  1 sibling, 0 replies; 5+ messages in thread
From: Szabolcs Nagy @ 2022-08-03 10:00 UTC (permalink / raw)
  To: Fangrui Song; +Cc: musl, Cary Coutant

* Fangrui Song <i@maskray.me> [2022-08-02 13:01:26 -0700]:
> On 2022-08-02, Rich Felker wrote:
> > 
> > Is this actually an adopted standard? It's not clear from the link
> > above whether there's anything authoritative going on or a proposal
> > that some people like.
> 
> I think so, from Cary's https://groups.google.com/g/generic-abi/c/satyPkuMisk/m/KwTF_U8rBAAJ
> "I will add this to the ELF spec, as proposed below:".

i think at this point the closest to a single point of truth for
the elf spec is cary's approval mails on the generic abi list.

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

end of thread, other threads:[~2022-08-03 10:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-26  2:14 [musl] [PATCH] elf.h: add ELFCOMPRESS_ZSTD Fangrui Song
2022-08-02 17:55 ` Rich Felker
2022-08-02 20:01   ` Fangrui Song
2022-08-02 23:09     ` Cary Coutant
2022-08-03 10:00     ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).