HomePhabricator

[ELF][X86] Allow PT_LOAD to have overlapping p_offset ranges on EM_386

Description

[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:

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

Details

Committed
MaskRayAug 20 2019, 1:43 AM
Reviewer
ruiu
Differential Revision
D65865: [ELF][X86] Allow PT_LOAD to have overlapping p_offset ranges on EM_386
Parents
rL369346: [llvm-objcopy][MachO] Fix method names. NFC.
Branches
Unknown
Tags
Unknown