You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: llvm/test/tools/yaml2obj/ELF/program-header-size-offset.yaml
+5-34Lines changed: 5 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -44,25 +44,25 @@ Sections:
44
44
- Name: .text
45
45
Type: SHT_PROGBITS
46
46
Size: 4
47
-
ShOffset: 0x1000
47
+
Offset: 0x1000
48
48
AddressAlign: 0x1000
49
49
- Name: .rodata
50
50
Type: SHT_PROGBITS
51
51
Size: 4
52
-
ShOffset: 0x2000
52
+
Offset: 0x2000
53
53
AddressAlign: 0x1000
54
54
- Name: .data
55
55
Type: SHT_PROGBITS
56
-
ShOffset: 0x2004
56
+
Offset: 0x2004
57
57
Size: 4
58
58
- Name: .nobits1
59
59
Type: SHT_NOBITS
60
-
ShOffset: 0x2008
60
+
Offset: 0x2008
61
61
Size: 1
62
62
- Name: .nobits2
63
63
Type: SHT_NOBITS
64
64
# Intentionally set to 0x2009 though the previous section is SHT_NOBITS.
65
-
ShOffset: 0x2009
65
+
Offset: 0x2009
66
66
Size: 1
67
67
ProgramHeaders:
68
68
# Program header with no sections.
@@ -179,32 +179,3 @@ ProgramHeaders:
179
179
# RUN: FileCheck %s --check-prefix=INVALID-OFFSET
180
180
181
181
# INVALID-OFFSET: yaml2obj: error: 'Offset' for segment with index 1 must be less than or equal to the minimum file offset of all included sections (0x78)
182
-
183
-
## Document that the "Offset" value is checked after the section offset is overriden using "ShOffset".
0 commit comments