repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git]
/
llvm
/
test
/
tools
/
llvm-objcopy
/
ELF
/
explicit-keep-remove.test
blob
60a88559bbe257f2705f54a4a698565dd15800ac
1
# RUN: yaml2obj %s -o %t
2
# RUN: llvm-objcopy -R=.test --keep-section=.test %t %t2
3
# RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s
4
5
!ELF
6
FileHeader:
7
Class: ELFCLASS64
8
Data: ELFDATA2LSB
9
Type: ET_REL
10
Machine: EM_X86_64
11
Sections:
12
- Name: .test
13
Type: SHT_PROGBITS
14
Flags: [ ]
15
16
# CHECK: SectionHeaderCount: 4
17
18
# CHECK: Name: .test
19
# CHECK: Name: .strtab
20
# CHECK: Name: .shstrtab