forked from OSchip/llvm-project
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
RUN: lld-core -reader ELF -writer ELF -o %t1 %p/Inputs/phdr.i386 | elf-dump %t1 | FileCheck -check-prefix=ED %s
|
|
|
|
RUN: lld -core -target x86_64-linux -output=%t1 %p/Inputs/relocs.x86-64 \
|
|
RUN: && llvm-objdump -p %t1 | FileCheck %s -check-prefix=X86_64
|
|
|
|
|
|
ED: (('p_type', 0x00000001)
|
|
ED: ('p_flags', 0x00000005)
|
|
ED: ('p_offset', 0x00000000)
|
|
ED: ('p_vaddr', 0x00000000)
|
|
ED: ('p_paddr', 0x00000000)
|
|
ED: ('p_filesz', 0x000000d9)
|
|
ED: ('p_memsz', 0x000000d9)
|
|
ED: ('p_align', 0x00001000)
|
|
ED: ),
|
|
ED: # Program Header 1
|
|
ED: (('p_type', 0x00000001)
|
|
ED: ('p_flags', 0x00000004)
|
|
ED: ('p_offset', 0x00001000)
|
|
ED: ('p_vaddr', 0x00001000)
|
|
ED: ('p_paddr', 0x00001000)
|
|
ED: ('p_filesz', 0x0000008c)
|
|
ED: ('p_memsz', 0x0000008c)
|
|
ED: ('p_align', 0x00001000)
|
|
ED: ),
|
|
ED: # Program Header 2
|
|
ED: (('p_type', 0x00000001)
|
|
ED: ('p_flags', 0x00000006)
|
|
ED: ('p_offset', 0x00002000)
|
|
ED: ('p_vaddr', 0x00002000)
|
|
ED: ('p_paddr', 0x00002000)
|
|
ED: ('p_filesz', 0x00000104)
|
|
ED: ('p_memsz', 0x00000004)
|
|
ED: ('p_align', 0x00001000)
|
|
ED: ),
|
|
ED: # Program Header 3
|
|
ED: (('p_type', 0x00000001)
|
|
ED: ('p_flags', 0x00000006)
|
|
ED: ('p_offset', 0x00004000)
|
|
ED: ('p_vaddr', 0x00004000)
|
|
ED: ('p_paddr', 0x00004000)
|
|
ED: ('p_filesz', 0x00000004)
|
|
ED: ('p_memsz', 0x00004008)
|
|
ED: ('p_align', 0x00001000)
|
|
ED: ),
|
|
|
|
X86_64: vaddr 0x0000000000400000
|