File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
llvm/test/tools/yaml2obj/ELF Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -518,19 +518,17 @@ Sections:
518518# # Check that an incorrect offset for generating notes is reported.
519519
520520# RUN: not yaml2obj --docnum=19 %s 2>&1 | FileCheck %s --check-prefix=ERR_OFFSET
521- # ERR_OFFSET: error: .note: invalid offset of a note section: 0x{{.*}} , should be aligned to 4
521+ # ERR_OFFSET: error: .note: invalid offset of a note section: 0x501 , should be aligned to 4
522522
523523--- !ELF
524524FileHeader :
525525 Class : ELFCLASS32
526526 Data : ELFDATA2LSB
527527 Type : ET_EXEC
528528Sections :
529- - Name : .dummy
530- Type : SHT_PROGBITS
531- Size : 1
532- - Name : .note
533- Type : SHT_NOTE
529+ - Name : .note
530+ Type : SHT_NOTE
531+ Offset : 0x501
534532 Notes :
535533 - Type : 0x1
536534
@@ -546,7 +544,7 @@ Sections:
546544# TEST20-NEXT: Flags [ (0x0)
547545# TEST20-NEXT: ]
548546# TEST20-NEXT: Address:
549- # TEST20-NEXT: Offset:
547+ # TEST20-NEXT: Offset: 0x501
550548# TEST20-NEXT: Size: 0
551549# TEST20-NEXT: Link:
552550# TEST20-NEXT: Info:
@@ -562,10 +560,8 @@ FileHeader:
562560 Data : ELFDATA2LSB
563561 Type : ET_EXEC
564562Sections :
565- - Name : .dummy
566- Type : SHT_PROGBITS
567- Size : 1
568- - Name : .note
569- Type : SHT_NOTE
563+ - Name : .note
564+ Type : SHT_NOTE
565+ Offset : 0x501
570566 AddressAlign : 5
571- Notes : []
567+ Notes : []
You can’t perform that action at this time.
0 commit comments