diff mbox

[3/3] ARC: With NPTL support, GP is no longer used for PIC

Message ID 1445411545-14538-4-git-send-email-vgupta@synopsys.com
State New
Headers show

Commit Message

Vineet Gupta Oct. 21, 2015, 7:12 a.m. UTC
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
 ldso/ldso/arc/dl-sysdep.h | 6 ------
 1 file changed, 6 deletions(-)
diff mbox

Patch

diff --git a/ldso/ldso/arc/dl-sysdep.h b/ldso/ldso/arc/dl-sysdep.h
index ca62a2c04f35..b6bda9d14691 100644
--- a/ldso/ldso/arc/dl-sysdep.h
+++ b/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.  */