1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

* debug/chk_fail.c (__chk_fail): Add a while (1) loop around

__libc_message to kill GCC warning about noreturn function returning.

	* elf/rtld.c (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
	before relocating ld.so again.

	* elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
	for already prelinked ld.so.
This commit is contained in:
Ulrich Drepper
2005-02-12 23:17:03 +00:00
parent f85f3563db
commit e38c954b3b
3 changed files with 22 additions and 6 deletions

View File

@ -26,7 +26,9 @@ void
__attribute__ ((noreturn))
__chk_fail (void)
{
__libc_message (1, "*** buffer overflow detected ***: %s terminated\n",
__libc_argv[0] ?: "<unknown>");
/* The loop is added only to keep gcc happy. */
while (1)
__libc_message (1, "*** buffer overflow detected ***: %s terminated\n",
__libc_argv[0] ?: "<unknown>");
}
libc_hidden_def (__chk_fail)