[llvm-bugs] [Bug 41527] ld.lld overaligns TLS segment

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 17 20:31:06 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41527

Fangrui Song <i at maskray.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tstellar at redhat.com
         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED

--- Comment #10 from Fangrui Song <i at maskray.me> ---
Fixed by r361090 [ARM][AArch64] Revert Android Bionic PT_TLS overaligning hack

Tom, this should be merged to 8.0.1 as it affects generic dynamic (a very
common case) as well (long analysis in D62055)

There may be a merge conflict with r361029 (two statements are grouped by the
same `if`). If that is the case, you may edit the block like the following:

if (P->p_type == PT_TLS && P->p_memsz) {
  // The TLS pointer goes after PT_TLS for variant 2 targets. At least glibc
  // will align it, so round up the size to make sure the offsets are
  // correct.
  P->p_memsz = alignTo(P->p_memsz, P->p_align);
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190518/428d34f6/attachment.html>


More information about the llvm-bugs mailing list