[llvm] [Object] Beginnings of SFrame parser and dumper (PR #147294)
Indu Bhagat via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 12:47:29 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
----------------
ibhagatgnu wrote:
A new section type for SFrame SHT_GNU_SFRAME with value 0x6ffffff4 has been added (https://sourceware.org/git/?p=gnu-gabi.git;a=commit;h=b85391cf2ad97ec209b7cfe84b24c65ad5748576). GNU Binutils 2.45 and later will generate SFrame sections with that section type. Please have SHT_GNU_SFRAME as the section type on the LLVM side too.
https://github.com/llvm/llvm-project/pull/147294
More information about the llvm-commits
mailing list