From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by sourceware.org (Postfix) with ESMTPS id CB6F43858D33 for ; Tue, 2 Aug 2022 22:43:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CB6F43858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=maskray.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f181.google.com with SMTP id d20so7448809pfq.5 for ; Tue, 02 Aug 2022 15:43:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Hybqoiai5rTylcq+ui6SN3QBQic8U8tqw+gZCfF8mMY=; b=Cr17dboyqi4gNsHakjpMe1wPZEgr8ZI8kwrNw8l9uuWtjLSM/1atzx8ErFlOzREeqE 6noC9jgHrJSlTz/ndBIEgJ3WBBhY5dzW1OBo36CLEhMr/+1egtAs90ZKRqJ2RTaw1e0E W2wZB/tN9oZJOYSvjqjKPjcvvL6V5MBL6+pXej4dEkk5eUxeQA5adfECLPBkZjIDRa2c thNI5CPKUFAvCDs/MXf2GmHSO7m3k1fvyVUT0nR6YcUjtYhRdXnHb73yEY/vjMwihQJT Dw9h7Nc/vUDyuImBd4DapHzYTsmxFc2cLqhehKj6jUO4fV6hnC2rEFPnkBVyzqZLUHsf Jmhg== X-Gm-Message-State: ACgBeo0GY7mXLypUqT8Vj7ACRaTijuRrDc6Mp528NDEJa9J4cV8GsVTR Nvz6dYruzzxxqMXJ+Ijh5vUBoRSKSCA= X-Google-Smtp-Source: AA6agR6CJFKmUSRLwaGwp5oYtszWo9F1oX/KUlh9t44hyYTAaALtarHFh1Qd5FjOxbU0Y3oiLPyE6Q== X-Received: by 2002:a65:4388:0:b0:41b:c071:d21f with SMTP id m8-20020a654388000000b0041bc071d21fmr14162794pgp.335.1659480186802; Tue, 02 Aug 2022 15:43:06 -0700 (PDT) Received: from localhost ([2620:15c:2d1:206:3845:cba6:90c5:bccd]) by smtp.gmail.com with ESMTPSA id bd17-20020a17090b0b9100b001f3095af6a9sm39201pjb.38.2022.08.02.15.43.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 15:43:06 -0700 (PDT) Date: Tue, 2 Aug 2022 15:43:05 -0700 From: Fangrui Song To: Cary Coutant Cc: Binutils Subject: Re: [ELF commit] Add new zstd compression algorithm Message-ID: <20220802224305.xoivjndxydsrjzbq@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2022 22:43:10 -0000 On 2022-08-02, Cary Coutant via Binutils wrote: >In the gABI group, we have approved the addition of a new compression >type, using the zstd library (zstandard.org). I'm about to commit this >patch to add the new value to . > >https://groups.google.com/g/generic-abi/c/satyPkuMisk/m/dP2pPh9mAwAJ > >-cary > > >include/elf/ > * common.h: Add ELFCOMPRESS_ZSTD. > > >diff --git a/include/elf/common.h b/include/elf/common.h >index e4bc53e35b4..ebcd8f9e82c 100644 >--- a/include/elf/common.h >+++ b/include/elf/common.h >@@ -588,6 +588,8 @@ > > /* Compression types. */ > #define ELFCOMPRESS_ZLIB 1 /* Compressed with zlib. */ >+#define ELFCOMPRESS_ZSTD 2 /* Compressed with zstd */ >+ /* (see http://www.zstandard.org). */ > #define ELFCOMPRESS_LOOS 0x60000000 /* OS-specific semantics, lo */ > #define ELFCOMPRESS_HIOS 0x6FFFFFFF /* OS-specific semantics, hi */ > #define ELFCOMPRESS_LOPROC 0x70000000 /* Processor-specific semantics, lo */ Thanks:) Interested folks may help https://sourceware.org/bugzilla/show_bug.cgi?id=29397 ("binutils: support zstd for SHF_COMPRESSED debug sections") The build system change is probably the most difficult one ;-)