[llvm] [llvm][yaml2obj] Modify section header overriding timing (PR #130942)

Ruoyu Qiu via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 9 03:29:46 PDT 2025


================
@@ -205,6 +205,6 @@ Sections:
     ShOffset: 0xFFFFFFFF
 ProgramHeaders:
   - Type:     PT_LOAD
-    Offset:   0xFFFFFF00
+    Offset:   0x78
----------------
cabbaken wrote:

It produces the following message:
```
yaml2obj: error: 'Offset' for segment with index 1 must be less than or equal to the minimum file offset of all included sections (0x78)
```
This test is intended to verify that "Offset" is applied before the section offset is overridden using "ShOffset".  Therefore, the comment at line 204 should now be removed.

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


More information about the llvm-commits mailing list