(_dl_make_stack_executable): Use RETURN_ADDRESS instead of
authordrepper <drepper>
Tue, 20 Apr 2004 18:46:14 +0000 (18:46 +0000)
committerdrepper <drepper>
Tue, 20 Apr 2004 18:46:14 +0000 (18:46 +0000)
__builtin_return_address.

sysdeps/unix/sysv/linux/dl-execstack.c

index 2481960..3ca9b0b 100644 (file)
@@ -37,7 +37,7 @@ _dl_make_stack_executable (void **stack_endp)
                    & -(intptr_t) GLRO(dl_pagesize));
 
   /* Challenge the caller.  */
                    & -(intptr_t) GLRO(dl_pagesize));
 
   /* Challenge the caller.  */
-  if (__builtin_expect (__check_caller (__builtin_return_address (0),
+  if (__builtin_expect (__check_caller (RETURN_ADDRESS (0),
                                        allow_ldso|allow_libpthread) != 0, 0)
       || __builtin_expect (*stack_endp != __libc_stack_end, 0))
     return EPERM;
                                        allow_ldso|allow_libpthread) != 0, 0)
       || __builtin_expect (*stack_endp != __libc_stack_end, 0))
     return EPERM;