xref: /aosp_15_r20/external/llvm/test/MC/ELF/no-fixup.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t
2*9880d681SAndroid Build Coastguard Worker// RUN: llvm-objdump -r %t | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker// Test that we create no fixups for this file since "a" and "b"
5*9880d681SAndroid Build Coastguard Worker// are in the same fragment. If b was in a different section, a
6*9880d681SAndroid Build Coastguard Worker// fixup causing a relocation would be generated in the object file.
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker// CHECK-NOT: RELOCATION RECORDS
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workera:
11*9880d681SAndroid Build Coastguard Worker  nop
12*9880d681SAndroid Build Coastguard Workerb:
13*9880d681SAndroid Build Coastguard Worker  .long b - a
14