brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 62578c1 Raw
31 lines · yaml
1## Check we are able to set a custom sh_addralign field for different sections2## and that doing this does not affect the output size.3 4## Test that we are able to override the sh_addralign section5## field with use of the "ShAddrAlign" key.6 7# RUN: yaml2obj %s -o %t8# RUN: llvm-readelf --sections %t | FileCheck %s --check-prefix=CHECK9 10# CHECK:      Section Headers:11# CHECK-NEXT:   [Nr] Name    {{.*}} Off    Size   ES Flg Lk Inf Al12# CHECK-NEXT:   [ 0]         {{.*}} 000000 000000 00     0   0  013# CHECK-NEXT:   [ 1] .foo    {{.*}} 000080 000000 00     0   0 122978293824730344114# CHECK-NEXT:   [ 2] .bar    {{.*}} 000100 000000 00     0   0 245956587649460688215# CHECK-NEXT:   [ 3] .strtab {{.*}} 000100 000001 00     0   0  116 17--- !ELF18FileHeader:19  Class: ELFCLASS6420  Data:  ELFDATA2LSB21  Type:  ET_REL22Sections:23  - Name:         .foo24    Type:         SHT_PROGBITS25    AddressAlign: 0x8026    ShAddrAlign:  0x111111111111111127  - Name:         .bar28    Type:         SHT_PROGBITS29    AddressAlign: 0x10030    ShAddrAlign:  0x222222222222222231