소스 검색

ldso/mips: actually print results of each relocation

The patched line was outside of the body of the loop over relocations
and so would only print the results of the last relocation, fix that.

Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Gregory Fong 12 년 전
부모
커밋
33a59d1c1b
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      ldso/ldso/mips/elfinterp.c

+ 3 - 3
ldso/ldso/mips/elfinterp.c

@@ -325,11 +325,11 @@ int _dl_parse_relocation_information(struct dyn_elf *xpnt,
 				_dl_exit(1);
 				_dl_exit(1);
 			}
 			}
 		}
 		}
-	}
 #if defined (__SUPPORT_LD_DEBUG__)
 #if defined (__SUPPORT_LD_DEBUG__)
-	if (_dl_debug_reloc && _dl_debug_detail && reloc_addr)
-		_dl_dprintf(_dl_debug_file, "\tpatched: %x ==> %x @ %x\n", old_val, *reloc_addr, reloc_addr);
+		if (_dl_debug_reloc && _dl_debug_detail && reloc_addr)
+			_dl_dprintf(_dl_debug_file, "\tpatched: %x ==> %x @ %x\n", old_val, *reloc_addr, reloc_addr);
 #endif
 #endif
+	}
 
 
 	return 0;
 	return 0;
 }
 }