HomePhabricator

[AsmPrinter] Don't generate .Lfoo$local for -fno-PIC and -fPIE

Authored by MaskRay on May 25 2020, 11:00 PM.

Description

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

Details

Committed
MaskRayMay 25 2020, 11:35 PM
Parents
rG61f72dd8ace7: [FPEnv] Small fixes to implementation of flt.rounds
Branches
Unknown
Tags
Unknown