bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/23704] New: Too many PT_LOAD segments with -z separate-code


From: jakub at redhat dot com
Subject: [Bug ld/23704] New: Too many PT_LOAD segments with -z separate-code
Date: Mon, 24 Sep 2018 13:29:41 +0000

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

            Bug ID: 23704
           Summary: Too many PT_LOAD segments with -z separate-code
           Product: binutils
           Version: 2.31
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: jakub at redhat dot com
  Target Milestone: ---

As I've already mentioned in
https://bugzilla.redhat.com/show_bug.cgi?id=1623218#c13
I think it is complete waste to generate 4 PT_LOAD segments for -z
separate-code,
IMNSHO 3 PT_LOADs should be enough, which should be achievable by moving for -z
separate-code in the linker script all sections that need read-only
non-executable before all read-only/executable sections.  That way we'd have
one PF_R PT_LOAD, then one PF_R|PF_X and one PF_R|PF_W, the last one as before
would start with relro sections if -z relro, rather than the current PF_R
PT_LOAD, followed by PF_R|PF_X, followed by another PF_R one and finally
PF_R|PF_W.

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