[llvm] [Object] Beginnings of SFrame parser and dumper (PR #147294)

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 15 03:23:07 PDT 2025


================
@@ -0,0 +1,118 @@
+## Check parsing and dumping of the SFrame header.
+# RUN: yaml2obj --docnum=1 %s -o %t.1
+# RUN: llvm-readobj --sframe=.sframe_1b --sframe=.sframe_bad_magic \
+# RUN:   --sframe=.sframe_bad_version --sframe=.sframe_6b \
+# RUN:   --sframe=.sframe_header %t.1 2>&1 | FileCheck %s --check-prefix=CASE1
+
+## Check big-endian support and the handling of --sframe argument default.
+# RUN: yaml2obj --docnum=2 %s -o %t.2
+# RUN: llvm-readobj --sframe %t.2 2>&1 | FileCheck %s --check-prefix=CASE2
+
+--- !ELF
+FileHeader:
+  Class:   ELFCLASS64
+  Data:    ELFDATA2LSB
+  Type:    ET_EXEC
+  Machine: EM_X86_64
+Sections:
+  - Name:  .sframe_1b
+    Type:  SHT_PROGBITS
----------------
labath wrote:

Thanks for letting me know. I've created #148803 for that.

For the moment, I'm keeping the PROGBITS here. I'll change that once the other PR lands (the occurrence in this test is not particularly important, it's the generator that matters).

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


More information about the llvm-commits mailing list