52 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-ifs --input-format=ELF --output-ifs=- %t | FileCheck %s --check-prefix=ORIGINAL3# RUN: llvm-ifs --input-format=ELF --output-ifs=- --soname=libbest.so %t | FileCheck %s --check-prefix=REPLACED4 5!ELF6FileHeader:7 Class: ELFCLASS648 Data: ELFDATA2LSB9 Type: ET_DYN10 Machine: EM_X86_6411Sections:12 - Name: .dynstr13 Type: SHT_STRTAB14 Flags: [ SHF_ALLOC ]15 Address: 0x100016# \0 b a z\0 s o m e l i b . s o\0 f o o\017 Content: "0062617a00736f6d656c69622e736f00666f6f00"18 - Name: .dynamic19 Type: SHT_DYNAMIC20 Flags: [ SHF_ALLOC ]21 Address: 0x000000000000101822 Link: .dynstr23 AddressAlign: 0x000000000000000824 EntSize: 0x000000000000001025 Entries:26 - Tag: DT_SONAME27 Value: 0x000000000000000528 - Tag: DT_STRSZ29 Value: 0x000000000000001430 - Tag: DT_STRTAB31 Value: 0x000000000000100032 - Tag: DT_SYMTAB33 Value: 0x000000000000100034 - Tag: DT_NULL35 Value: 0x000000000000000036ProgramHeaders:37 - Type: PT_LOAD38 Flags: [ PF_R ]39 VAddr: 0x100040 Align: 841 FirstSec: .dynstr42 LastSec: .dynamic43 - Type: PT_DYNAMIC44 Flags: [ PF_X, PF_R ]45 VAddr: 0x101846 FirstSec: .dynamic47 LastSec: .dynamic48 49# ORIGINAL: SoName: somelib.so{{$}}50 51# REPLACED: SoName: libbest.so{{$}}52