xref: /aosp_15_r20/external/llvm/test/MC/COFF/secidx.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | llvm-readobj -s -sr | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker// check that we produce the correct relocation for .secidx
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard WorkerLfoo:
6*9880d681SAndroid Build Coastguard Worker	.secidx	Lfoo
7*9880d681SAndroid Build Coastguard Worker	.short  0
8*9880d681SAndroid Build Coastguard Worker	.secidx	Lbar
9*9880d681SAndroid Build Coastguard Worker	.short  0
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker.section spam
12*9880d681SAndroid Build Coastguard WorkerLbar:
13*9880d681SAndroid Build Coastguard Worker	ret
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker// CHECK:       Relocations [
16*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:    0x0 IMAGE_REL_I386_SECTION .text
17*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:    0x4 IMAGE_REL_I386_SECTION spam
18*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT:  ]
19