[clang] [Hexagon] Non-pie default on hexagon-unknown-elf (PR #193184)
Brian Cain via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 21 08:04:39 PDT 2026
================
@@ -117,6 +117,10 @@ class LLVM_LIBRARY_VISIBILITY HexagonToolChain : public Linux {
std::string getCompilerRTPath() const override;
+ bool isPIEDefault(const llvm::opt::ArgList &Args) const override {
+ return getTriple().isOSLinux() && Linux::isPIEDefault(Args);
----------------
androm3da wrote:
This looks effective but I'm not sure whether it's right. Is QuRT exceptional in its anti-PIE-ness or is Linux exceptional in its PIE-ness? What would we do for H2 OS? Zephyr?
Should it be
```c++
return !getTriple().isOSQurt();
```
instead?
https://github.com/llvm/llvm-project/pull/193184
More information about the cfe-commits
mailing list