xref: /aosp_15_r20/external/llvm/test/MC/ELF/plt.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -r | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker// Test that this produces a R_X86_64_PLT32.
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker	jmp	foo@PLT
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker// CHECK:      Relocations [
8*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:   Section ({{[^ ]+}}) {{[^ ]+}} {
9*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:     0x{{[^ ]+}} R_X86_64_PLT32 {{[^ ]+}} 0x{{[^ ]+}}
10*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:   }
11*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: ]
12