24 lines · plain
1# REQUIRES: x862# Verify that .rodata is aligned to a 8 byte boundary.3 4# RUN: llvm-mc -filetype=obj -triple=i386 %s -o %t.o5# RUN: ld.lld %t.o -o %t.exe -n --image-base=0 -Ttext 06# RUN: llvm-readelf --section-headers %t.exe | FileCheck %s7 8# CHECK: [ 0] NULL 00000000 000000 000000 00 0 0 09# CHECK: [ 1] .text PROGBITS 00000000 000094 000001 00 AX 0 0 410# CHECK: [ 2] .rodata PROGBITS 00000008 000098 000008 00 A 0 0 811# CHECK: [ 3] .comment PROGBITS 00000000 0000a0 000008 01 MS 0 0 112# CHECK: [ 4] .symtab SYMTAB 00000000 0000a8 000020 10 6 1 413# CHECK: [ 5] .shstrtab STRTAB 00000000 0000c8 000032 00 0 0 114# CHECK: [ 6] .strtab STRTAB 00000000 0000fa 000008 00 0 0 115 16.globl _start17.text18_start:19 ret20 21.rodata22.align 823.quad 4224