Fixed some bugs.
[llvm/zpu.git] / test / MC / ELF / alias-reloc.s
blobe31afa10307907005c9e5409e7cb1075b1d48dc1
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
3 // Test that this produces a R_X86_64_PLT32. We produce a relocation with foo
4 // and gas with bar, but both should be OK as long as the type is correct.
5 .globl foo
6 foo:
7 bar = foo
8 call bar@PLT
10 // CHECK: # Relocation 0
11 // CHECK-NEXT: (('r_offset',
12 // CHECK-NEXT: ('r_sym',
13 // CHECK-NEXT: ('r_type', 0x00000004)
14 // CHECK-NEXT: ('r_addend',
15 // CHECK-NEXT: ),
16 // CHECK-NEXT: ])