public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [committed] Align data segments to maxpagesize on hppa-linux
@ 2011-02-18 18:29 John David Anglin
  0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2011-02-18 18:29 UTC (permalink / raw)
  To: binutils

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  <dave.anglin@nrc-cnnrc.gc.ca>

	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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-18 18:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-18 18:29 [committed] Align data segments to maxpagesize on hppa-linux John David Anglin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).