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
/
strip-sections-only-section.test
blob
054a3969fd28f22439d0fa962787c3ee1a5faee9
1
# RUN: yaml2obj %s -o %t
2
# RUN: llvm-objcopy --strip-sections --only-section=.test %t %t2
3
# RUN: od -Ax -t x1 %t2 | FileCheck %s
4
# RUN: od -Ax -t c %t2 | FileCheck %s --check-prefix=TEXT
5
6
!ELF
7
FileHeader:
8
Class: ELFCLASS64
9
Data: ELFDATA2LSB
10
Type: ET_REL
11
Machine: EM_X86_64
12
Sections:
13
- Name: .test
14
Type: SHT_PROGBITS
15
Flags: [ ]
16
Content: "DEADBEEF"
17
18
# CHECK: de ad be ef
19
20
# TEXT-NOT: t e s t