Message ID | 20170802160005.GA3548@intel.com |
---|---|
State | New |
Headers | show |
* H. J. Lu: > Since start.o may be compiled as PIC, we should check PIC instead of > SHARED. > > Any comments or objections? Looks reasonable.
diff --git a/sysdeps/x86_64/start.S b/sysdeps/x86_64/start.S index 62a00eaeaa..9edd17b60c 100644 --- a/sysdeps/x86_64/start.S +++ b/sysdeps/x86_64/start.S @@ -96,7 +96,7 @@ ENTRY (_start) which grow downwards). */ pushq %rsp -#ifdef SHARED +#ifdef PIC /* Pass address of our own entry points to .fini and .init. */ mov __libc_csu_fini@GOTPCREL(%rip), %R8_LP mov __libc_csu_init@GOTPCREL(%rip), %RCX_LP