[llvm] [Object] Beginnings of SFrame parser and dumper (PR #147294)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 03:03:46 PDT 2025
================
@@ -17,42 +25,48 @@ FileHeader:
Type: ET_EXEC
Machine: EM_X86_64
Sections:
+ - Name: .sframe_bad_sh_size
+ Type: SHT_GNU_SFRAME
+ Flags: [ SHF_ALLOC ]
+ ShSize: 0xfffff
+# CASE1-LABEL:SFrame section '.sframe_bad_sh_size' {
+# CASE1:{{.*}}: warning: '[[FILE]]': The end of the file was unexpectedly encountered
- Name: .sframe_1b
- Type: SHT_PROGBITS
+ Type: SHT_GNU_SFRAME
Flags: [ SHF_ALLOC ]
ContentArray: [ 0x00 ]
# CASE1-LABEL:SFrame section '.sframe_1b' {
-# CASE1:{{.*}}: warning: {{.*}}: unexpected end of data at offset 0x1 while reading [0x0, 0x4)
+# CASE1:{{.*}}: warning: '[[FILE]]': unexpected end of data at offset 0x1 while reading [0x0, 0x4)
- Name: .sframe_bad_magic
- Type: SHT_PROGBITS
+ Type: SHT_GNU_SFRAME
Flags: [ SHF_ALLOC ]
ContentArray: [ 0xde, 0xad, 0xbe, 0xef]
# CASE1-LABEL:SFrame section '.sframe_bad_magic' {
-# CASE1:{{.*}}: warning: {{.*}}: invalid magic number
+# CASE1:{{.*}}: warning: '[[FILE]]': invalid magic number
- Name: .sframe_bad_version
- Type: SHT_PROGBITS
+ Type: SHT_GNU_SFRAME
Flags: [ SHF_ALLOC ]
ContentArray: [
0xe2, 0xde, 0x01, 0x00 # Preamble (magic, version, flags)
]
# CASE1-LABEL:SFrame section '.sframe_bad_version' {
-# CASE1:{{.*}}: warning: {{.*}}: invalid/unsupported version number
+# CASE1:{{.*}}: warning: '[[FILE]]': invalid/unsupported version number
----------------
jh7370 wrote:
Similar to above case, I think you should include the read-in version number somewhere in this message.
https://github.com/llvm/llvm-project/pull/147294
More information about the llvm-commits
mailing list