From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8426 invoked by alias); 18 Feb 2011 18:29:02 -0000 Received: (qmail 8418 invoked by uid 22791); 18 Feb 2011 18:29:02 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.10.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 Feb 2011 18:28:57 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id 6ED974DF4; Fri, 18 Feb 2011 13:28:55 -0500 (EST) Date: Fri, 18 Feb 2011 18:29:00 -0000 From: John David Anglin To: binutils@sourceware.org Subject: [committed] Align data segments to maxpagesize on hppa-linux Message-ID: <20110218182854.GA15444@hiauly1.hia.nrc.ca> Reply-To: John David Anglin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00243.txt.bz2 The PA-RISC architecture utilizes VIPT caches. Some implementations do not support nonequivalent aliases even for readonly mappings. The following change aligns the data segment to a maxpagesize boundary. This forces the file offset for the data segment to be maxpagsize aligned. This avoids nonequivalent mappings for the boundary between the text and data segments. Committed to head. Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602) 2011-02-18 John David Anglin PR ld/12376 emulparams/hppalinux.sh (DATA_ADDR): Define. (SHLIB_DATA_ADDR): Likewise. Index: emulparams/hppalinux.sh =================================================================== RCS file: /cvs/src/src/ld/emulparams/hppalinux.sh,v retrieving revision 1.14 diff -u -3 -p -r1.14 hppalinux.sh --- emulparams/hppalinux.sh 22 Oct 2008 05:20:44 -0000 1.14 +++ emulparams/hppalinux.sh 15 Feb 2011 14:30:24 -0000 @@ -8,6 +8,8 @@ NO_REL_RELOCS=yes TEXT_START_ADDR=0x10000 TARGET_PAGE_SIZE=0x10000 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" +DATA_ADDR="ALIGN(${MAXPAGESIZE})" +SHLIB_DATA_ADDR="ALIGN(${MAXPAGESIZE})" ARCH=hppa MACHINE=hppa1.1 # We use 1.1 specific features. NOP=0x08000240