[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / undef-with-plt-addr-i686.s
blob2d828dec76d0afa43f5de151d2af3ee78e5fad0a
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
8 .globl _start
9 _start:
10 mov $set_data, %eax
12 // Test that set_data has an address in the .plt
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
22 // CHECK: Name: set_data
23 // CHECK-NEXT: Value: 0x4011C0