repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git]
/
test
/
tools
/
llvm-objcopy
/
ELF
/
strip-reloc-symbol.test
blob
99b5d51c0e883530fff04805c9c35946793afff0
1
# RUN: yaml2obj %s > %t
2
# RUN: not llvm-objcopy -N foo %t %t2 2>&1 | FileCheck %s
3
4
!ELF
5
FileHeader:
6
Class: ELFCLASS64
7
Data: ELFDATA2LSB
8
Type: ET_REL
9
Machine: EM_X86_64
10
Sections:
11
- Name: .text
12
Type: SHT_PROGBITS
13
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
14
Address: 0x1000
15
AddressAlign: 0x0000000000000010
16
Size: 64
17
- Name: .rel.text
18
Type: SHT_REL
19
Info: .text
20
Relocations:
21
- Offset: 0x1000
22
Symbol: foo
23
Type: R_X86_64_PC32
24
Symbols:
25
- Name: foo
26
Type: STT_FUNC
27
Section: .text
28
Value: 0x1000
29
Size: 8
30
31
# CHECK: not stripping symbol 'foo' because it is named in a relocation