소스 검색

Accunt for ELF_MACHINE_PLTREL_OVERLAP when relocating ldso.

Joakim Tjernlund 20 년 전
부모
커밋
7761b10791
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      ldso/ldso/dl-startup.c

+ 6 - 2
ldso/ldso/dl-startup.c

@@ -343,9 +343,13 @@ found_got:
 #ifdef __SUPPORT_LD_DEBUG_EARLY__
 	SEND_STDERR("About to do library loader relocations\n");
 #endif
-
+#ifdef  ELF_MACHINE_PLTREL_OVERLAP
+# define INDX_MAX 1
+#else
+# define INDX_MAX 2
+#endif
 	goof = 0;
-	for (indx = 0; indx < 2; indx++) {
+	for (indx = 0; indx < INDX_MAX; indx++) {
 		unsigned int i;
 		ELF_RELOC *rpnt;
 		unsigned long *reloc_addr;