1// REQUIRES: x86 2// RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t.o 3// RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %p/Inputs/undef-with-plt-addr.s -o %t2.o 4// RUN: ld.lld %t2.o -o %t2.so -shared -soname=t2.so 5// RUN: ld.lld %t.o %t2.so -o %t3 6// RUN: llvm-readobj --symbols -S %t3 | FileCheck %s 7 8.globl _start 9_start: 10mov $set_data, %eax 11 12// Test that set_data has an address in the .plt 13 14// CHECK: Name: .plt 15// CHECK-NEXT: Type: SHT_PROGBITS 16// CHECK-NEXT: Flags [ 17// CHECK-NEXT: SHF_ALLOC 18// CHECK-NEXT: SHF_EXECINSTR 19// CHECK-NEXT: ] 20// CHECK-NEXT: Address: 0x4011B0 21 22// CHECK: Name: set_data 23// CHECK-NEXT: Value: 0x4011C0 24