def METHOD_NAME(self):
    if self.crosscompile_target.is_riscv64(include_purecap=True):
        # We have to resolve undef weak symbols to 0, but ld.lld doesn't do the rewriting of instructions and
        # codegen isn't referencing the GOT, so until https://reviews.llvm.org/D107280 lands, we have to use -fpie
        # See also https://github.com/ClangBuiltLinux/linux/issues/1409 and
        # https://github.com/riscv-non-isa/riscv-elf-psabi-doc/pull/201
        return [*super().METHOD_NAME, "-fpie"]
    return super().METHOD_NAME