[all-commits] [llvm/llvm-project] dce7a3: [ELF] Improve the condition to create .interp

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Dec 27 15:35:31 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dce7a362bed866ceefc3c65924250233695d6fd4
      https://github.com/llvm/llvm-project/commit/dce7a362bed866ceefc3c65924250233695d6fd4
  Author: Fangrui Song <maskray at google.com>
  Date:   2019-12-27 (Fri, 27 Dec 2019)

  Changed paths:
    M lld/ELF/Writer.cpp
    M lld/test/ELF/dynamic-linker.s
    M lld/test/ELF/ppc64-func-entry-points.s

  Log Message:
  -----------
  [ELF] Improve the condition to create .interp

This restores commit 1417558e4a61794347c6bfbafaff7cd96985b2c3 and its follow-up, reverted by commit c3dbd782f1e0578c7ebc342f2e92f54d9644cff7.

After this commit:

clang -fuse-ld=bfd -no-pie -nostdlib a.c => .interp not created
clang -fuse-ld=bfd -pie -fPIE -nostdlib a.c => .interp created

clang -fuse-ld=gold -no-pie -nostdlib a.c => .interp not created
clang -fuse-ld=gold -pie -fPIE -nostdlib a.c => .interp created

clang -fuse-ld=lld -no-pie -nostdlib a.c => .interp created
clang -fuse-ld=lld -pie -fPIE -nostdlib a.c => .interp created




More information about the All-commits mailing list