llvm.org GIT mirror llvm / e286417 test / tools / llvm-readobj / gnu-relocations.test
e286417

Tree @e286417 (Download .tar.gz)

gnu-relocations.test @e286417raw · history · blame

RUN: llvm-readobj -r %p/Inputs/relocs.obj.elf-i386 --elf-output-style=GNU \
RUN:   | FileCheck %s -check-prefix ELF32
RUN: llvm-readobj -r %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \
RUN:   | FileCheck %s -check-prefix ELF64

ELF32:    Relocation section '.rel.text' at offset 0x318 contains 41 entries:
ELF32-NEXT:     Offset     Info    Type                Sym. Value  Symbol's Name
ELF32-NEXT:    00000002  00000500 R_386_NONE             00000000   sym
ELF32-NEXT:    00000008  00000501 R_386_32               00000000   sym
ELF32-NEXT:    0000000e  00000502 R_386_PC32             00000000   sym
ELF32-NEXT:    00000014  00000503 R_386_GOT32            00000000   sym
ELF32-NEXT:    0000001a  00000504 R_386_PLT32            00000000   sym
ELF32-NEXT:    00000020  00000505 R_386_COPY             00000000   sym
ELF32-NEXT:    00000026  00000506 R_386_GLOB_DAT         00000000   sym
ELF32-NEXT:    0000002c  00000507 R_386_JUMP_SLOT        00000000   sym
ELF32-NEXT:    00000032  00000508 R_386_RELATIVE         00000000   sym
ELF32-NEXT:    00000038  00000509 R_386_GOTOFF           00000000   sym

ELF64:    Relocation section '.rela.text' at offset 0x430 contains 38 entries:
ELF64-NEXT:        Offset             Info             Type               Symbol's Value Symbol's Name + Addend
ELF64-NEXT:    0000000000000003  0000000500000000 R_X86_64_NONE          0000000000000000 sym - 4
ELF64-NEXT:    000000000000000a  0000000500000001 R_X86_64_64            0000000000000000 sym - 4
ELF64-NEXT:    0000000000000011  0000000500000002 R_X86_64_PC32          0000000000000000 sym - 4
ELF64-NEXT:    0000000000000018  0000000500000003 R_X86_64_GOT32         0000000000000000 sym - 4
ELF64-NEXT:    000000000000001f  0000000500000004 R_X86_64_PLT32         0000000000000000 sym - 4
ELF64-NEXT:    0000000000000026  0000000500000005 R_X86_64_COPY          0000000000000000 sym - 4
ELF64-NEXT:    000000000000002d  0000000500000006 R_X86_64_GLOB_DAT      0000000000000000 sym - 4
ELF64-NEXT:    0000000000000034  0000000500000007 R_X86_64_JUMP_SLOT     0000000000000000 sym - 4