From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30622 invoked by alias); 28 Feb 2019 21:44:28 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 30595 invoked by uid 89); 28 Feb 2019 21:44:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.100.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:646 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: gnu.wildebeest.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (212.238.236.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Feb 2019 21:44:26 +0000 Received: from librem.wildebeest.org (deer0x15.wildebeest.org [172.31.17.151]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 8B0623000AE9 for ; Thu, 28 Feb 2019 22:44:24 +0100 (CET) Received: by librem.wildebeest.org (Postfix, from userid 1000) id 4369913F838; Thu, 28 Feb 2019 22:44:24 +0100 (CET) Date: Thu, 28 Feb 2019 21:44:00 -0000 From: Mark Wielaard To: elfutils-devel@sourceware.org Subject: Re: [PATCH] libelf: There is just one ELF version. Message-ID: <20190228214424.GB14464@wildebeest.org> References: <20190224170717.16811-1-mark@klomp.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190224170717.16811-1-mark@klomp.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Flag: NO X-IsSubscribed: yes X-SW-Source: 2019-q1/txt/msg00173.txt.bz2 On Sun, Feb 24, 2019 at 06:07:17PM +0100, Mark Wielaard wrote: > Remove (partially defined out) code and data structures dealing with > multiple ELF versions. There hasn't been a new ELF version in the > last 20 years. Simplify the code a bit by just assuming there will > only be one version (EV_CURRENT == 1). > > Simplifies elf_version, gets rid of __libelf_version_initialized. > Removes one (or more) array (version) dimension from various tables > and accessor functions (__elf_xfctstom, shtype_map, __libelf_data_type, > __libelf_type_aligns and __libelf_type_sizes). Pushed to master.