From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id DB352385840C; Fri, 8 Oct 2021 15:39:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DB352385840C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=deneb.enyo.de Received: from [172.17.203.2] (port=52529 helo=deneb.enyo.de) by albireo.enyo.de ([172.17.140.2]) with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1mYry8-0003FI-Ib; Fri, 08 Oct 2021 15:39:32 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.94.2) (envelope-from ) id 1mYry8-000U6A-97; Fri, 08 Oct 2021 17:39:32 +0200 From: Florian Weimer To: Fangrui Song via Libc-alpha Cc: Fangrui Song , binutils@sourceware.org Subject: Re: [PATCH] elf: Support DT_RELR relative relocation format [BZ #27924] References: <20211008065740.1485737-1-maskray@google.com> Date: Fri, 08 Oct 2021 17:39:32 +0200 In-Reply-To: <20211008065740.1485737-1-maskray@google.com> (Fangrui Song via Libc-alpha's message of "Thu, 7 Oct 2021 23:57:40 -0700") Message-ID: <87zgrjy18r.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2021 15:39:36 -0000 * Fangrui Song via Libc-alpha: > @@ -887,7 +893,10 @@ typedef struct > #define DT_PREINIT_ARRAY 32 /* Array with addresses of preinit fct*/ > #define DT_PREINIT_ARRAYSZ 33 /* size in bytes of DT_PREINIT_ARRAY */ > #define DT_SYMTAB_SHNDX 34 /* Address of SYMTAB_SHNDX section */ > -#define DT_NUM 35 /* Number used */ > +#define DT_RELRSZ 35 > +#define DT_RELR 36 > +#define DT_RELRENT 37 > +#define DT_NUM 38 /* Number used */ > #define DT_LOOS 0x6000000d /* Start of OS-specific */ > #define DT_HIOS 0x6ffff000 /* End of OS-specific */ > #define DT_LOPROC 0x70000000 /* Start of processor-specific */ (Figure 5-10: Dynamic Array Tags, d_tag) still ends at 34, and I'm worried about collisions with these numbers. Do you know what the official allocation status for the new constants is?