pull across from gcc 4.1 tree:
>revision 1.2 >date: 2007/09/15 16:24:06; author: christos; state: Exp; lines: +10 -0 >Add a hack to handle that the __stack_chk_fail_local call is not generated >properly for pic code; more explained in the code.
This commit is contained in:
parent
b042682f2f
commit
48e8a6f76b
|
@ -569,7 +569,17 @@ default_hidden_stack_protect_fail (void)
|
|||
DECL_ARTIFICIAL (t) = 1;
|
||||
DECL_IGNORED_P (t) = 1;
|
||||
DECL_VISIBILITY_SPECIFIED (t) = 1;
|
||||
#if 1
|
||||
/*
|
||||
* This is a hack:
|
||||
* It appears that our gas does not generate @PLT for hidden
|
||||
* symbols. It could be that we need a newer version, or that
|
||||
* this local function is handled differently on linux.
|
||||
*/
|
||||
DECL_VISIBILITY (t) = VISIBILITY_DEFAULT;
|
||||
#else
|
||||
DECL_VISIBILITY (t) = VISIBILITY_HIDDEN;
|
||||
#endif
|
||||
|
||||
stack_chk_fail_decl = t;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue