Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762625AbZFORqH (ORCPT ); Mon, 15 Jun 2009 13:46:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758302AbZFORp4 (ORCPT ); Mon, 15 Jun 2009 13:45:56 -0400 Received: from cantor.suse.de ([195.135.220.2]:46215 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755609AbZFORp4 (ORCPT ); Mon, 15 Jun 2009 13:45:56 -0400 Subject: Re: [PATCH v2 0/8] clean up vdso-layout.lds.S From: Petr Tesarik To: "H. Peter Anvin" Cc: Sam Ravnborg , LKML , Thomas Gleixner , Ingo Molnar , Andi Kleen , Roland McGrath In-Reply-To: <4A367C09.80008@zytor.com> References: <1244814040-5810-1-git-send-email-ptesarik@suse.cz> <20090612180626.GB18203@uranus.ravnborg.org> <1245079002.17481.118.camel@nathan.suse.cz> <1245079649.17481.121.camel@nathan.suse.cz> <4A367C09.80008@zytor.com> Content-Type: text/plain; charset="UTF-8" Organization: SUSE LINUX Date: Mon, 15 Jun 2009 19:45:57 +0200 Message-Id: <1245087957.17481.124.camel@nathan.suse.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1.1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1131 Lines: 41 H. Peter Anvin píše v Po 15. 06. 2009 v 09:51 -0700: > Petr Tesarik wrote: > > Petr Tesarik píše v Po 15. 06. 2009 v 17:16 +0200: > >> [...] > >> An example can probably explain it better: > >> > >> $ cat >shared.c < >> int shared_object[100]; > >> EOF > >> $ cat >exe.c < >> #include > >> extern int shared_object[100]; > >> int main(void) { > >> printf("%p\n", &shared_object); > >> return 0; > >> } > >> EOF > > > > BTW this example demonstrates that there is one section which should be > > included in .data but is not: > > > > *(COMMON) > > > > I'll send a patch later. > > > > *(COMMON) is BSS, not data... Very true, but for the vDSO we decided to put both writeable and read-only data into one section (called .data for that matter), probably to reduce the number of sections and hence also the size of the resulting binary. Petr Tesarik -- 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/