brintos

brintos / llvm-project-archived public Read only

0
0
Text · 675 B · 2d828de Raw
24 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t.o3// RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %p/Inputs/undef-with-plt-addr.s -o %t2.o4// RUN: ld.lld %t2.o -o %t2.so -shared -soname=t2.so5// RUN: ld.lld %t.o %t2.so -o %t36// RUN: llvm-readobj --symbols -S %t3 | FileCheck %s7 8.globl _start9_start:10mov $set_data, %eax11 12// Test that set_data has an address in the .plt13 14// CHECK:      Name: .plt15// CHECK-NEXT: Type: SHT_PROGBITS16// CHECK-NEXT: Flags [17// CHECK-NEXT:   SHF_ALLOC18// CHECK-NEXT:   SHF_EXECINSTR19// CHECK-NEXT: ]20// CHECK-NEXT: Address: 0x4011B021 22// CHECK:      Name:    set_data23// CHECK-NEXT: Value:   0x4011C024