Skip to content

[Clang][Driver] riscv64-elf target does not recognise -pie link time argument #150147

@mintsuki

Description

@mintsuki

As per title, trying to link an executable using the clang driver, using a riscv64-elf target, results in the following warning:

clang: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]

The -pie flag (and other possibly necessary flags for PIE linkage) are not passed to the linker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:RISC-Vclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions