From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2418 invoked by alias); 16 Nov 2017 08:24:30 -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 2214 invoked by uid 89); 16 Nov 2017 08:24:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=Hx-languages-length:558, HTo:D*io X-Spam-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: albireo.enyo.de Received: from albireo.enyo.de (HELO albireo.enyo.de) (5.158.152.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 16 Nov 2017 08:24:03 +0000 Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1eFFSq-00027W-DL; Thu, 16 Nov 2017 08:24:00 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.89) (envelope-from ) id 1eFFSq-0002Ai-77; Thu, 16 Nov 2017 09:24:00 +0100 From: Florian Weimer To: Ulf Hermann Cc: Subject: Re: [PATCH] Add replacement endian.h and byteswap.h to libgnu References: <13571bb4-a75a-070f-3d19-2da85637db23@qt.io> Date: Thu, 16 Nov 2017 08:24:00 -0000 In-Reply-To: <13571bb4-a75a-070f-3d19-2da85637db23@qt.io> (Ulf Hermann's message of "Wed, 3 May 2017 18:52:07 +0200") Message-ID: <87k1yq1vj3.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2017-q4/txt/msg00044.txt.bz2 * Ulf Hermann: > Some systems don't provide endian.h and byteswap.h. The required > functions are trivial to define using sys/param.h and gcc builtins, > though. > > Also, include endian.h in dwelf_scn_gnu_compressed_size.c as that uses > be64toh(). This is still an issue with non-glibc, non-BSD compilation. The patch is not ideal, as it depends on a GCC extension, but it's an improvement for those who use GCC on a platform which does not provide these functions as part of the C library.