38 lines · plain
1# REQUIRES: x862 3## Some section types (e.g. SHT_NOBITS, SHT_NOTE, SHT_PREINIT_ARRAY) can be4## mixed with SHT_PROGBITS. The output type is SHT_PROGBITS.5 6# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o7# RUN: ld.lld -shared %t.o -o %t8# RUN: llvm-readelf -S %t | FileCheck %s9 10# CHECK: .foo2 PROGBITS {{.*}} 000002 00 A11# CHECK: .foo PROGBITS {{.*}} 000028 00 WA12# CHECK: .foo1 PROGBITS {{.*}} 000010 00 WA13 14.section .foo, "aw", @progbits, unique, 115.quad 016 17.section .foo, "aw", @init_array, unique, 218.quad 019 20.section .foo, "aw", @preinit_array, unique, 321.quad 022 23.section .foo, "aw", @fini_array, unique, 424.quad 025 26.section .foo, "aw", @note, unique, 527.quad 028 29.section .foo1, "aw", @progbits, unique, 130.quad 031.section .foo1, "aw", @nobits, unique, 232.quad 033 34.section .foo2, "a", @nobits, unique, 135.byte 036.section .foo2, "a", @progbits, unique, 237.byte 038