forked from OSchip/llvm-project
[Object][ELF][Mips] Print symbol name for MIPS ELF relocations.
llvm-svn: 199898
This commit is contained in:
parent
09f9924acf
commit
793f1b2202
|
@ -783,6 +783,7 @@ error_code ELFObjectFile<ELFT>::getRelocationValueString(
|
|||
}
|
||||
case ELF::EM_ARM:
|
||||
case ELF::EM_HEXAGON:
|
||||
case ELF::EM_MIPS:
|
||||
res = *SymName;
|
||||
break;
|
||||
default:
|
||||
|
|
Binary file not shown.
|
@ -10,6 +10,8 @@ RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-hexagon \
|
|||
RUN: | FileCheck %s -check-prefix ELF-hexagon
|
||||
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mips64el \
|
||||
RUN: | FileCheck %s -check-prefix ELF-MIPS64EL
|
||||
RUN: llvm-objdump -r %p/Inputs/trivial-object-test.elf-mipsel \
|
||||
RUN: | FileCheck %s -check-prefix ELF-MIPSEL
|
||||
|
||||
RUN: llvm-objdump -r %p/Inputs/relocations.elf-x86-64 \
|
||||
RUN: | FileCheck %s -check-prefix ELF-complex-x86-64
|
||||
|
@ -45,7 +47,15 @@ ELF-hexagon: R_HEX_B22_PCREL puts
|
|||
// Note: this file was produced with gas to make sure we don't end up in a
|
||||
// situation where LLVM produces and accepts a broken file.
|
||||
ELF-MIPS64EL: .data
|
||||
ELF-MIPS64EL: R_MIPS_64
|
||||
ELF-MIPS64EL: R_MIPS_64/R_MIPS_NONE/R_MIPS_NONE zed
|
||||
|
||||
ELF-MIPSEL: .rel.text
|
||||
ELF-MIPSEL: R_MIPS_HI16 _gp_disp
|
||||
ELF-MIPSEL: R_MIPS_LO16 _gp_disp
|
||||
ELF-MIPSEL: R_MIPS_GOT16 $.str
|
||||
ELF-MIPSEL: R_MIPS_LO16 $.str
|
||||
ELF-MIPSEL: R_MIPS_CALL16 puts
|
||||
ELF-MIPSEL: R_MIPS_CALL16 SomeOtherFunction
|
||||
|
||||
ELF-complex-x86-64: .text
|
||||
ELF-complex-x86-64-NEXT: R_X86_64_8 .data-4
|
||||
|
|
Loading…
Reference in New Issue