1# REQUIRES: x86 2 3# RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %s -o %t.o 4# RUN: ld.lld %t.o -o %t --gc-sections 5# RUN: llvm-readobj -S %t | FileCheck %s 6# RUN: llvm-objdump -d %t | FileCheck --check-prefix=DISASM %s 7 8# CHECK: Name: .foo 9# CHECK-NEXT: Type: SHT_PROGBITS 10# CHECK-NEXT: Flags [ 11# CHECK-NEXT: SHF_ALLOC 12# CHECK-NEXT: SHF_MERGE 13# CHECK-NEXT: SHF_STRINGS 14# CHECK-NEXT: ] 15# CHECK-NEXT: Address: 0x4000B4 16 17# 0x4000B4 == 4194484 18# DISASM: leal 4194484, %eax 19 20 .section .foo,"aMS",@progbits,1 21 .byte 0 22 23 .text 24 .global _start 25_start: 26 leal .foo, %eax 27