Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932065Ab3GCM5Q (ORCPT ); Wed, 3 Jul 2013 08:57:16 -0400 Received: from cantor2.suse.de ([195.135.220.15]:60996 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752228Ab3GCM5O (ORCPT ); Wed, 3 Jul 2013 08:57:14 -0400 Message-ID: <51D41FA7.80209@suse.cz> Date: Wed, 03 Jul 2013 14:57:11 +0200 From: Michal Marek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Daniel Tang Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, trivial@kernel.org, David Daney Subject: Re: [PATCH 1/2] Fix a build warning in scripts/sortextable.h References: <1370745235-12951-1-git-send-email-dt.tangr@gmail.com> <51D413D9.8040604@suse.cz> <51D41413.9060500@suse.cz> <015BB7AD-78C4-4F1A-B65A-B37FBB6E2B9C@gmail.com> <51D418DB.5060102@suse.cz> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 945 Lines: 27 On 3.7.2013 14:37, Daniel Tang wrote: > Hi, > > On 03/07/2013, at 10:28 PM, Michal Marek wrote: >> >> >> What is the type of Elf64_Shdr::sh_offset in OS X's ? In >> glibc, this is Elf64_Off, which is a typedef name for uint64_t. > > Huh, that's weird. Elf64_Off is defined as unsigned long in my elf.h > which isn't 64 bit on x86_64 pretty sure. unsigned long _is_ 64bit on x86_64 Linux (or any 64bit Linux), but it might not be the case on OS X. But then, the on that platform should use something that is actually 64bit for Elf64_Off. > It's a problem on my side then, apologies. If Elf64_Off is really defined as an 32bit integer on OS X, then yes. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/