freebsd-dev/lib/libc/sys/stack_protector_compat.c
Konstantin Belousov da2a0df59c Move the __stack_chk_fail_local@FBSD_1.0 compat symbol definition into
the separate .o for libc_pic.a. This prevents rtld from making the
symbol global.

Putting the stack_protector_compat.c into the public domain acknowledged
by kan.

Reviewed by:	kan
MFC after:	2 weeks
2010-08-24 12:58:54 +00:00

21 lines
332 B
C

/*
* Written by Alexander Kabaev <kan@FreeBSD.org>
* The file is in public domain.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
void __stack_chk_fail(void);
#ifdef PIC
void
__stack_chk_fail_local_hidden(void)
{
__stack_chk_fail();
}
__sym_compat(__stack_chk_fail_local, __stack_chk_fail_local_hidden, FBSD_1.0);
#endif