[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.
- [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27, hjl.tools at gmail dot com, 2017/05/01
- [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27, amodra at gmail dot com, 2017/05/02
- [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27, michael at talosis dot ca, 2017/05/02
- [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27,
amodra at gmail dot com <=
- [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27, michael at talosis dot ca, 2017/05/03
- [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27, amodra at gmail dot com, 2017/05/04
- [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27, michael at talosis dot ca, 2017/05/04
- [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27, amodra at gmail dot com, 2017/05/04
- [Bug ld/21448] References to constant data in shared libraries bloats 2.28 executables compared to 2.27, michael at talosis dot ca, 2017/05/04