[ELF][X86] Allow PT_LOAD to have overlapping p_offset ranges on EM_X86_64
authorFangrui Song <maskray@google.com>
Mon, 16 Sep 2019 07:05:34 +0000 (07:05 +0000)
committerFangrui Song <maskray@google.com>
Mon, 16 Sep 2019 07:05:34 +0000 (07:05 +0000)
commitd4306e90cb18f663342068a4ad83ba42545dbf01
treedfa14652bdd566e7a6e73c4b5d2507a945f981c9
parent06bb7dfbd445fe928b0ae0263ba9df1acd861c41
[ELF][X86] Allow PT_LOAD to have overlapping p_offset ranges on EM_X86_64

Port the D64906 technique to EM_X86_64.

Differential Revision: https://reviews.llvm.org/D67482

llvm-svn: 371958
119 files changed:
lld/ELF/Writer.cpp
lld/test/ELF/Inputs/copy-rel-abs.s
lld/test/ELF/Inputs/copy-rel-tls.s
lld/test/ELF/abs-hidden.s
lld/test/ELF/apply-dynamic-relocs.s
lld/test/ELF/avoid-empty-program-headers.s
lld/test/ELF/basic.s
lld/test/ELF/build-id.s
lld/test/ELF/cgprofile-bad-clusters.s
lld/test/ELF/cgprofile-icf.s
lld/test/ELF/cgprofile-obj.s
lld/test/ELF/cgprofile-reproduce.s
lld/test/ELF/cgprofile-txt.s
lld/test/ELF/cgprofile-txt2.s
lld/test/ELF/combreloc.s
lld/test/ELF/comdat.s
lld/test/ELF/common-page.s
lld/test/ELF/common.s
lld/test/ELF/copy-rel-large.s
lld/test/ELF/copy-rel-tls.s
lld/test/ELF/defsym-reserved-syms.s
lld/test/ELF/edata-etext.s
lld/test/ELF/edata-no-bss.s
lld/test/ELF/eh-align-cie.s
lld/test/ELF/eh-frame-hdr-abs-fde.s
lld/test/ELF/eh-frame-hdr-augmentation.s
lld/test/ELF/eh-frame-hdr-icf-fde.s
lld/test/ELF/eh-frame-hdr.s
lld/test/ELF/eh-frame-merge.s
lld/test/ELF/eh-frame-pcrel-overflow.s
lld/test/ELF/eh-frame-value-format7.s
lld/test/ELF/eh-frame-value-format8.s
lld/test/ELF/ehframe-relocation.s
lld/test/ELF/emit-relocs-icf1.s
lld/test/ELF/emit-relocs-mergeable.s
lld/test/ELF/emit-relocs.s
lld/test/ELF/end-dso-defined.s
lld/test/ELF/end-update.s
lld/test/ELF/end.s
lld/test/ELF/entry.s
lld/test/ELF/fill-trap.s
lld/test/ELF/gdb-index-base-addr.s
lld/test/ELF/gdb-index-dwarf5-low-high.s
lld/test/ELF/gdb-index-gc-sections.s
lld/test/ELF/gdb-index-ranges-discarded.s
lld/test/ELF/gdb-index-ranges.s
lld/test/ELF/gdb-index-rng-lists.s
lld/test/ELF/gdb-index.s
lld/test/ELF/global_offset_table_shared.s
lld/test/ELF/gnu-ifunc-canon.s
lld/test/ELF/gnu-ifunc-dyntags.s
lld/test/ELF/gnu-ifunc-noplt.s
lld/test/ELF/gnu-ifunc-plt.s
lld/test/ELF/gnu-ifunc-shared.s
lld/test/ELF/gnu-ifunc.s
lld/test/ELF/got.s
lld/test/ELF/image-base.s
lld/test/ELF/just-symbols.s
lld/test/ELF/linkerscript/absolute.s
lld/test/ELF/linkerscript/page-size.s
lld/test/ELF/linkerscript/symbol-reserved.s
lld/test/ELF/linkerscript/synthetic-symbols3.test
lld/test/ELF/local-got-pie.s
lld/test/ELF/local-got-shared.s
lld/test/ELF/local-got.s
lld/test/ELF/map-file.s
lld/test/ELF/no-inhibit-exec.s
lld/test/ELF/partition-notes.s
lld/test/ELF/partition-pack-dyn-relocs.s
lld/test/ELF/partition-synthetic-sections.s
lld/test/ELF/pre_init_fini_array_missing.s
lld/test/ELF/rel-offset.s
lld/test/ELF/relative-dynamic-reloc-pie.s
lld/test/ELF/relocatable.s
lld/test/ELF/relocation-common.s
lld/test/ELF/relocation-copy-align-common.s
lld/test/ELF/relocation-copy-flags.s
lld/test/ELF/relocation-copy-relro.s
lld/test/ELF/relocation-copy.s
lld/test/ELF/relocation-non-alloc.s
lld/test/ELF/relocation-undefined-weak.s
lld/test/ELF/relocation.s
lld/test/ELF/relro-bss.s
lld/test/ELF/relro-tls.s
lld/test/ELF/segments.s
lld/test/ELF/startstop-shared2.s
lld/test/ELF/startstop.s
lld/test/ELF/symbol-ordering-file-cgprofile-conflicts.s
lld/test/ELF/symbol-ordering-file-icf.s
lld/test/ELF/symbols.s
lld/test/ELF/tls-offset.s
lld/test/ELF/tls.s
lld/test/ELF/ttext-tdata-tbss.s
lld/test/ELF/undef-with-plt-addr.s
lld/test/ELF/verdef-defaultver.s
lld/test/ELF/x86-64-got-plt-header.s
lld/test/ELF/x86-64-gotpc-relax-nopic.s
lld/test/ELF/x86-64-gotpc-relax-und-dso.s
lld/test/ELF/x86-64-gotpc-relax.s
lld/test/ELF/x86-64-plt-high-addr.s
lld/test/ELF/x86-64-plt.s
lld/test/ELF/x86-64-relax-got-abs.s
lld/test/ELF/x86-64-reloc-error2.s
lld/test/ELF/x86-64-reloc-gotoff64.s
lld/test/ELF/x86-64-reloc-gotpc64.s
lld/test/ELF/x86-64-reloc-range.s
lld/test/ELF/x86-64-reloc-size.s
lld/test/ELF/x86-64-retpoline-znow-static-iplt.s
lld/test/ELF/x86-64-retpoline-znow.s
lld/test/ELF/x86-64-retpoline.s
lld/test/ELF/x86-64-tls-dynamic.s
lld/test/ELF/x86-64-tls-gd-local.s
lld/test/ELF/x86-64-tls-gdie.s
lld/test/ELF/x86-64-tls-ie-local.s
lld/test/ELF/x86-64-tls-ie.s
lld/test/ELF/x86-64-tls-opt-noplt.s
lld/test/ELF/x86-64-tlsdesc-gd.s
lld/test/ELF/x86-64-tlsdesc-ld.s
lld/test/ELF/ztext.s