xref: /aosp_15_r20/external/llvm/test/MC/ELF/no-reloc.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// CHECK: Relocations [
4*9880d681SAndroid Build Coastguard Worker// CHECK-NEXT: ]
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker	.section	.test1_foo
7*9880d681SAndroid Build Coastguard Worker.Ltest1_1:
8*9880d681SAndroid Build Coastguard Worker.Ltest1_2 = .Ltest1_1
9*9880d681SAndroid Build Coastguard Worker	.section	.test1_bar
10*9880d681SAndroid Build Coastguard Worker	.long .Ltest1_1-.Ltest1_2
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker        .section test2
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker.Ltest2_a:
16*9880d681SAndroid Build Coastguard Worker.Ltest2_b = .Ltest2_a
17*9880d681SAndroid Build Coastguard Worker.Ltest2_c:
18*9880d681SAndroid Build Coastguard Worker.Ltest2_d = .Ltest2_c-.Ltest2_b
19*9880d681SAndroid Build Coastguard Worker	.long	.Ltest2_d
20