mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
ee7493ce0e
Re-commit of the patch after addressing -Wl,--emit-relocs case. Differential revision: https://reviews.llvm.org/D61672 llvm-svn: 366787
103 lines
2.4 KiB
Plaintext
103 lines
2.4 KiB
Plaintext
# RUN: yaml2obj %s > %t
|
|
# RUN: llvm-objcopy -R .test2 -R .test3 -R .test5 %t %t2
|
|
# RUN: llvm-readobj --sections %t2 | FileCheck %s
|
|
|
|
!ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_EXEC
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .test1
|
|
Type: SHT_PROGBITS
|
|
Flags: [ ]
|
|
- Name: .test2
|
|
Type: SHT_PROGBITS
|
|
Flags: [ ]
|
|
- Name: .test3
|
|
Type: SHT_PROGBITS
|
|
Flags: [ ]
|
|
- Name: .test4
|
|
Type: SHT_PROGBITS
|
|
Flags: [ ]
|
|
- Name: .test5
|
|
Type: SHT_PROGBITS
|
|
Flags: [ ]
|
|
- Name: .test6
|
|
Type: SHT_PROGBITS
|
|
Flags: [ ]
|
|
|
|
# CHECK: Sections [
|
|
# CHECK: Section {
|
|
# CHECK: Index: 0
|
|
# CHECK: Name: (0)
|
|
# CHECK: Type: SHT_NULL (0x0)
|
|
# CHECK: Flags [ (0x0)
|
|
# CHECK: ]
|
|
# CHECK: Address: 0x0
|
|
# CHECK: Offset:
|
|
# CHECK: Size:
|
|
# CHECK: Link: 0
|
|
# CHECK: Info: 0
|
|
# CHECK: AddressAlignment: 0
|
|
# CHECK: EntrySize: 0
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Index: 1
|
|
# CHECK: Name: .test1
|
|
# CHECK: Type: SHT_PROGBITS (0x1)
|
|
# CHECK: Flags [ (0x0)
|
|
# CHECK: ]
|
|
# CHECK: Address: 0x0
|
|
# CHECK: Offset:
|
|
# CHECK: Size:
|
|
# CHECK: Link: 0
|
|
# CHECK: Info: 0
|
|
# CHECK: AddressAlignment: 0
|
|
# CHECK: EntrySize: 0
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Index: 2
|
|
# CHECK: Name: .test4
|
|
# CHECK: Type: SHT_PROGBITS (0x1)
|
|
# CHECK: Flags [ (0x0)
|
|
# CHECK: ]
|
|
# CHECK: Address: 0x0
|
|
# CHECK: Offset:
|
|
# CHECK: Size:
|
|
# CHECK: Link: 0
|
|
# CHECK: Info: 0
|
|
# CHECK: AddressAlignment: 0
|
|
# CHECK: EntrySize: 0
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Index: 3
|
|
# CHECK: Name: .test6
|
|
# CHECK: Type: SHT_PROGBITS (0x1)
|
|
# CHECK: Flags [ (0x0)
|
|
# CHECK: ]
|
|
# CHECK: Address: 0x0
|
|
# CHECK: Offset:
|
|
# CHECK: Size:
|
|
# CHECK: Link: 0
|
|
# CHECK: Info: 0
|
|
# CHECK: AddressAlignment: 0
|
|
# CHECK: EntrySize: 0
|
|
# CHECK: }
|
|
# CHECK: Section {
|
|
# CHECK: Index: 4
|
|
# CHECK: Name: .shstrtab
|
|
# CHECK: Type: SHT_STRTAB (0x3)
|
|
# CHECK: Flags [ (0x0)
|
|
# CHECK: ]
|
|
# CHECK: Address: 0x0
|
|
# CHECK: Offset:
|
|
# CHECK: Size:
|
|
# CHECK: Link: 0
|
|
# CHECK: Info: 0
|
|
# CHECK: AddressAlignment: 1
|
|
# CHECK: EntrySize: 0
|
|
# CHECK: }
|
|
# CHECK: ]
|