[all-commits] [llvm/llvm-project] 872c5f: [AsmPrinter] Don't generate .Lfoo$local for -fno-P...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon May 25 23:36:09 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 872c5fb1432493c0a09b6f210765c0d94ce9b5d0
https://github.com/llvm/llvm-project/commit/872c5fb1432493c0a09b6f210765c0d94ce9b5d0
Author: Fangrui Song <maskray at google.com>
Date: 2020-05-25 (Mon, 25 May 2020)
Changed paths:
M llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
M llvm/test/CodeGen/AArch64/fp16_intrinsic_lane.ll
M llvm/test/CodeGen/AArch64/machine-outliner-retaddr-sign-sp-mod.ll
M llvm/test/CodeGen/X86/code-model-elf.ll
M llvm/test/CodeGen/X86/emutls.ll
M llvm/test/CodeGen/X86/indirect-branch-tracking-eh2.ll
M llvm/test/CodeGen/X86/lifetime-alias.ll
M llvm/test/CodeGen/X86/linux-preemption.ll
M llvm/test/CodeGen/X86/oddsubvector.ll
M llvm/test/CodeGen/X86/pr38795.ll
M llvm/test/CodeGen/X86/semantic-interposition-comdat.ll
M llvm/test/CodeGen/X86/tls.ll
Log Message:
-----------
[AsmPrinter] Don't generate .Lfoo$local for -fno-PIC and -fPIE
-fno-PIC and -fPIE code generally cannot be linked in -shared mode and there is no benefit accessing via local aliases.
Actually, a .Lfoo$local reference will be converted to a STT_SECTION (if no section relaxation) reference which will cause the section symbol (sizeof(Elf64_Sym)=24) to be generated.
More information about the All-commits
mailing list