forked from OSchip/llvm-project
[mips][lld] Add test case to check symbol index reading on mips64el. NFC
This commit is contained in:
parent
962e8d9976
commit
0199e47373
|
@ -1,10 +1,15 @@
|
|||
# REQUIRES: mips
|
||||
# Check R_MIPS_64 relocation calculation.
|
||||
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t.o
|
||||
# RUN: ld.lld -shared %t.o -o %t.so
|
||||
# RUN: llvm-objdump -s -t %t.so | FileCheck --check-prefix=SYM %s
|
||||
# RUN: llvm-readelf --dynamic-table -r -s -A %t.so | FileCheck %s
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t-be.o
|
||||
# RUN: ld.lld -shared %t-be.o -o %t-be.so
|
||||
# RUN: llvm-objdump -s -t %t-be.so | FileCheck --check-prefixes=SYM,SYM-BE %s
|
||||
# RUN: llvm-readelf --dynamic-table -r -s -A %t-be.so | FileCheck %s
|
||||
|
||||
# RUN: llvm-mc -filetype=obj -triple=mips64el-unknown-linux %s -o %t-el.o
|
||||
# RUN: ld.lld -shared %t-el.o -o %t-el.so
|
||||
# RUN: llvm-objdump -s -t %t-el.so | FileCheck --check-prefixes=SYM,SYM-EL %s
|
||||
# RUN: llvm-readelf --dynamic-table -r -s -A %t-el.so | FileCheck %s
|
||||
|
||||
.data
|
||||
.globl v2
|
||||
|
@ -14,10 +19,13 @@ v2:
|
|||
.quad v1 # R_MIPS_64 target v1 addend 0
|
||||
|
||||
# SYM: SYMBOL TABLE:
|
||||
# SYM: 00000000[[V1:[0-9a-f]+]] l .data 0000000000000000 v1
|
||||
# SYM: 00000000000203b0 l .data 0000000000000000 v1
|
||||
|
||||
# SYM: Contents of section .data:
|
||||
# SYM-NEXT: {{.*}} 00000000 00000008 00000000 [[V1]]
|
||||
# SYM-BE: Contents of section .data:
|
||||
# SYM-BE-NEXT: {{.*}} 00000000 00000008 00000000 000203b0
|
||||
|
||||
# SYM-EL: Contents of section .data:
|
||||
# SYM-EL-NEXT: {{.*}} 08000000 00000000 b0030200 00000000
|
||||
|
||||
# CHECK: Dynamic section
|
||||
# CHECK: (RELSZ) 32 (bytes)
|
||||
|
|
Loading…
Reference in New Issue