1## gnu size has a number of special cases regarding REL, RELA and STRTAB sections being considered in size output. 2## To avoid unnecessary complexity llvm size outputs these sections in cases they have the SHF_ALLOC flag. 3 4# RUN: yaml2obj %s -o %t1 5# RUN: llvm-size --format=sysv %t1 | FileCheck %s 6 7# CHECK: section size addr 8# CHECK-NEXT: .rela.alloc 9# CHECK-NEXT: .rel.alloc 10# CHECK-NEXT: .strtab.alloc 11# CHECK-NEXT: Total 12# CHECK-EMPTY: 13 14--- !ELF 15FileHeader: 16 Class: ELFCLASS64 17 Data: ELFDATA2LSB 18 Type: ET_REL 19 Machine: EM_X86_64 20Sections: 21 - Name: .rela.alloc 22 Type: SHT_RELA 23 Flags: [ SHF_ALLOC ] 24 - Name: .rel.alloc 25 Type: SHT_REL 26 Flags: [ SHF_ALLOC ] 27 - Name: .strtab.alloc 28 Type: SHT_STRTAB 29 Flags: [ SHF_ALLOC ] 30 - Name: .rela 31 Type: SHT_RELA 32 Flags: [] 33 - Name: .rel 34 Type: SHT_REL 35 Flags: [] 36 - Name: .strtab 37 Type: SHT_STRTAB 38 Flags: [] 39