[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 22:07:18 PDT 2026
================
@@ -0,0 +1,21 @@
+# RUN: llvm-mc -filetype=obj -triple=hexagon %s -o %t.abs.o
+# RUN: llvm-readobj -r %t.abs.o | FileCheck %s --check-prefix=ABS
+# RUN: llvm-mc -filetype=obj -triple=hexagon -position-independent %s -o %t.pic.o
+# RUN: llvm-readobj -r %t.pic.o | FileCheck %s --check-prefix=PIC
+
+// Hexagon selects the FDE pointer encoding from whether the object is PIC.
+func:
+ .cfi_startproc
+ .cfi_endproc
+
+// ABS: Relocations [
+// ABS-NEXT: Section ({{.*}}) .rela.eh_frame {
+// ABS-NEXT: R_HEX_32
----------------
androm3da wrote:
qualified it with whitespace pattern after to better-specify this assertion
https://github.com/llvm/llvm-project/pull/213821
More information about the llvm-commits
mailing list