mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
3ea650006a
As is indexes above SHN_LORESERVE will not be handled correctly because they'll be treated as indexes of sections rather than special values that should just be copied. This change adds support to copy them though. Patch by Jake Ehrlich Differential Revision: https://reviews.llvm.org/D37393 llvm-svn: 312756
37 lines
866 B
Plaintext
37 lines
866 B
Plaintext
# RUN: yaml2obj %s > %t
|
|
# RUN: llvm-objcopy %t %t2
|
|
# RUN: llvm-readobj -symbols %t2 | FileCheck %s
|
|
|
|
!ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
Machine: EM_X86_64
|
|
Symbols:
|
|
Global:
|
|
- Name: test
|
|
Index: SHN_ABS
|
|
Value: 0x1234
|
|
|
|
#CHECK: Symbols [
|
|
#CHECK-NEXT: Symbol {
|
|
#CHECK-NEXT: Name:
|
|
#CHECK-NEXT: Value: 0x0
|
|
#CHECK-NEXT: Size: 0
|
|
#CHECK-NEXT: Binding: Local (0x0)
|
|
#CHECK-NEXT: Type: None (0x0)
|
|
#CHECK-NEXT: Other: 0
|
|
#CHECK-NEXT: Section: Undefined (0x0)
|
|
#CHECK-NEXT: }
|
|
#CHECK-NEXT: Symbol {
|
|
#CHECK-NEXT: Name: test
|
|
#CHECK-NEXT: Value: 0x1234
|
|
#CHECK-NEXT: Size: 0
|
|
#CHECK-NEXT: Binding: Global (0x1)
|
|
#CHECK-NEXT: Type: None (0x0)
|
|
#CHECK-NEXT: Other: 0
|
|
#CHECK-NEXT: Section: Absolute (0xFFF1)
|
|
#CHECK-NEXT: }
|
|
#CHECK-NEXT:]
|