[llvm] [RelLookupTableConverter] Drop unnamed_addr to avoid generating GOTPCREL relocations (PR #142304)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 12:23:48 PDT 2025


dianqk wrote:

> Rather than removing `unnamed_addr`, would it have been better to set `SupportIndirectSymViaGOTPCRel` in appropriately subclassed `TargetLoweringObjectFile` constructors?

Does this sound like it will prevent the generation of all GOTPCRELs? This PR is to prevent "accidental" (we doesn't explicitly submit it) GOTPCREL generation.


https://github.com/llvm/llvm-project/pull/142304


More information about the llvm-commits mailing list