소스 검색

ARC: With NPTL support, GP is no longer used for PIC

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Vineet Gupta 8 년 전
부모
커밋
9860910d17
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 6
      ldso/ldso/arc/dl-sysdep.h

+ 0 - 6
ldso/ldso/arc/dl-sysdep.h

@@ -127,12 +127,6 @@ static __always_inline Elf32_Addr elf_machine_dynamic(void)
 
 	__asm__("ld %0,[pcl,_DYNAMIC@gotpc]\n\t" : "=r" (dyn));
 	return dyn;
-
-/*
- * Another way would have been to simply return GP, which due to some
- * PIC reference would be automatically setup by gcc in caller
- *	register Elf32_Addr *got __asm__ ("gp"); return *got;
- */
 }
 
 /* Return the run-time load address of the shared object.  */