[llvm] [Object] Beginnings of SFrame parser and dumper (PR #147294)
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 02:22:42 PDT 2025
================
@@ -0,0 +1,124 @@
+## 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 \
+# RUN: | FileCheck %s --strict-whitespace --match-full-lines --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 \
+# RUN: | FileCheck %s --strict-whitespace --match-full-lines --check-prefix=CASE2
+
+--- !ELF
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATA2LSB
+ Type: ET_EXEC
+ Machine: EM_X86_64
+Sections:
+ - Name: .sframe_1b
+ Type: SHT_PROGBITS
+ Flags: [ SHF_ALLOC ]
+ ContentArray: [ 0x00 ]
+# CASE1-LABEL:SFrame section '.sframe_1b' {
+# CASE1:{{.*}}: warning: {{.*}}: unexpected end of data at offset 0x1 while reading [0x0, 0x4)
----------------
labath wrote:
SG
https://github.com/llvm/llvm-project/pull/147294
More information about the llvm-commits
mailing list