bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21000] hppa-linux does not support -z relro


From: dave.anglin at bell dot net
Subject: [Bug ld/21000] hppa-linux does not support -z relro
Date: Fri, 30 Dec 2016 00:22:28 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21000

--- Comment #4 from dave.anglin at bell dot net ---
On 2016-12-29, at 6:00 PM, amodra at gmail dot com wrote:

> As far as a fix for this goes, if you're sure that pr12376 isn't really just a
> kernel issue (see https://sourceware.org/bugzilla/show_bug.cgi?id=12376#c8)
> then hppa can still support relro by page aligning data then following that
> with DATA_SEGMENT_ALIGN (${MAXPAGESIZE}, ${COMMONPAGESIZE}).  This will waste
> up to 2*MAXPAGESIZE-2 bytes of memory before the start of the relro area, the
> first page for the hardware/kernel issue, the second to align the end of the
> relro area to a page.

The fine print on the aliasing restrictions is described in the PA-RISC 2.0
Architecture manual
starting on page F-5.  In practice, this is only a limitation on machines with
PA8800 and PA8900
processors.  There is code in pacache.S where we use equivalently mapped pages
in the kernel
for certain operations.

I'll give your fix a whirl.

Dave
--
John David Anglin       address@hidden

-- 
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]