[all-commits] [llvm/llvm-project] be8e46: [Clang][RISCV] Forward --no-relax option to linker...
Andreu Carminati via All-commits
all-commits at lists.llvm.org
Fri Jan 26 09:37:10 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: be8e462a0c27e4850020c96290cabdcdbcab46f3
https://github.com/llvm/llvm-project/commit/be8e462a0c27e4850020c96290cabdcdbcab46f3
Author: Andreu Carminati <andreu.carminati at hightec-rt.com>
Date: 2024-01-26 (Fri, 26 Jan 2024)
Changed paths:
M clang/lib/Driver/ToolChains/BareMetal.cpp
M clang/lib/Driver/ToolChains/Gnu.cpp
M clang/lib/Driver/ToolChains/RISCVToolchain.cpp
M clang/test/Driver/baremetal.cpp
M clang/test/Driver/riscv32-toolchain.c
M clang/test/Driver/riscv64-toolchain.c
Log Message:
-----------
[Clang][RISCV] Forward --no-relax option to linker for RISC-V (#76432)
In the case of -mno-relax option. Otherwise, we cannot prevent
relaxation if we split compilation and linking using Clang driver.
One can consider the following use case:
clang [...] -c -o myobject.o (just compile)
clang [...] myobject.o -o myobject.elf -mno-relax (linking)
In this case, myobject.elf will be relaxed, the -mno-relax will be
silently ignored.
More information about the All-commits
mailing list