[clang] [llvm] [Hexagon][Driver] Tell llvm-mc about PIC under -fno-integrated-as (PR #213821)

Brian Cain via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 07:04:14 PDT 2026


================
@@ -0,0 +1,36 @@
+/// Hexagon selects the .eh_frame FDE pointer encoding from whether the code is
+/// position independent (DW_EH_PE_pcrel vs DW_EH_PE_absptr, see
+/// MCObjectFileInfo::initELFMCObjectFileInfo).  llvm-mc defaults to non-PIC, so
+/// the driver has to tell it, or -fno-integrated-as produces unwind tables that
+/// disagree with the ones the integrated assembler produces for the same input
+/// (R_HEX_32 instead of R_HEX_32_PCREL).
+
+/// hexagon-unknown-linux-musl defaults to PIC.
+// RUN: %clang --target=hexagon-unknown-linux-musl -fno-integrated-as \
----------------
androm3da wrote:

Simplified tests.

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


More information about the llvm-commits mailing list