Index: lib/CodeGen/ELFWriter.cpp |
=================================================================== |
--- a/lib/CodeGen/ELFWriter.cpp |
+++ b/lib/CodeGen/ELFWriter.cpp |
@@ -765,7 +765,7 @@ |
unsigned SymIdx = 0; |
// Target specific relocation field type and size |
- unsigned RelType = TEW->getRelocationType(MR.getRelocationType()); |
+ unsigned RelType = TEW->getRelocationType(S, MR); |
unsigned RelTySize = TEW->getRelocationTySize(RelType); |
int64_t Addend = 0; |