[clang] [RISCV] Enable GP relaxation for Linux (PR #201265)

Kito Cheng via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 00:40:14 PDT 2026


kito-cheng wrote:

> > The GP relaxation in lld only works for medlow without PIC. Linux defaults to PIE usually doesn't it?
> 
> Get it. Does the gcc in OS distros also default to PIE?

That depend on distro, but most distro are default to PIE.

Single command to check: `gcc -v 2>&1|grep default-pie -i`

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


More information about the cfe-commits mailing list