mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
1675d50a91
We do not have to spread using the precompiled binaries in the tests, when we can use YAML. This patch removes the dynrel.elf binary and adds a few comments to the test cases. Differential revision: https://reviews.llvm.org/D63641 llvm-svn: 364052
25 lines
585 B
Plaintext
25 lines
585 B
Plaintext
## Check that llvm-objcopy can correctly add a prefix to
|
|
## a dynamic relocation section and its target section.
|
|
|
|
# RUN: yaml2obj %s > %t1
|
|
# RUN: llvm-objcopy --prefix-alloc-sections=.prefix %t1 %t2
|
|
# RUN: llvm-readobj --sections %t2 | FileCheck %s
|
|
|
|
# CHECK: Name: .prefix.rela.plt
|
|
# CHECK: Name: .prefix.plt
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .rela.plt
|
|
Type: SHT_RELA
|
|
Flags: [ SHF_ALLOC ]
|
|
Link: 0
|
|
- Name: .plt
|
|
Type: SHT_PROGBITS
|
|
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
|