2013-03-02 04:54:00 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t
|
|
|
|
// RUN: llvm-objdump -r %t | FileCheck %s
|
2010-12-18 13:07:45 +08:00
|
|
|
|
2013-03-02 04:54:00 +08:00
|
|
|
// Test that we create no fixups for this file since "a" and "b"
|
|
|
|
// are in the same fragment. If b was in a different section, a
|
|
|
|
// fixup causing a relocation would be generated in the object file.
|
2010-12-18 13:07:45 +08:00
|
|
|
|
2013-03-02 04:54:00 +08:00
|
|
|
// CHECK-NOT: RELOCATION RECORDS
|
2010-12-18 13:07:45 +08:00
|
|
|
|
|
|
|
a:
|
|
|
|
nop
|
|
|
|
b:
|
|
|
|
.long b - a
|