mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
aac454ba82
This patch makes a change for test/Object tests responsible for relocations. * 2 tests were moved to llvm-readobj/llvm-objdump folders: Object/elf-reloc-no-sym.test -> tools/llvm-readobj/elf-reloc-no-sym.test Object/objdump-reloc-shared.test -> tools/llvm-objdump/relocations-in-nonreloc.test * A prerecompiled binary was removed and these tests were refactored. Differential revision: https://reviews.llvm.org/D66291 llvm-svn: 369342
27 lines
599 B
Plaintext
27 lines
599 B
Plaintext
## Check llvm-readobj is able to dump relocations that
|
|
## do not use symbols.
|
|
|
|
# RUN: yaml2obj %s -o %t
|
|
# RUN: llvm-readobj -r %t | FileCheck %s
|
|
|
|
# CHECK: Relocations [
|
|
# CHECK-NEXT: Section (1) .rela.plt {
|
|
# CHECK-NEXT: 0x12345678 R_X86_64_IRELATIVE - 0x87654321
|
|
# CHECK-NEXT: }
|
|
# CHECK-NEXT: ]
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .rela.plt
|
|
Type: SHT_RELA
|
|
Flags: [ SHF_ALLOC ]
|
|
Relocations:
|
|
- Offset: 0x12345678
|
|
Type: R_X86_64_IRELATIVE
|
|
Addend: 0x87654321
|