commit | 9c371309f38cfe1fe1bf52af2e70dd448044e7e2 | [log] [tgz] |
---|---|---|
author | Fangrui Song <[email protected]> | Tue Aug 20 08:43:47 2019 |
committer | Fangrui Song <[email protected]> | Tue Aug 20 08:43:47 2019 |
tree | 5ee90bc94f17ded6459cd94d6352916cbeb4e69f | |
parent | 36848ff8dfb308a284aab9fd2da0c0c240d561d1 [diff] |
[ELF][X86] Allow PT_LOAD to have overlapping p_offset ranges on EM_386 Ported the D64906 technique to EM_386. If `sh_addralign(.tdata) < sh_addralign(.tbss)`, we can potentially make `p_vaddr(PT_TLS)%p_align(PT_TLS) != 0`. ld.so that are known to have problems if p_vaddr%p_align!=0: * FreeBSD 13.0-CURRENT rtld-elf * glibc https://sourceware.org/bugzilla/show_bug.cgi?id=24606 New test i386-tls-vaddr-align.s checks our workaround makes p_vaddr%p_align = 0. Reviewed By: ruiu Differential Revision: https://reviews.llvm.org/D65865 llvm-svn: 369347