]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Account for .tbss alignment when adjusting start of relro
authorAlan Modra <amodra@gmail.com>
Thu, 19 Nov 2015 04:30:13 +0000 (15:00 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 10 Dec 2015 13:47:41 +0000 (00:17 +1030)
commitccded9db34d062ebea2abd43e021ad1a985b1991
tree01c0bbce0fd07ea241828a59aef96a294b0bc8e7
parent4f3b24796c19965c348064c285d9d031afb3520d
Account for .tbss alignment when adjusting start of relro

Another option might be to not bump "dot" for .tbss alignment in the
main section sizing loop, but that could leak some of the following
section into the TLS segment.  Leakage shouldn't matter since it will
be to bytes past the end of .tdata, but for now this is a safer
option.

PR ld/19264
* ldlang.c (lang_size_sections): Don't ignore .tbss when
adjusting start of relro region.
ld/ChangeLog
ld/ldlang.c