File:  [DVB] / dietlibc / lib / stack_smash_handler3.c
Revision 1.2: download - view: text, annotated - select for diffs
Thu Mar 3 17:33:16 2011 UTC (13 years, 3 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
fix compiler warnings
make i386 start code slightly smaller (I think profiling was broken,
too, and this should fix it)
add PIC stack smash handler

#include <sys/cdefs.h>

extern void __stack_chk_fail(void) __attribute__((noreturn));

/* this is only called from implicitly generated code, so there is no
 * explicit prototype anywhere */
void __attribute__((noreturn)) __stack_chk_fail_local(void);

/* no idea why sometimes this is called instead of __stack_chk_fail,
 * but it apparently only happens with shared libraries */

void __attribute__((noreturn)) __stack_chk_fail_local(void)
{
  __stack_chk_fail ();
}

LinuxTV legacy CVS <linuxtv.org/cvs>