bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21448] References to constant data in shared libraries bloats 2.


From: amodra at gmail dot com
Subject: [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27
Date: Wed, 03 May 2017 13:52:44 +0000

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

--- Comment #4 from Alan Modra <amodra at gmail dot com> ---
Shared library code is affected, losing an optimization for protected
visibility variables, but the reason you see a .dynbss/.data.rel.ro copy of
shared lib variables and copy relocs is code in the *executable*.

Yes, we could use an extra PT_LOAD in the middle of the relro area but not
quite as you say.  The linker generated .data.rel.ro would be put into memsz of
the first PT_LOAD, with the remainder of relro and other sections in the
second.  There would be some disk wasted due to needing to keep vma mod maxpage
equal to offset mod maxpage.  I haven't looked at whether this would require
changes to glibc ld.so.

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