bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12376] File offsets for PT_LOAD segments and resulting inequival


From: ian at airs dot com
Subject: [Bug ld/12376] File offsets for PT_LOAD segments and resulting inequivalent memory aliases
Date: Mon, 14 Feb 2011 16:35:41 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12376

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com

--- Comment #8 from Ian Lance Taylor <ian at airs dot com> 2011-02-14 16:35:25 
UTC ---
It sounds like you are saying that the PA does not operate as most other
processors do.  It seems very odd to me that the PA Linux kernel can not map
the same file page to two different locations in virtual memory.  That is what
the Linux kernel does on other processors.  You are talking about two mappings
to the same physical page, but that is not what the ELF executable is
requesting.  It is requesting two different virtual pages mapping to the same
page in the file.

If that is indeed a limitation of PA Linux, then the only fix is to change the
default linker script so that the first page of the data segment does not
overlap with the last page of the text segment.  The way to do that is to set
DATA_ADDR in the appropriate ld/emulparams file.  For example,

DATA_ADDR="ALIGN(${MAXPAGESIZE})"

That should always force the data segment to start on a new page.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]