[clang] [Hexagon] Pass -m emulation flag to linker from clang driver (PR #185745)

Brian Cain via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 22 18:02:53 PDT 2026


androm3da wrote:

> See also [riscv-non-isa/riscv-elf-psabi-doc#484](https://github.com/riscv-non-isa/riscv-elf-psabi-doc/issues/484) (proposed by Quic people) for the objection of introducing new BFD emulation for RISC-V.
> 
> You can make driver specify customization (e.g. --image-base, -Ttext, -z common-page-size and -z max-page-size) through linker options.

That seems like a similar motivation, yes.

@quic-seaswara can we add the relevant linker flags to the driver and avoid the need for this distinct emulation?

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


More information about the cfe-commits mailing list