소스 검색

fix regression in SH/FDPIC dynamic linker

the dynamic linker was found to hang when used as the PT_INTERP, but
not when invoked as a command. the mechanism of this failure was not
determined, but the cause is clear:

commit 5552ce52000855906a5cb4f08f2e456573cca51f removed the SHARED
macro, but arch/sh/crt_arch.h is still using it to choose the right
form of the crt/ldso entry point code. moving the forced definition
from rcrt1.c to dlstart.c restores the old behavior. eventually the
logic should be changed to fully remove the SHARED macro or at least
rename it to something more reasonable.
Rich Felker 9 년 전
부모
커밋
2d0290debf
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      crt/rcrt1.c
  2. 2 0
      ldso/dlstart.c

+ 0 - 1
crt/rcrt1.c

@@ -1,4 +1,3 @@
-#define SHARED
 #define START "_start"
 #define _dlstart_c _start_c
 #include "../ldso/dlstart.c"

+ 2 - 0
ldso/dlstart.c

@@ -5,6 +5,8 @@
 #define START "_dlstart"
 #endif
 
+#define SHARED
+
 #include "crt_arch.h"
 
 #ifndef GETFUNCSYM