From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agf47-0006fK-0r for qemu-devel@nongnu.org; Thu, 17 Mar 2016 17:02:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agf42-0002at-3L for qemu-devel@nongnu.org; Thu, 17 Mar 2016 17:02:42 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:37338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agf41-0002af-Sn for qemu-devel@nongnu.org; Thu, 17 Mar 2016 17:02:38 -0400 Received: by mail-wm0-x234.google.com with SMTP id p65so11288833wmp.0 for ; Thu, 17 Mar 2016 14:02:37 -0700 (PDT) Sender: Paolo Bonzini References: <87wpp4m6n1.fsf@blackfin.pond.sub.org> <20160315133916.GM27203@stefanha-x1.localdomain> <20160315135647.GB11728@work-vm> <20160316182343.GE2012@stefanha-x1.localdomain> <20160316182748.GG2246@work-vm> <20160317112508.GG14062@stefanha-x1.localdomain> <20160317162900.GK5966@work-vm> <56EB03D0.6010209@redhat.com> <56EB1021.5040100@twiddle.net> <56EB13C4.6050501@twiddle.net> From: Paolo Bonzini Message-ID: <56EB1B69.8040202@redhat.com> Date: Thu, 17 Mar 2016 22:02:33 +0100 MIME-Version: 1.0 In-Reply-To: <56EB13C4.6050501@twiddle.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Our use of #include is undisciplined, and what to do about it List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , Peter Maydell Cc: =?UTF-8?Q?Llu=c3=ads_Vilanova?= , Stefan Hajnoczi , QEMU Developers , "Dr. David Alan Gilbert" , Markus Armbruster On 17/03/2016 21:29, Richard Henderson wrote: >> > ...Windows is something other than both of those, right? >> > Or does it use ELF these days? > PECOFF. But it still supports named sections, so not a deal-breaker. > We just don't support old a.out systems (e.g. really old OpenBSD). FWIW Windows also supports sorted sections. You could put the "first" symbol in data.trace_events$AAA, the last symbol in data.trace_events$ZZZ and the intermediate symbols in data.trace_events$FOO; the linker would merge them into a single data.trace_events section and you wouldn't have to ensure the correct order of the object files on the command line. It's actually a pretty cool feature. It makes such linker tricks much easier to do. But it's not portable. Paolo