llvm.org GIT mirror llvm / 03b94a4
[Object][ELF][Mips] Print symbol name for MIPS ELF relocations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199898 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Atanasyan 6 years ago
3 changed file(s) with 12 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
782782 }
783783 case ELF::EM_ARM:
784784 case ELF::EM_HEXAGON:
785 case ELF::EM_MIPS:
785786 res = *SymName;
786787 break;
787788 default:
99 RUN: | FileCheck %s -check-prefix ELF-hexagon
1010 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mips64el \
1111 RUN: | FileCheck %s -check-prefix ELF-MIPS64EL
12 RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mipsel \
13 RUN: | FileCheck %s -check-prefix ELF-MIPSEL
1214
1315 RUN: llvm-objdump -r %p/Inputs/relocations.elf-x86-64 \
1416 RUN: | FileCheck %s -check-prefix ELF-complex-x86-64
4446 // Note: this file was produced with gas to make sure we don't end up in a
4547 // situation where LLVM produces and accepts a broken file.
4648 ELF-MIPS64EL: .data
47 ELF-MIPS64EL: R_MIPS_64
49 ELF-MIPS64EL: R_MIPS_64/R_MIPS_NONE/R_MIPS_NONE zed
50
51 ELF-MIPSEL: .rel.text
52 ELF-MIPSEL: R_MIPS_HI16 _gp_disp
53 ELF-MIPSEL: R_MIPS_LO16 _gp_disp
54 ELF-MIPSEL: R_MIPS_GOT16 $.str
55 ELF-MIPSEL: R_MIPS_LO16 $.str
56 ELF-MIPSEL: R_MIPS_CALL16 puts
57 ELF-MIPSEL: R_MIPS_CALL16 SomeOtherFunction
4858
4959 ELF-complex-x86-64: .text
5060 ELF-complex-x86-64-NEXT: R_X86_64_8 .data-4