[llvm-dev] -fpic ELF default: reclaim some -fno-semantic-interposition optimization opportunities?
Joerg Sonnenberger via llvm-dev
llvm-dev at lists.llvm.org
Sat Jun 5 16:54:34 PDT 2021
On Fri, Jun 04, 2021 at 03:26:53PM -0700, Fāng-ruì Sòng via llvm-dev wrote:
> Fixing the last point is actually easy: let -fno-pic use GOT when
> taking the address of an non-definition function.
I'd far prefer to have an attribute to explicitly say that the address
of a given symbol should always be computed indirectly (e.g. via GOT).
That gives the explicit control necessary for libraries without
penalizing the larger executables like clang.
Joerg
More information about the llvm-dev
mailing list