ruiu added inline comments. ================ Comment at: ELF/InputSection.cpp:190 @@ +189,3 @@ + break; + case R_ABS: + case R_MIPS_GOT: ---------------- Why don't you return early in this switch-case? For example, for R_ABS, you can immediately return Body.getVA<ELFT>(A). http://reviews.llvm.org/D18711