|
77 | 77 | # YAML-NEXT: Sections:
|
78 | 78 | # YAML-NEXT: - Section: .dynamic
|
79 | 79 | # YAML-NEXT: VAddr: 0x0000000000003EF0
|
80 |
| -# YAML-NEXT: Align: 0x0000000000000001 |
81 | 80 | # YAML-NEXT: - Type: PT_LOAD
|
82 | 81 | # YAML-NEXT: Flags: [ PF_R ]
|
83 | 82 | # YAML-NEXT: VAddr: 0x0000000000004000
|
84 |
| -# YAML-NEXT: Align: 0x0000000000000001 |
85 | 83 | # YAML-NEXT: - Type: PT_LOAD
|
86 | 84 | # YAML-NEXT: Flags: [ PF_R ]
|
87 | 85 | # YAML-NEXT: Sections:
|
88 | 86 | # YAML-NEXT: - Section: .gnu.hash
|
89 | 87 | # YAML-NEXT: VAddr: 0x00000000000001A0
|
90 |
| -# YAML-NEXT: Align: 0x0000000000000001 |
91 | 88 | # YAML-NEXT: - Type: PT_LOAD
|
92 | 89 | # YAML-NEXT: Flags: [ PF_R ]
|
93 | 90 | # YAML-NEXT: Sections:
|
94 | 91 | # YAML-NEXT: - Section: .gnu.hash
|
95 | 92 | # YAML-NEXT: VAddr: 0x00000000000001A0
|
96 |
| -# YAML-NEXT: Align: 0x0000000000000001 |
97 | 93 | # YAML-NEXT: Sections:
|
98 | 94 |
|
99 | 95 | --- !ELF
|
@@ -150,6 +146,9 @@ ProgramHeaders:
|
150 | 146 | ## Show we can create a relro segment and put a section into it.
|
151 | 147 | ## We used .dynamic here and in tests above to demonstrate that
|
152 | 148 | ## we can place a section in any number of segments.
|
| 149 | +## Also, we explicitly set the "Align" property to 1 to demonstate |
| 150 | +## that we do not dump it, because it is the default alignment |
| 151 | +## value set by yaml2obj. |
153 | 152 | - Type: PT_GNU_RELRO
|
154 | 153 | Flags: [ PF_R ]
|
155 | 154 | Sections:
|
@@ -257,19 +256,16 @@ DynamicSymbols: []
|
257 | 256 | # EMPTY-NEXT: Sections:
|
258 | 257 | # EMPTY-NEXT: - Section: .empty.tls.start
|
259 | 258 | # EMPTY-NEXT: VAddr: 0x0000000000001000
|
260 |
| -# EMPTY-NEXT: Align: 0x0000000000000001 |
261 | 259 | # EMPTY-NEXT: - Type: PT_TLS
|
262 | 260 | # EMPTY-NEXT: Flags: [ PF_W, PF_R ]
|
263 | 261 | # EMPTY-NEXT: Sections:
|
264 | 262 | # EMPTY-NEXT: - Section: .empty.tls.middle
|
265 | 263 | # EMPTY-NEXT: VAddr: 0x0000000000001100
|
266 |
| -# EMPTY-NEXT: Align: 0x0000000000000001 |
267 | 264 | # EMPTY-NEXT: - Type: PT_TLS
|
268 | 265 | # EMPTY-NEXT: Flags: [ PF_W, PF_R ]
|
269 | 266 | # EMPTY-NEXT: Sections:
|
270 | 267 | # EMPTY-NEXT: - Section: .empty.tls.end
|
271 | 268 | # EMPTY-NEXT: VAddr: 0x0000000000001200
|
272 |
| -# EMPTY-NEXT: Align: 0x0000000000000001 |
273 | 269 | # EMPTY-NEXT: Sections:
|
274 | 270 |
|
275 | 271 | --- !ELF
|
@@ -385,7 +381,6 @@ Sections:
|
385 | 381 | # NON-ALLOC-NEXT: - Section: .non-alloc.1
|
386 | 382 | # NON-ALLOC-NEXT: - Section: .alloc.2
|
387 | 383 | # NON-ALLOC-NEXT: VAddr: 0x0000000000001000
|
388 |
| -# NON-ALLOC-NEXT: Align: 0x0000000000000001 |
389 | 384 | # NON-ALLOC-NEXT: Sections:
|
390 | 385 |
|
391 | 386 | --- !ELF
|
|
0 commit comments